/* ===== INTRO PAGE - Hummer + smoke ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; overflow:hidden; background:#000; font-family:'Rajdhani', sans-serif; }

.intro-body {
    background:
        radial-gradient(ellipse at center bottom, #1f0610 0%, #050505 60%),
        #000;
    color: #fff;
    position: relative;
    width: 100vw; height: 100vh;
    overflow: hidden;
}

.intro-body::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.5; pointer-events: none;
}

.intro-stage {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}

.intro-lang {
    position: absolute; top: 24px; right: 24px; z-index: 10;
    display: flex; align-items: center; gap: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; letter-spacing: 1px;
    color: #fff;
}
.intro-lang a {
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    transition: color .2s;
    opacity: 0.6;
}
.intro-lang a.on, .intro-lang a:hover { color: #ff1a3c; opacity: 1; }

.intro-logo {
    position: absolute;
    top: 8%;
    text-align: center;
    z-index: 5;
    animation: introFadeDown 1.2s ease both;
}
.logo-text {
    display: flex;
    gap: 18px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 7vw, 72px);
    letter-spacing: 4px;
    line-height: 1;
}
.logo-w { color: #fff; }
.logo-r { color: #ff1a3c; text-shadow: 0 0 30px rgba(255,26,60,0.5); }
.logo-v { color: #fff; }
.logo-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 12px;
    opacity: 0.95;
}

/* Road */
.intro-road {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22%;
    background: linear-gradient(180deg, transparent 0%, #0a0a0a 30%, #050505 100%);
    overflow: hidden;
}
.road-line {
    position: absolute;
    bottom: 22%; left: 0; right: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, #ff1a3c 0, #ff1a3c 50px, transparent 50px, transparent 100px);
    animation: roadScroll 0.6s linear infinite;
}
@keyframes roadScroll {
    from { background-position: 0 0; }
    to { background-position: -100px 0; }
}

.intro-particles {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    from { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    to { transform: translateY(-10vh); opacity: 0; }
}

/* Hummer image */
.car-wrap {
    position: relative;
    width: min(85vw, 760px);
    z-index: 4;
    margin-top: 6%;
    animation: carEntry 1.6s cubic-bezier(.2,.7,.2,1) both;
    transition: transform 1.6s cubic-bezier(.55, .05, .25, 1), opacity 1.2s ease;
}
.car-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.7))
            drop-shadow(0 0 60px rgba(255,26,60,0.15));
    animation: carIdle 4s ease-in-out infinite;
    transform-origin: center;
}
.car-shadow {
    position: absolute;
    left: 6%; right: 6%;
    bottom: 4%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    animation: shadowPulse 4s ease-in-out infinite;
}
@keyframes carEntry {
    from { transform: translateX(-120%) scale(0.95); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes carIdle {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes shadowPulse {
    0%,100% { opacity: 0.8; transform: scaleX(1); }
    50% { opacity: 0.6; transform: scaleX(0.9); }
}

/* SMOKE */
.smoke-wrap {
    position: absolute;
    left: 0; bottom: 18%;
    width: 200px; height: 80px;
    z-index: -2;
    opacity: 0;
    pointer-events: none;
}
.smoke {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(220,220,220,0.7) 0%, rgba(180,180,180,0.4) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0;
}

/* Driving state - hummer leaves with smoke */
.intro-stage.driving .car-wrap {
    animation: carDriveOff 1.8s cubic-bezier(.45,.05,.6,.95) .35s forwards;
}
@keyframes carDriveOff {
    0%   { transform: translateX(0) scale(1); opacity: 1; }
    20%  { transform: translateX(40px) scale(1.02); }
    100% { transform: translateX(180%) scale(0.85); opacity: 0.9; }
}
.intro-stage.driving .car-image {
    animation: carShake .12s ease-in-out 8;
}
@keyframes carShake {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.intro-stage.driving .smoke-wrap {
    opacity: 1;
    animation: smokeAppear 0s 0.2s forwards;
}
@keyframes smokeAppear { to { opacity: 1; } }

.intro-stage.driving .smoke {
    animation: smokePuff 1.8s cubic-bezier(.2,.6,.4,1) forwards;
}
.intro-stage.driving .smoke.s1 { animation-delay: 0s;    left: 30px; }
.intro-stage.driving .smoke.s2 { animation-delay: 0.1s;  left: 50px; }
.intro-stage.driving .smoke.s3 { animation-delay: 0.2s;  left: 20px; }
.intro-stage.driving .smoke.s4 { animation-delay: 0.3s;  left: 60px; }
.intro-stage.driving .smoke.s5 { animation-delay: 0.4s;  left: 40px; }
.intro-stage.driving .smoke.s6 { animation-delay: 0.55s; left: 70px; }
.intro-stage.driving .smoke.s7 { animation-delay: 0.7s;  left: 35px; }
.intro-stage.driving .smoke.s8 { animation-delay: 0.85s; left: 55px; }

@keyframes smokePuff {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15%  { opacity: 0.85; transform: translate(-20px, -10px) scale(0.7); }
    50%  { opacity: 0.65; transform: translate(-60px, -30px) scale(1.4); }
    100% { opacity: 0; transform: translate(-130px, -60px) scale(2.2); }
}

/* CTA button */
.intro-cta-wrap {
    position: absolute;
    top: 52%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    text-align: center;
    animation: ctaIn 1s ease 1.8s both;
}
@keyframes ctaIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.intro-btn {
    position: relative;
    display: inline-flex;
    align-items: center; gap: 14px;
    padding: 22px 48px;
    background: linear-gradient(135deg, #ff1a3c 0%, #8a0014 100%);
    color: #fff;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 14px 40px rgba(255,26,60,0.55), inset 0 -3px 0 rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.intro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(255,26,60,0.75), inset 0 -3px 0 rgba(0,0,0,0.3);
}
.btn-text { position: relative; z-index: 2; }
.btn-arrow { position: relative; z-index: 2; transition: transform .25s; }
.intro-btn:hover .btn-arrow { transform: translateX(4px); }
.btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 50%);
    animation: btnGlow 3s linear infinite;
}
@keyframes btnGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.intro-hint {
    margin-top: 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    animation: hintBlink 2s ease infinite;
}
@keyframes hintBlink { 0%,100%{opacity:.55} 50%{opacity:1} }

.intro-stage.driving .intro-cta-wrap {
    opacity: 0;
    transform: translate(-50%, -150%);
    transition: all .5s ease;
}

@keyframes introFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro-stage.exit {
    animation: stageExit .8s ease 1.5s forwards;
}
@keyframes stageExit {
    to { opacity: 0; filter: blur(6px); }
}

@media (max-width: 600px) {
    .intro-stage {
        justify-content: center;
        gap: 24px;
    }
    .intro-logo { top: 6%; }
    .logo-text { gap: 10px; font-size: 36px; }
    .car-wrap { margin-top: 0; width: 95vw; }
    .intro-btn { padding: 18px 28px; font-size: 18px; letter-spacing: 2px; }

    /* CTA appears BELOW the car on mobile (no overlap) */
    .intro-cta-wrap {
        position: relative;
        top: auto; left: auto;
        transform: none;
        margin-top: 0;
        animation: ctaInMobile 1s ease 1.8s both;
    }
    @keyframes ctaInMobile {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .intro-stage.driving .intro-cta-wrap {
        transform: translateY(-20px);
    }
    .intro-road { height: 14%; }
}
