/* 
  Colors 
  Primary: Off-white
  Secondary: Black & #ff7722 (Orange)
*/
:root {
    --primary-bg: #f8f9fa;
    --secondary-black: #050505;
    --accent-orange: #ff7722;
}

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

html {
    overflow-x: hidden;
}

html.snap-page {
    scroll-snap-type: y mandatory;
}

html.snap-page section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body {
    width: 100vw;
    font-family: 'Futura', sans-serif;
    background-color: var(--primary-bg);
    color: var(--secondary-black);
}

/* Scroll Snapping Container */
.scroll-container {
    width: 100%;
}

.sticky-wrapper {
    height: 500vh; /* 5 product sections */
    position: relative;
}

.overflow-hider {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.horizontal-scroll-track {
    display: flex;
    width: 500vw;
    height: 100vh;
}

.horizontal-scroll-track > section {
    flex: 0 0 100vw;
    height: 100vh;
}


section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    section {
        padding: 1rem;
    }
}

/* Landing Page Specific */
.landing-page {
    text-align: center;
    padding: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95vw;
    height: 95vh;
    justify-content: space-between;
    padding: 2vh 0;
    z-index: 10;
}

/* 
  Geometric sans-serif, heavy weight, tight tracking, all caps 
  Using Montserrat Black as it perfectly fits this description
*/
#main-header {
    position: fixed;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1440px;
    z-index: 100;
    
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 14rem);
    text-transform: uppercase;
    line-height: 1;
    
    /* Mix blend mode for dynamic color contrast */
    color: white; 
    mix-blend-mode: difference;
    
    display: flex;
    justify-content: space-between;
    
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Allows clicking elements underneath when large */
}

#main-header.scrolled {
    top: 30px;
    width: 250px; /* Shrinks the width, bringing letters together */
    font-size: 2rem;
    mix-blend-mode: normal;
    padding-bottom: 12px; /* Increased from 5px for a bit more aesthetic spacing */
}

/* Animated Underlines */
#main-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform-origin: left;
    animation: lineSweep 3s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes lineSweep {
    0% {
        transform-origin: left;
        transform: scaleX(0);
    }
    49.9% {
        transform-origin: left;
        transform: scaleX(1);
    }
    50% {
        transform-origin: right;
        transform: scaleX(1);
    }
    100% {
        transform-origin: right;
        transform: scaleX(0);
    }
}

/* Hide line on Page 1 (Section 1) */
#main-header[data-section="1"]::after {
    display: none;
}

/* Static Header (used on subpages like aiproducts.html) */
.static-header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 100;
    
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1;
    
    /* Mix blend mode for dynamic color contrast, matching #main-header.
       Inverts against whatever is behind it so the wordmark stays legible
       over dark sections, light sections and colored type alike. */
    color: white; 
    mix-blend-mode: difference;
    
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
}

/* Applied by main.js when difference blending would land on a backdrop whose
   inverse has near-identical luminance (saturated mid-tones like #5865F2 or
   #0fb981). Falls back to a plain light/dark wordmark so it stays readable. */
.static-header.header-solid {
    mix-blend-mode: normal;
}

.static-header.header-solid.on-dark {
    color: #ffffff;
}

.static-header.header-solid.on-light {
    color: #111111;
}

.title-placeholder {
    width: 100%;
    height: clamp(2.4rem, 8vw, 11.2rem);
    margin-bottom: 1rem;
    margin-top: 4vh;
}

.brand-subtitle {
    font-family: 'Futura', sans-serif;
    font-weight: bold;
    font-size: clamp(0.8rem, 2.5vw, 1.8rem);
    letter-spacing: 0.05em; 
    text-transform: uppercase;
    color: var(--secondary-black);
    margin-bottom: 3vh;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}

.art-container {
    width: 100%;
    flex-grow: 1; /* Takes the remaining height */
    min-height: 250px;
    position: relative;
    background-color: transparent;
    overflow: hidden;
    margin-bottom: 2vh;
    border-radius: 0 !important;
}

#geoCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Helper for next sections */
.next-section {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.section-title {
    font-family: 'Futura', sans-serif;
    font-weight: bold;
    font-size: 4rem;
    letter-spacing: -0.04em;
    color: var(--secondary-black);
}

/* Ecosystem Section (Section 2) */
.ecosystem-section {
    width: 100%;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow-x: hidden; /* Hide the marquee overflow */
}

/* Marquee Strip */
.marquee-strip {
    margin-top: auto; /* Pushes it down below the grid exactly where the quote was */
    margin-bottom: 2vh; /* Moves the marquee up slightly so it doesn't get cut */
    width: 100vw; /* Stretch across the entire screen */
    background-color: var(--primary-bg);
    padding: 3vh 0; /* Increased to make it taller */
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-left-to-right 25s linear infinite;
}

.marquee-text {
    padding-right: 2vw; /* Ensure there is no awkward snapping gap */
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem); /* Increased font size for taller strip */
    font-weight: 700;
    color: var(--secondary-black);
}

@keyframes marquee-left-to-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ecosystem-container {
    width: 95vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10vh 0 5vh;
    color: white;
}

.ecosystem-title-wrapper {
    display: flex;
    align-items: center;
    width: 100vw;
    flex-shrink: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 12vh;
    font-size: clamp(2rem, 5vw, 5rem);
}

.eco-art-container {
    flex: 1;
    height: 0.75em; /* Scaled perfectly to the text cap-height */
    background-color: transparent; /* Use transparent to let the canvas background show */
    overflow: hidden;
    border-radius: 0 !important;
}

#ecoGeoCanvasLeft, #ecoGeoCanvasRight {
    display: block;
    width: 100%;
    height: 100%;
}

.ecosystem-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: inherit;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: -0.02em; /* Tighter letter spacing to match the Space Grotesk aesthetic */
    text-align: center;
    color: #202123;
    padding: 0 2vw;
    white-space: nowrap;
    line-height: 1;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vh 4vw;
    width: 100%;
    filter: drop-shadow(0px 0px 30px rgba(255, 230, 50, 0.25)); /* Faint yellow-ish shadow */
}

.grid-item {
    font-family: 'Futura', sans-serif;
    font-size: clamp(1.2rem, 3vw, 3.5rem);
    font-weight: bold;
    text-transform: uppercase;
    justify-self: start; /* Shrinks the hit area to just the text */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    transform-origin: left;
}

.grid-item:hover {
    transform: scale(1.05);
    color: #202123;
}

.grid-item.mixed-case {
    text-transform: none;
}

.grid-item.right-align {
    text-align: right;
    justify-self: end; /* Shrinks the hit area to just the text on the right side */
    transform-origin: right;
}



#cursor-image {
    position: fixed;
    width: 350px;
    height: 350px;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    border-radius: 8px; /* Slight rounding for a premium feel */
    transform: translate(15px, 15px) scale(0.5) rotate(-5deg);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cursor-image.align-left {
    transform: translate(calc(-100% - 15px), 15px) scale(0.5) rotate(5deg);
}

#cursor-image.visible {
    opacity: 1;
    transform: translate(15px, 15px) scale(1) rotate(0deg);
}

#cursor-image.visible.align-left {
    transform: translate(calc(-100% - 15px), 15px) scale(1) rotate(0deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
        flex-grow: 1; /* Take up all space between title and quote */
        align-content: space-evenly; /* Distribute items evenly */
        gap: 0; /* Let space-evenly handle the vertical spacing */
        margin-bottom: 4vh; /* Add a bit of space before the quote */
    }
    
    .grid-item, .grid-item.right-align {
        text-align: center; /* Center everything on mobile for a cleaner look */
        justify-self: center; /* Ensure hover hit area remains just the text */
        font-size: clamp(1.8rem, 6vw, 3rem); /* Increase font size on mobile */
    }
    
    .ecosystem-title-wrapper {
        margin-bottom: 2vh; /* Less margin on mobile since space-evenly takes over */
        font-size: clamp(2.8rem, 8vw, 4rem); /* Increase heading size on mobile */
    }
    
    #main-header {
        top: 8vh; /* Give the header more breathing room at the top on mobile */
    }
    
    .title-placeholder {
        margin-top: 8vh; /* Ensure the art is pushed down correspondingly */
    }
}

/* Section 3: The Vision */
.vision-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #58aaf2; 
    color: var(--secondary-black);
}

.vision-container {
    width: 90vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 5vh;
}

.vision-header {
    width: 100%;
}

.vision-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-bg); /* White/Cream */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transform: translateX(150px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

.vision-header h2.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.vision-content-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
}

.vision-art-container {
    width: 25%;
    border-radius: 0 !important;
    overflow: hidden;
    margin-right: auto;
    opacity: 0.9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#visionGeoCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.vision-grid-wrapper {
    display: flex;
    gap: 4vw;
    width: 70%; /* Take up right portion of screen */
}

.vision-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6vh; /* Increased from 3vh for more breathing room */
}

.vision-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    padding-bottom: 2.5vh; /* Increased from 1vh for aesthetic spacing */
}

.vision-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--primary-bg); /* White */
}

.vision-text {
    font-family: 'Futura', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    font-weight: bold;
    color: var(--secondary-black); /* Black text */
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 2px;
}

.vision-action {
    margin-top: auto; /* Push to bottom of col */
    padding-top: 2vh;
}

.vision-btn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary-bg);
    color: #58aaf2;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    padding: 12px 24px;
    border: none;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Vision Mobile Responsiveness */
@media (max-width: 900px) {
    .vision-container {
        justify-content: flex-start;
        gap: 0;
        padding-top: 10vh; /* Room for header */
        padding-bottom: 2vh;
        height: 100%;
        min-height: unset;
        display: flex;
        flex-direction: column;
    }
    .vision-header h2 {
        font-size: 2.5rem;
    }
    .vision-content-wrapper {
        justify-content: flex-start;
        margin-top: 4vh;
        flex: 1;
        display: flex;
    }
    .vision-art-container {
        display: none; /* Hide art on mobile to save space */
    }
    .vision-grid-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 0;
        flex: 1;
        display: flex;
        justify-content: space-evenly;
    }
    .vision-col {
        display: contents;
    }
    .vision-item {
        padding-bottom: 1.5vh;
        border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    }
    .vision-num {
        font-size: 1.2rem;
    }
    .vision-text {
        font-size: 1.1rem;
        margin-top: 0;
    }
    .vision-action {
        padding-top: 1vh;
        margin-top: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .vision-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Section 4: Why MATRI6
   ========================================================================== */
.why-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #fed648;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-container {
    width: 95vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vh 0;
}

.why-header {
    width: 100%;
    margin-bottom: 5vh;
    display: flex;
    align-items: center;
    gap: 2vw;
}

.why-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em; /* Tighter letter spacing to match the Space Grotesk aesthetic */
    color: #202123;
    max-width: 50vw;
    margin: 0;
    flex-shrink: 0;
}

.why-title-art {
    flex: 1;
    height: clamp(1.5rem, 4vw, 4rem);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    border-top: 1px solid rgba(32, 33, 35, 0.4);
    border-bottom: 1px solid rgba(32, 33, 35, 0.4);
    border-left: 1px solid rgba(32, 33, 35, 0.4);
    margin-right: calc(-50vw + 50%); /* Extends art to the right edge of the screen */
}

.why-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    width: 100%;
}

.why-card {
    flex: 1;
    background-color: #ff6c3d;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.why-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
}

.why-card-content {
    position: relative;
    z-index: 2;
    padding: 2vw;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    text-transform: uppercase;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.why-card-desc {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    color: #ffffff;
    margin: 0;
    margin-top: auto;
    margin-bottom: 2vh;
}

.why-card-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    color: #202123;
    align-self: flex-end;
    line-height: 0.8;
    position: absolute;
    bottom: 2vw;
    right: 2vw;
}

/* Mobile Responsiveness for Section 4 */
@media (max-width: 900px) {
    .why-container {
        width: 100vw;
        padding: 12vh 0 0 0; /* Space for the main MATRI6 fixed logo */
        justify-content: flex-start;
    }
    
    .why-header {
        margin-bottom: 2vh;
        padding: 0 5vw;
        flex-direction: column;
    }
    
    .why-header h2 {
        max-width: 100%;
        text-align: center;
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .why-title-art {
        display: none; /* Hide the art line to keep the heading clean below the logo */
    }
    
    .why-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.5vh;
        width: 100%;
        flex: 1;
        padding: 0 4vw 2vh 4vw; /* Aesthetic padding */
        overflow: hidden; /* Squeezed to fit, no scroll */
    }
    
    .why-card {
        aspect-ratio: auto;
        min-height: 0;
        height: clamp(8vh, 10vh, 12vh); /* Squeeze into screen */
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Aesthetic shadow */
    }

    .why-card-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 1vh 4vw;
        height: 100%;
        align-content: center;
        row-gap: 2px;
    }

    .why-card-title {
        grid-column: 1;
        grid-row: 1;
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        margin: 0;
        align-self: flex-end;
    }

    .why-card-desc {
        grid-column: 1;
        grid-row: 2;
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        margin: 0;
        align-self: flex-start;
        line-height: 1.2;
    }

    .why-card-num {
        grid-column: 2;
        grid-row: 1 / 3;
        position: static;
        font-size: clamp(2rem, 7vw, 3rem);
        align-self: center;
        line-height: 1;
    }
}

/* ==========================================================================
   Section 5: Events
   ========================================================================== */
.events-section {
    width: 100%;
    height: 100vh;
    background-color: #0fb981;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.events-container {
    width: 90%;
    height: 80%; /* Reduced from 90% to give more breathing room */
    margin-top: 10vh; /* Pushes the grid down to clear the fixed MATRI6 logo */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2vw;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Slight rounding for aesthetics */
    background-color: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateY(-5px);
}

.event-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.event-card:hover .event-bg {
    transform: scale(1.08);
    opacity: 0.9;
}

.event-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 1.5vw;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.8rem);
    margin: 0 0 0.5vh 0;
    text-transform: uppercase;
}

.event-info p {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.8rem, 1vw, 1rem);
    margin: 0;
    color: #ff6c3d; /* Accent color for the date */
}

.events-title-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

.events-art-container {
    flex: 1;
    height: clamp(2rem, 5vw, 5rem);
    background-color: transparent;
    display: none; /* Hidden on desktop */
}

.events-art-container canvas {
    width: 100%;
    height: 100%;
}

.events-title-center h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    color: #202123;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Section 6: Blogs & News
   ========================================================================== */
.media-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #fca5a6; /* Pink */
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-container {
    width: 95vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vh 0;
    gap: 5vh;
}

.media-area {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.media-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #202123;
    margin: 0 0 2vh 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.left-title {
    align-self: flex-start;
}

.right-title {
    align-self: flex-end;
}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.carousel-btn {
    background-color: transparent;
    border: 1px solid #202123;
    color: #202123;
    font-size: 1.5rem;
    padding: 0.5vw 1vw;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background-color: #202123;
    color: #5abf6c;
}

.prev-btn {
    margin-right: 1vw;
}

.next-btn {
    margin-left: 1vw;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2vw;
    padding: 1vh 0;
    flex-grow: 1;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.media-card {
    flex: 0 0 calc(33.333% - 1.33vw); /* 3 cards visible roughly */
    aspect-ratio: 16 / 10;
    background-color: transparent;
    border: 1px solid #202123;
    display: flex;
}

.card-left, .card-right {
    flex: 1;
    height: 100%;
}

.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    color: #202123;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    text-transform: uppercase;
}

.geo-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2vw;
    overflow: hidden;
}

.media-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.media-text-content {
    z-index: 1;
}

.media-text-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    margin: 0 0 1vh 0;
    font-weight: 900;
}

.media-text-content p {
    font-family: monospace;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    margin: 0;
}

.blogs-content h3, .blogs-content p {
    color: #ffffff;
}

.news-content h3, .news-content p {
    color: #202123;
}

.card-left {
    border-right: 1px solid #202123;
}

/* Mobile Responsiveness for Section 5 */
@media (max-width: 900px) {
    .media-card {
        flex: 0 0 80vw; /* Show 1 card on mobile */
    }
    .media-title {
        align-self: center;
    }
}

/* ==========================================================================
   Section 7: FAQs & Insights
   ========================================================================== */
.faq-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #0fb981;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-container {
    width: 95vw;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5vw;
    padding: 10vh 0;
}

.faq-left {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.faq-tab {
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 20px;
}

.faq-tab.active {
    opacity: 1;
    border-left: 2px solid #202123;
}

.faq-tab-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    color: #202123; /* Black */
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.02em;
}

.faq-tab:not(.active) .faq-tab-title {
    color: #ffffff; /* White for inactive */
}

.faq-tab-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.7rem, 1vw, 1rem);
    color: #ffffff;
    margin: 1vh 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.faq-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-list-container {
    display: none;
    flex-direction: column;
    width: 100%;
}

.faq-list-container.active {
    display: flex;
}

.faq-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-top: 1px solid #202123;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.2vw, 1.5rem);
    cursor: pointer;
}

.faq-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2.5vh 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-body p {
    font-family: monospace; /* Or another suitable font for the answer */
    color: #202123; /* Black text as requested */
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    margin: 0 0 2.5vh calc(clamp(1.2rem, 1.5vw, 1.8rem) + 2vw); /* Indent to match text */
    line-height: 1.5;
}

.faq-item.open .faq-body {
    max-height: 200px; /* Adjust as needed */
}

.faq-item:last-child {
    border-bottom: 1px solid #202123;
}

.faq-item:hover .faq-header {
    transform: translateX(10px);
    color: #202123;
}

.faq-num {
    color: #202123; /* Black */
    font-weight: 900;
    margin-right: 2vw;
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
}

.faq-text {
    flex: 1;
    text-transform: uppercase;
}

.faq-icon {
    color: #202123; /* Black */
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    margin-left: 2vw;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Mobile Responsiveness for Section 6 */
@media (max-width: 900px) {
    .faq-container {
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }
    .faq-left {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        gap: 2vw;
    }
    .faq-tab {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding-left: 0;
        padding-bottom: 10px;
    }
    .faq-tab.active {
        border-left: none;
        border-bottom: 2px solid #202123;
    }
    .faq-tab-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    .faq-right {
        width: 100%;
    }
}

/* ==========================================================================
   Section 8: Join MATRI6 (Contact Section)
   ========================================================================== */
.contact-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #202123; /* Black background */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    padding: 10vh 0;
}

.contact-container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.contact-header {
    text-align: center;
}

.contact-header h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.contact-content {
    display: flex;
    gap: 5vw;
}

.contact-left, .contact-right {
    flex: 1;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #1a1a1a; /* Dark gray */
    border: none;
    padding: 20px;
    color: #ffffff;
    font-family: monospace;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888888;
}

.contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

.privacy-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: #888888;
    margin: 0;
}

.privacy-text a {
    color: #ffffff;
    text-decoration: underline;
}

.submit-btn {
    background-color: #ffffff;
    color: #202123;
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 15px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
}

/* Right side content styles */
.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-us h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.about-us p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 40px;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-email {
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #888888;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

.quick-links h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-links a {
    color: #cccccc;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ffffff;
}

/* Mobile Responsiveness for Section 5 (Events) and Section 8 (Contact) */
@media (max-width: 900px) {
    /* Events Mobile 2x2 Grid with Center Title */
    .events-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr auto 1fr 1fr;
        gap: 2vw;
        height: 80%; /* Match desktop height */
        margin-top: 10vh; /* Clear logo */
        overflow: hidden;
    }
    
    .event-card {
        min-width: 0;
        height: auto;
    }
    
    .events-title-center {
        grid-column: 1 / -1; /* Span both columns */
        min-width: 0;
        height: auto;
        padding: 1vh 0; /* Tiny breathing room for the title */
    }
    
    .events-title-center h2 {
        font-size: clamp(2.5rem, 10vw, 4rem); /* Slightly smaller on mobile to ensure it fits */
    }
    
    .events-art-container {
        display: flex; /* Show art strips on mobile */
    }
    
    /* Contact */
    .contact-container {
        overflow-y: auto;
        height: 100%;
        padding: 5vh 0;
        gap: 2vh;
    }
    .contact-content {
        flex-direction: column;
        gap: 5vh;
    }
    .contact-header h2 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

/* ==========================================================================
   Global Responsive Breakpoints (Ultra-wide, Tablet, Short Screens)
   ========================================================================== */

/* Global Failsafe: Ensure content can scroll if screen is too short/weird aspect ratio */
.landing-page .content-wrapper,
.ecosystem-container,
.vision-container,
.events-container,
.media-container,
.faq-container,
.contact-container {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* Hide scrollbars elegantly for failsafe */
.landing-page .content-wrapper::-webkit-scrollbar,
.ecosystem-container::-webkit-scrollbar,
.vision-container::-webkit-scrollbar,
.events-container::-webkit-scrollbar,
.media-container::-webkit-scrollbar,
.faq-container::-webkit-scrollbar,
.contact-container::-webkit-scrollbar {
    width: 4px;
}
.landing-page .content-wrapper::-webkit-scrollbar-thumb,
.ecosystem-container::-webkit-scrollbar-thumb,
.vision-container::-webkit-scrollbar-thumb,
.events-container::-webkit-scrollbar-thumb,
.media-container::-webkit-scrollbar-thumb,
.faq-container::-webkit-scrollbar-thumb,
.contact-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Ultra-wide Monitors */
@media (min-width: 1441px) {
    .content-wrapper,
    .ecosystem-container,
    .vision-container,
    .why-container,
    .events-container,
    .media-container,
    .faq-container,
    .contact-container {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Short Desktop / Tablet Landscape / Small Laptops */
@media (max-height: 800px) and (min-width: 901px) {
    .ecosystem-container {
        padding: 5vh 0 2vh;
        gap: 3vh 2vw;
    }
    .ecosystem-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    .vision-grid {
        gap: 2vh;
    }
    .vision-list li {
        margin-bottom: 0.5vh;
    }
    .events-header {
        height: 15%;
    }
    .events-row {
        height: 38%;
    }
    .contact-container {
        padding: 5vh 0;
        gap: 2vh;
    }
    .contact-header h2 {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    .faq-container {
        padding: 5vh 0;
    }
}

/* ==========================================================================
   Global Responsive Layout System (Invisible Content Safe Area)
   ========================================================================== */
.content-wrapper,
.ecosystem-container,
.vision-container,
.why-container,
.events-container,
.media-container,
.faq-container,
.contact-container {
    width: 90vw !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 900px) {
    .content-wrapper,
    .ecosystem-container,
    .vision-container,
    .why-container,
    .events-container,
    .media-container,
    .faq-container,
    .contact-container {
        width: 92vw !important;
    }
    #main-header {
        width: 92vw;
    }
}

/* ==========================================================================
   Coming Soon Modal
   ========================================================================== */
.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.coming-soon-modal.show {
    opacity: 1;
    pointer-events: all;
}

.coming-soon-content {
    background-color: var(--secondary-black);
    color: var(--primary-bg);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 90vw;
    width: 450px;
    border: 2px solid var(--accent-orange);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(255, 119, 34, 0.15);
}

.coming-soon-modal.show .coming-soon-content {
    transform: translateY(0);
}

.coming-soon-title {
    font-size: 1.8rem;
    font-family: 'Syncopate', sans-serif;
    margin-bottom: 1rem;
    color: var(--accent-orange);
    letter-spacing: 1px;
}

.coming-soon-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--primary-bg);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}
