/* Custom global styles for Velocity Premium Luxury Automotive Theme */

:root {
    --brand-red: #cc0000;
    --brand-red-hover: #b30000;
    --brand-black: #050505;
    --brand-dark-gray: #121212;
    --brand-light-gray: #1a1a1a;
    --brand-white: #ffffff;
    --glow-red: rgba(204, 0, 0, 0.4);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--brand-black);
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Base Body settings */
body {
    background-color: var(--brand-black);
    color: var(--brand-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Utility Animations */
.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-red);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Glow Button Style */
.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}
.btn-glow:hover::before {
    transform: translate(-50%, -50%) scale(1);
}
.btn-glow:hover {
    box-shadow: 0 0 20px var(--glow-red);
    border-color: var(--brand-red);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
    background: rgba(25, 25, 25, 0.85);
    border-color: rgba(204, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--glow-red);
    transform: translateY(-4px);
}

/* Luxury card text shadow */
.text-shadow-premium {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* Header Text Shadow */
.title-shadow {
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Active Link State */
.active-nav-link {
    color: var(--brand-white) !important;
}
.active-nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-red);
}

/* Interactive Configurator paint options */
.paint-option {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.paint-option.selected {
    transform: scale(1.15);
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 15px var(--glow-red);
}

/* 🏎️ Live Racetrack Motion & Speed Effect Animations */
.hero-image-animate {
    transform: scale(1.06);
    animation: trackingCamera 8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

@keyframes trackingCamera {
    0% { transform: scale(1.06) translate(0, 0) rotate(0deg); }
    10% { transform: scale(1.06) translate(-1px, 0.5px) rotate(-0.1deg); }
    20% { transform: scale(1.07) translate(1px, -0.5px) rotate(0.1deg); }
    30% { transform: scale(1.06) translate(-0.5px, -1px) rotate(-0.05deg); }
    40% { transform: scale(1.07) translate(0.5px, 1px) rotate(0.05deg); }
    50% { transform: scale(1.08) translate(-1.5px, -0.5px) rotate(-0.1deg); }
    60% { transform: scale(1.07) translate(1px, 1px) rotate(0.1deg); }
    70% { transform: scale(1.06) translate(-0.5px, -1px) rotate(-0.05deg); }
    80% { transform: scale(1.07) translate(1.5px, -0.5px) rotate(0.08deg); }
    90% { transform: scale(1.06) translate(-1px, 1px) rotate(-0.08deg); }
    100% { transform: scale(1.06) translate(0, 0) rotate(0deg); }
}

/* Speed Lines Overlay */
.speed-lines-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    width: 250px;
    left: -250px;
    animation: speedLineFlow 0.5s linear infinite;
}

/* Individual line positions and timings to make it organic */
.sl-1 { top: 15%; animation-delay: 0.1s; animation-duration: 0.35s; }
.sl-2 { top: 35%; animation-delay: 0.3s; animation-duration: 0.4s; }
.sl-3 { top: 55%; animation-delay: 0s; animation-duration: 0.3s; }
.sl-4 { top: 75%; animation-delay: 0.2s; animation-duration: 0.45s; }
.sl-5 { top: 90%; animation-delay: 0.05s; animation-duration: 0.32s; }

@keyframes speedLineFlow {
    0% { left: -250px; }
    100% { left: 100%; }
}

/* Dynamic Drifting Smoke Overlay */
.drift-smoke-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
}

.drift-smoke-overlay {
    position: absolute;
    bottom: 12%;
    left: 8%;
    width: 450px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    filter: blur(16px);
    animation: driftSmokeMove 6s ease-in-out infinite;
}

.ds-2 {
    bottom: 15%;
    left: 25%;
    width: 350px;
    height: 250px;
    animation-delay: 2s;
    animation-duration: 7s;
}

@keyframes driftSmokeMove {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.25) translate(-30px, -15px); opacity: 0.85; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
}

