/* ===== GOLDEN ROCKET LAUNCH ANIMATION ===== */

/* --- Hero overrides for rocket scene --- */
.bomber-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, #f5f5f5 0%, #e0e0e0 70%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .bomber-hero {
    background: radial-gradient(ellipse at bottom, #0a0a12 0%, #000000 70%);
}

/* --- Particle canvas --- */
#rocket-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- Hero text layer (above rocket) --- */
.bomber-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.bomber-hero-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 32px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(22px);
    animation: rocketTextFadeUp 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    text-shadow: none;
}

[data-theme="dark"] .bomber-hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bomber-hero-title .gold-word {
    color: #d4af37;
    font-style: normal;
}

.bomber-hero-cta {
    display: inline-block;
    background: #d4af37;
    color: #000000;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(22px);
    animation: rocketTextFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

.bomber-hero-cta:hover {
    background: #c9a55c;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

/* --- Text fade-up keyframes --- */
@keyframes rocketTextFadeUp {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Rocket wrapper --- */
.bomber-wrapper {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 400px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: rocketLaunch 4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* --- Rocket body --- */
.rocket-body {
    position: relative;
    width: 60px;
    height: 180px;
    margin: 0 auto;
    background: linear-gradient(180deg, #e8d5a3 0%, #d4af37 30%, #8b6914 100%);
    border-radius: 30px 30px 10px 10px;
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.5),
        inset -5px 0 15px rgba(0, 0, 0, 0.3);
}

/* --- Rocket window --- */
.rocket-window {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #87ceeb 0%, #4a90d9 100%);
    border-radius: 50%;
    border: 3px solid #c9a84c;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

/* --- Rocket fins --- */
.rocket-fin {
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 60px;
    background: linear-gradient(180deg, #d4af37 0%, #8b6914 100%);
}

.rocket-fin-left {
    left: -20px;
    border-radius: 50% 0 0 30%;
    transform: skewY(-10deg);
}

.rocket-fin-right {
    right: -20px;
    border-radius: 0 50% 30% 0;
    transform: skewY(10deg);
}

/* --- Rocket flame --- */
.rocket-flame {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(255, 200, 50, 0) 0%, 
        rgba(255, 150, 0, 0.8) 30%, 
        rgba(255, 50, 0, 0.9) 60%,
        rgba(100, 0, 0, 0) 100%);
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    animation: flameFlicker 0.1s infinite alternate;
    filter: blur(3px);
}

.rocket-flame-inner {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 70px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 200, 0) 0%, 
        rgba(255, 255, 150, 0.9) 40%, 
        rgba(255, 200, 50, 0.8) 100%);
    border-radius: 50%;
    filter: blur(2px);
}

/* --- Flame flicker animation --- */
@keyframes flameFlicker {
    0% {
        height: 100px;
        opacity: 1;
    }
    100% {
        height: 90px;
        opacity: 0.9;
    }
}

/* --- Rocket launch keyframes --- */
@keyframes rocketLaunch {
    0% {
        bottom: -200px;
        opacity: 0;
    }
    10% {
        bottom: -150px;
        opacity: 1;
    }
    60% {
        bottom: 45%;
        opacity: 1;
    }
    85% {
        bottom: 55%;
        opacity: 1;
    }
    100% {
        bottom: 120%;
        opacity: 0;
    }
}

/* --- Glow beneath rocket --- */
.bomber-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255, 150, 0, 0.6) 0%, rgba(255, 100, 0, 0.3) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    opacity: 0;
    animation: rocketGlowAnim 4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* --- Glow animation --- */
@keyframes rocketGlowAnim {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    10% {
        bottom: -80px;
        opacity: 1;
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

/* --- Stars background --- */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle 2s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bomber-hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .bomber-hero-cta {
        padding: 12px 32px;
        font-size: 0.85rem;
    }

    .bomber-wrapper {
        width: 150px;
        height: 300px;
    }

    .rocket-body {
        width: 45px;
        height: 140px;
    }

    .rocket-window {
        top: 30px;
        width: 15px;
        height: 15px;
    }

    .rocket-flame {
        width: 30px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .bomber-wrapper {
        width: 120px;
        height: 250px;
    }

    .rocket-body {
        width: 35px;
        height: 110px;
    }
}
