/* Universal Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
    color: #263238;
    margin: 0; 
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; 
    padding-right: 15px; 
}

/* Margin Top */
.mt-4 {
    margin-top: 1.5rem; 
}

/* Text Align */
.text-center {
    text-align: center;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; 
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #00796b !important;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; 
}

.nav-item {
    padding: 0; 
}

.nav-link {
    font-weight: 600;
    color: #004d40 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0; 
    display: block; 
}

.nav-link:hover, .nav-link.active {
    color: #009688 !important;
}

/* Toggler for mobile */
.navbar-toggler {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
}


.navbar-toggler i {
    font-size: 1.5rem;
    color: #00796b;
    line-height: 1;
    transition: color 0.3s ease;
}

.navbar-toggler i:hover {
    color: #004d40; 
}

/* Mobile Navigation Styles */
@media (max-width: 991px) { 
    .navbar-nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }


    .nav-item {
        margin-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-toggler {
        display: block; /* Show toggler on mobile */
    }

    .navbar-collapse {
        flex-grow: 1; /* Allows the toggler to be on the right */
        display: flex; /* Ensure it behaves as a flex item */
        justify-content: flex-end; /* Push toggler to the end */
    }
}


/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0; /* Add vertical padding for content */
    padding-top: 100px; /* Account for fixed navbar */
}

.hero-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.hero-text {
    flex: 1; 
    min-width: 300px;
    text-align: center; /* Default for mobile/small screens */
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #004d40;
    margin-bottom: 1rem;
}

.hero-text p.lead {
    font-size: 1.25rem;
    color: #00695c;
    margin-bottom: 0; /* Reset default paragraph margin */
}

.hero-description {
    margin-top: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.btn-cv {
    background-color: #00796b;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
    text-decoration: none;
    display: inline-block; 
    border: none;
    cursor: pointer; 
    margin-top: 20px; /* Add space above the button */
}

.btn-cv:hover {
    background-color: #004d40;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.4);
    color: #ffffff;
}

.hero-image-wrapper {
    flex-shrink: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; 
}

.hero-image {
    width: 350px; 
    height: 350px; 
    object-fit: cover;
    border-radius: 50%; /* Makes it circular */
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    border: 5px solid #ffffff;
    display: block; 
}

@media (min-width: 992px) { /* For large screens and up, switch to column layout */
    .hero-text {
        text-align: left;
    }
    .hero-content {
        flex-wrap: nowrap; 
        justify-content: space-between; 
    }
}


/* --- General Section Styling --- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004d40;
    margin-bottom: 50px;
    text-align: center;
}

/* --- About Me Section --- */
.about-section .container {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    justify-content: center;
}

.about-text-column,
.about-skills-column {
    flex: 1; 
    min-width: 300px; 
}

.about-section h3 {
    color: #004d40;
    margin-bottom: 1rem;
    font-size: 1.75rem; 
}

.about-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow skills to wrap */
    gap: 10px; 
}

.skill-list li {
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.skill-list li:hover {
    transform: scale(1.05);
    background-color: #ffffff;
}

.skill-list i {
    color: #00796b;
}

/* --- Projects Section --- */
.projects-section {
    background-color: #ffffff; /* Override body background for this section */
}

.projects-category {
    margin-bottom: 60px;
}

.projects-category:last-child {
    margin-bottom: 0; 
}

.category-title {
    font-size: 2rem;
    color: #004d40;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0; /* Reset default h3 margin */
}

.ux-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px; 
    justify-items: center; 
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block; 
}

.ux-gallery img:hover {
    transform: scale(1.03); /* Slightly less intense zoom for gallery */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.web-projects-category {
    padding-top: 60px; 
}

.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; 
    justify-items: center;
}

.project-card {
    background-color: #ffffff;
    border: none; /* No border */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
    width: 100%;
    height: 200px; /* Fixed height for consistent image size */
    object-fit: cover; /* Ensure image covers the area */
    display: block;
}

.project-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow body to take up remaining height */
}

.project-card .card-title {
    color: #004d40;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.project-card .card-text {
    flex-grow: 1; /* Allow text to grow and push links to bottom */
    margin-bottom: 1rem; /* Space before links */
    line-height: 1.5;
}

.project-links {
    text-align: center;
    margin-top: auto; /* Push links to the bottom if text varies in length */
}

.project-links a {
    color: #00796b;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-decoration: none; /* Remove underline from links */
}

.project-links a:hover {
    color: #004d40;
}

/* --- Contact Section --- */
.contact-section .container {
    max-width: 800px; /* Limit width for better readability */
}

.contact-form-wrapper {
    display: flex;
    justify-content: center;
}

.contact-form {
    width: 100%;
    max-width: 600px; /* Max width of the form itself */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1rem; 
}

.form-label {
    display: block; /* Make labels block-level */
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #004d40;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #b2dfdb;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none; 
    border-color: #00796b;
    box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.25);
}

textarea.form-control {
    resize: vertical; /* Allow vertical resizing */
}

.form-submit-center {
    text-align: center; /* Centering the button */
    margin-top: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: #004d40;
    color: #e0f2f1;
    padding: 40px 0;
    text-align: center;
}

.footer-socials {
    margin-bottom: 20px; /* Space above copyright text */
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #80cbc4;
}

footer p {
     margin: 0;  /* default margin removed */
    font-size: 0.9rem;
}