/* ============================================
   EVOLUTION AUDIOWORKS - PREMIUM DESIGN SYSTEM
   Rust-Orange & Charcoal Theme - Elegant Modern Edition
   ============================================ */

:root {
    /* ========== COLOR PALETTE ========== */
    /* Backgrounds - Clean, Light, Sophisticated */
    --bg-void: #FCFCFD;
    --bg-deep: #F4F4F5;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F9FAFB;
    --bg-hover: #F3F4F6;
    --bg-cream: #F3EFE9; /* Premium Dayos-style cream/beige background */

    /* Accent Colors */
    --accent-warm: #d45d24; /* Warm Rust Orange */
    --accent-warm-dim: #c84f1d;
    --accent-cool: #1E3A5F; /* Deep Navy */
    --accent-cool-dim: #111827;

    /* Primary Neutral */
    --primary-navy: #09090b; /* Midnight Black */
    --primary-navy-light: #18181b;

    /* Text Hierarchy */
    --text-primary: #09090b; /* Charcoal Black */
    --text-secondary: #52525b; /* Zinc Slate */
    --text-muted: #a1a1aa; /* Muted Slate */

    /* Borders & Effects */
    --border-subtle: rgba(9, 9, 11, 0.04);
    --border-medium: rgba(9, 9, 11, 0.08);
    --border-glow: rgba(212, 93, 36, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Glows */
    --glow-warm: rgba(212, 93, 36, 0.08);
    --glow-white: rgba(255, 255, 255, 0.95);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(9, 9, 11, 0.05);

    /* ========== TYPOGRAPHY ========== */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* ========== SPACING ========== */
    --section-padding: 120px;
    --container-width: 1280px;

    /* ========== ANIMATION CURVES ========== */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* ========== TIMING ========== */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Hide background effects on mobile for clean layout */
@media (max-width: 768px) {

    body::before,
    body::after,
    main::before {
        content: none !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Disable heavy animations on mobile for better performance */
    .hero .ambient-orb,
    .hero .ambient-orb.orb-1,
    .hero .ambient-orb.orb-2 {
        display: none !important;
        animation: none !important;
    }

    /* Reduce hero background animation overhead */
    .hero::before {
        will-change: auto;
        animation: none;
    }

    /* Disable reveal animations on mobile */
    [data-reveal],
    [data-reveal="slide-left"],
    [data-reveal="slide-right"] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Simplify hover effects on mobile (touch devices) */
    .gallery-item:hover img,
    .about-image:hover img {
        transform: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 7vw, 5.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
    box-sizing: border-box;
}

/* ========== HEADER / NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: transform var(--duration-normal) var(--ease-out-expo),
        background var(--duration-normal) var(--ease-smooth),
        padding var(--duration-normal) var(--ease-smooth),
        border var(--duration-normal);
    background: transparent;
}

header.scrolled {
    padding: 14px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: filter var(--duration-normal), opacity var(--duration-fast);
    filter: invert(1); /* Default state: invert black to white, white to black */
}

header.scrolled .logo-img {
    filter: none; /* Scrolled state: restore original color */
}

.logo-img:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.75); /* Default state: light text */
    position: relative;
    padding: 8px 0;
    transition: color var(--duration-fast);
}

header.scrolled .nav-links li a {
    color: var(--text-secondary); /* Scrolled state: dark text */
}

.nav-links li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-warm);
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-links li a:not(.btn-primary):hover {
    color: #ffffff; /* Default state hover: white */
}

header.scrolled .nav-links li a:not(.btn-primary):hover {
    color: var(--text-primary); /* Scrolled state hover: dark */
}

.nav-links li a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Nav CTA Button */
.nav-links li a.btn-primary {
    background: var(--accent-warm);
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 4px 12px rgba(212, 93, 36, 0.2);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast),
        background-color var(--duration-fast);
}

.nav-links li a.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    background-color: var(--accent-warm-dim);
    box-shadow: 0 6px 18px rgba(212, 93, 36, 0.35);
}

.nav-links li a.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ffffff; /* Default state: white bars */
    border-radius: 2px;
    transition: var(--duration-normal);
}

header.scrolled .hamburger span {
    background: var(--text-primary); /* Scrolled state: dark bars */
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 80px;
}

/* Parallax Background */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('assets/images/hero-bg.webp') no-repeat center center;
    background-size: cover;
    z-index: -2;
    will-change: transform;
}

/* Fallback to JPG for browser that does not support WebP */
@supports not (background-image: url('x.webp')) {
    .hero::before {
        background-image: url('assets/images/hero-bg.jpg');
    }
}

/* Dark Rich Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, 
            rgba(9, 9, 11, 0.75) 0%, 
            rgba(9, 9, 11, 0.45) 50%, 
            #FAFBFC 100%), /* Blends to light background at the bottom */
        linear-gradient(90deg, 
            rgba(9, 9, 11, 0.85) 0%, 
            rgba(9, 9, 11, 0.5) 50%, 
            transparent 100%);
    z-index: -1;
}

/* Floating Gradient Orbs (More subtle and muted) */
.hero .ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.hero .ambient-orb.orb-1 {
    width: 450px;
    height: 450px;
    background: var(--accent-warm);
    top: 20%;
    right: 5%;
    animation-delay: 0s;
}

.hero .ambient-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-cool);
    bottom: 15%;
    left: -5%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.03);
    }
    50% {
        transform: translate(-15px, 15px) scale(0.97);
    }
    75% {
        transform: translate(15px, 20px) scale(1.01);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
}

.hero-content .subtitle {
    display: block;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-warm);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero h1 {
    color: #ffffff; /* Contrast text */
    font-size: clamp(2.5rem, 6.5vw, 4.8rem);
    font-weight: var(--font-weight-black);
    line-height: 1.05;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    width: 100%;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--accent-warm);
    color: #FFFFFF;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 93, 36, 0.35);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast),
        background-color var(--duration-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--accent-warm-dim);
    box-shadow: 0 6px 20px rgba(212, 93, 36, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-outline:hover {
    background: var(--accent-warm);
    color: var(--bg-void);
    border-color: var(--accent-warm);
}

/* ========== SECTIONS ========== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 80px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-header .label {
    display: inline-block;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.4vw, 3px);
    color: var(--accent-warm);
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

/* ========== BRAND LOGOS ROW ========== */
.brand-row-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-surface);
    padding: clamp(30px, 5vw, 50px) 0;
    border-bottom: 1px solid var(--border-medium);
}

.brand-row-section .container {
    position: relative;
    z-index: 1;
}

.brand-title {
    text-align: center;
    font-size: 0.72rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
}

.brand-item {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-black);
    color: var(--text-primary); /* Dark/black by default */
    letter-spacing: -0.02em;
    transition: color var(--duration-fast), transform var(--duration-fast);
    cursor: pointer; /* Change to hand/pointer cursor */
    user-select: none;
}

.brand-item:hover,
.brand-item:active {
    color: var(--accent-warm); /* Orange on hover/click */
    transform: translateY(-1px);
}

/* ========== FLOATING WAVE LOGO CAROUSEL ========== */
.logo-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 475px; /* Increased by 25% */
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    /* Positioning, scale, and opacity transitions are handled in JS at 60fps */
    opacity: 0;
    z-index: 1;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.4);
    transition: filter var(--duration-normal) var(--ease-smooth);
}

/* Active center-highlight styles */
.logo-circle.active {
    z-index: 10;
}

.logo-circle.active img {
    filter: grayscale(0) opacity(1) drop-shadow(0 6px 12px rgba(212, 93, 36, 0.35));
}

/* Specific logo size adjustments */
.logo-circle img[src*="audiocircle-logo.png"] {
    transform: scale(1.1);
}

/* Mobile & tablet adjustments */
@media (max-width: 768px) {
    .logo-carousel-wrapper {
        height: 375px; /* Increased by 25% */
        margin-top: 40px;
    }

    .logo-circle {
        width: 90px;
        height: 90px;
        padding: 8px;
    }
}

/* ========== PITCH / ABOUT SECTION (DSP TUNING INTERACTIVE) ========== */
#about {
    background-color: var(--bg-surface);
}

.pitch-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border-left: 2px solid var(--accent-warm);
    padding-left: 10px;
}

.pitch-text h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    font-weight: var(--font-weight-black);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.pitch-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.pitch-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-warm);
    font-weight: var(--font-weight-bold);
    margin-top: 10px;
    transition: gap var(--duration-fast) var(--ease-out-back);
}

.pitch-link:hover {
    gap: 12px;
}

/* DSP Tuning Dashboard Mock-up */
.dsp-dashboard {
    background-color: #0c0c0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
    background-color: #121215;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.window-dots .dot.red { background-color: #ef4444; }
.window-dots .dot.yellow { background-color: #f59e0b; }
.window-dots .dot.green { background-color: #10b981; }

.window-title {
    color: #52525b;
    font-size: 0.7rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.dashboard-body {
    padding: 24px;
}

.dsp-graph {
    background-color: #050506;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.response-curve {
    width: 100%;
    height: auto;
    display: block;
}

.curve-main {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}

.graph-tag {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.6rem;
    color: var(--accent-warm);
    font-family: monospace;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.dsp-sliders {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px;
}

.slider-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.slider-track {
    width: 3px;
    height: 75px;
    background-color: #1c1c20;
    border-radius: 2px;
    position: relative;
}

.slider-thumb {
    width: 10px;
    height: 10px;
    background-color: var(--accent-warm);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 10px rgba(212, 93, 36, 0.6);
    transition: bottom 0.3s;
}

.slider-col .label {
    font-size: 0.62rem;
    color: #52525b;
    font-family: monospace;
}

/* EQ Slider Animations */
@keyframes eqMove {
    0%, 100% {
        transform: translate(-50%, 50%) translateY(0);
    }
    50% {
        transform: translate(-50%, 50%) translateY(-15px);
    }
}

.slider-col:nth-child(1) .slider-thumb { animation: eqMove 4s infinite ease-in-out; }
.slider-col:nth-child(2) .slider-thumb { animation: eqMove 3.2s infinite ease-in-out 0.5s; }
.slider-col:nth-child(3) .slider-thumb { animation: eqMove 4.5s infinite ease-in-out 0.2s; }
.slider-col:nth-child(4) .slider-thumb { animation: eqMove 3.8s infinite ease-in-out 0.8s; }
.slider-col:nth-child(5) .slider-thumb { animation: eqMove 4.2s infinite ease-in-out 0.3s; }
.slider-col:nth-child(6) .slider-thumb { animation: eqMove 3.5s infinite ease-in-out 0.6s; }

/* SVG Curve Load Animation */
@keyframes drawCurve {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.curve-main {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCurve 2.5s var(--ease-out-expo) forwards 0.3s;
}

/* ========== SPECIALIZED TOOLS SECTION ========== */
.specialized-tools-section {
    background-color: var(--bg-elevated);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.collage-container {
    position: relative;
    padding-bottom: 50px;
    padding-right: 50px;
}

.collage-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
}

.collage-main {
    width: 82%;
    aspect-ratio: 4 / 3;
}

.collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.collage-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48%;
    aspect-ratio: 4 / 3;
    z-index: 2;
    border: 4px solid var(--bg-elevated);
}

.collage-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.collage-container:hover .collage-main img {
    transform: scale(1.03);
}

.collage-container:hover .collage-sub img {
    transform: scale(1.05);
}

.tools-text h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    font-weight: var(--font-weight-black);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.tools-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.features-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.features-list li i {
    color: var(--accent-warm);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.features-list li span {
    font-size: 0.98rem;
}

/* ========== SPLIT VALUES SECTION ========== */
.split-values-section {
    background-color: var(--bg-surface);
}

.split-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 32px);
}

.value-panel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.value-panel .panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--duration-slow) var(--ease-out-expo);
    z-index: 0;
}

.value-panel .panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.05) 0%, rgba(9, 9, 11, 0.8) 100%);
    z-index: 1;
    transition: background var(--duration-normal);
}

.value-panel .panel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.value-panel .panel-tag {
    font-size: 0.72rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 2px;
    color: var(--accent-warm);
    margin-bottom: 12px;
    display: block;
}

.value-panel h3 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    color: #ffffff;
    font-weight: var(--font-weight-black);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.value-panel p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.value-panel:hover .panel-bg {
    transform: scale(1.04);
}

.value-panel:hover .panel-overlay {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.02) 0%, rgba(9, 9, 11, 0.9) 100%);
}

/* ========== SERVICES SECTION ========== */
#services {
    background-color: var(--bg-cream);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out-expo), border-color var(--duration-fast);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.1) 0%, rgba(9, 9, 11, 0.8) 100%);
    z-index: 1;
    transition: background var(--duration-normal);
}

.cat-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    transform: translateY(0);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.cat-content h4 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: var(--font-weight-bold);
    margin-bottom: 4px;
}

.cat-content span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-medium);
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-warm);
    box-shadow: var(--shadow-xl), 0 10px 20px rgba(212, 93, 36, 0.05);
}

.cat-card:hover .cat-overlay {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.02) 0%, rgba(9, 9, 11, 0.88) 100%);
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cat-card {
        height: 240px;
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cat-card {
        height: 220px;
    }
}

/* ========== GALLERY SECTION ========== */
#gallery {
    background-color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item.display-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--duration-normal) var(--ease-smooth);
    will-change: transform;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(8, 8, 12, 0.4) 50%,
            rgba(8, 8, 12, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-item .overlay span {
    color: #ffffff;
    font-weight: var(--font-weight-medium);
    font-size: 1.05rem;
    transform: translateY(10px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: translateZ(0) scale(1.05);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* ========== GALLERY HIDDEN ITEMS ========== */
.gallery-item.gallery-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.gallery-grid.expanded .gallery-item.gallery-hidden {
    display: block;
    animation: galleryReveal 0.6s var(--ease-out-expo) forwards;
}

/* Staggered animation for hidden items */
.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(5) {
    animation-delay: 0.05s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(6) {
    animation-delay: 0.1s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(7) {
    animation-delay: 0.15s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(8) {
    animation-delay: 0.2s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(9) {
    animation-delay: 0.25s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(10) {
    animation-delay: 0.3s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(11) {
    animation-delay: 0.35s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(12) {
    animation-delay: 0.4s;
}

@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== GALLERY TOGGLE BUTTON ========== */
.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-gallery-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool));
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.btn-gallery-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px var(--glow-warm);
    border-color: var(--accent-warm);
}

.btn-gallery-toggle:hover::before {
    opacity: 0.1;
}

.btn-gallery-toggle:active {
    transform: translateY(0) scale(0.98);
}

.btn-gallery-toggle .btn-text {
    position: relative;
    z-index: 1;
}

.btn-gallery-toggle .btn-count {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
}

.btn-gallery-toggle .btn-icon {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--accent-warm);
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.btn-gallery-toggle.expanded .btn-icon {
    transform: rotate(180deg);
}

.btn-gallery-toggle.expanded .btn-text::after {
    content: 'Sembunyikan';
}

.btn-gallery-toggle.expanded .btn-text {
    font-size: 0;
}

.btn-gallery-toggle.expanded .btn-text::after {
    font-size: 1rem;
}

.btn-gallery-toggle.expanded .btn-count {
    display: none;
}

/* ========== LIGHTBOX MODAL ========== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-smooth),
        visibility var(--duration-normal);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--duration-normal) var(--ease-out-expo),
        opacity var(--duration-normal);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    margin-top: 20px;
    text-align: center;
    opacity: 0.9;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out-back);
    z-index: 10;
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-nav:hover {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* ========== CONTACT SECTION ========== */
#contact-highlight {
    position: relative;
    background-color: #ffffff;
    scroll-margin-top: 0;
    padding-top: 140px;
    padding-bottom: 140px;
    z-index: 1;
    overflow: hidden;
}

#contact-highlight .container {
    position: relative;
    z-index: 2;
}

#contact-highlight .section-header h2 {
    color: var(--text-primary);
}

#contact-highlight .section-header p {
    color: var(--text-secondary);
}

.contact-highlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.05fr;
    gap: 0;
    border: 1px solid var(--border-medium);
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 60px 48px;
    box-shadow: none;
    transition: background var(--duration-fast);
    color: var(--text-primary);
}

.contact-card:first-child {
    border-right: 1px solid var(--border-medium);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-warm);
    border-radius: 14px;
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 28px;
    box-shadow: 0 4px 10px rgba(212, 93, 36, 0.15);
}

.contact-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-card p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    transition: all var(--duration-fast) var(--ease-smooth);
    cursor: pointer;
}

.social-btn i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.social-btn:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.social-btn.whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    background: rgba(37, 211, 102, 0.02);
}

.social-btn.instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    background: rgba(225, 48, 108, 0.02);
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: rgba(24, 119, 242, 0.02);
}

.social-btn.phone:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: rgba(212, 93, 36, 0.02);
}

/* Custom Google Maps Container */
.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(0.2) contrast(1.05);
    transition: filter var(--duration-normal) var(--ease-smooth);
}

.map-container:hover iframe {
    filter: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: #ffffff;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    border-radius: 14px;
    border: 1px solid var(--border-medium);
    transition: all var(--duration-fast) var(--ease-smooth);
    cursor: pointer;
    width: 100%;
}

.btn-outline:hover {
    background: var(--accent-warm);
    color: #ffffff;
    border-color: var(--accent-warm);
    box-shadow: 0 5px 15px rgba(212, 93, 36, 0.2);
}

/* ========== FOOTER ========== */
footer {
    padding: 60px 0 40px;
    background: var(--primary-navy);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-img-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity var(--duration-fast);
    margin-bottom: 8px;
}

.logo-img-footer:hover {
    opacity: 0.8;
}

.footer-bottom-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-wa {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast);
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

[data-reveal="fade"] {
    transform: translateY(0);
}

[data-reveal="slide-left"] {
    transform: translateX(-40px);
}

[data-reveal="slide-right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger delays for grid items */
.service-card[data-reveal]:nth-child(1) {
    transition-delay: 0s;
}

.service-card[data-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card[data-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

.gallery-item[data-reveal]:nth-child(1) {
    transition-delay: 0s;
}

.gallery-item[data-reveal]:nth-child(2) {
    transition-delay: 0.05s;
}

.gallery-item[data-reveal]:nth-child(3) {
    transition-delay: 0.1s;
}

.gallery-item[data-reveal]:nth-child(4) {
    transition-delay: 0.15s;
}

.gallery-item[data-reveal]:nth-child(5) {
    transition-delay: 0.2s;
}

.gallery-item[data-reveal]:nth-child(6) {
    transition-delay: 0.25s;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .pitch-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pitch-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .value-panel {
        height: 340px;
        padding: 30px;
    }

    .contact-highlight-grid {
        grid-template-columns: 1fr;
    }

    .contact-card:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-medium);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right var(--duration-normal) var(--ease-out-expo);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        color: var(--text-primary) !important; /* Force dark text on mobile menu white background */
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span {
        background: var(--text-primary) !important; /* Force hamburger bars to stay dark when menu is open */
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Mobile */
    .hero {
        padding-top: 72px;
        padding-bottom: 32px;
    }

    .hero-content {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .hero-content .subtitle {
        white-space: normal;
        letter-spacing: 1.5px;
        font-size: 0.72rem;
        overflow: visible;
        text-overflow: unset;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.8rem);
        line-height: 1.15;
    }

    .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Collage Mobile Tweak */
    .collage-container {
        padding-bottom: 30px;
        padding-right: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    .collage-sub {
        border-width: 3px;
    }

    /* Gallery Tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-item.display-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }

    /* Contact Mobile */
    .contact-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {

    /* DSP Tuning Dashboard Mobile Optimization */
    .dashboard-body {
        padding: 16px;
    }
    .dsp-sliders {
        gap: 4px;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item,
    .gallery-item.display-large {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 8.5vw, 2.2rem);
        line-height: 1.2;
    }

    .hero-content .subtitle {
        font-size: 0.68rem;
        letter-spacing: 1px;
        white-space: normal;
        overflow: visible;
    }

    .hero p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-header .label {
        letter-spacing: 1px;
        white-space: normal;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .contact-card {
        padding: 24px 16px;
    }
}

/* ========== MOBILE LIGHTBOX OPTIMIZATION ========== */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
    }

    .lightbox-content img {
        max-height: 60vh;
        border-radius: 8px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-caption {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    .lightbox-counter {
        font-size: 0.8rem;
    }

    /* Gallery button mobile */
    .btn-gallery-toggle {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .btn-gallery-toggle .btn-count {
        font-size: 0.75rem;
    }
}

/* ========== IMAGE PERFORMANCE OPTIMIZATION ========== */
@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* ========== BUTTON RIPPLE EFFECT ========== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== NAV ACTIVE STATE ========== */
.nav-links li a.active {
    color: var(--accent-warm) !important;
}

.nav-links li a.active::after {
    width: 100%;
}

/* ========== HERO PARALLAX ========== */
.hero::before {
    transform: translateY(var(--parallax-offset, 0));
}

/* ========== FLOATING ORBS ========== */
#floating-orbs {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 200vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    will-change: transform;
}

.orb-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
}

.orb-gold {
    background: radial-gradient(circle, rgba(201, 162, 39, 0.4) 0%, rgba(201, 162, 39, 0.1) 50%, transparent 70%);
}

.orb-navy {
    background: radial-gradient(circle, rgba(30, 58, 95, 0.35) 0%, rgba(30, 58, 95, 0.08) 50%, transparent 70%);
}

@media (max-width: 768px) {
    #floating-orbs {
        display: none !important;
    }
}

@media (pointer: coarse) {
    #floating-orbs {
        display: none !important;
    }
}
