/**
 * (주)시원오토파츠 - Minimalist High-Impact Ignition Splash Suite (css/splash.css)
 * Concept: Luxury Automotive Dark-Studio Laser Silhouette Sweep & DRL Headlight Ignition
 * 1. Act 1 (0.0s - 1.1s): Razor-sharp aerodynamic laser silhouette trace
 * 2. Act 2 (0.5s - 1.4s): Matrix DRL Headlight & OLED Taillight Anamorphic Ignition Burst
 * 3. Act 3 (Continuous): Clean concentric alloy wheel spin & horizon reflection aura
 */

/* Splash Screen Container & Cinematic Zoom-Dissolve Exit */
#splash-screen {
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
    will-change: opacity, transform;
}

#splash-screen.splash-exit {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(1.035) !important;
    pointer-events: none !important;
}

/* 1. Act 1: Laser Silhouette Line-Draw Sweep + Breathing Neon Aura */
@keyframes silhouetteLaserDraw {
    0% {
        stroke-dashoffset: 1850;
        fill-opacity: 0;
        filter: drop-shadow(0 0 18px rgba(0, 240, 255, 1));
    }
    60% {
        stroke-dashoffset: 0;
        fill-opacity: 0.35;
        filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 32px rgba(56, 189, 248, 0.6));
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 0.78;
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 24px rgba(37, 99, 235, 0.5));
    }
}

@keyframes carNeonBreathe {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 24px rgba(37, 99, 235, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(0, 240, 255, 1)) drop-shadow(0 0 36px rgba(56, 189, 248, 0.75));
    }
}

.car-body-laser {
    stroke-dasharray: 1850;
    stroke-dashoffset: 0;
    animation:
        silhouetteLaserDraw 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        carNeonBreathe 2.6s ease-in-out 1.15s infinite;
    will-change: stroke-dashoffset, filter;
}

/* Cabin Glass & Character Line Delayed Sweep */
@keyframes detailLineDraw {
    0% {
        stroke-dashoffset: 900;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.car-window-laser {
    stroke-dasharray: 900;
    stroke-dashoffset: 0;
    animation: detailLineDraw 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes characterLineDraw {
    0% {
        stroke-dashoffset: 700;
        opacity: 0;
    }
    30% {
        opacity: 0.85;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.85;
    }
}

.car-character-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 0;
    opacity: 0.85;
    animation: characterLineDraw 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

@keyframes aeroStreamlineFlow {
    0% {
        stroke-dashoffset: 160;
        opacity: 0;
    }
    35% {
        opacity: 0.72;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.45;
    }
}

.car-aero-streamline {
    stroke-dasharray: 10 6;
    stroke-dashoffset: 0;
    opacity: 0.45;
    animation: aeroStreamlineFlow 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* 2. Act 2: High-Impact DRL Headlight & Anamorphic Lens Flare Ignition Burst */
@keyframes drlIgnitionFlash {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    45% {
        opacity: 1;
        transform: scale(1.18);
        filter: drop-shadow(0 0 24px #FFFFFF) drop-shadow(0 0 42px #00F0FF);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 12px #00F0FF) drop-shadow(0 0 24px #38BDF8);
    }
}

.car-light-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: drlIgnitionFlash 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

@keyframes taillightIgnitionFlash {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    45% {
        opacity: 1;
        transform: scale(1.18);
        filter: drop-shadow(0 0 18px #FCA5A5) drop-shadow(0 0 32px #EF4444);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 12px #EF4444) drop-shadow(0 0 24px #DC2626);
    }
}

.car-taillight-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: taillightIgnitionFlash 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

/* Horizontal Anamorphic Optical Streak Burst (The "Supercar Wakeup" Impact) */
@keyframes anamorphicStreakBurst {
    0% {
        opacity: 0;
        transform: scaleX(0.05) scaleY(0.5);
    }
    40% {
        opacity: 1;
        transform: scaleX(1.35) scaleY(1.4);
        filter: drop-shadow(0 0 18px #FFFFFF) drop-shadow(0 0 36px #00F0FF);
    }
    100% {
        opacity: 0.92;
        transform: scaleX(1) scaleY(1);
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.9));
    }
}

@keyframes anamorphicShimmer {
    0%, 100% {
        opacity: 0.92;
        transform: scaleX(1) scaleY(1);
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.9));
    }
    50% {
        opacity: 1;
        transform: scaleX(1.12) scaleY(1);
        filter: drop-shadow(0 0 14px rgba(0, 240, 255, 1));
    }
}

.anamorphic-flare {
    transform-box: fill-box;
    transform-origin: center;
    animation:
        anamorphicStreakBurst 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both,
        anamorphicShimmer 2.0s ease-in-out 1.42s infinite;
    will-change: transform, opacity;
}

/* Headlight Projection Cone & Taillight Wash Ignition */
@keyframes beamProjectionIgnite {
    0% {
        opacity: 0;
        transform: scaleX(0.2);
    }
    55% {
        opacity: 1;
        transform: scaleX(1.04);
    }
    100% {
        opacity: 0.9;
        transform: scaleX(1);
    }
}

.car-beam-fade {
    transform-box: fill-box;
    transform-origin: right center;
    animation: beamProjectionIgnite 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.car-taillight-fade {
    transform-box: fill-box;
    transform-origin: left center;
    animation: beamProjectionIgnite 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

/* 3. Act 3: Concentric Alloy Wheel Spin & Horizon Reflection */
@keyframes wheelSpinForward {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.car-wheel-front .wheel-spokes,
.wheel-spokes-front,
.car-wheel-rear .wheel-spokes,
.wheel-spokes-rear {
    transform-box: view-box;
    transform-origin: 0px 0px;
    animation: wheelSpinForward 0.85s linear infinite;
    will-change: transform;
}

@keyframes horizonGlowIgnite {
    0% {
        opacity: 0;
        transform: scaleX(0.3);
    }
    100% {
        opacity: 0.85;
        transform: scaleX(1);
    }
}

.car-ground-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: horizonGlowIgnite 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* 4. Crisp Staggered Brand & Progress Reveal */
@keyframes splashStaggerUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-brand-reveal {
    animation: splashStaggerUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.splash-slogan-reveal {
    animation: splashStaggerUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards;
}

/* 5. Sleek Razor-Thin Laser Progress Bar (White Studio Showroom Edition) */
.splash-progress-track {
    height: 6px;
    background: #E2E8F0;
    border: 1px solid rgba(37, 99, 235, 0.28);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    position: relative;
    overflow: visible;
}

.splash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #0284c7 100%);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.55), 0 0 20px rgba(2, 132, 199, 0.35);
    border-radius: 9999px;
    position: relative;
    min-width: 0;
}

.splash-laser-tip {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #2563EB;
    border-radius: 9999px;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #2563EB, 0 0 24px #38bdf8;
    pointer-events: none;
    display: none;
}

html[data-motion="reduced"] .car-body-laser,
html[data-motion="reduced"] .car-window-laser,
html[data-motion="reduced"] .car-character-line,
html[data-motion="reduced"] .car-aero-streamline,
html[data-motion="reduced"] .car-light-pulse,
html[data-motion="reduced"] .car-taillight-pulse,
html[data-motion="reduced"] .anamorphic-flare,
html[data-motion="reduced"] .car-beam-fade,
html[data-motion="reduced"] .car-taillight-fade,
html[data-motion="reduced"] .car-wheel-front .wheel-spokes,
html[data-motion="reduced"] .wheel-spokes-front,
html[data-motion="reduced"] .car-wheel-rear .wheel-spokes,
html[data-motion="reduced"] .wheel-spokes-rear,
html[data-motion="reduced"] .car-ground-pulse,
html[data-motion="reduced"] .splash-brand-reveal,
html[data-motion="reduced"] .splash-slogan-reveal {
    animation: none !important;
}



