/* ==========================================================================
   THEME VARIABLES & LUXURY BRANDING CUES (Porsche / BMW Inspired)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-white: #FFFFFF;
    --bg-alabaster: #F5F5F7;
    --bg-metallic: #EBEBEF;
    --text-dark: #0C0C0C;
    --text-gray: #4A4A4A;
    --text-muted: #8E8E93;
    
    --accent-red: #FF3B30; /* High-performance Brembo Red */
    --accent-red-glow: rgba(255, 59, 48, 0.15);
    
    /* Grid & Borders */
    --border-light: rgba(12, 12, 12, 0.08);
    --border-medium: rgba(12, 12, 12, 0.15);
    --border-dark: rgba(12, 12, 12, 0.8);
    
    /* Glassmorphism (Light Mode) */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(12, 12, 12, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.03);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Timing Curves (Accelerating/Decelerating transitions) */
    --transition-fast: 0.15s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-padding {
    padding: 10rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

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

.accent-red {
    color: var(--accent-red);
}

/* Subtle Speed Lines Overlay */
.speed-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background: 
        linear-gradient(rgba(12, 12, 12, 0.01) 1px, transparent 1px) 0 0 / 100% 40px,
        linear-gradient(90deg, rgba(12, 12, 12, 0.01) 1px, transparent 1px) 0 0 / 40px 100%;
    opacity: 0.4;
}

/* ==========================================================================
   REUSABLE DYNAMIC UI / GLASS CARDS
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px var(--glass-shadow);
    border-radius: 12px;
    padding: 3rem;
}

/* Sharp Technical Luxury Buttons */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0px; /* Sharp technical edge */
    transition: var(--transition-normal);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-fiverr {
    background-color: #1dbf73;
    color: #ffffff;
}

.btn-fiverr:hover {
    background-color: #159a5c;
    color: #ffffff;
    border-color: #159a5c;
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-normal);
}

/* Transparent top state: crisp white text & logo on dark hero video */
.navbar .logo {
    color: #FFFFFF;
}

.navbar .nav-links a:not(.btn) {
    color: #FFFFFF;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.navbar .nav-links a:not(.btn):hover {
    color: var(--accent-red);
    opacity: 1;
}

.navbar .hamburger span {
    background-color: #FFFFFF;
}

/* Scrolled state: dark luxury glass blur */
.navbar.scrolled {
    background: rgba(12, 12, 16, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar.scrolled .logo {
    color: #FFFFFF;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: #FFFFFF;
    opacity: 0.85;
}

.navbar.scrolled .nav-links a:not(.btn):hover {
    color: var(--accent-red);
    opacity: 1;
}

.navbar.scrolled .hamburger span {
    background-color: #FFFFFF;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flex logo wrapper to support SVG container */
.flex-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
    padding: 0;
    overflow: visible;
}

.logo-animation-container {
    width: 220px;
    height: 50px;
    display: block;
    overflow: visible;
    position: relative;
}

.logo-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Default resting states for the car logo elements */
.logo-car-group {
    transform-origin: 25px 36px;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.0);
    opacity: 1;
}

.taillight-trail {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    opacity: 0;
}

.drift-skid,
.drift-skid-accent {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
    transform-origin: center;
}

.smoke-particle {
    transform-origin: center;
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
}

/* Brand text styling & gorgeous light-beam-lit glows (default: hidden until car sweeps!) */
.brand-text-main tspan {
    opacity: 0; /* Hidden before drift starts! */
    display: inline-block;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Headlight continuous glow & overlay styles (default: hidden until car arrives!) */
.headlight-beam {
    opacity: 0; /* Hidden before drift starts! */
    transform-origin: 45px 34px;
    transform: rotate(0deg) scaleX(1.0);
    mix-blend-mode: screen; /* Physical light overlay blending */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.headlight-laser {
    opacity: 0; /* Hidden before drift starts! */
    transform-origin: 45px 34px;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 0 4px #00FFE0); /* Strong bright bulb glow */
    transition: opacity 0.3s ease;
}

/* DRIFT COMPLETE STATE - Headlights stay on & brand text remains illuminated! */
.logo.drift-complete .brand-text-main tspan {
    opacity: 1; /* Fully visible at rest! */
}

.logo.drift-complete .brand-text-main .char-k,
.logo.drift-complete .brand-text-main .char-u,
.logo.drift-complete .brand-text-main .char-z {
    filter: drop-shadow(0 0 5px rgba(0, 255, 224, 0.7)); /* Glowing Cyan matching headlight */
}

.logo.drift-complete .brand-text-main .char-o,
.logo.drift-complete .brand-text-main .char-e {
    filter: drop-shadow(0 0 5px rgba(255, 59, 48, 0.7)); /* Glowing Performance Red */
}

.logo.drift-complete .headlight-beam {
    opacity: 0.55; /* Continuous premium beam glow */
}

.logo.drift-complete .headlight-laser {
    opacity: 0.9; /* Bulb burns continuously bright */
}

/* Footer static car and text (fully loaded, no start animation to keep light) */
.footer-logo {
    display: inline-flex;
    align-items: center;
}
.footer-logo .logo-animation-container {
    width: 180px;
    height: 40px;
}
.static-car {
    transform: none !important;
    opacity: 1 !important;
}
.footer-logo .brand-text-main tspan,
.footer-logo .logo-text-group text tspan {
    opacity: 1 !important;
}

/* ACTIVE / ANIMATING STATES
   Triggered on page load via .animate-drift AND on hover */
.logo.animate-drift .logo-car-group,
.logo.is-drifting .logo-car-group {
    animation: driftCar 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo.animate-drift .taillight-trail,
.logo.is-drifting .taillight-trail {
    animation: taillightStreak 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo.animate-drift .drift-skid,
.logo.is-drifting .drift-skid {
    animation: revealSkid 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo.animate-drift .drift-skid-accent,
.logo.is-drifting .drift-skid-accent {
    animation: revealSkid 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo.animate-drift .smoke-particle.p1,
.logo.is-drifting .smoke-particle.p1 {
    animation: smokePuff1 1.4s ease-out forwards;
}

.logo.animate-drift .smoke-particle.p2,
.logo.is-drifting .smoke-particle.p2 {
    animation: smokePuff2 1.4s ease-out forwards;
}

.logo.animate-drift .smoke-particle.p3,
.logo.is-drifting .smoke-particle.p3 {
    animation: smokePuff3 1.4s ease-out forwards;
}

/* Letters fade and pop in sequence (tightly synchronized with car drift) */
.logo.animate-drift .brand-text-main .char-k,
.logo.is-drifting .brand-text-main .char-k {
    animation: textIgnite 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.logo.animate-drift .brand-text-main .char-u,
.logo.is-drifting .brand-text-main .char-u {
    animation: textIgnite 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}
.logo.animate-drift .brand-text-main .char-z,
.logo.is-drifting .brand-text-main .char-z {
    animation: textIgnite 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.54s forwards;
}
.logo.animate-drift .brand-text-main .char-o,
.logo.is-drifting .brand-text-main .char-o {
    animation: textIgnite 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.66s forwards;
}
.logo.animate-drift .brand-text-main .char-e,
.logo.is-drifting .brand-text-main .char-e {
    animation: textIgnite 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.78s forwards;
}

/* Backfire Exhaust pops */
.logo.animate-drift .exhaust-flame,
.logo.is-drifting .exhaust-flame,
.logo.animate-drift .exhaust-flame-core,
.logo.is-drifting .exhaust-flame-core {
    animation: exhaustBackfire 1.4s ease-out forwards;
}

/* Glowing Neon Underglow */
.logo.animate-drift .car-underglow,
.logo.is-drifting .car-underglow {
    animation: fadeUnderglow 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sweeping Cyan Headlights */
.logo.animate-drift .headlight-beam,
.logo.is-drifting .headlight-beam {
    animation: sweepHeadlight 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Wheel Spokes spin */
.w-back-group .wheel-spoke {
    transform-origin: 13px 38px;
}
.w-front-group .wheel-spoke {
    transform-origin: 37px 38px;
}
.logo.animate-drift .wheel-spoke,
.logo.is-drifting .wheel-spoke {
    animation: spinSpokes 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cinematic Chromatic Aberration Glitch */
.logo.animate-drift .logo-svg,
.logo.is-drifting .logo-svg {
    animation: logoGlitch 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tire Friction Sparks */
.logo.animate-drift .spark.sp1,
.logo.is-drifting .spark.sp1 {
    animation: sparkFly1 1.4s ease-out forwards;
}
.logo.animate-drift .spark.sp2,
.logo.is-drifting .spark.sp2 {
    animation: sparkFly2 1.4s ease-out forwards;
}
.logo.animate-drift .spark.sp3,
.logo.is-drifting .spark.sp3 {
    animation: sparkFly3 1.4s ease-out forwards;
}
.logo.animate-drift .spark.sp4,
.logo.is-drifting .spark.sp4 {
    animation: sparkFly4 1.4s ease-out forwards;
}
.logo.animate-drift .spark.sp5,
.logo.is-drifting .spark.sp5 {
    animation: sparkFly5 1.4s ease-out forwards;
}
.logo.animate-drift .spark.sp6,
.logo.is-drifting .spark.sp6 {
    animation: sparkFly6 1.4s ease-out forwards;
}

/* Aerodynamic Wind Streamlines */
.logo.animate-drift .wind-line,
.logo.is-drifting .wind-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: sweepWind 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.logo.animate-drift .wind-line.wl1, .logo.is-drifting .wind-line.wl1 { animation-delay: 0.05s; }
.logo.animate-drift .wind-line.wl2, .logo.is-drifting .wind-line.wl2 { animation-delay: 0.15s; }
.logo.animate-drift .wind-line.wl3, .logo.is-drifting .wind-line.wl3 { animation-delay: 0.1s; }

/* Exhaust Turbo Blow-Off Valve Steam */
.logo.animate-drift .exhaust-steam,
.logo.is-drifting .exhaust-steam {
    animation: popSteam 0.5s ease-out 0.75s forwards;
}

/* Headlight Sweeping Laser Ignite */
.logo.animate-drift .headlight-laser,
.logo.is-drifting .headlight-laser {
    animation: sweepLaser 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Keyframes definitions */
@keyframes driftCar {
    0% {
        transform: translate3d(-100px, -4px, 0) rotate(-15deg) scale(0.85);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    45% {
        transform: translate3d(-24px, 2px, 0) rotate(14deg) scale(1.0);
    }
    75% {
        transform: translate3d(3px, 0, 0) rotate(-2deg) scale(1.0);
    }
    90% {
        transform: translate3d(-1px, 0.5px, 0) rotate(0.5deg) scale(1.0);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1.0);
        opacity: 1;
    }
}

@keyframes taillightStreak {
    0% {
        stroke-dashoffset: 50;
        opacity: 0;
    }
    20% {
        opacity: 0.95;
        stroke-dashoffset: 15;
    }
    50% {
        stroke-dashoffset: -15;
        opacity: 0.5;
    }
    70% {
        stroke-dashoffset: -50;
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes revealSkid {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    55% {
        stroke-dashoffset: 0;
        opacity: 0.7;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes smokePuff1 {
    0%, 30% {
        transform: translate3d(0, 0, 0) scale(0.5);
        opacity: 0;
    }
    45% {
        transform: translate3d(-12px, -3px, 0) scale(1.8);
        opacity: 0.5;
    }
    70% {
        transform: translate3d(-22px, -6px, 0) scale(2.4);
        opacity: 0;
    }
    100% {
        transform: translate3d(-22px, -6px, 0) scale(2.4);
        opacity: 0;
    }
}

@keyframes smokePuff2 {
    0%, 35% {
        transform: translate3d(0, 0, 0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate3d(-14px, -1px, 0) scale(2.0);
        opacity: 0.45;
    }
    75% {
        transform: translate3d(-26px, -2px, 0) scale(2.6);
        opacity: 0;
    }
    100% {
        transform: translate3d(-26px, -2px, 0) scale(2.6);
        opacity: 0;
    }
}

@keyframes smokePuff3 {
    0%, 40% {
        transform: translate3d(0, 0, 0) scale(0.4);
        opacity: 0;
    }
    55% {
        transform: translate3d(-10px, -4px, 0) scale(1.6);
        opacity: 0.35;
    }
    75% {
        transform: translate3d(-18px, -8px, 0) scale(2.0);
        opacity: 0;
    }
    100% {
        transform: translate3d(-18px, -8px, 0) scale(2.0);
        opacity: 0;
    }
}

@keyframes textIgnite {
    0% {
        opacity: 0.05;
        fill-opacity: 0.05;
        transform: scale(1.25) translate3d(0, -3px, 0);
        filter: drop-shadow(0 0 0px rgba(0, 255, 224, 0));
    }
    40% {
        opacity: 1;
        fill-opacity: 1;
        transform: scale(0.95) translate3d(0, 1px, 0);
        filter: drop-shadow(0 0 10px currentColor);
    }
    100% {
        opacity: 1;
        fill-opacity: 1;
        transform: scale(1.0) translate3d(0, 0, 0);
    }
}

@keyframes exhaustBackfire {
    0%, 22%, 65%, 100% {
        opacity: 0;
        transform: scale(0.5) translate3d(2px, 0, 0);
    }
    28%, 38%, 48%, 58% {
        opacity: 1;
        transform: scale(1.5) translate3d(0, 0, 0);
    }
    33%, 43%, 53% {
        opacity: 0.7;
        transform: scale(1.0) translate3d(1px, 0, 0);
    }
}

@keyframes fadeUnderglow {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    45% {
        opacity: 1;
    }
    75% {
        opacity: 0.75;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes sweepHeadlight {
    0% {
        opacity: 0;
        transform: rotate(-12deg) scaleX(0.4);
    }
    20% {
        opacity: 0.95;
        transform: rotate(-6deg) scaleX(0.8);
    }
    45% {
        opacity: 1;
        transform: rotate(10deg) scaleX(1.1);
    }
    70% {
        opacity: 0.35;
        transform: rotate(2deg) scaleX(0.95);
    }
    100% {
        opacity: 0.55;
        transform: rotate(0deg) scaleX(1.0);
    }
}

@keyframes spinSpokes {
    0% {
        transform: rotate(0deg);
    }
    15% {
        transform: rotate(-360deg);
    }
    40% {
        transform: rotate(-1080deg);
    }
    70% {
        transform: rotate(-1440deg);
    }
    85% {
        transform: rotate(-1500deg);
    }
    100% {
        transform: rotate(-1500deg);
    }
}

@keyframes logoGlitch {
    0%, 52%, 62%, 100% {
        filter: none;
        transform: translate3d(0, 0, 0);
    }
    54% {
        filter: drop-shadow(-1.5px 0.5px 0px rgba(0, 255, 224, 0.75)) drop-shadow(1.5px -0.5px 0px rgba(255, 59, 48, 0.75));
        transform: translate3d(-1px, 0.5px, 0);
    }
    56% {
        filter: drop-shadow(1.5px -1px 0px rgba(0, 255, 224, 0.8)) drop-shadow(-1.5px 1px 0px rgba(255, 59, 48, 0.8));
        transform: translate3d(1px, -0.5px, 0);
    }
    58% {
        filter: drop-shadow(-0.5px -0.5px 0px rgba(0, 255, 224, 0.5)) drop-shadow(0.5px 0.5px 0px rgba(255, 59, 48, 0.5));
        transform: translate3d(-0.5px, 0px, 0);
    }
}

@keyframes sparkFly1 {
    0%, 25% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    35% { opacity: 1; }
    60% { transform: translate3d(-35px, -6px, 0) scale(1.6); opacity: 0.8; }
    80% { transform: translate3d(-55px, -10px, 0) scale(0.8); opacity: 0; }
    100% { transform: translate3d(-55px, -10px, 0) scale(0); opacity: 0; }
}
@keyframes sparkFly2 {
    0%, 28% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    38% { opacity: 1; }
    65% { transform: translate3d(-40px, -2px, 0) scale(1.8); opacity: 0.9; }
    85% { transform: translate3d(-65px, -3px, 0) scale(0.6); opacity: 0; }
    100% { transform: translate3d(-65px, -3px, 0) scale(0); opacity: 0; }
}
@keyframes sparkFly3 {
    0%, 32% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    42% { opacity: 1; }
    62% { transform: translate3d(-30px, -8px, 0) scale(1.4); opacity: 0.7; }
    80% { transform: translate3d(-50px, -12px, 0) scale(0.5); opacity: 0; }
    100% { transform: translate3d(-50px, -12px, 0) scale(0); opacity: 0; }
}
@keyframes sparkFly4 {
    0%, 35% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    45% { opacity: 1; }
    70% { transform: translate3d(-25px, -5px, 0) scale(1.5); opacity: 0.85; }
    90% { transform: translate3d(-45px, -8px, 0) scale(0.6); opacity: 0; }
    100% { transform: translate3d(-45px, -8px, 0) scale(0); opacity: 0; }
}
@keyframes sparkFly5 {
    0%, 38% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    48% { opacity: 1; }
    72% { transform: translate3d(-28px, -1px, 0) scale(1.7); opacity: 0.9; }
    92% { transform: translate3d(-48px, -2px, 0) scale(0.7); opacity: 0; }
    100% { transform: translate3d(-48px, -2px, 0) scale(0); opacity: 0; }
}
@keyframes sparkFly6 {
    0%, 42% { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
    52% { opacity: 1; }
    75% { transform: translate3d(-22px, -6px, 0) scale(1.3); opacity: 0.75; }
    92% { transform: translate3d(-38px, -9px, 0) scale(0.5); opacity: 0; }
    100% { transform: translate3d(-38px, -9px, 0) scale(0); opacity: 0; }
}

@keyframes sweepWind {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    15% {
        opacity: 0.65;
    }
    45% {
        stroke-dashoffset: 0;
        opacity: 0.45;
    }
    75% {
        opacity: 0;
    }
    100% {
        stroke-dashoffset: -100;
        opacity: 0;
    }
}

@keyframes popSteam {
    0% {
        stroke-dasharray: 30;
        stroke-dashoffset: 30;
        opacity: 0;
        transform: translate3d(0, 0, 0) scaleY(0.5);
    }
    25% {
        opacity: 0.8;
        stroke-dashoffset: 10;
        transform: translate3d(-12px, 1px, 0) scaleY(1.2);
    }
    100% {
        stroke-dashoffset: -30;
        opacity: 0;
        transform: translate3d(-26px, 2px, 0) scaleY(1.5);
    }
}

@keyframes sweepLaser {
    0% {
        opacity: 0;
        filter: drop-shadow(0 0 0px rgba(0, 255, 224, 0));
    }
    25% {
        opacity: 0.3;
    }
    45% {
        opacity: 1;
        filter: drop-shadow(0 0 8px #00FFE0);
    }
    70% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 4px #00FFE0);
    }
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    opacity: 1 !important;
    color: var(--accent-red) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO / FULL-SCREEN CINEMATIC BG
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
}

.hero-3d-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background: radial-gradient(circle, #ffffff 0%, #f4f4f7 100%);
}

#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000; /* Ensure particles draw above everything */
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.0) 30%,
        rgba(255,255,255,0.0) 70%,
        rgba(255,255,255,0.95) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Luxury Glassmorphic Showroom Loader */
.hero-3d-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-3d-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(12, 12, 12, 0.05);
    border-top: 2px solid var(--accent-red);
    border-radius: 50%;
    animation: loader-spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: none;
}

.loader-text {
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--text-dark);
    opacity: 0.85;
}

.loader-percent {
    margin-top: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-red);
    text-shadow: none;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
    max-width: 950px;
    padding-top: 5rem;
}

.hero-category-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--accent-red);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.outlined-text {
    color: transparent;
    -webkit-text-stroke: 2px #FFFFFF;
}

.hero-subheadline {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.hero .btn-dark {
    background-color: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
    box-shadow: 0 0 25px rgba(255, 59, 48, 0.5);
}

.hero .btn-dark:hover {
    background-color: #e02f25;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(255, 59, 48, 0.8);
    transform: translateY(-2px);
}

.hero .btn-outline {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
    background-color: #ffffff !important;
    color: #0c0c0c !important;
    border-color: #ffffff !important;
}

.speedometer-accent {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(12, 12, 12, 0.06);
    background: radial-gradient(circle, rgba(0, 255, 224, 0.02) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(12, 12, 12, 0.02);
}

.speedometer-accent .dial {
    width: 90%;
    height: 90%;
    border: 2px dashed rgba(12, 12, 12, 0.06);
    border-radius: 50%;
    opacity: 0.7;
}

.speedometer-accent .needle {
    position: absolute;
    width: 80px;
    height: 2px;
    background: var(--accent-red);
    transform-origin: left center;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px var(--accent-red);
    left: 50%;
    top: 50%;
    margin-top: -1px; /* Centers needle exactly */
    z-index: 3;
}

.speedo-hub {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    z-index: 4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.speedo-telemetry {
    position: absolute;
    bottom: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: bold;
    color: rgba(12, 12, 12, 0.6);
    z-index: 5;
    text-shadow: none;
}

.speedo-rpm {
    color: var(--text-dark);
    text-shadow: none;
}

.speedo-boost {
    margin-top: 2px;
    color: var(--accent-red);
    text-shadow: none;
}


/* ==========================================================================
   THREE.JS 3D GLB CAR FOOTER
   ========================================================================== */
#footer-3d-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #08080A;
    min-height: 500px;
}

#footer-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.footer-3d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.5) 60%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 3rem 1.5rem 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #ffffff;
    display: inline-block;
}

/* ==========================================================================
   ABOUT / STORY SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    width: 100%;
}

.luxury-frame {
    aspect-ratio: 4/3;
    border: 1px solid var(--border-light);
    background-color: #ffffff; /* Pure white background for flawless multiply blend! */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.luxury-frame::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 59, 48, 0.05) 50%, transparent 60%);
    animation: metallicShine 10s linear infinite;
    z-index: 3;
    pointer-events: none;
}

.about-car-img {
    width: 95%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background instantly for transparency! */
    transition: var(--transition-normal);
    z-index: 2;
}

.luxury-frame:hover .about-car-img {
    transform: scale(1.06);
}

@keyframes metallicShine {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

.car-skeleton {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--border-medium);
}

.visual-label {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.section-tag {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-info p:not(.lead-text) {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
}

.stat-plus {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ==========================================================================
   SHOWREEL VIDEO PLAYER
   ========================================================================== */

/* Cinematic Showreel Banner Image */
.showreel-banner {
    margin-top: 4rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-light);
    aspect-ratio: 16/7;
}

.showreel-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: brightness(0.9) contrast(1.05);
}

.showreel-banner:hover .showreel-banner-img {
    transform: scale(1.04);
    filter: brightness(1) contrast(1.1);
}

.showreel-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(0deg, rgba(12, 12, 12, 0.75) 0%, rgba(12, 12, 12, 0.2) 60%, transparent 100%);
    pointer-events: none;
}

.showreel-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 59, 48, 0.85);
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
}

.showreel-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-alabaster);
    border: 1px solid var(--border-light);
}

.video-window {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-window iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* ==========================================================================
   PORTFOLIO GALLERY (VIDEO HOVER PREVIEWS)
   ========================================================================== */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.tab-btn.active::after {
    width: 80%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.project-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 1rem;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(12, 12, 12, 0.05);
    border-color: var(--border-medium);
}

.project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #000;
}

/* Center Play Button on Project Cards */
.project-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 54px;
    height: 54px;
    background: rgba(12, 12, 14, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpolygon points='8 5 19 12 8 19 8 5'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 20px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.project-card:hover .project-media::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 25px rgba(255, 59, 48, 0.8);
}

.media-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-normal);
}

.project-card:hover .media-placeholder {
    transform: scale(1.05);
}

.project-card {
    cursor: pointer;
}

.hover-play-indicator {
    position: absolute;
    bottom: 1rem; right: 1rem;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    letter-spacing: 0.15em;
    background-color: rgba(12,12,12,0.85);
    color: var(--bg-white);
    padding: 0.4rem 0.8rem;
    pointer-events: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card:hover .hover-play-indicator {
    background-color: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.6);
}

.project-info {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.project-card .project-tag {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    text-transform: uppercase;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Inline Direct Video Player */
.project-card.is-playing {
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(255, 59, 48, 0.25);
}

.project-card.is-playing .project-media::after {
    display: none !important;
}

.project-card.is-playing .hover-play-indicator {
    display: none !important;
}

.inline-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 5;
    background: #000;
}

.inline-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.inline-close-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.1);
}

/* Showreel Banner Inline Player */
.showreel-banner.is-playing .showreel-banner-overlay {
    display: none !important;
}
.showreel-banner .inline-video-iframe {
    z-index: 10;
}
.showreel-banner .inline-close-btn {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
}

/* ==========================================================================
   DRAGGABLE BEFORE & AFTER SLIDER
   ========================================================================== */
.slider-wrapper {
    margin-top: 5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--border-medium);
}

.comparison-slider .image-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

.after-image {
    z-index: 10;
}

.before-image {
    z-index: 20;
    width: 100%; /* Force full width so it never shifts/squeezes! */
    clip-path: inset(0 50% 0 0); /* Clipped dynamically by JS */
}

.image-label {
    position: absolute;
    bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--bg-white);
    background: rgba(12,12,12,0.8);
    padding: 0.5rem 1rem;
    pointer-events: none;
    z-index: 30;
}

.label-before {
    left: 2rem;
}

.label-after {
    right: 2rem;
}

/* Draggable handlebar styling */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Position controlled by JS */
    width: 4px;
    height: 100%;
    background-color: var(--bg-white);
    transform: translateX(-50%);
    z-index: 40;
    cursor: ew-resize;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.handle-line {
    width: 1px;
    height: calc(50% - 25px);
    background-color: rgba(255,255,255,0.5);
}

.handle-button {
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: bold;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.service-card {
    position: relative;
    overflow: hidden; /* Contain the floating car strictly inside the card boundaries */
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    padding: 4rem 3rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.service-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 30px 60px rgba(12, 12, 12, 0.08);
}

.service-hover-image-container {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 180px; /* Sized perfectly to sit in the card corner */
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7) rotate(6deg);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.service-card:hover .service-hover-image-container {
    opacity: 0.95; /* Highly visible, solid generated car! */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12)); /* Soft, elegant shadow */
}

.service-hover-car {
    width: 100%;
    height: auto;
    /* mix-blend-mode removed so the background-removed PNG remains crisp and solid! */
}

.service-icon,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: translate3d(0, 0, 45px); /* Lift icon in 3D perspective space! */
}

.service-card:hover h3 {
    transform: translate3d(0, 0, 25px); /* Lift heading in 3D perspective space! */
}

.service-card:hover p {
    transform: translate3d(0, 0, 15px); /* Lift paragraph in 3D perspective space! */
}

.service-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 85%; /* Constrain width to leave space for floating car */
    line-height: 1.6;
}

/* ==========================================================================
   CLIENT REVIEWS / TESTIMONIALS
   ========================================================================== */
.reviews-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
}

.review-card {
    border-left: 2px solid var(--border-dark);
    padding: 1.5rem 0 1.5rem 3rem;
}

.review-rating {
    color: var(--accent-red);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.review-body {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.review-author h4 {
    font-size: 1rem;
    text-transform: uppercase;
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-white);
    z-index: 1;
}

#contact-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    background: rgba(255, 255, 255, 0.82); /* Luxury semi-transparent glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 80px rgba(12, 12, 12, 0.06);
    padding: 6rem;
    position: relative;
    z-index: 1; /* Elevate card above background 3D canvas */
}

.contact-text h2 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.contact-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--text-dark);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
    padding: 4rem 0;
    background-color: var(--text-dark);
    color: var(--bg-white);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-left p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.footer-right p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==========================================================================
   ANIMATION & SCROLL EFFECTS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0);
}

/* Staggered Heading Character Reveal Mask */
.reveal-char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.reveal-char {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
}

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

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .container { padding: 0 2rem; }
    .about-grid, .contact-box { gap: 4rem; }
}

@media (max-width: 992px) {
    .section-padding { padding: 7rem 0; }
    .about-grid, .services-grid, .reviews-slider, .contact-box {
        grid-template-columns: 1fr;
    }
    .about-visual { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .section-padding { padding: 5rem 0; }
    
    .navbar { padding: 1rem 0; }
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background-color: #0c0c0e;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links a {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.1em;
    }
    .nav-links a:hover {
        color: var(--accent-red);
    }
    
    .hamburger { 
        display: flex; 
        z-index: 1001;
    }
    
    /* Toggle active hamburger bars */
    .nav-links.active ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translateY(6px); background: #fff; }
    .nav-links.active ~ .hamburger span:nth-child(2) { opacity: 0; }
    .nav-links.active ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translateY(-6px); background: #fff; }

    .hero-title { font-size: 2.8rem; line-height: 1.1; }
    .hero-subheadline { font-size: 1rem; }
    .speedometer-accent { display: none; } /* Clean HUD for mobile viewports */

    .portfolio-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .tab-btn {
        font-size: 0.72rem;
        padding: 0.4rem 0.65rem;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.04);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .project-card {
        padding: 0.75rem;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .form-row { grid-template-columns: 1fr; }
    .contact-box { padding: 2rem 1.5rem; }
    
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.3rem; }
    .portfolio-tabs { gap: 0.35rem; }
    .tab-btn { font-size: 0.65rem; padding: 0.35rem 0.5rem; }
    .btn { padding: 1rem 1.75rem; font-size: 0.8rem; }
}

/* Hero CTA Outline Button override on White Background */
.hero-content .btn-outline {
    color: var(--text-dark) !important;
    border: 1px solid rgba(12, 12, 12, 0.25) !important;
}
.hero-content .btn-outline:hover {
    background-color: var(--text-dark) !important;
    color: var(--bg-white) !important;
    border-color: var(--text-dark) !important;
}

/* ==========================================================================
   CINEMATIC STREAMING VIDEO LIGHTBOX MODAL
   ========================================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.video-modal-container {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1020px;
    background: #0d0d10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 59, 48, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, color 0.2s;
    z-index: 3;
}

.video-modal-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    transform: scale(1.1);
}

.video-modal-header {
    margin-bottom: 1rem;
    padding-right: 3.5rem;
}

.video-modal-tag {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    text-transform: uppercase;
}

.video-modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.35rem;
}

.video-modal-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-iframe,
.video-modal-video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    background: #000;
}

.video-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.25rem;
}

.video-drive-link {
    font-size: 0.8rem;
    padding: 0.65rem 1.3rem;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.video-drive-link:hover {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}
