/* GENERAL */

@import url('https://fonts.cdnfonts.com/css/nexa-bold'); 
                
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nexa', sans-serif;
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85); /* Fixed typo: was rgd */
}

/* TRANSITION */

a, 
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV - Updated with pill-shaped frosted glass effect */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 12vh; /* Shorter navbar */
    padding: 0 5%; /* Changed from 2rem to 5% to match content margins */
    
    
    /* Sticky positioning */
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Remove background from nav itself */
    background: transparent;
    
    /* Smooth transition */
    transition: all 0.3s ease;
}

.nav-links li {
    list-style: none;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    font-size: 1rem;
    margin: 0;
    
    /* Pill-shaped frosted glass background */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Pill shape */
    border-radius: 50px;
    padding: 0.8rem 2rem;
    
    /* Smooth transition */
    transition: all 0.3s ease;
}

/* Optional: Enhanced effect when scrolled */
nav.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 1.8rem; /* Slightly smaller when scrolled */
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
} 

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    transition: transform 0.3s ease; /* Added smooth hover effect */

    /* Add white circular background */
    background: white;
    border-radius: 50%;
    padding: 4px;
  
}

.logo img:hover {
    transform: scale(1.05); /* Subtle hover animation */
    cursor: default;
}



/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
    /* Add sticky properties for mobile too */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0 5%; /* Match desktop nav padding */
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out; /* Fixed missing 's' */
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95); /* Made consistent with frosted glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out; /* Fixed missing 's' */
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out; /* Fixed missing 's' */
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:nth-child(2) { /* Fixed duplicate selectors */
    opacity: 1;
}

.hamburger-icon span:last-child { /* Fixed duplicate selectors */
    transform: none;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 75vh;
    margin: 0 5%; /* Changed from 10rem to 5% to match nav */
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}


/* icons */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* buttons */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, 
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover, 
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1, 
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
}

/* about section */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, 
.about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

/* Experience section */

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* Projects section  */


/* Projects section - consistent margins */
#projects {
    position: relative;
    padding-top: 4vh;
    padding-left: 5%; /* Match nav padding */
    padding-right: 5%; /* Match nav padding */
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Reset margin since we're using padding */
}

/* Force 2 columns on desktop */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


.project-card {
    display: block;              /* makes the <a> behave like a card from chat GPT */
    text-decoration: none;       /* remove underline */
    color: inherit;              /* keep text color consistent */
    width: 100%;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0; /* Remove padding to let image fill top */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
    text-decoration: none;       /* still no underline on hover */
}

.project-card:hover::before {
    opacity: 1;
}

/* Landscape image container - wider aspect ratio */
.project-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Reduced height for landscape look */
    border-radius: 24px 24px 0 0; /* Only top corners rounded */
    overflow: hidden;
    margin-bottom: 0; /* No margin since text goes below */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Content area below the image */
.project-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem; /* Add padding back for content area */
    background: rgba(255, 255, 255, 0.1); /* Subtle background for content */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: rgb(85, 85, 85);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.7);
    color: rgb(85, 85, 85);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-card:hover .tag {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    margin-bottom: 1rem;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .modal-content-wrapper {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        position: fixed;
        z-index: 2001;
    }
    
    .modal-image {
        max-height: 80vh;
    }
}


/* contact */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250); /* Fixed missing 'rgb' */
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem; 
}





    @media screen and (max-width: 768px) {
    .skills-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .skills-wrapper {
        gap: 0.6rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }}

     /* Jump to top button */
        .jump-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: rgba(238, 244, 255, 0.9);
            border: none;
            border-radius: 50%;
            font-size: 1.2rem;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 10px rgba(85, 84, 84, 0.15);
        }

        .jump-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .jump-to-top:hover {
            transform: translateY(-5px);
            background: rgb(242, 247, 255);
        }


/*CASE STUDIES*/
.case-study-title {
            font-size: 3rem;
            font-weight: 800;
            color: black;
            margin-bottom: 1rem;
        }
        
        .case-study-subtitle {
            font-size: 1.2rem;
            color: rgb(85, 85, 85);
            margin-bottom: 2rem;
        }

/* FOOTER */

footer {
    height: 1vh;
    display: flex;
    position: relative;
    z-index: 5;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 3rem 5%; /* Changed padding added 5 to match nav */
    align-items: center;
    justify-content: space-between;
    font-family: 'Nexa', sans-serif; /* Ensure consistent font */
}

footer p {
    text-align: center;
    font-family: 'Nexa', sans-serif; /* Ensure consistent font */
    margin: 0; /* Remove default margins */
}

footer a {
    font-family: 'Nexa', sans-serif; /* Ensure consistent font */
    color: rgb(85, 85, 85); /* Match the gray text color */
    text-decoration: none;
    transition: all 300ms ease;
}

footer a:hover {
    color: black;
    text-decoration: none;
    text-underline-offset: 0.3rem;
}
