/* ============================================
   MADART - AI Production Website
   Modern 3D Scrolling Animation Styles
   ============================================ */

/* CSS Variables - Brand Guidelines */
:root {
    /* Colors */
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: #ffffff;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Typography Scale (Brand Guidelines) */
    --font-condensed: 'Bebas Neue', sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Fluid Typography - H1: 90pt (~120px) | H2: 52pt (~70px) | Body: 22pt (~29px) | Small: 18pt (~24px) */
    --text-h1: clamp(3rem, 8vw, 7.5rem);      /* 90pt = 120px */
    --text-h2: clamp(2.5rem, 5vw, 4.375rem);   /* 52pt = 69px */
    --text-h3: clamp(1.75rem, 3vw, 2.5rem);    /* 36pt = 48px */
    --text-body: clamp(1.125rem, 1.5vw, 1.375rem); /* 22pt = 29px */
    --text-small: clamp(0.875rem, 1vw, 1.125rem); /* 18pt = 24px */
    
    /* Spacing Scale (Brand Guidelines Grid) */
    --space-xs: 16px;    /* Small gaps */
    --space-sm: 24px;    /* Component gaps */
    --space-md: 32px;    /* Section element gaps */
    --space-lg: 48px;    /* Medium spacing */
    --space-xl: 64px;    /* Section padding */
    --space-2xl: 104px;  /* Large section padding */
    --space-3xl: 232px;  /* Extra large spacing */
    
    /* Responsive Container */
    --container-padding: 48px;
    --section-padding: 104px;
    --max-content-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.headline-bold {
    font-weight: 800;
    font-stretch: condensed;
    letter-spacing: -0.02em;
}

.slogan-light,
.light {
    font-weight: 200;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-title .light {
    font-weight: 200;
}

/* ============================================
   CARD NAVIGATION
   ============================================ */
.card-nav-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1000;
    box-sizing: border-box;
}

.card-nav {
    display: block;
    height: 60px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    will-change: height;
}

.card-nav-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.45rem 0.55rem 1.1rem;
    z-index: 2;
}

.hamburger-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    padding: 0 0.5rem;
}

.hamburger-menu:hover .hamburger-line {
    opacity: 0.75;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: 50% 50%;
}

.hamburger-menu.open .hamburger-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    height: 40px;
    width: 40px;
    filter: brightness(0);
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #000;
}

.card-nav-cta-button {
    background-color: #111;
    color: white;
    border: none;
    border-radius: calc(0.75rem - 0.35rem);
    padding: 0 1.25rem;
    height: calc(100% - 0.5rem);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-nav-cta-button .telegram-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-nav-cta-button:hover {
    background-color: #0088cc; /* Telegram brand blue hover */
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}

.card-nav-cta-button:hover .telegram-icon {
    transform: translate(2px, -2px) scale(1.15);
}

/* Mobile Icon-Only Navbar Button (< 640px) */
@media (max-width: 640px) {
    .card-nav-cta-button {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        gap: 0;
        justify-content: center;
    }

    .card-nav-cta-button .cta-text {
        display: none; /* Hide text word on mobile screens */
    }

    .card-nav-cta-button .telegram-icon {
        width: 18px;
        height: 18px;
    }
}

.card-nav-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    bottom: 0;
    padding: 0.5rem;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.card-nav.open .card-nav-content {
    visibility: visible;
    pointer-events: auto;
}

.nav-card {
    height: calc(100% - 1rem);
    flex: 1 1 0;
    min-width: 0;
    border-radius: calc(0.75rem - 0.2rem);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    user-select: none;
    will-change: transform, opacity;
}

.nav-card-label {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.nav-card-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-card-link {
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.nav-card-link:hover {
    opacity: 1;
}

.nav-card-link-icon {
    width: 14px;
    height: 14px;
}


/* ============================================
   HERO SECTION - 3D FRAME SCROLLING
   ============================================ */
.hero-section {
    position: relative;
    height: 300vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.frame-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-content.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title .headline-bold {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.hero-title .slogan-light {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-top: 2rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Blur Text Animation Styles */
.blur-text-hero {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
}

.blur-text-segment {
    display: inline-block;
    will-change: transform, filter, opacity;
}

.headline-bold.blur-text-hero {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 800;
}

.slogan-light.blur-text-hero {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
    font-weight: 200;
}

/* Scroll Text Animation Styles */
.scroll-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.scroll-text-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.scroll-text-item.is-active {
    opacity: 1;
}

.scroll-text-item.was-active {
    opacity: 0;
    pointer-events: none;
}

/* Position variants */
.scroll-text-left {
    left: 5%;
    text-align: left;
}

.scroll-text-right {
    right: 5%;
    text-align: right;
}

.scroll-text-center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.scroll-text-subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.scroll-text-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    font-stretch: condensed;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.scroll-text-word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
}

.scroll-text-space {
    display: inline-block;
    width: 0.3em;
}

.scroll-text-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-text-item.is-active .scroll-text-char {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.scroll-text-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    transition: all 0.3s var(--transition-smooth);
    pointer-events: auto;
}

.scroll-text-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.scroll-indicator {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   CINEMATIC ENTRANCE: SCROLL TO EXPLORE
   ============================================ */

.scroll-entrance {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    animation: entranceFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes entranceFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.entrance-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.entrance-text {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 50, 50, 0.5),
        0 0 30px rgba(255, 50, 50, 0.3),
        0 0 60px rgba(255, 50, 50, 0.2),
        0 0 100px rgba(255, 50, 50, 0.1);
    animation: redGlowPulse 3s ease-in-out infinite;
}

@keyframes redGlowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 50, 50, 0.5),
            0 0 30px rgba(255, 50, 50, 0.3),
            0 0 60px rgba(255, 50, 50, 0.2),
            0 0 100px rgba(255, 50, 50, 0.1);
        opacity: 0.9;
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 50, 50, 0.8),
            0 0 50px rgba(255, 50, 50, 0.5),
            0 0 90px rgba(255, 50, 50, 0.3),
            0 0 140px rgba(255, 50, 50, 0.15);
        opacity: 1;
    }
}

.entrance-glow {
    width: 1px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(255, 50, 50, 0.8) 0%,
        rgba(255, 50, 50, 0.4) 50%,
        transparent 100%
    );
    animation: entranceGlowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
}

@keyframes entranceGlowPulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
    }
    50% {
        transform: scaleY(0.8);
        opacity: 1;
        box-shadow: 0 0 40px rgba(255, 50, 50, 0.8);
    }
}

/* Transition States */
.scroll-entrance.transitioning {
    animation: entranceToBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes entranceToBottom {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.7) translateY(100px);
    }
}

.scroll-entrance.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Show bottom indicator after entrance */
.scroll-indicator {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease 0.3s, visibility 0.6s ease 0.3s;
}

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 767px) {
    .entrance-text {
        font-size: 1.5rem;
        letter-spacing: 0.25em;
    }
    
    .entrance-glow {
        height: 60px;
    }
}

@media (max-width: 639px) {
    .entrance-text {
        font-size: 1.25rem;
        letter-spacing: 0.2em;
    }
    
    .entrance-glow {
        height: 50px;
    }
}

/* ============================================
   WORK SECTION - VIDEO GRID
   ============================================ */
.work-section {
    position: relative;
    padding: 8rem 3rem;
    background: var(--color-bg);
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ============================================
   WORK SECTION - RESPONSIVE 3:4 VIDEO GRID
   ============================================ */
.work-section {
    position: relative;
    padding: 6rem 0 8rem 0;
    background: #000000; /* Pure deep dark black */
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 1.5rem;
}

.works-grid-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #000000; /* Pure dark black with 1px gap */
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

/* Responsive Grid Adaptation */
@media (max-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .work-section {
        padding: 4rem 0 6rem 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .works-grid-wrapper {
        padding: 0;
        margin: 0;
    }
}

.video-card {
    position: relative;
    background: #000000;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Load More Visibility States */
.video-card.is-hidden {
    display: none !important;
    opacity: 0;
}

.video-card.is-visible-animated {
    animation: videoCardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes videoCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3:4 Aspect Ratio Video Container */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Strict 3:4 aspect ratio */
    overflow: hidden;
    background: #121215;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(40%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.video-card:hover .video-wrapper video {
    filter: grayscale(0%);
    transform: scale(1.06);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.play-icon svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 5;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.video-category {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.65rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 6;
}

/* Load More Button Styling */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: var(--font-primary, sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.load-more-btn.is-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-text);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content {
    width: 90%;
    max-width: 1400px;
    aspect-ratio: 21 / 9;
}

.modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   CLIENTS MARQUEE SECTION
   ============================================ */
.clients-section {
    position: relative;
    padding: 6rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    z-index: 10;
}

.clients-section .section-header {
    margin-bottom: 3rem;
}

.clients-label {
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-align: center;
}

/* New Marquee Component Styles */
.marquee-container-js {
    width: 100%;
    position: relative;
    padding: 2rem 0;
}

.marquee-logo {
    flex-shrink: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-logo img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    pointer-events: none;
    z-index: 2;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

/* ============================================
   ABOUT & CONTACT SECTION - Brand Guidelines
   H2: 52pt (~69px) | Body: 22pt (~29px) | Small: 18pt (~24px)
   ============================================ */
.about-contact-section {
    position: relative;
    padding: 104px 0;
    background: var(--color-bg);
    z-index: 10;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
}

.about-column,
.contact-column {
    padding: 64px;
    display: flex;
    align-items: flex-start;
}

.about-column {
    border-right: 1px solid var(--color-border);
}

.about-content,
.contact-content {
    max-width: 600px;
    width: 100%;
}

.about-content {
    margin-left: auto;
    margin-right: 64px;
}

.contact-content {
    margin-left: 64px;
}

/* Section Titles - H2: 52pt consistent sizing */
.about-content .section-title,
.contact-content .section-title {
    font-size: var(--text-h2);
    font-weight: 800;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

/* Founder Info - consistent spacing */
.founder-info {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.founder-name {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.founder-role {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Bio Text - Body: 22pt (~29px) consistent */
.bio-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
}

.bio-text p {
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 300;
}

/* Stats Grid - organized layout */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Contact Section - matching About spacing */
.contact-desc {
    font-size: var(--text-body);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-text);
    border-bottom-width: 2px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1.25rem;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    font-size: 1rem;
    color: var(--color-text);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    margin-top: 16px;
}

.submit-btn:hover {
    background: var(--color-text-muted);
    transform: translateY(-2px);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ============================================
   FAQ ACCORDION SECTION
   ============================================ */
.faq-section {
    position: relative;
    padding: 8rem 3rem;
    background: var(--color-bg);
    z-index: 10;
}

.faq-accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-accordion-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-accordion-list {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.faq-accordion-item {
    overflow: hidden;
}

.faq-accordion-item.has-border {
    border-bottom: 1px solid var(--color-border);
}

.faq-accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion-button:hover {
    color: var(--color-text-muted);
}

.faq-accordion-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-icon svg {
    width: 100%;
    height: 100%;
}

.faq-accordion-button.is-active .faq-accordion-icon {
    transform: rotate(45deg);
    color: var(--color-text);
}

.faq-accordion-content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height, opacity;
}

.faq-accordion-content-inner {
    padding: 0 1rem 1.25rem 3rem;
}

.faq-accordion-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ============================================
   FOOTER SECTION - ANIMATED FOOTER
   ============================================ */
.footer-animated {
    padding: 6rem 3rem 2rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    z-index: 10;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    width: fit-content;
    transition: all 0.3s var(--transition-smooth);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-3px);
}

/* Animated Logo Section */
.footer-logo-animation {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-logo-image {
    height: clamp(2.2rem, 7vw, 7rem);
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: clamp(1.2rem, 5.5vw, 6.5rem);
    font-weight: 800;
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--color-text);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    line-height: 1;
    gap: 0.3em;
}

.footer-logo-line {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.footer-logo-line.line-2 {
    font-weight: 200;
    text-transform: none;
    letter-spacing: 0.02em;
}

.footer-logo-line.line-2 .footer-logo-char:first-child,
.footer-logo-line.line-2 .footer-logo-char:nth-child(2) {
    /* "Ai" styling */
    font-weight: 200;
    text-transform: none;
}

.footer-logo-char {
    display: inline-block;
    will-change: transform, opacity;
    line-height: 1;
}

.footer-logo-char.space {
    width: 0.2em;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.footer-privacy {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-privacy:hover {
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE DESIGN SYSTEM
   Brand Guidelines: Mobile-First Approach
   Breakpoints: 640px (sm), 768px (md), 1024px (lg), 1280px (xl)
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    /* Navigation */
    .card-nav-container {
        width: 94%;
        max-width: 700px;
    }
    
    /* Split Layout */
    .split-container {
        grid-template-columns: 1fr;
    }
    
    .about-column {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .about-content,
    .contact-content {
        margin: 0 auto;
        max-width: 600px;
    }
    
    .about-column,
    .contact-column {
        padding: 64px 48px;
    }
    
    /* Floating Grid */
    .floating-grid-container {
        max-width: 100%;
        padding: 0 32px;
        gap: 24px;
        height: 600px;
    }
    
    .cinematic-showcase {
        max-width: 100%;
        padding: 0 40px;
        gap: 28px;
        height: 700px;
    }
    
    .cinematic-showcase .floating-grid-gradient {
        height: 200px;
    }
    
    .floating-grid-gradient {
        height: 180px;
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 400px;
    }
}

/* Small Tablet / Large Phone (640px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 64px;
        --container-padding: 32px;
    }
    
    /* Navigation */
    .card-nav-container {
        width: 96%;
        top: 16px;
    }
    
    /* Hero */
    .hero-section {
        height: 250vh;
    }
    
    /* Typography Scale Down */
    .about-content .section-title,
    .contact-content .section-title,
    .faq-accordion-title,
    .work-section .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    /* Work Section - Floating Grid Responsive */
    .floating-grid-container {
        grid-template-columns: 1fr;
        height: 500px;
        min-height: 400px;
        gap: 16px;
        padding: 0 16px;
    }
    
    .floating-column.column-2,
    .floating-column.column-3 {
        display: none;
    }
    
    .cinematic-showcase {
        grid-template-columns: repeat(2, 1fr);
        height: 600px;
        padding: 0 24px;
        gap: 20px;
    }
    
    .cinematic-showcase .floating-column.column-3 {
        display: none;
    }
    
    .floating-grid-gradient {
        height: 120px;
    }
    
    .column-1 .column-content {
        animation: floatUp 8s linear infinite;
    }
    
    .cinematic-showcase .column-1 .column-content,
    .cinematic-showcase .column-2 .column-content {
        animation-duration: 7s;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .video-card {
        aspect-ratio: 16/10;
    }
    
    /* About & Contact */
    .about-contact-section {
        padding: 64px 0;
    }
    
    .about-column,
    .contact-column {
        padding: 48px 32px;
    }
    
    .bio-text p,
    .contact-desc {
        font-size: 1.25rem;
        line-height: 1.7;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1.125rem;
        padding: 1rem 0;
    }
    
    .form-group label {
        font-size: 1.125rem;
        top: 1rem;
    }
    
    /* Stats */
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer-animated {
        padding: 64px 32px 32px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
    :root {
        --section-padding: 48px;
        --container-padding: 24px;
    }
    
    /* Navigation */
    .card-nav-container {
        top: 12px;
    }
    
    .logo {
        height: 32px;
        width: 32px;
    }
    
    /* Hero */
    .hero-section {
        height: 200vh;
    }
    
    .scroll-indicator {
        bottom: 24px;
    }
    
    .scroll-indicator span {
        font-size: 0.75rem;
    }
    
    /* Scroll Text */
    .scroll-text-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .scroll-text-subtitle {
        font-size: 0.75rem;
    }
    
    /* Work Section */
    .work-section {
        padding: 48px 24px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .cinematic-showcase {
        grid-template-columns: 1fr;
        height: 550px;
        min-height: 450px;
        gap: 20px;
        padding: 0 20px;
    }
    
    .cinematic-showcase .floating-column.column-2,
    .cinematic-showcase .floating-column.column-3 {
        display: none;
    }
    
    .cinematic-showcase .column-1 .column-content {
        animation: floatUp 10s linear infinite;
    }
    
    .cinematic-showcase .floating-grid-gradient {
        height: 140px;
    }
    
    .cinematic-showcase .card-badge {
        font-size: 9px;
        padding: 4px 10px;
        top: 12px;
        right: 12px;
    }
    
    .cinematic-showcase .play-icon.magnetic {
        width: 60px;
        height: 60px;
    }
    
    .video-grid {
        gap: 24px;
    }
    
    .video-info {
        flex-direction: column;
        gap: 4px;
        padding: 16px;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-category {
        font-size: 0.8rem;
    }
    
    /* Marquee */
    .clients-marquee {
        padding: 48px 0;
    }
    
    .marquee-content {
        gap: 48px;
    }
    
    .marquee-logo img {
        height: 36px;
    }
    
    /* FAQ */
    .faq-section {
        padding: 48px 24px;
    }
    
    .faq-accordion-title {
        font-size: 2rem;
        margin-bottom: 32px;
    }
    
    .faq-accordion-button {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    .faq-accordion-content-inner {
        padding: 0 0.75rem 1rem 2.5rem;
    }
    
    .faq-accordion-content p {
        font-size: 0.95rem;
    }
    
    /* About & Contact */
    .about-contact-section {
        padding: 48px 0;
    }
    
    .about-column,
    .contact-column {
        padding: 48px 24px;
    }
    
    .about-content .section-title,
    .contact-content .section-title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .founder-name {
        font-size: 1.5rem;
    }
    
    .founder-role {
        font-size: 0.875rem;
    }
    
    .bio-text {
        gap: 16px;
        margin-bottom: 48px;
    }
    
    .bio-text p {
        font-size: 1.0625rem;
        line-height: 1.7;
    }
    
    .contact-desc {
        font-size: 1.0625rem;
        margin-bottom: 32px;
    }
    
    /* Form */
    .contact-form {
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select,
    .form-group label {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    /* Stats */
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
    }
    
    .stat-item {
        text-align: center;
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer-animated {
        padding: 48px 24px 24px;
    }
    
    .footer-top {
        gap: 32px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-nav-title {
        font-size: 0.875rem;
        margin-bottom: 12px;
    }
    
    .footer-nav-link {
        font-size: 0.9375rem;
    }
    
    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        width: 100%;
    }
    
    .social-link {
        width: auto;
        height: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    
    .footer-logo-animation {
        padding: 24px 0;
        margin-bottom: 24px;
        width: 100%;
        overflow: hidden;
    }
    
    .footer-logo-wrapper {
        gap: 12px;
        max-width: 100%;
    }
    
    .footer-logo-image {
        height: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .footer-logo-text {
        font-size: clamp(0.9rem, 4.8vw, 2.2rem);
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-copyright,
    .footer-privacy {
        font-size: 0.875rem;
    }
}

/* Small Mobile (< 400px) */
@media (max-width: 399px) {
    .card-nav-container {
        width: 98%;
    }
    
    .scroll-text-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-content .section-title,
    .contact-content .section-title {
        font-size: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover .video-overlay {
        opacity: 0;
    }
    
    .video-card:active .video-overlay {
        opacity: 1;
    }
    
    .nav-card-link:hover {
        opacity: 0.8;
    }
    
    .submit-btn:hover {
        transform: none;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-text-char,
    .footer-logo-char,
    .marquee-content {
        transition: none !important;
        animation: none !important;
    }
}

/* High DPI / Retina Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .frame-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .card-nav.open {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .card-nav-content {
        position: relative;
        top: 0;
    }
    
    .nav-card {
        height: auto;
        min-height: 60px;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ============================================
   SESSION PRELOADER OVERLAY
   ============================================ */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #09090b;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.preloader-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 420px;
    font-family: var(--font-primary, sans-serif);
}

.preloader-brand {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.preloader-sub {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.preloader-bar-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 0.15s ease-out;
}

.preloader-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}

/* ============================================
   FOUNDER AVATAR & CPP PARTNER BADGES
   ============================================ */
.founder-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.founder-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.founder-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-avatar:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 255, 255, 0.25);
}

.cpp-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cpp-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.cpp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cpp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cpp-badge:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}
