/* ==========================================================================
   Devopsly Landing Page - Styles
   Apple-inspired, minimal, premium design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens) - Apple-Style Refined
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg: transparent;
    --color-bg-alt: #f5f5f7;
    --color-bg-dark: #0a0a0a;
    --color-text: #1d1d1f;
    --color-text-secondary: #515154;
    --color-text-on-dark: #f5f5f7;
    --color-text-muted: #86868b;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-border: #d2d2d7;
    --color-border-dark: #424245;

    /* Typography - Apple SF Pro inspired */
    --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: clamp(0.6875rem, 0.65rem + 0.19vw, 0.75rem);
    --font-size-sm: clamp(0.8125rem, 0.76rem + 0.26vw, 0.9375rem);
    --font-size-base: clamp(0.9375rem, 0.87rem + 0.33vw, 1.0625rem);
    --font-size-lg: clamp(1.0625rem, 0.98rem + 0.41vw, 1.1875rem);
    --font-size-xl: clamp(1.25rem, 1.12rem + 0.65vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --font-size-4xl: clamp(2.75rem, 2rem + 3.75vw, 5.5rem);
    --font-size-hero: clamp(3rem, 2.2rem + 4vw, 6rem);

    /* Spacing - Tighter, more Apple-like */
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
    --space-3xl: 5rem;
    --space-section: clamp(60px, 8vw, 100px);

    /* Layout - Fluid containers */
    --container-max: clamp(1000px, 85vw, 1400px);
    --container-narrow: clamp(480px, 50vw, 720px);

    /* Animation - Apple's signature easing */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-reveal: 800ms;

    /* Radius - Rounder, more modern */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 980px;

    /* Shadows - Softer, more diffused */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-float: 0 22px 70px 4px rgba(0, 0, 0, 0.12);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-dark: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 20px;

    /* Fluid Responsive - Hero Section (reduced max values) */
    --hero-gap: clamp(1.5rem, 3vw, 5rem);
    --hero-padding-x: clamp(1rem, 4vw, 6rem);

    /* Device Carousel - Smaller max to prevent cutoff */
    --carousel-width: clamp(280px, 42vw, 800px);
    --carousel-height: clamp(240px, 35vw, 650px);

    /* Phone Mockup - Fluid Sizing */
    --phone-width: clamp(120px, 10vw, 280px);
    --phone-split-width: clamp(100px, 8vw, 220px);
    --phone-split-gap: clamp(8px, 1.5vw, 30px);

    /* Laptop Mockup - Fluid Sizing */
    --laptop-width: clamp(280px, 40vw, 750px);

    /* Flyfish/Tablet/Watch mockups - Fluid Sizing */
    --flyfish-width: clamp(280px, 30vw, 420px);
    --tablet-width: clamp(360px, 40vw, 580px);
    --wine-phone-width: clamp(320px, 35vw, 500px);
    --watch-width: clamp(140px, 15vw, 220px);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #3B82C4; /* Match Three.js sky background */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Global container constraint for 14" MacBook (1200-1600px) */
@media (min-width: 1200px) and (max-width: 1600px) {
    .container {
        max-width: min(90vw, 1400px);
        padding: 0 clamp(1rem, 2vw, 1.5rem);
    }
}

/* --------------------------------------------------------------------------
   Fullpage Scroll System
   -------------------------------------------------------------------------- */
.fullpage-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 120px; /* Space for nav (80px + breathing room) */
    padding-bottom: var(--space-2xl);
}

/* Hero uses side-by-side layout for text + mockup */
.fullpage-section.hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 var(--hero-padding-x);
    gap: var(--hero-gap);
}

/* Mobile: Stack hero content vertically */
@media (max-width: 768px) {
    .fullpage-section.hero {
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px var(--hero-padding-x) 2rem;
        gap: clamp(1.5rem, 4vw, 2.5rem);
        text-align: center;
    }

    .hero__content {
        order: 1;
        max-width: 100%;
    }

    .device-carousel {
        order: 2;
        width: min(100%, 400px);
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 40vh;
        overflow: hidden;
    }

    /* Scale down device mockups for mobile */
    .flyfish-mockup,
    .tablet-mockup,
    .wine-phone {
        width: 100%;
        max-width: 320px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
        margin: 0 auto var(--space-md);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
        margin: 0 auto var(--space-lg);
    }
}

/* Progress Bar Navigation */
.progress-bar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.progress-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
}

/* Hide progress bar on mobile - less useful and takes space */
@media (max-width: 768px) {
    .progress-bar {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   WebGL Procedural Sky Canvas
   -------------------------------------------------------------------------- */
#sky-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Ensure main content appears above background */
main, .nav, .nav-mobile, footer, .progress-bar {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    height: 64px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 1000;
    transition:
        top var(--duration-normal) var(--ease-smooth),
        background var(--duration-normal) var(--ease-smooth),
        box-shadow var(--duration-normal) var(--ease-smooth);
}

.nav--scrolled {
    top: 8px;
    background: rgba(10, 15, 26, 0.92);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo-img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav__logo:hover .nav__logo-img {
    opacity: 0.8;
}

.nav__logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__menu {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav__menu {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .nav__menu {
        gap: 1.75rem;
    }
}

.nav__link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    transition: color var(--duration-normal) var(--ease-out);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav__link:hover {
    color: rgba(255, 255, 255, 1);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link.active {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

.nav__link.active::after {
    transform: scaleX(1);
    background: var(--color-accent);
}

.nav__cta {
    display: none;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out),
        transform var(--duration-fast) var(--ease-spring);
}

@media (min-width: 768px) {
    .nav__cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

.nav__cta:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.nav__cta:active {
    transform: translateY(0);
}

.nav__cta svg {
    width: 12px;
    height: 12px;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.nav__cta:hover svg {
    transform: translateX(2px);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background var(--duration-fast) var(--ease-out);
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform var(--duration-fast) var(--ease-out),
                opacity var(--duration-fast) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 88px; /* 16px nav top + 64px height + 8px gap */
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: var(--space-xl);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform var(--duration-normal) var(--ease-smooth),
        opacity var(--duration-normal) var(--ease-smooth);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu__link {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: #ffffff;
}

.mobile-menu__cta {
    display: inline-block;
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    background: #ffffff;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Navigation Responsive Adjustments */
@media (max-width: 767px) {
    .nav {
        top: 12px;
        width: calc(100% - 24px);
        height: 56px;
        border-radius: 14px;
    }

    .nav--scrolled {
        top: 6px;
    }

    .mobile-menu {
        top: 76px; /* 12px + 56px + 8px */
    }
}

@media (min-width: 1200px) {
    .nav {
        max-width: 1280px;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.btn--primary {
    color: var(--color-text-on-dark);
    background: var(--color-text);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #333333;
}

.btn--ghost {
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-secondary);
}

/* Ghost button on dark backgrounds */
.hero .btn--ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    text-align: left;
    position: relative;
    overflow: hidden;
    /* Transparent - canvas renders behind */
    background: transparent;
}

/* Animated grain texture overlay - disabled, canvas handles visuals */
/*
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    animation: grain 8s steps(10) infinite;
}
*/

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Floating geometric shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shape--1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.hero-shape--2 {
    width: 140px;
    height: 140px;
    top: 60%;
    left: 15%;
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-shape--3 {
    width: 120px;
    height: 120px;
    top: 25%;
    right: 35%;
    animation-delay: -4s;
    animation-duration: 9s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .hero__shapes {
        opacity: 0.5;
    }
    .hero-shape--1 { width: 100px; height: 100px; }
    .hero-shape--2 { width: 80px; height: 80px; }
    .hero-shape--3 { display: none; }
}

.hero__content {
    flex: 0 1 auto;
    max-width: clamp(320px, 40vw, 700px);
    min-width: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero__content {
        padding-left: 0;
        max-width: 100%;
        text-align: center;
    }
}

/* Apple-style hero headline */
.hero__title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
    color: #ffffff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
    max-width: 650px;  /* Wider for better reading */
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 0 var(--space-2xl) 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero__subtitle {
        margin: 0 auto var(--space-xl);
    }
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 480px) {
    .hero__buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero__buttons {
        justify-content: center;
    }
}

/* Tech Stack Logos */
.tech-stack {
    position: absolute;
    bottom: calc(var(--space-xl) + 120px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.tech-stack__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.tech-stack__logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.tech-logo {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.tech-logo:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.tech-logo svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .tech-stack {
        display: none;
    }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Hide scroll indicator when scrolled past hero */
body.scrolled .hero__scroll {
    opacity: 0 !important;
    pointer-events: none;
    animation: none !important;
    transition: opacity 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --------------------------------------------------------------------------
   Device Carousel - One at a Time with 3D Transitions
   -------------------------------------------------------------------------- */
.device-carousel {
    position: relative;
    flex: 0 0 auto;
    width: var(--carousel-width);
    height: var(--carousel-height);
    perspective: clamp(800px, 60vw, 1400px);
}

.device-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Individual device slides */
.device-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotateY(90deg) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.device-slide.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    pointer-events: auto;
}

.device-slide.prev {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.8);
}

/* Navigation dots */
.device-carousel__nav {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.device-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.device-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.device-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
}

/* ---- Device Mockup Styles (within carousel) ---- */

/* Flyfish Onboarding */
.flyfish-mockup {
    width: var(--flyfish-width);
    animation: deviceFloat 6s ease-in-out infinite;
}

.flyfish-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* iPad/Tablet Mockup - Realistic iPad Pro Frame */
.tablet-mockup {
    position: relative;
    width: var(--tablet-width);
    padding: 18px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.25);
    animation: deviceFloat 7s ease-in-out infinite 0.5s;
}

/* iPad camera notch */
.tablet-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #0a0a0a;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tablet-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Transparent laptop mockup - for images with built-in frame */
.laptop-mockup-transparent {
    position: relative;
    width: var(--laptop-width);
    max-width: 100%;
    animation: deviceFloat 7s ease-in-out infinite 0.5s;
}

.laptop-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* iPhone Mockup - base styles */
.phone-mockup {
    position: relative;
    width: var(--phone-width);
    max-width: 100%;
    animation: deviceFloat 6s ease-in-out infinite 0.3s;
}

/* Wine App phone - match HSBC phone visual height */
.wine-phone {
    width: var(--wine-phone-width);
}

.wine-phone .mockup-frame {
    width: 100%;
    height: auto;  /* Natural height based on image aspect ratio */
}

.wine-phone .mockup-screenshot {
    position: absolute;
    top: 1.5%;
    left: 5%;
    width: 90%;
    height: 96.5%;
    border-radius: 48px;
    object-fit: cover;
}

/* Dual Phones - HSBC mockup in hero carousel */
.split-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--phone-split-gap);
}

.split-phones .phone-mockup {
    width: var(--phone-split-width);
}

.split-phones .mockup-screenshot {
    top: 1.5%;
    left: 5%;
    width: 90%;
    height: 96.5%;
    border-radius: clamp(28px, 3vw, 52px);
}

/* Figma iPhone frame - base layer */
.mockup-frame {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}


/* Apple Watch Mockup */
.watch-mockup {
    position: relative;
    width: var(--watch-width);
    animation: deviceFloat 5s ease-in-out infinite 0.2s;
}

.watch-frame {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.watch-screen {
    position: absolute;
    top: 19%;
    left: 26%;
    width: 48%;
    height: 36%;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d15 100%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 12px;
    box-sizing: border-box;
}

.watch-screen__logo {
    font-size: 20px;
    font-weight: 700;
    color: #4ECDC4;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.watch-screen__balance {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.watch-screen__label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Generic floating animation for all devices in carousel */
@keyframes deviceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Wine app screenshot - positioned on top in screen area */
.mockup-screenshot {
    position: absolute;
    top: 1.3%;
    left: 4%;
    width: 92%;
    height: 97.3%;
    object-fit: cover;
    object-position: top center;
    border-radius: 44px;
    z-index: 2;
}

/* Video in phone mockup */
.mockup-video {
    object-fit: cover;
    background: #000;
}

/* Side buttons */
.iphone-air__frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 4px;
    height: 70px;
    background: linear-gradient(180deg, #a8cce0 0%, #7eb5d0 50%, #a8cce0 100%);
    border-radius: 0 3px 3px 0;
}

.iphone-air__frame::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 110px;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #a8cce0 0%, #7eb5d0 50%, #a8cce0 100%);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 55px 0 0 #90c0d8;
}

/* Screen */
.iphone-air__screen {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 46px;
    overflow: hidden;
    position: relative;
}

/* Dynamic Island */
.iphone-air__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 32px;
    background: #000;
    border-radius: 20px;
    z-index: 50;
}

.iphone-air__notch::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #2a4a6a 0%, #0a1520 70%);
    border-radius: 50%;
}

.iphone-air__notch::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #151820 0%, #080a0d 100%);
    border-radius: 50%;
}

/* Home bar */
.iphone-air__home-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    z-index: 50;
}

/* Screenshot image */
.iphone-air__screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 46px;
}

/* Shadow */
.iphone-air__shadow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) rotateX(80deg);
    width: 250px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

/* Wine App Screen */
.wine-app-screen {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
}

.wine-app__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 55px 24px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.wine-app__status {
    display: flex;
    gap: 5px;
}

.status-signal, .status-wifi, .status-battery {
    width: 18px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

.status-battery {
    width: 24px;
    border-radius: 3px;
    position: relative;
}

.status-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #fff;
    border-radius: 0 1px 1px 0;
}

/* Scanner area */
.wine-app__scanner {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scanner__bottle {
    width: 80px;
    height: 280px;
    background: linear-gradient(180deg,
        #2a1a0a 0%,
        #4a2a1a 20%,
        #3a2010 40%,
        #2a1a0a 60%,
        #1a0a00 100%);
    border-radius: 8px 8px 4px 4px;
    position: relative;
    box-shadow:
        inset 5px 0 15px rgba(255, 255, 255, 0.1),
        inset -5px 0 10px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Bottle neck */
.scanner__bottle::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 50px;
    background: linear-gradient(180deg, #3a2a1a 0%, #2a1a0a 100%);
    border-radius: 4px 4px 0 0;
}

/* Bottle label */
.scanner__bottle::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 10%;
    right: 10%;
    height: 40%;
    background: rgba(255, 245, 230, 0.9);
    border-radius: 4px;
}

/* Scanner annotation lines */
.scanner__line {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.scanner__line::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: transparent;
}

.scanner__line::after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.scanner__line span {
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.scanner__line--1 {
    top: 18%;
    left: 55%;
}

.scanner__line--2 {
    top: 30%;
    right: 55%;
    flex-direction: row-reverse;
}
.scanner__line--2::after { order: -1; }

.scanner__line--3 {
    top: 42%;
    left: 55%;
}

.scanner__line--4 {
    top: 54%;
    right: 55%;
    flex-direction: row-reverse;
}
.scanner__line--4::after { order: -1; }

.scanner__line--5 {
    top: 66%;
    left: 55%;
}

/* Status bar */
.wine-app__status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    margin: 15px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #00d4aa;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* App screen styles */
.app-screen {
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Wine Collection Grid */
.wine-collection {
    background: #0a0a0a;
}

.wine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 40px 2px 2px;
    flex: 1;
}

.wine-thumb {
    aspect-ratio: 1;
    background: var(--bg, #2a2a2a);
    position: relative;
}

.wine-thumb::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 30%;
    right: 30%;
    height: 50%;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.wine-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px;
    background: #1a1a1a;
    border-radius: 20px;
    margin: 8px;
}

.tab-item {
    font-size: 8px;
    color: #888;
}

.tab-item--active {
    color: #fff;
}

.tab-add {
    width: 28px;
    height: 28px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

/* Wine AI Scanner */
.wine-scanner {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.scanner-view {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 35px;
}

.wine-bottle-shape {
    width: 50px;
    height: 180px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 30%, #1a1a1a 100%);
    border-radius: 8px 8px 4px 4px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.wine-bottle-shape::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 25px;
    background: #2a2a2a;
    border-radius: 2px 2px 0 0;
}

.wine-bottle-shape::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 15%;
    right: 15%;
    height: 40%;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.scan-line {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
}

.scan-line::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    background: transparent;
}

.scan-line::after {
    content: '';
    width: 25px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.scan-line span {
    font-size: 7px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    padding: 2px 5px;
    border-radius: 3px;
}

.scan-vintage {
    top: 25%;
    left: 15%;
    flex-direction: row-reverse;
}

.scan-vintage::after { order: -1; }

.scan-producer {
    top: 40%;
    right: 15%;
}

.scan-grapes {
    top: 55%;
    left: 15%;
    flex-direction: row-reverse;
}

.scan-grapes::after { order: -1; }

.scan-region {
    top: 70%;
    right: 15%;
}

.scanner-status {
    text-align: center;
    padding: 12px;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin: 8px;
}

/* Wine Details */
.wine-details {
    background: #fff;
    padding: 40px 12px 12px;
}

.wine-label-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #3a2a1a 0%, #5a4030 50%, #3a2a1a 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.wine-label-img::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.wine-info {
    text-align: center;
}

.wine-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
}

.wine-vintage {
    font-size: 10px;
    color: #666;
    margin-bottom: 6px;
}

.wine-rating {
    font-size: 12px;
    color: #f5a623;
    margin-bottom: 6px;
}

.wine-notes {
    font-size: 8px;
    color: #888;
    line-height: 1.4;
    margin-bottom: 10px;
}

.wine-btn {
    background: #722F37;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* Screen content cycling animation */
.screen-content {
    position: absolute;
    inset: 0;
    padding: 48px 16px 28px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: screenCycle 12s infinite;
}

.screen-1 { animation-delay: 0s; }
.screen-2 { animation-delay: 3s; }
.screen-3 { animation-delay: 6s; }
.screen-4 { animation-delay: 9s; }

@keyframes screenCycle {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Screen header */
.screen-header {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

/* Dashboard screen */
.metric-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.metric-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #0066CC;
}

.metric-label {
    font-size: 12px;
    color: #666;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.stat-icon--blue { background: #0066CC; }
.stat-icon--green { background: #34C759; }
.stat-icon--orange { background: #FF9500; }
.stat-icon--purple { background: #AF52DE; }

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.stat-label {
    font-size: 11px;
    color: #666;
}

/* Projects screen */
.search-bar {
    background: #e5e5e7;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.project-icon--blue { background: #0066CC; }
.project-icon--green { background: #34C759; }
.project-icon--orange { background: #FF9500; }

.project-text {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.project-sub {
    font-size: 11px;
    color: #666;
}

/* Analytics screen */
.period-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tab {
    padding: 8px 14px;
    background: #e5e5e7;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
}

.tab--active {
    background: #0066CC;
    color: #fff;
}

.chart-area {
    background: #fff;
    border-radius: 16px;
    padding: 20px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 8px;
}

.bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, #0066CC 0%, rgba(0, 102, 204, 0.3) 100%);
    border-radius: 4px 4px 0 0;
}

.chart-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chart-value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.chart-change {
    font-size: 13px;
    color: #34C759;
    font-weight: 600;
}

/* Chat screen */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.chat-bubble {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 85%;
}

.chat-bubble--user {
    background: #0066CC;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble--ai {
    background: #e5e5e7;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #e5e5e7;
    border-radius: 16px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.chat-input {
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* Responsive: hide on smaller screens */
@media (max-width: 1024px) {
    .iphone-mockup {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Section Common Styles
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.section-header--left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

/* Apple-style section titles */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 640px;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin: var(--space-md) auto 0;
}

.section-header--left .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    padding: var(--space-section) 0;
    background: transparent;
}

/* Dark services section - more substantial on large screens */
.services--dark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    padding: 64px 0 80px;
}

.services--dark .container {
    max-width: 960px;
}

@media (min-width: 768px) {
    .services--dark .container {
        max-width: 1152px;
    }
}

@media (min-width: 1536px) {
    .services--dark .container {
        max-width: 1280px;
    }
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .services__grid {
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 14" MacBook responsive fix (1200-1600px) - hide secondary content */
@media (min-width: 1200px) and (max-width: 1600px) {
    .services--dark {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .services--dark .container {
        max-width: min(95vw, 1400px);
        padding: 0 1rem;
    }

    .services--dark .services__header {
        margin-bottom: 0.75rem;
    }

    .services--dark .services__title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .services--dark .services__subtitle {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .services__grid {
        gap: 10px;
    }

    .services--dark .service-card {
        padding: 0.75rem 1rem;
    }

    .services--dark .service-card__icon {
        width: 28px;
        height: 28px;
        margin-bottom: 0.35rem;
    }

    .services--dark .service-card__title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .services--dark .service-card__description {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }

    /* Hide features list to save vertical space */
    .services--dark .service-card__bullets {
        display: none;
    }

    .services--dark .service-card__link {
        font-size: 0.75rem;
    }
}

/* Glassmorphic service cards - premium floating effect */
.service-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    transition: transform 0.5s var(--ease-smooth),
                box-shadow 0.5s var(--ease-smooth),
                background 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Subtle inner highlight */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 50%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-float);
}

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

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: var(--radius-md);
    transition: transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-card__icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-card__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Hover arrow indicator */
.service-card::after {
    content: '';
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17l9.2-9.2M17 17V7H7'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Dark theme service cards - deep blue glassmorphism */
.service-card--dark {
    padding: 24px;
    background: rgba(8, 20, 60, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    cursor: pointer;
}

@media (min-width: 768px) {
    .service-card--dark {
        padding: 28px;
    }
}

@media (min-width: 1024px) {
    .service-card--dark {
        padding: 32px;
    }
}

.service-card--dark:focus-visible {
    outline: 2px solid #7FB4FF;
    outline-offset: 2px;
}

.service-card--dark::before {
    display: none;
}

.service-card--dark::after {
    display: none;
}

.service-card--dark:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(8, 20, 60, 0.75);
}

/* Dark card - icon container */
.service-card--dark .service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    margin-bottom: 12px;
    color: #7FB4FF;
}

.service-card--dark:hover .service-card__icon {
    transform: none;
    background: rgba(255, 255, 255, 0.12);
}

/* Dark card - category pill */
.service-card__category {
    display: inline-block;
    align-self: center;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* Dark card - title */
.service-card--dark .service-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-align: center;
}

/* Dark card - one-liner description */
.service-card__oneliner {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
    text-align: left;
    align-self: stretch;
}

/* Dark card - bullet list */
.service-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    align-self: stretch;
}

.service-card__bullets li {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    padding-left: 16px;
    position: relative;
}

.service-card__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* Dark card - CTA link */
.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #7FB4FF;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
    text-align: left;
    align-self: flex-start;
}

.service-card__cta:hover {
    color: #BFDBFE;
}

.service-card__cta .cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.service-card--dark:hover .service-card__cta .cta-arrow {
    transform: translateX(2px);
}

/* Responsive typography for dark service cards */
@media (min-width: 768px) {
    .service-card--dark .service-card__title {
        font-size: 20px;
    }

    .service-card__oneliner,
    .service-card__bullets li {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .service-card--dark .service-card__title {
        font-size: 22px;
    }
}

/* Dark section header styles */
.section-header--dark {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.section-header--dark .section-overline {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.section-header--dark .section-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.section-header--dark .section-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glass panel for section header */
.section-header__glass {
    display: inline-block;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 40px 28px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .section-header__glass {
        padding: 16px 24px 20px;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* --------------------------------------------------------------------------
   AI Section
   -------------------------------------------------------------------------- */
.ai-section {
    /* Removed min-height: 100vh - was causing massive empty gaps */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) 0;
    background: transparent;
}

/* Dark translucent AI section - deep tech feel */
.ai-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Gradient border effect */
.ai-section__grid::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%,
        rgba(0, 113, 227, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Light text for dark container */
.ai-section__grid .section-label {
    color: var(--color-accent);
}

.ai-section__grid .ai-section__title {
    color: var(--color-text-on-dark);
}

.ai-section__grid .ai-section__intro {
    color: rgba(255, 255, 255, 0.7);
}

.ai-section__grid .ai-capability__title {
    color: var(--color-text-on-dark);
}

.ai-section__grid .ai-capability__desc {
    color: rgba(255, 255, 255, 0.6);
}

.ai-section__grid .ai-section__footer {
    color: rgba(255, 255, 255, 0.5);
}

.ai-section__grid .ai-capability {
    border-left-color: var(--color-accent);
}

@media (min-width: 1024px) {
    .ai-section__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 14" MacBook responsive fix (1200-1600px) - aggressive scaling */
@media (min-width: 1200px) and (max-width: 1600px) {
    .ai-section {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .ai-section__grid {
        max-width: min(95vw, 1400px);
        margin: 0 auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .ai-section__title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .ai-section__intro {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .ai-capabilities {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .ai-capability {
        padding-left: 0.75rem;
    }

    .ai-capability__title {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }

    .ai-capability__text {
        font-size: 0.8rem;
    }

    .ai-section__footer {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .ai-section__cta {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }

    .ai-section__visual {
        max-height: 400px;
    }
}

.ai-section__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.ai-section__intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.ai-capabilities {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.ai-capability {
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-accent);
}

.ai-capability__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.ai-capability__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.ai-section__footer {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);  /* Improved contrast - was text-muted */
    font-style: normal;                   /* Removed italic for better readability */
}

.ai-section__visual {
    display: none;
}

@media (min-width: 1024px) {
    .ai-section__visual {
        display: block;
    }
}

/* AI visual container - Neural network visualization */
.ai-visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.ai-neural-svg {
    width: 100%;
    max-width: clamp(300px, 30vw, 500px);
    height: auto;
}

.neural-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-line 2s ease-out forwards;
}

.neural-line:nth-child(2) { animation-delay: 0.2s; }
.neural-line:nth-child(3) { animation-delay: 0.4s; }
.neural-line:nth-child(4) { animation-delay: 0.6s; }
.neural-line:nth-child(5) { animation-delay: 0.8s; }
.neural-line:nth-child(6) { animation-delay: 1s; }

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.neural-layer circle {
    opacity: 0;
    animation: fade-in-node 0.5s ease-out forwards;
}

.neural-layer--input circle:nth-child(1) { animation-delay: 0.3s; }
.neural-layer--input circle:nth-child(2) { animation-delay: 0.5s; }
.neural-layer--input circle:nth-child(3) { animation-delay: 0.7s; }
.neural-layer--hidden circle:nth-child(1) { animation-delay: 0.9s; }
.neural-layer--hidden circle:nth-child(2) { animation-delay: 1.1s; }
.neural-layer--output circle { animation-delay: 1.3s; }
.neural-layer--output text { animation: fade-in-node 0.5s ease-out 1.5s forwards; opacity: 0; }

@keyframes fade-in-node {
    to { opacity: 1; }
}

.neural-pulse {
    opacity: 0;
    animation: pulse-signal 2s ease-in-out infinite 2s;
}

.neural-pulse--2 {
    animation-delay: 2.3s;
}

.neural-pulse--3 {
    animation-delay: 2.6s;
}

@keyframes pulse-signal {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Traveling signal animation along neural lines */
.neural-signal {
    r: 4;
    fill: #0071e3;
    opacity: 0;
}

.neural-signal--1 {
    animation: travel-signal-1 3s ease-in-out infinite 2.5s;
}

.neural-signal--2 {
    animation: travel-signal-2 3s ease-in-out infinite 3s;
}

.neural-signal--3 {
    animation: travel-signal-3 3s ease-in-out infinite 3.5s;
}

@keyframes travel-signal-1 {
    0% { opacity: 0; cx: 80; cy: 60; }
    10% { opacity: 1; }
    50% { cx: 200; cy: 100; }
    90% { opacity: 1; }
    100% { opacity: 0; cx: 320; cy: 150; }
}

@keyframes travel-signal-2 {
    0% { opacity: 0; cx: 80; cy: 150; }
    10% { opacity: 1; }
    50% { cx: 200; cy: 200; }
    90% { opacity: 1; }
    100% { opacity: 0; cx: 320; cy: 150; }
}

@keyframes travel-signal-3 {
    0% { opacity: 0; cx: 80; cy: 240; }
    10% { opacity: 1; }
    50% { cx: 200; cy: 200; }
    90% { opacity: 1; }
    100% { opacity: 0; cx: 320; cy: 150; }
}

/* Node glow effect */
.neural-layer circle {
    filter: drop-shadow(0 0 6px rgba(0, 113, 227, 0.4));
}

.neural-layer--output circle {
    animation: node-glow 2s ease-in-out infinite;
}

@keyframes node-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 113, 227, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 113, 227, 0.8)); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* --------------------------------------------------------------------------
   Engagement Section
   -------------------------------------------------------------------------- */
.engagement {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) 0;
    background: transparent;
}

.engagement__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .engagement__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 14" MacBook responsive fix (1200-1600px) - aggressive scaling */
@media (min-width: 1200px) and (max-width: 1600px) {
    .engagement {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .engagement .container {
        max-width: min(95vw, 1400px);
        padding: 0 1rem;
    }

    .engagement .engagement__header {
        margin-bottom: 1rem;
    }

    .engagement .engagement__label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .engagement .engagement__title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .engagement .engagement__subtitle {
        font-size: 0.9rem;
    }

    .engagement__grid {
        gap: 12px;
        margin-bottom: 1rem;
    }

    .engagement-card {
        padding: 1rem;
    }

    .engagement-card__icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .engagement-card__number {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .engagement-card__title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .engagement-card__description {
        font-size: 0.8rem;
    }

    .engagement__disclaimer {
        padding: 0.75rem 1rem;
    }

    .engagement__disclaimer h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .engagement__disclaimer li {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
}

/* Dark glass engagement cards - matching Services section */
.engagement-card {
    padding: var(--space-xl);
    background: rgba(8, 20, 60, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth),
                border-color 0.4s var(--ease-smooth);
}

.engagement-card:hover {
    transform: translateY(-4px);
    background: rgba(8, 20, 60, 0.75);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.engagement-card__number {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    order: -1;
}

.engagement-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #7FB4FF;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
}

.engagement-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: #FFFFFF;
}

.engagement-card__desc {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.engagement__disclaimer {
    padding: var(--space-xl);
    background: rgba(10, 10, 10, 0.95);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.engagement__disclaimer-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-md);
}

.engagement__disclaimer-list {
    display: grid;
    gap: var(--space-sm);
}

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

.engagement__disclaimer-list li {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Case Studies Section
   -------------------------------------------------------------------------- */
.cases {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
    padding: 64px 0 80px;
    background: transparent;
    overflow-x: clip; /* Prevents horizontal overflow from carousel peek effect */
}

/* Cases header - centered dark style with increased visual weight */
.cases .section-header {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.cases .section-header--left {
    text-align: center;
}

/* Cases section label typography - upgraded kicker */
.cases .section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

/* Section title - chapter heading scale */
.cases .section-title {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    margin-bottom: 6px;
}

/* Section subtitle */
.cases .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.76);
}

/* Carousel container */
.cases-carousel {
    position: relative;
    width: 100%;
    max-width: clamp(800px, 70vw, 1100px);
    margin: 0 auto;
}

.cases-carousel__track {
    position: relative;
    min-height: 620px;
}

@media (min-width: 768px) {
    .cases-carousel__track {
        min-height: 540px;
    }
}

/* Case slide - Apple Keynote style transitions with peek effect */
.case-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.6s var(--ease-smooth);
    pointer-events: none;
}

.case-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.case-slide.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
}

/* Slide peek effect - show hints of adjacent slides on desktop */
@media (min-width: 1024px) {
    .cases-carousel {
        overflow: visible;
    }

    .case-slide.next-peek {
        opacity: 0.25;
        transform: translateX(85%) scale(0.85);
        filter: blur(2px);
        z-index: 1;
    }

    .case-slide.prev-peek {
        opacity: 0.25;
        transform: translateX(-85%) scale(0.85);
        filter: blur(2px);
        z-index: 1;
    }
}

/* Adjust carousel for 14" MacBook and similar screens (1200-1600px) - aggressive scaling */
@media (min-width: 1200px) and (max-width: 1600px) {
    .cases {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .cases .cases-header {
        margin-bottom: 0.75rem;
    }

    .cases .cases-header__label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .cases .cases-header__title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .cases .cases-header__subtitle {
        font-size: 0.9rem;
    }

    .cases-carousel {
        max-width: min(48vw, 720px);
    }

    .case-slide .case-card {
        padding: 1rem;
    }

    .case-slide .case-card__image {
        height: 100%;
        min-height: 200px;
        max-height: 100%;
        overflow: hidden;
        border-radius: 16px;
    }

    .case-slide .case-card__image img,
    .case-slide .case-card__image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .case-slide .case-card__meta {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .case-slide .case-card__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .case-slide .case-card__tags {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .case-slide .case-card__tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .case-slide .case-card__stats {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .case-slide .case-card__stats li {
        margin-bottom: 0.15rem;
    }

    .case-slide .case-card__section-title {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .case-slide .case-card__text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Hide Challenge and Approach sections to save vertical space */
    .case-slide .case-card__section {
        display: none;
    }

    .case-slide .case-card__quote {
        font-size: 0.8rem;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .case-slide .case-card__cta {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .case-slide.next-peek,
    .case-slide.prev-peek {
        transform: translateX(30%) scale(0.6);
        opacity: 0.1;
    }

    .cases-carousel__nav {
        margin-top: 0.75rem;
    }
}

/* Carousel navigation dots */
.cases-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-xl);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    background: #7FB4FF;
    transform: scale(1.25);
}

/* Carousel arrows - glass style */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 22, 50, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow:hover {
    opacity: 1;
    background: rgba(10, 22, 50, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) translateY(-1px) scale(1.08);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.65);
}

.carousel-arrow--prev {
    left: clamp(-60px, -4vw, -22px);
}

.carousel-arrow--next {
    right: clamp(-60px, -4vw, -22px);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    fill: none;
}

@media (max-width: 1024px) {
    .carousel-arrow--prev {
        left: 8px;
    }
    .carousel-arrow--next {
        right: 8px;
    }
}

/* Legacy list style (fallback) */
.cases__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Floating case cards - premium elevated style */
.case-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 32px;
    background: rgba(8, 20, 60, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s var(--ease-smooth),
                box-shadow 0.5s var(--ease-smooth),
                background 0.5s var(--ease-smooth),
                border-color 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Remove light gradient overlay */
.case-card::before {
    display: none;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 113, 227, 0.03) 100%
    );
    pointer-events: none;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(8, 20, 60, 0.75);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
    .case-card {
        grid-template-columns: 240px 1fr;
    }
}

.case-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
}

.case-card__tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Category-specific colored badges - dark theme */
.case-card__tag--cloud {
    background: rgba(96, 165, 250, 0.2);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.4);
}

.case-card__tag--ai {
    background: rgba(192, 132, 252, 0.2);
    color: #D8B4FE;
    border-color: rgba(192, 132, 252, 0.4);
}

.case-card__tag--mobile {
    background: rgba(74, 222, 128, 0.2);
    color: #86EFAC;
    border-color: rgba(74, 222, 128, 0.4);
}

.case-card__tag--fintech {
    background: rgba(250, 204, 21, 0.2);
    color: #FDE047;
    border-color: rgba(250, 204, 21, 0.4);
}

.case-card__client {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Case card header block */
.case-card__header {
    margin-bottom: 16px;
}

/* Kicker - case type + client */
.case-card__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(173, 205, 255, 0.9);
    margin-bottom: 4px;
}

/* Case title - hero element */
.case-card__title {
    font-size: 1.55rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    color: #f9fbff;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Duration pill in meta row */
.case-card__duration {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Hero metrics row - horizontal layout */
.case-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.case-card__metrics li {
    font-size: 0.9rem;
    color: rgba(216, 229, 255, 0.95);
}

.case-card__metrics li strong {
    font-weight: 700;
    color: #ffffff;
}

/* Legacy outcomes list (vertical with checkmarks) */
.case-card__outcomes {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.case-card__outcomes li {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    padding-left: var(--space-md);
    position: relative;
}

.case-card__outcomes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    font-weight: bold;
    color: #7FB4FF;
}

/* Tech stack tags */
.case-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Case card with image layout */
.case-card--with-image {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .case-card--with-image {
        max-width: 920px;
        margin: 0 auto;
        border-radius: 32px;
        background: radial-gradient(circle at top left,
                    rgba(7, 19, 55, 0.96),
                    rgba(7, 25, 70, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow:
            0 28px 60px rgba(5, 16, 38, 0.50),
            0 0 0 1px rgba(255, 255, 255, 0.14);
        padding: 28px 36px;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
        grid-template-rows: auto 1fr;
        gap: 28px;
    }

    .case-card--with-image .case-card__image {
        grid-row: 1 / -1;
    }

    .case-card--with-image .case-card__meta {
        grid-column: 2;
    }

    .case-card--with-image .case-card__content {
        grid-column: 2;
    }
}

/* Image column with rounded mask */
.case-card__image {
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top, #f7f9ff, #e1e8ff);
}

.case-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

@media (min-width: 768px) {
    .case-card__image img {
        height: 100%;
        min-height: 220px;
    }
}

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

/* Case Study Video */
.case-card__image video.case-video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

@media (min-width: 768px) {
    .case-card__image video.case-video {
        height: 100%;
        min-height: 220px;
    }
}

.case-card:hover .case-card__image video.case-video {
    transform: scale(1.05);
}

/* Timeline badge */
.case-card__timeline {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Section titles for Challenge/Approach */
.case-card__section {
    margin-bottom: var(--space-md);
}

.case-card__section-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xs);
}

/* De-emphasized body text for Challenge/Approach */
.case-card__section-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Testimonial quote */
.case-card__quote {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(127, 180, 255, 0.6);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.case-card__quote p {
    font-size: var(--font-size-sm);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.case-card__quote cite {
    font-size: var(--font-size-xs);
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
}

/* CTA link */
.case-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #7FB4FF;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: var(--space-sm);
}

.case-card__cta:hover {
    gap: var(--space-sm);
    color: #FFFFFF;
}

/* Case card footer with primary button CTA */
.case-card__footer {
    margin-top: 20px;
}

.case-card__btn {
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4da8ff, #8be4ff);
    color: #051024;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card__btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

.case-card__btn svg {
    width: 14px;
    height: 14px;
}

/* Active slide emphasis */
.case-slide.active .case-card--with-image {
    transform: translateY(-4px);
    box-shadow:
        0 32px 70px rgba(5, 16, 38, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) 0;
    background: transparent;
    color: var(--color-text-on-dark);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    background: rgba(10, 10, 10, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.about__text {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-dark);
}

.about__stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.about__stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-on-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.about__stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .about__stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .about__stat {
        flex: 1 1 45%;
    }
}

.about__team {
    padding: var(--space-xl);
    background: var(--color-border-dark);
    border-radius: var(--radius-md);
}

.about__team-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.about__team-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about__team-list li {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.about__team-list svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.about__team-list span {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contact Section - Sky to Ground Gradient
   -------------------------------------------------------------------------- */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) 0;
    background: transparent;
    position: relative;
}

/* Sky-to-horizon gradient overlay - maintains flying sensation */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(135, 206, 235, 0.1) 0%,      /* Very subtle sky tint */
        rgba(200, 220, 240, 0.4) 40%,     /* Pale sky-blue */
        rgba(230, 240, 250, 0.6) 70%,     /* Horizon haze */
        rgba(245, 248, 252, 0.75) 100%    /* Bright horizon, NOT pure white */
    );
    opacity: 0;
    transition: opacity 1s var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
}

.contact.section-active::before {
    opacity: 1;
}

.contact > * {
    position: relative;
    z-index: 1;
}

.contact__content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* 14" MacBook responsive fix (1200-1600px) - aggressive scaling */
@media (min-width: 1200px) and (max-width: 1600px) {
    .contact {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .contact__content {
        max-width: min(48vw, 600px);
        padding: 1.25rem 1.5rem;
    }

    .contact__title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .contact__subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .contact-form {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .contact-form__field input,
    .contact-form__field textarea {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .contact-form__field textarea {
        min-height: 60px;
    }

    .contact-form button[type="submit"] {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .contact-form__note {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .contact__location {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

.contact__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.contact__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.contact-form__response-time svg {
    color: var(--color-accent);
    opacity: 0.8;
}

.contact-form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    min-height: 280px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.contact-form__success h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.contact-form__success p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    max-width: 280px;
    line-height: 1.6;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact__email {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-accent);
    transition: color var(--duration-fast) var(--ease-out);
}

.contact__email:hover {
    color: var(--color-text);
}

.contact__location {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-2xl) 0;
    background: rgba(10, 10, 10, 0.95);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
    color: var(--color-text-on-dark);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* Initial state for animate-in elements (hero) */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp var(--duration-slow) var(--ease-out) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations (scroll-triggered) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* Cards are always visible in fullpage mode - scroll-snap doesn't work with reveal animations */
.service-card.reveal,
.engagement-card.reveal,
.case-card.reveal,
.ai-capability.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* When GSAP is controlling animations, disable CSS transitions */
body.gsap-ready .reveal {
    transition: none;
}

/* Stagger delays for grid items */
.services__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.services__grid .reveal:nth-child(3) { transition-delay: 200ms; }
.services__grid .reveal:nth-child(4) { transition-delay: 300ms; }
.services__grid .reveal:nth-child(5) { transition-delay: 400ms; }
.services__grid .reveal:nth-child(6) { transition-delay: 500ms; }

.engagement__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.engagement__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.engagement__grid .reveal:nth-child(3) { transition-delay: 200ms; }

.ai-capabilities .reveal:nth-child(1) { transition-delay: 0ms; }
.ai-capabilities .reveal:nth-child(2) { transition-delay: 100ms; }
.ai-capabilities .reveal:nth-child(3) { transition-delay: 200ms; }

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    .fullpage-section {
        scroll-snap-align: none;
    }

    .animate-in,
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--space-md);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent__content {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .cookie-consent__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-lg);
    }
}

.cookie-consent__content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: none;
}

.cookie-consent__btn--primary {
    background: var(--color-accent);
    color: white;
}

.cookie-consent__btn--primary:hover {
    background: #005bb5;
}

.cookie-consent__btn--secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.cookie-consent__btn--secondary:hover {
    background: var(--color-bg-secondary);
}

/* --------------------------------------------------------------------------
   Desktop Scaling (1200px+) - Fill gap between 1024px and ultrawide
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    /* Navigation - scale gap */
    .nav__menu {
        gap: clamp(1.5rem, 2vw, 2.5rem);
    }

    /* Services grid - increase gap */
    .services__grid {
        gap: clamp(24px, 3vw, 40px);
    }

    /* Engagement grid - scale gap */
    .engagement__grid {
        gap: clamp(1rem, 2vw, 2rem);
    }

    /* About section - scale padding */
    .about__grid {
        padding: clamp(2rem, 4vw, 4rem);
        gap: clamp(2rem, 4vw, 5rem);
    }
}

/* --------------------------------------------------------------------------
   Ultrawide Support (2560px+)
   -------------------------------------------------------------------------- */
@media (min-width: 2560px) {
    :root {
        --carousel-width: min(40vw, 1000px);
        --carousel-height: min(32vw, 800px);
        --hero-gap: min(6vw, 8rem);
        --container-max: min(85vw, 1600px);
    }

    .fullpage-section.hero {
        max-width: 2400px;
        margin: 0 auto;
    }
}
