/*
        ========================================
        CSS Custom Properties (Classic Theme)
        ========================================
        */
        :root {
            --color-background: #ffffff;
            --color-text-primary: #343a40;
            --color-text-secondary: #6c757d;
            --color-primary-cta: #FF8FAB;
            --color-primary-cta-hover: #FF5D8F;
            --color-border-subtle: #e9ecef;
            
            --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --font-weight-normal: 400;
            --font-weight-bold: 600;

            --navbar-height: 70px;
            --navbar-padding: 1rem;
            --container-width: 1140px;
            --border-radius: 0.25rem;
            --transition-speed: 0.2s;
        }

        /*
        ========================================
        Global Resets & Base Styles
        ========================================
        */
        *, *::before, *::after { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: var(--font-family-sans-serif);
            font-size: 1rem;
            font-weight: var(--font-weight-normal);
            line-height: 1.5;
            color: var(--color-text-primary);
        }
        
        /* Make the page scrollable to demonstrate the sticky effect */
        .content {
            height: 200vh;
            padding: var(--navbar-padding);
            padding-top: calc(var(--navbar-height) + 2rem);
            max-width: var(--container-width);
            margin: 0 auto;
        }

        ul { list-style: none; margin: 0; padding: 0; }
        a { text-decoration: none; color: var(--color-text-secondary); transition: color var(--transition-speed) ease; }
        a:hover { color: var(--color-text-primary); }
        
        /*
        ========================================
        Main Navbar Structure
        ========================================
        */
        .navbar {
            /* The Core Sticky Logic */
            position: sticky;
            top: 0;
            
            display: flex;
            align-items: center;
            background-color: var(--color-background);
            z-index: 1000;

            /* The subtle drop shadow to "lift" it off the page */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .navbar__container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 var(--navbar-padding);
        }
        
        .navbar__brand {
            font-size: 1.5rem;
            font-weight: var(--font-weight-bold);
            color: var(--color-text-primary);
        }

        .logo img {
             height: 74px; /* Adjust size to fit your navbar */
             width: auto;
        }

        /*
        ========================================
        Mobile Menu & Toggle
        ========================================
        */
        .navbar__toggle {
            display: block;
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--border-radius);
            padding: 0.25rem 0.75rem;
            background: transparent;
            cursor: pointer;
            z-index: 1001;
        }

        .navbar__toggle .bar {
            display: block;
            width: 22px;
            height: 2px;
            margin: 6px 0;
            background-color: var(--color-text-primary);
            transition: all var(--transition-speed) ease;
        }
        
        .navbar__toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
        .navbar__toggle.is-active .bar:nth-child(2) { opacity: 0; }
        .navbar__toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
        
        .navbar__menu {
            display: none;
            flex-direction: column;
            position: absolute;
            top: var(--navbar-height);
            left: 0;
            width: 100%;
            background-color: var(--color-background);
            border-bottom: 1px solid var(--color-border-subtle);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            z-index: 999;
        }
        
        .navbar__menu.is-active { display: flex; }
        .navbar__item {
            text-align: center;
            border-top: 1px solid var(--color-border-subtle);
        }
        .navbar__link { display: block; padding: 1.25rem; font-weight: var(--font-weight-bold); }

        :is(.navbar__toggle, .navbar__link):focus-visible {
            outline: 2px solid var(--color-primary-cta);
            outline-offset: 2px;
            border-radius: var(--border-radius);
        }

        /*
        ========================================
        Desktop Navbar Styles
        ========================================
        */
        @media (min-width: 992px) {
            .navbar__toggle { display: none; }
            .navbar__menu {
                display: flex;
                flex-direction: row;
                align-items: center;
                position: static;
                width: auto;
                background: none;
                border: none;
                box-shadow: none;
            }

            .navbar__list { display: flex; align-items: center; gap: 1.5rem; }
            .navbar__item { border: none; }
            .navbar__link { font-weight: var(--font-weight-normal); padding: 0.5rem 0; }

            .navbar__link--cta {
                background-color: var(--color-primary-cta);
                color: #fff;
                padding: 0.5rem 1rem;
                border-radius: var(--border-radius);
                transition: background-color var(--transition-speed) ease;
            }
            .navbar__link--cta:hover {
                color: #fff;
                background-color: var(--color-primary-cta-hover);
            }
        }

        /*
        ========================================
        Typing cursor (shared by hero + about)
        ========================================
        */
        .cursor {
            display: inline-block;
            width: 3px;
            height: 1em;
            background: currentColor;
            margin-left: 2px;
            vertical-align: -0.1em;
            animation: blink 0.9s step-end infinite;
        }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /*
        ========================================
        Hero Section
        ========================================
        */
        .hero__container {
        display: flex;
        align-items: center;
        justify-content: center; /* Center horizontally on large screens */
        gap: 2.5rem;
        min-height: 80vh; /* Changed from fixed height (707px) to min-height */
        flex-wrap: wrap;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 4rem var(--navbar-padding);
        }
        .hero__text { max-width: 500px; }
        .hero__text h1 {
            font-size: 2.75rem;
            font-weight: 800;
            margin: 0 0 1.25rem;
            min-height: 3.5rem;
            color: var(--color-text-primary);
        }
        .hero__subtitle {
            color: var(--color-text-secondary);
            font-size: 1.25rem;
            line-height: 1.4;
            margin: 0 0 1.75rem;
        }
        .hero__buttons { display: flex; gap: 0.75rem; }
        .hero__avatar { width: 450px; flex-shrink: 0; }
        .hero__avatar img { width: 100%; height: auto; border-radius: 50%; }

        .btn {
        display: inline-block;
        padding: 0.75rem 1.6rem;
        border-radius: var(--border-radius);
        font-weight: var(--font-weight-bold);
        cursor: pointer;
        border: 1px solid transparent;
        transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                transform var(--transition-speed) ease;
}
        .btn--primary {
    background-color: var(--color-primary-cta);
    color: #ffffff;
    border-color: var(--color-primary-cta);
}
      .btn--primary:hover {
    background-color: var(--color-primary-cta-hover);
    border-color: var(--color-primary-cta-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Secondary Button */
.btn--secondary {
    background-color: transparent;
    color: var(--color-primary-cta-hover);
    border: 1px solid var(--color-primary-cta);
}

.btn--secondary:hover {
    background-color: var(--color-primary-cta);
    color: #ffffff;
    border-color: var(--color-primary-cta);
    transform: translateY(-2px);
}
        /* ========================================
   Hero Section
   ======================================== */
.hero {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height));
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem var(--navbar-padding);
}

.hero__text {
    flex: 1;
    max-width: 520px;
}

.hero__text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    min-height: 3.5rem;
    color: var(--color-text-primary);
}

.hero__subtitle {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0 0 1.75rem;
}

.hero__buttons {
    display: flex;
    gap: 0.75rem;
}

.hero__avatar {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.hero__avatar img {
    width: 100%;
    height: auto;
    max-width: 420px;
    border-radius: 50%;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: #f5f8ee;
    padding: 5rem 0;
    width: 100%;
}

.about__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--navbar-padding);
}

.about__container h2 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 2.5rem;
    min-height: 2.75rem;
    color: var(--color-text-primary);
}

.about__grid {
    display: flex;
    gap: 5.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about__photo {
    width: 320px;
    flex-shrink: 0;
}

.about__photo img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

.about__copy {
    flex: 1;
    min-width: 300px;
}

.about__copy h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--color-text-primary);
}

.about__copy p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 620px;
}

/* ========================================
   Interests Section
   ======================================== */
.interests {
    padding: 5rem 0;
    background-color: var(--color-background);
    width: 100%;
    clear: both;
}

.interests__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--navbar-padding);
}

.interests__container h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.interests__subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.interests__description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.interests__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.interests__card {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interests__card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover effect on card container & image */
.interests__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.interests__card:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero__buttons {
        justify-content: center;
    }
    .about__grid {
        flex-direction: column;
        text-align: center;
    }
    .about__copy p {
        margin-left: auto;
        margin-right: auto;
    }
    .interests__grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   Explorations Timeline Section
   ======================================== */
.explorations {
    padding: 2rem 0 6rem;
    background-color: var(--color-background);
    width: 100%;
}

.explorations__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--navbar-padding);
}

.explorations__list {
    display: flex;
    flex-direction: column;
}

.explorations__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    border-top: 1px solid var(--color-border-subtle);
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.explorations__item:last-child {
    border-bottom: 1px solid var(--color-border-subtle);
}

.explorations__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.explorations__year {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* Subtle hover effect */
.explorations__item:hover .explorations__title {
    color: var(--color-primary-cta);
    transform: translateX(6px);
    transition: transform var(--transition-speed) ease, color var(--transition-speed) ease;
}

@media (max-width: 768px) {
    .explorations__title {
        font-size: 1.5rem;
    }
    .explorations__year {
        font-size: 1rem;
    }
}
/* ========================================
   Projects Section & Reveal Animations
   ======================================== */
.projects {
    padding: 6rem 0;
    background-color: var(--color-background);
    width: 100%;
}

.projects__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--navbar-padding);
}

.projects__heading {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
    margin-bottom: 3.5rem;
}

/* Layout Grids */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.projects__featured {
    width: 100%;
}

/* Project Cards */
.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-card__image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f8f9fa;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card__image-wrapper--purple {
    background: linear-gradient(135deg, #6b52cc, #523cb5);
    padding: 2.5rem;
}

.project-card__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.project-card:hover .project-card__image-wrapper {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.project-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin: 0;
}

.project-card__year {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Scroll Reveal Classes */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .projects__heading {
        font-size: 3rem;
    }
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .project-card__title {
        font-size: 1.25rem;
    }
}
/* ========================================
   Project Modal (Pop-up)
   ======================================== */
.project-card {
    cursor: pointer;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.project-modal__content {
    position: relative;
    background-color: var(--color-background, #ffffff);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    border-radius: 24px;
    overflow-y: auto;
    z-index: 1001;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .project-modal__content {
    transform: scale(1) translateY(0);
}

.project-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-primary, #111111);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.project-modal__close:hover {
    transform: scale(1.15);
    color: #e63946;
}

.project-modal__body {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.project-modal__image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f4f4f5;
    display: flex;
    justify-content: center;
}

.project-modal__image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.project-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-modal__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-primary, #111111);
    margin: 0;
    line-height: 1.2;
}

.project-modal__year {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-secondary, #666666);
    background-color: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.project-modal__description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #444444);
    margin: 0;
}

/* Prevent body scroll when modal is active */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .project-modal__content {
        padding: 1.5rem;
    }
    .project-modal__title {
        font-size: 1.35rem;
    }
}
/* ==========================================================================
   Tools Marquee Section
   ========================================================================== */

.tools-marquee {
    padding: 60px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.tools-marquee__header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tools-marquee__header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
}

.tools-marquee__header p {
    font-size: 1rem;
    color: #666666;
}

/* Ticker Container & Masks */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    /* Soft gradient fade on left and right edges */
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Track Animation */
.marquee__track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

/* Pause scroll on hover */
.marquee:hover .marquee__track {
    animation-play-state: paused;
}

/* Individual Item & Black/White Filter */
.marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.marquee__item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    /* Black & White filter with opacity control */
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Color pop-in when hovering individual logo */
.marquee__item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Infinite Scrolling Keyframes */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* ==========================================================================
   Footer & Contact Section
   ========================================================================== */

.site-footer {
    background-color: #ffffff;
    padding: 60px 20px;
    font-family: inherit;
    color: #333333;
}

.site-footer__container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Top Hire Me Card --- */
.hire-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hire-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.hire-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fef08a; /* Light yellow background */
    flex-shrink: 0;
}

.hire-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hire-card__title {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
}

.hire-card__email {
    margin: 0;
    font-size: 1rem;
    color: #888888;
}

/* --- Divider Line --- */
.site-footer__divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 48px 0;
}

/* --- Bottom Grid Section --- */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.site-footer__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 20px 0;
}

.site-footer__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* --- Contact Details List --- */
.contact-details {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-details__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    font-size: 0.95rem;
}

.contact-details dt {
    color: #888888;
    font-weight: 500;
}

.contact-details dd {
    margin: 0;
}

.contact-details a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.contact-details a:hover {
    color: #111111;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hire-card {
        padding: 20px;
    }

    .contact-details__row {
        grid-template-columns: 100px 1fr;
    }
}

/* ==========================================================================
   Contact Modal (Navbar Triggered)
   ========================================================================== */

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

.contact-modal__content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    z-index: 1101;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active .contact-modal__content {
    transform: scale(1) translateY(0);
}

.contact-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #333333;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-modal__close:hover {
    transform: scale(1.15);
    color: #e63946;
}

.contact-modal__header {
    margin-bottom: 2rem;
}

.contact-modal__header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
    margin: 0 0 0.5rem;
}

.contact-modal__header p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Form Controls */
.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111111;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111111;
    background-color: #ffffff;
}

.form-submit-btn {
    border: none;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-modal__content {
        padding: 1.5rem;
    }
}

/* ============================================================
   DEV TAVIE — MODERN UI / UX LAYER
   A more editorial, premium portfolio direction:
   warm neutral canvas + charcoal type + pink accent + lavender.
   ============================================================ */

:root {
    --bg: #fbfaf8;
    --surface: #ffffff;
    --surface-soft: #f4f1ec;
    --ink: #171719;
    --muted: #707078;
    --line: rgba(23, 23, 25, 0.10);
    --accent: #ff6f9c;
    --accent-dark: #ed4e80;
    --lavender: #e9e1ff;
    --sage: #eef3e6;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 60px rgba(20, 20, 24, .08);
    --shadow-hover: 0 28px 80px rgba(20, 20, 24, .13);
    --container-width: 1180px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 10%, rgba(255,111,156,.10), transparent 28%),
        radial-gradient(circle at 88% 26%, rgba(185,161,255,.12), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(220,235,197,.14), transparent 30%);
}

h1, h2, h3, p {
    text-wrap: balance;
}

/* ---------- Navbar ---------- */
.navbar {
    height: 76px;
    background: rgba(251,250,248,.78);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.navbar.is-scrolled {
    background: rgba(251,250,248,.94);
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(20,20,24,.05);
}

.navbar__container {
    max-width: var(--container-width);
}

.logo img {
    height: 58px;
    transition: transform .25s ease;
}

.logo:hover img {
    transform: rotate(-2deg) scale(1.03);
}

.navbar__list {
    gap: .45rem !important;
}

.navbar__link {
    position: relative;
    color: #62626a;
    font-weight: 600 !important;
    padding: .65rem .85rem !important;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease;
}

.navbar__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .32rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width .2s ease;
}

.navbar__link:hover,
.navbar__link.is-current {
    color: var(--ink);
    background: rgba(255,255,255,.65);
}

.navbar__link.is-current::after {
    width: 18px;
}

.navbar__link--cta {
    margin-left: .35rem;
    background: var(--ink) !important;
    color: #fff !important;
    padding: .7rem 1.15rem !important;
    box-shadow: 0 8px 20px rgba(23,23,25,.13);
}

.navbar__link--cta:hover {
    background: var(--accent) !important;
    transform: translateY(-1px);
}

.navbar__link--cta::after {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100vh - 76px);
    position: relative;
}

.hero__container {
    max-width: var(--container-width);
    min-height: calc(100vh - 76px);
    padding: 5rem 1.25rem 6rem;
    gap: 5rem;
}

.hero__text {
    max-width: 610px;
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    margin-bottom: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.65);
    color: #777780;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .10em;
}

.hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(255,111,156,.12);
}

.hero__text h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: .94;
    letter-spacing: -.065em;
    margin-bottom: 1.5rem;
    min-height: auto;
}

.hero__subtitle {
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2rem;
    color: #5f5f67;
    font-size: .88rem;
    font-weight: 600;
}

.hero__status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #65b85b;
    box-shadow: 0 0 0 5px rgba(101,184,91,.12);
}

.hero__buttons {
    gap: .75rem;
}

.btn {
    min-height: 48px;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    box-shadow: none;
}

.btn--primary {
    background: var(--ink);
    border-color: var(--ink);
}

.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(255,111,156,.22);
}

.btn--secondary {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255,255,255,.6);
}

.btn--secondary:hover {
    background: var(--surface);
    color: var(--ink);
    border-color: rgba(23,23,25,.22);
}

.hero__avatar {
    width: min(44vw, 460px);
    position: relative;
}

.hero__avatar::before {
    content: "";
    position: absolute;
    inset: 8%;
    z-index: -1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,111,156,.20), rgba(213,194,255,.34));
    filter: blur(2px);
    transform: rotate(-7deg) scale(1.07);
}

.hero__avatar img {
    border-radius: 36px;
    filter: drop-shadow(0 28px 50px rgba(35,25,40,.14));
    transform: rotate(2deg);
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.hero__avatar:hover img {
    transform: rotate(0) translateY(-8px) scale(1.015);
}

/* ---------- Shared sections ---------- */
.about,
.interests,
.explorations,
.projects,
.tools-marquee,
.site-footer {
    position: relative;
}

.about {
    background: var(--sage);
    padding: 7rem 0;
}

.about__container,
.interests__container,
.explorations__container,
.projects__container {
    max-width: var(--container-width);
}

.about__container h2,
.projects__heading {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: -.055em;
}

.about__grid {
    gap: 6rem;
    justify-content: space-between;
}

.about__photo {
    width: min(36vw, 360px);
    position: relative;
}

.about__photo::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    z-index: -1;
    border: 1px solid rgba(23,23,25,.12);
    border-radius: 22px;
}

.about__photo img {
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.about__copy {
    max-width: 620px;
}

.about__copy h3 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -.04em;
}

.about__copy p {
    color: #64646b;
    font-size: 1.05rem;
    line-height: 1.85;
}

/* ---------- Interests ---------- */
.interests {
    padding: 7rem 0;
}

.interests__container {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    column-gap: 5rem;
}

.interests__container h2 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    letter-spacing: -.05em;
    line-height: .98;
    margin: 0;
}

.interests__subtitle,
.interests__description {
    grid-column: 2;
}

.interests__subtitle {
    margin-top: 0;
}

.interests__description {
    margin-bottom: 2.75rem;
}

.interests__grid {
    grid-column: 1 / -1;
    gap: 1rem;
    margin-top: 1.5rem;
}

.interests__card {
    position: relative;
    border-radius: 22px;
    box-shadow: none;
    border: 1px solid var(--line);
    background: var(--surface);
}

.interests__card img {
    height: 330px;
    border-radius: 21px;
    transition: transform .55s cubic-bezier(.16,1,.3,1), filter .35s ease;
}

.interests__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.interests__card:hover img {
    transform: scale(1.035);
}

/* ---------- Explorations ---------- */
.explorations {
    padding: 0 0 7rem;
}

.explorations__item {
    padding: 2rem .25rem;
    border-color: var(--line);
}

.explorations__title {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
    transition: color .2s ease, transform .25s ease;
}

.explorations__year {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Projects ---------- */
.projects {
    padding: 7rem 0;
    background: #f3f0eb;
}

.projects__heading {
    margin-bottom: 3rem;
}

.projects__grid {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.project-card {
    position: relative;
}

.project-card__image-wrapper {
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin-bottom: 1rem;
    border-radius: 24px;
    background: #e9e6e1;
    border: 1px solid rgba(23,23,25,.07);
}

.project-card__image {
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.project-card:hover .project-card__image-wrapper {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover .project-card__image {
    transform: scale(1.025);
}

.project-card__image-wrapper--purple {
    background: linear-gradient(135deg, #dcd0ff, #b9a6f2);
    padding: 1.25rem;
}

.project-card__meta {
    min-height: 72px;
    align-items: flex-end;
}

.project-card__meta > div {
    min-width: 0;
}

.project-card__eyebrow {
    display: block;
    margin-bottom: .4rem;
    color: #8a8790;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.project-card__title {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    letter-spacing: -.025em;
}

.project-card__year {
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-card__view {
    flex-shrink: 0;
    color: #77737c;
    font-size: .82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .25s ease, transform .25s ease, color .2s ease;
}

.project-card:hover .project-card__view {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-dark);
}

.project-card--full .project-card__image-wrapper {
    aspect-ratio: 2.15 / 1;
}

.project-card--full .project-card__title {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

/* ---------- Project modal ---------- */
.project-modal__overlay,
.contact-modal__overlay {
    background: rgba(16,16,19,.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.project-modal__content,
.contact-modal__content {
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 30px 100px rgba(0,0,0,.22);
}

.project-modal__content {
    max-width: 920px;
    border-radius: 28px;
}

.project-modal__close,
.contact-modal__close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(23,23,25,.06);
}

.project-modal__close:hover,
.contact-modal__close:hover {
    background: rgba(255,111,156,.12);
    color: var(--accent-dark);
    transform: scale(1.03);
}

/* ---------- Tools ---------- */
.tools-marquee {
    padding: 6rem 0;
    background: var(--bg);
}

.tools-marquee__header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -.05em;
}

.tools-marquee__header p {
    color: var(--muted);
}

.marquee__track {
    gap: 75px;
}

.marquee__item {
    height: 95px;
    padding: 0 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 6rem 20px;
}

.site-footer__container {
    max-width: var(--container-width);
}

.hire-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #242427, #1b1b1e);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px;
    padding: 28px 32px;
    box-shadow: none;
}

.hire-card::after {
    content: "→";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(255,255,255,.65);
    transition: transform .25s ease, color .25s ease;
}

.hire-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.hire-card:hover::after {
    transform: translate(5px,-50%);
    color: var(--accent);
}

.hire-card__avatar {
    background: #f3d5df;
}

.hire-card__title {
    color: #fff;
    font-size: 1.6rem;
}

.hire-card__email {
    color: #aaaab1;
}

.site-footer__divider {
    border-top-color: rgba(255,255,255,.12);
    margin: 4rem 0;
}

.site-footer__heading {
    color: #fff;
}

.site-footer__text,
.contact-details dt,
.contact-details a {
    color: #aaaab1;
}

.contact-details a:hover {
    color: #fff;
}

/* ---------- Contact form ---------- */
.contact-modal__content {
    max-width: 760px;
    border-radius: 28px;
    padding: 2.75rem;
}

.contact-modal__header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.045em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #f6f5f3;
    border: 1px solid #e3e1dd;
    border-radius: 13px;
    min-height: 48px;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,111,156,.10);
}

.form-submit-btn {
    width: 100%;
    margin-top: .25rem;
    min-height: 52px;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .navbar {
        height: 70px;
    }

    .navbar__menu {
        top: 70px;
        border-radius: 0 0 20px 20px;
        padding: .5rem;
    }

    .navbar__item {
        border: none !important;
    }

    .navbar__link {
        border-radius: 12px;
    }

    .navbar__link--cta {
        margin: .35rem 0;
    }

    .hero__container {
        min-height: auto;
        padding-top: 4.5rem;
        padding-bottom: 5rem;
        gap: 3rem;
    }

    .hero__text {
        text-align: center;
    }

    .hero__eyebrow,
    .hero__trust {
        justify-content: center;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__avatar {
        width: min(76vw, 410px);
    }

    .interests__container {
        display: block;
    }

    .interests__subtitle {
        margin-top: 1.5rem;
    }

    .interests__grid {
        margin-top: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero__container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero__text h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .about,
    .interests,
    .projects,
    .tools-marquee {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .about__photo {
        width: min(80vw, 330px);
    }

    .about__grid {
        gap: 3.5rem;
    }

    .interests__grid {
        grid-template-columns: 1fr;
    }

    .interests__card img {
        height: 260px;
    }

    .project-card__meta {
        align-items: flex-start;
    }

    .project-card__view {
        opacity: 1;
        transform: none;
    }

    .project-card__year {
        display: none;
    }

    .project-card--full .project-card__image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .site-footer {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hire-card {
        padding: 22px;
    }

    .hire-card::after {
        right: 18px;
    }

    .contact-modal__content {
        width: calc(100% - 24px);
        padding: 1.5rem;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
.project-modal__description {
    white-space: pre-line;
}
/* Floating Contact Container */
.floating-contact {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

/* Base Bubble Button */
.floating-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Individual Button Themes */
.floating-btn--viber {
    background-color: #7360f2;
    color: #ffffff;
}

.floating-btn--hire {
    background-color: #171719;
    color: #ffffff;
}

.floating-btn--inquire {
    background-color: #ff6f9c;
    color: #ffffff;
}

.floating-icon {
    width: 18px;
    height: 18px;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 480px) {
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
    .floating-label {
        display: none;
    }
    .floating-btn {
        padding: 0.75rem;
        border-radius: 50%;
    }
}