/* ============================================
   Design System & Variables
   ============================================ */
:root {
    /* Colors - Deep Space Theme */
    --bg-dark: #000000;
    --bg-navy: #050814;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);

    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-orange: #ff6b35;
    --glow-blue: rgba(59, 130, 246, 0.6);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-normal: 300ms ease;
    --transition-slow: 600ms ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ============================================
   Animated Background
   ============================================ */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a1128 0%, #000000 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #1a2850 0%, transparent 70%);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0f1e3d 0%, transparent 70%);
    top: 30%;
    right: -10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #152645 0%, transparent 70%);
    bottom: -15%;
    left: 35%;
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.03);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.97);
    }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 25px 35px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 65px 75px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 55px 55px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 135px 85px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 95px 15px, rgba(255, 255, 255, 0.4), transparent);
    background-size: 220px 220px;
    animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   Particles Container
   ============================================ */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   Main Container
   ============================================ */
.container {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ============================================
   Hero Section - Split Layout
   ============================================ */
.hero-section {
    width: 100%;
    max-width: 1600px;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 4rem;
    align-items: center;
}

/* ============================================
   Left Side - Text Content
   ============================================ */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand Title */
.brand-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 90px rgba(59, 130, 246, 0.5),
        0 0 120px rgba(59, 130, 246, 0.3);
    animation: titlePulse 4s ease-in-out infinite;
}

.title-highlight {
    color: #ffffff;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 1),
        0 0 60px rgba(255, 255, 255, 0.7),
        0 0 90px rgba(59, 130, 246, 0.6),
        0 0 120px rgba(59, 130, 246, 0.4),
        0 0 150px rgba(59, 130, 246, 0.3);
}

@keyframes titlePulse {

    0%,
    100% {
        text-shadow:
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 90px rgba(59, 130, 246, 0.5),
            0 0 120px rgba(59, 130, 246, 0.3);
    }

    50% {
        text-shadow:
            0 0 40px rgba(255, 255, 255, 1),
            0 0 70px rgba(255, 255, 255, 0.7),
            0 0 100px rgba(59, 130, 246, 0.6),
            0 0 130px rgba(59, 130, 246, 0.4);
    }
}

/* Hero Heading */
.hero-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Hero Description */
.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 550px;
}

.hero-description .highlight {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Right Side - Interactive Rocket Image
   ============================================ */
.image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rocket-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.rocket-container:hover {
    transform: scale(1.02);
}

/* Base Layer - Launchpad */
.launchpad-base {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.3));
}

/* --- THE ROCKET GROUP (SVG + Flame) --- */
.rocket-group {
    position: absolute;
    z-index: 10;
    bottom: 30%;
    /* Positioned on the launchpad, adjusted for SVG padding */
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    /* Responsive width for the SVG */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* REVERSIBLE LAUNCH ANIMATION */
    /* Default state: Center of launchpad */
    transition: transform 0s;
}

/* --- ANIMATION STATES --- */

/* 1. Launching: Fly Up */
.rocket-group.launching {
    transform: translateX(-50%) translateY(-1000px);
    transition: transform 2.5s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* 2. Reset Position: Instant move to right off-screen */
.rocket-group.reset-right {
    transition: none !important;
    transform: translateX(150%) translateY(0);
    /* Off-screen right */
    opacity: 0;
}

/* 3. Reloading: Slide in from right */
.rocket-group.reloading {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    transform: translateX(-50%) translateY(0);
    /* Back to center */
    opacity: 1;
}

/* Rocket SVG */
.rocket-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.4));
    /* Idle float animation */
    animation: rocketIdle 3s ease-in-out infinite;
}

/* The Flame */
.flame {
    width: 30px;
    height: 0px;
    /* Hidden start */
    background: linear-gradient(to bottom, #ff9a9e 0%, #fecfef 100%, transparent 150%);
    filter: blur(2px);
    border-radius: 50%;
    opacity: 0;
    margin-top: -80px;
    /* Overlap with SVG nozzle area */
    transition: height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Activate flame only during launch state */
.rocket-group.launching .flame {
    height: 150px;
    opacity: 1;
    animation: flicker 0.1s infinite alternate;
}

/* Animation Keyframes */
@keyframes rocketIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes flicker {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 100;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.footer-domain {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        grid-template-rows: auto 1fr;
    }

    .text-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .image-content {
        height: auto;
    }

    .rocket-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .brand-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-heading {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .rocket-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: clamp(1.75rem, 12vw, 3rem);
    }

    .rocket-container {
        max-width: 250px;
    }
}