:root {
    --bg-color: #f4f4f4;
    --text-color: #111;
    --accent-color: #888;
    --font-heading: 'Anton', sans-serif;
    /* Impactful font */
    --font-body: 'Inter', sans-serif;
    --section-padding: 4rem 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- VIEWPORT TOGGLES --- */
.desktop-view {
    display: block;
    height: 100%;
    /* Maintain height for desktop layouts */
}

.mobile-view {
    display: none;
}

@media (max-width: 900px) {
    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 4rem 2rem;
        background-color: var(--bg-color);
        /* Match section bg */
        color: var(--text-color);
        overflow: visible;
        box-sizing: border-box;
    }

    /* Mobile View Generic Styles */
    .mobile-view h2 {
        font-family: var(--font-heading);
        font-size: 3rem;
        text-transform: uppercase;
        margin-bottom: 2rem;
        line-height: 0.9;
        color: #000;
    }

    .mobile-view p {
        font-family: var(--font-body);
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        color: #333;
    }

    .mobile-view img {
        width: 100%;
        height: auto;
        object-fit: cover;
        margin: 2rem 0;
        display: block;
        border-radius: 4px;
        /* Optional polish */
    }
}

/* 
   CORE STACKING LOGIC
   Each section is sticky and 100vh.
   They must have a background color to cover the previous one.
*/
.section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    /* Important for stacking */
    border-bottom: 1px solid #ddd;
    /* Visual separator */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Prevent overflow from animations */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    /* Shadow to imply depth */
}

/* Alternating backgrounds for visual distinction if needed, 
   but keeping it white/grey is more clean as per reference. 
   Maybe slightly different shades.
*/
.section-hero {
    background-color: #f4f4f4;
    z-index: 1;
}

.section-about {
    background-color: #f9f9f9;
    z-index: 2;
}

.section-team {
    background-color: #f4f4f4;
    z-index: 3;
}

.section-concept {
    background-color: #f9f9f9;
    z-index: 4;
}

.section-stages {
    background-color: #f4f4f4;
    z-index: 5;
}

.section-contact {
    background-color: #111;
    color: #fff;
    z-index: 6;
}

/* Dark Footer */

.content-wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: var(--section-padding);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Typography */
.huge-text {
    font-family: var(--font-heading);
    font-size: 12vw;
    line-height: 0.85;
    text-transform: uppercase;
    color: #111;
    margin: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 9vw;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-right: 3px solid black;
    padding-right: 10rem;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 6rem;
}

.small-caps {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 60ch;
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    /* Force B&W */
}

.pb {
    padding-bottom: 4rem;
}

/* Hero Specifics */
/* Hero Specifics */
.section-hero .content-wrapper {
    padding-bottom: 0;
    padding-right: 0;
    max-width: none;
    /* Ensure full width */
    position: relative;
    z-index: 20;
    /* Ensure content wrapper (nav) is above */
    pointer-events: none;
    /* Let clicks pass through empty wrapper areas */
}

.hero-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass to interactive elements inside */
}

/* Re-enable pointer events for interactive children */
.hero-desktop .hero-left,
.hero-desktop .hero-right,
.header-top {
    pointer-events: auto;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 2rem;
    /* border-bottom: 1px solid #ccc; */
    margin-bottom: 2rem;
    margin-right: 5rem;
    position: relative;
    z-index: 30;
    /* Topmost */
}

.section-hero .header-top {
    padding-right: 2rem;
}

.main-nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    /* Space out left and right content */
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Text on top */
    pointer-events: none;
    /* Let clicks pass to background if needed */
}

/* Layer 1: Background Image */
.hero-bg-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    /* User requested large image */
    height: 83%;
    z-index: 1;
    margin: auto 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-left {
    flex: 0 0 auto;
    /* Allow it to take necessary width */
    padding: 1rem 0 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: auto;
    /* Re-enable clicks */
    position: relative;
    top: 10%
}

.hero-text {
    margin-top: 5rem;
    padding-bottom: 6rem;
    max-width: 400px;
    text-align: justify;
    border-bottom: 3px solid black;
}

/* Remove old centered/image classes if unused */
.hero-center {
    display: none;
}

.image-container {
    display: none;
}

.hero-right {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 3rem;
    pointer-events: auto;
}

.hero-right h1 {
    color: #fff;
    mix-blend-mode: difference;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Optional style for better visibility */
}

.hero-info h3 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-info p {
    font-size: 2rem;
}

.align-right {
    text-align: right;
}



/* About Specifics */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* border-bottom: 2px solid #111; */
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.about-grid.reverse {
    grid-template-columns: 2fr 1fr;
}

.box-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 550px;
    padding-left: 3rem;
    border-bottom: 3px solid black;
    padding-bottom: 2rem;
}

.box-number-text {
    text-align: justify;
}

.mx {
    max-width: 600px;
}

/* Team Specifics - Redesign */
.section-team {
    padding: 0 !important;
    /* Override default section padding to allow full bleed */
    background-color: #fff;
}

.team-split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

/* LEFT SIDE (60%) */
.team-left {
    flex: 6;
    /* 60% */
    background-color: #f4f4f4;
    padding: 4rem 4rem 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid #ddd;
}

.team-header-group {
    margin-top: 2rem;
}

.huge-text-team {
    font-family: var(--font-heading);
    font-size: 11vw;
    /* Massive size like "OUR TEAM." */
    line-height: 0.8;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    letter-spacing: -2px;
}

.team-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    display: block;
    color: #111;
}

.team-left-description {
    margin-top: auto;
    margin-bottom: 4rem;
    padding-left: 2rem;
    border-left: 2px solid #000;
    max-width: 500px;
}

.team-divider-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.4;
    color: #333;
}

.team-number-wrapper {
    margin-top: 2rem;
    position: relative;
    width: 60%;
}

.number-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.huge-number {
    font-family: var(--font-heading);
    font-size: 10rem;
    color: #000;
    line-height: 0.8;
    padding: 2rem;
}

/* RIGHT SIDE (40%) */
.team-right {
    flex: 4;
    /* 40% */
    background-color: #e6e6e6;
    /* Light gray */
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-right-text p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
    max-width: 300px;
    margin-left: auto;
}

.team-gallery {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: -15rem;
    /* Overlap the left section */
    position: relative;
    z-index: 10;
}

.team-photo {
    flex: 1;
    aspect-ratio: 1.3/1.5;
    /* Portraitish */
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-photo img:hover {
    filter: grayscale(0%);
}

.team-right-footer p {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #111;
    margin-top: 2rem;
}

.fases {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.flex-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 6rem;
}

.flex-row h3 {
    font-family: var(--font-body);
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
}

.flex-row p {
    text-align: justify;
    max-width: 550px;
}

.number-04 {
    font-size: 10rem;
}

.column {
    width: 100%;
    display: flex;
}

.description-fases {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.stage-item h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
}

.stage-item p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .team-split-layout {
        flex-direction: column;
    }

    .team-left,
    .team-right {
        flex: auto;
        width: 100%;
        padding: 2rem;
    }

    .huge-text-team {
        font-size: 18vw;
    }

    .team-number-wrapper {
        margin-top: 4rem;
    }

    .section-team {
        height: auto !important;
        /* Allow scroll on mobile */
    }
}



/* Stages/Contact Styles */
.stages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Contact Layout Redesign */
.section-contact {
    padding: 0 !important;
    /* Full bleed */
    display: flex;
    flex-direction: column;
    background-color: #111;
}

.contact-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.contact-left {
    flex: 4;
    /* 40% Width for text */
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.huge-contact-title {
    font-family: var(--font-heading);
    font-size: 10vw;
    line-height: 0.85;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4rem;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item .label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #888;
    text-transform: capitalize;
}

.contact-item p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.contact-footer-text {
    margin-top: auto;
    padding-top: 4rem;
}

.contact-footer-text a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.contact-footer-text a:hover {
    color: #ffcc00;
}

.contact-footer-text p {
    font-size: 0.9rem;
    color: #666;
    max-width: 400px;
}

.contact-right {
    flex: 6;
    /* 60% Width for image */
    position: relative;
    height: 100%;
    overflow: hidden;
}

.contact-image-wrapper {
    width: 100%;
    height: 100%;
}

.contact-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* Mobile Responsive Contact */
@media (max-width: 900px) {
    .contact-split {
        flex-direction: column;
    }

    .contact-left {
        flex: auto;
        padding: 3rem;
    }

    .contact-right {
        height: 50vh;
    }

    .huge-contact-title {
        font-size: 18vw;
    }
}

/* Helpers */
.image-container {
    overflow: hidden;
    height: 100%;
    max-height: 60vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .huge-text {
        font-size: 15vw;
    }



    .hero-info h3 {
        font-size: 2rem;
    }

    .hero-info p {
        font-size: 1.5rem;
    }

    .hero-text {
        border: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        order: 2;
    }

    .hero-center {
        order: 1;
        margin-bottom: 2rem;
    }

    .about-grid,
    .team-grid,
    .stages-container,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header {
        flex-direction: column;
    }

    .resp-title-about {
        font-size: 2rem;
    }

    .section {

        .team-left,
        .team-right {
            flex: auto;
            width: 100%;
            padding: 2rem;
        }

        .huge-text-team {
            font-size: 18vw;
        }

        .team-number-wrapper {
            margin-top: 4rem;
        }

        .section-team {
            height: auto !important;
            /* Allow scroll on mobile */
        }
    }


    /* Stages/Contact Styles */
    .stages-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Hero Visibility Toggles */
    .hero-mobile {
        display: none;
    }

    /* Responsive adjustments */
    @media (max-width: 900px) {

        /* Hide Desktop Hero */
        .hero-desktop {
            display: none;
        }

        /* Show Mobile Hero */
        .hero-mobile {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100vh;
            padding: 2rem 2rem 2rem 2rem;
            position: relative;
            justify-content: space-between;
            overflow: hidden;
        }

        /* Mobile Header Top Fix */
        .header-top {
            position: absolute;
            top: 2rem;
            right: 2rem;
            width: auto;
            z-index: 2000;
            padding: 0;
            margin: 0;
            /* Reset any negative margins */
        }

        /* Mobile Hero Styling */
        .mobile-title-top {
            font-size: 19vw;
            line-height: 0.9;
            z-index: 10;
        }

        .mobile-hero-image {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120%;
            /* Wider than screen for effect */
            height: 80%;
            z-index: 1;
            /* Behind text but above bg */
            opacity: 0.6;
            pointer-events: none;
        }

        .mobile-hero-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .mobile-info {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 10;
            margin-top: 1rem;
        }

        .mobile-info h3 {
            font-size: 2rem;
        }

        .mobile-text {
            display: block;
            /* Show text */
            z-index: 10;
            margin-top: 1rem;
            max-width: 90%;
        }

        .mobile-text p {
            font-size: 1rem;
            line-height: 1.4;
            color: #333;
            /* Ensure readability */
            font-weight: 500;
        }

        .mobile-title-bottom {
            font-size: 19vw;
            text-align: right;
            line-height: 0.9;
            z-index: 10;
            margin-top: auto;
            color: var(--bg-color);
            text-shadow: 2px 2px 10px rgba(57, 57, 57, 0.5);
            padding-bottom: 8rem;
        }

        /* Other section adjustments */
        .huge-text-team {
            font-size: 18vw;
        }

        .team-number-wrapper {
            margin-top: 4rem;
        }

        .section-team {
            height: auto !important;
        }

        /* Reset grids for other sections */
        .about-grid,
        .team-grid,
        .stages-container,
        .contact-layout {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .section-header {
            flex-direction: column;
        }

        .section {
            height: auto;
            min-height: 100vh;
            padding-bottom: 4rem;
        }

        /* Responsive Team Layout */
        .team-gallery {
            margin-left: 0;
            margin-top: 2rem;
            flex-direction: column;
        }

        .team-photo {
            aspect-ratio: auto;
            height: 400px;
        }

        /* Responsive Stages Layout */
        .fases {
            flex-direction: column;
            gap: 2rem;
            align-items: flex-start;
        }

        .column {
            flex-direction: column;
        }

        .flex-row {
            padding-left: 0;
        }

        .number-04 {
            font-size: 25vw;
            align-self: flex-end;
            line-height: 0.8;
            margin-top: -2rem;
        }

        /* Responsive Contact Layout */
        .contact-details {
            gap: 2rem;
            margin-top: 1rem;
        }

        .contact-item p {
            font-size: 1rem;
        }

        .contact-left {
            padding: 3rem 2rem;
            /* Reduce side padding slightly */
        }
    }
}

/* --- Hamburger Menu & Mobile Nav --- */

.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above nav */
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Specific Mobile Navigation Styles */
@media (max-width: 900px) {
    .header-top {
        align-items: center;
        margin-right: -20px;
        margin-top: 20px;
        /* consistent spacing */
    }

    .hamburger-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        /* Full width or partial 70% */
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.nav-active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 2rem;
        /* Larger text for mobile */
    }

    /* Hamburger Animation when Active */
    .hamburger-btn.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger-btn.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* --- DESKTOP HERO SAFETY NET --- */
@media (min-width: 901px) {
    .hero-desktop {
        display: block !important;
        /* opacity/visibility removed to allow GSAP animations */
    }

    .hero-mobile {
        display: none !important;
    }

    .header-top {
        display: flex !important;
    }

    .main-nav {
        display: flex !important;
    }

    .hamburger-btn {
        display: none !important;
    }
}