/* ============================================================================
   COSMIC VISUALIZATION - Solar System Simulator
   Copyright (c) 2026 Thando Hlomuka. All Rights Reserved.
   
   This code is protected under proprietary license.
   Unauthorized copying, distribution, or use is strictly prohibited.
   See LICENSE file for full terms.
   Contact: thandohlomuka8@gmail.com
   ========================================================================== */

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Deep Space Blue Theme */
    --space-dark: #000814;
    --space-medium: #001529;
    --space-light: #002140;
    --ocean-blue: #003a5c;
    --midnight-blue: #001f3f;
    --deep-blue: #001220;
    --cosmic-blue: #002855;
    
    /* Accent Colors */
    --star-white: #f0f0f0;
    --star-silver: #c0c0c0;
    --moon-gray: #a0a0a0;
    --nebula-light: #6699cc;
    --aurora-blue: #336699;
    --comet-silver: #b8b8b8;
    
    /* UI Colors */
    --primary: #003366;
    --primary-light: #004d99;
    --primary-dark: #001a33;
    --secondary: #005580;
    --accent: #4da6ff;
    --highlight: #80bfff;
    
    /* Status Colors */
    --success: #00cc99;
    --warning: #ffcc00;
    --danger: #ff4d4d;
    --info: #3399ff;
    
    /* Neutral Grays */
    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f0f2f5;
    --gray-200: #e1e4e8;
    --gray-300: #d1d5da;
    --gray-400: #959da5;
    --gray-500: #6a737d;
    --gray-600: #586069;
    --gray-700: #444d56;
    --gray-800: #2f363d;
    --gray-900: #1a1f26;
    --black: #0d1117;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-space: linear-gradient(180deg, var(--deep-blue) 0%, var(--space-medium) 50%, var(--space-light) 100%);
    --gradient-dark: linear-gradient(180deg, var(--black) 0%, var(--space-dark) 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 51, 102, 0.3) 0%, rgba(0, 85, 128, 0.2) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(77, 166, 255, 0.4) 0%, rgba(0, 102, 204, 0.2) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(77, 166, 255, 0.3);
    --shadow-blue: 0 0 30px rgba(0, 102, 204, 0.4);
    --shadow-inner: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    
    /* Borders */
    --border-light: 1px solid rgba(240, 240, 240, 0.1);
    --border-medium: 1px solid rgba(240, 240, 240, 0.15);
    --border-accent: 1px solid rgba(77, 166, 255, 0.3);
    --border-glow: 1px solid rgba(77, 166, 255, 0.5);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-dark);
    color: var(--gray-200);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

canvas {
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--space-dark);
    border-left: 1px solid rgba(77, 166, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-full);
    border: 2px solid var(--space-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(77, 166, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 85, 128, 0.4) 100%);
    border: var(--border-accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 0 40px rgba(77, 166, 255, 0.3);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    border: var(--border-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(77, 166, 255, 0.5);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--gray-200);
    border: 2px solid var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(77, 166, 255, 0.1);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.2);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 8, 20, 0.98) 0%, rgba(0, 21, 41, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    transition: var(--transition-base);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(0, 8, 20, 0.99) 0%, rgba(0, 21, 41, 0.98) 100%);
    box-shadow: 0 4px 40px rgba(0, 102, 204, 0.2);
    border-color: rgba(77, 166, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(77, 166, 255, 0.4);
    border: var(--border-accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.logo-sub {
    font-size: 0.875rem;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-space);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(77, 166, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#heroCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 85, 128, 0.5) 100%);
    border: var(--border-glow);
    border-radius: 50px;
    color: var(--highlight);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease, glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 30px rgba(77, 166, 255, 0.3); }
    50% { box-shadow: 0 0 50px rgba(77, 166, 255, 0.5); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 0 60px rgba(77, 166, 255, 0.4);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.3) 0%, rgba(0, 85, 128, 0.2) 100%);
    border: var(--border-accent);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(77, 166, 255, 0.3);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(77, 166, 255, 0.3);
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

/* ==================== ONBOARDING ==================== */
.onboarding-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--space-medium) 50%, var(--space-light) 100%);
    overflow: hidden;
}

.onboarding-step {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.onboarding-step.active {
    display: flex;
    opacity: 1;
}

/* Step 1: Rocket Platform */
.onboarding-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.rocket-platform {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto 2rem;
}

/* Launch Pad */
.launch-pad {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
}

.pad-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--gray-600), var(--gray-800));
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.3);
}

.pad-support {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 60px;
    background: linear-gradient(180deg, var(--gray-500), var(--gray-700));
}

/* Rocket Ship */
.rocket-ship {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: rocketHover 2s ease-in-out infinite;
}

@keyframes rocketHover {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.rocket-body {
    position: relative;
    width: 60px;
    height: 120px;
}

.rocket-nose {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--accent);
    filter: drop-shadow(0 0 20px rgba(77, 166, 255, 0.6));
}

.rocket-window {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--highlight), var(--accent));
    border-radius: 50%;
    border: 3px solid var(--gray-300);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.8);
}

.rocket-fins {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
}

.fin {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
}

.fin.left {
    left: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid var(--primary);
    border-bottom: 40px solid var(--primary);
}

.fin.right {
    right: 0;
    border-left: 20px solid var(--primary);
    border-right: 20px solid transparent;
    border-bottom: 40px solid var(--primary);
}

.rocket-flame {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background: linear-gradient(180deg, #ff6b35, #ffd700, transparent);
    border-radius: 0 0 50% 50%;
    filter: blur(5px);
    opacity: 0;
    animation: flameFlicker 0.1s ease-in-out infinite;
}

.rocket-flame.active {
    opacity: 1;
    animation: flameFlicker 0.1s ease-in-out infinite, flameGrow 0.5s ease forwards;
}

@keyframes flameFlicker {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.2); }
}

@keyframes flameGrow {
    from { height: 20px; opacity: 0.5; }
    to { height: 80px; opacity: 1; }
}

.exhaust-particles {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

/* Onboarding Text */
.onboarding-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(77, 166, 255, 0.5);
    animation: fadeInUp 0.8s ease;
}

.onboarding-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-launch {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 40px rgba(77, 166, 255, 0.5);
    transition: var(--transition-base);
    animation: pulse 2s ease-in-out infinite;
}

.btn-launch:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(77, 166, 255, 0.8);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(77, 166, 255, 0.5); }
    50% { box-shadow: 0 0 60px rgba(77, 166, 255, 0.8); }
}

/* Step 2: Countdown */
.countdown-container {
    text-align: center;
}

.countdown-display {
    margin-bottom: 2rem;
}

.countdown-number {
    font-size: 15rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdownPulse 1s ease-in-out infinite;
    line-height: 1;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.countdown-label {
    font-size: 1.5rem;
    color: var(--gray-400);
    letter-spacing: 10px;
    margin-top: 1rem;
}

.launch-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(0, 204, 153, 0.1);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: statusBlink 1s ease-in-out infinite;
}

.status-light.green {
    background: var(--success);
    box-shadow: 0 0 20px var(--success);
}

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

.progress-bar {
    width: 400px;
    height: 10px;
    background: var(--space-dark);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(77, 166, 255, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.6);
    transition: width 0.1s linear;
}

/* Step 3: Space Flight */
.space-view {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stars-background {
    position: absolute;
    inset: 0;
    background: transparent;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

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

.earth-view {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.earth {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #4361ee, #001a33);
    border-radius: 50%;
    box-shadow: inset -20px -20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(67, 97, 238, 0.5);
    animation: earthRecede 5s ease-in forwards;
}

@keyframes earthRecede {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.3); opacity: 0.5; }
}

.rocket-flying {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rocketFly 5s ease-in forwards;
}

@keyframes rocketFly {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -150%) scale(0.8); }
}

.speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: speedLine 0.5s linear infinite;
}

@keyframes speedLine {
    0% { transform: translateY(-100vh); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.flight-info {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    z-index: 100;
}

.info-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 51, 102, 0.6);
    border: var(--border-accent);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.info-label {
    display: block;
    color: var(--gray-400);
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.info-value {
    display: block;
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.5);
}

/* Step 4: Welcome */
.welcome-container {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 0 60px rgba(77, 166, 255, 0.6);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

.welcome-message {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
}

.feature-highlights {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.feature-item {
    padding: 1.5rem 2rem;
    background: rgba(0, 51, 102, 0.4);
    border: var(--border-accent);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(77, 166, 255, 0.3);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

.feature-item span {
    color: var(--gray-200);
    font-weight: 600;
}

.btn-enter {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success), #00cc99);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 40px rgba(6, 214, 160, 0.5);
    transition: var(--transition-base);
}

.btn-enter:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(6, 214, 160, 0.8);
}

.btn-skip {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--gray-400);
    border: 2px solid var(--gray-600);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    margin-top: 1rem;
}

.btn-skip:hover {
    border-color: var(--gray-400);
    color: var(--white);
    transform: scale(1.05);
}

/* ==================== MOBILE NAVIGATION ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 8, 20, 0.98) 0%, rgba(0, 21, 41, 0.99) 100%);
    border-top: var(--border-accent);
    z-index: 999;
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--gray-400);
    font-size: 0.75rem;
    transition: var(--transition-base);
    flex: 1;
    justify-content: center;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.mobile-nav-item:hover {
    color: var(--gray-200);
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-item.active i {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(77, 166, 255, 0.6));
}

/* Hide main content during onboarding */
body.onboarding-active .navbar,
body.onboarding-active .hero,
body.onboarding-active .solar-system-section,
body.onboarding-active .simulation-section,
body.onboarding-active .results-section,
body.onboarding-active footer {
    display: none !important;
}

/* Ensure content shows after onboarding */
body:not(.onboarding-active) .navbar,
body:not(.onboarding-active) .hero,
body:not(.onboarding-active) section,
body:not(.onboarding-active) footer {
    display: block !important;
}

body:not(.onboarding-active) .hero {
    display: flex !important;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .solar-system-container,
    .simulation-container {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .body-selector {
        order: 2;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(0, 8, 20, 0.99) 0%, rgba(0, 21, 41, 0.99) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-base);
        z-index: 1000;
        border-left: var(--border-accent);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-cta {
        margin-top: 2rem;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding for bottom nav */
    body {
        padding-bottom: 70px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Onboarding */
    .onboarding-title {
        font-size: 1.75rem;
    }
    
    .onboarding-subtitle {
        font-size: 1rem;
    }
    
    .btn-launch,
    .btn-enter {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 90%;
        max-width: 300px;
    }
    
    .countdown-number {
        font-size: 6rem;
    }
    
    .flight-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 90%;
        bottom: 80px;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .info-value {
        font-size: 1.5rem;
    }
    
    .feature-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rocket-platform {
        transform: scale(0.7);
    }
    
    /* Solar System */
    #solarSystemCanvas {
        height: 400px;
    }
    
    .body-list {
        grid-template-columns: 1fr;
    }
    
    /* Simulation */
    .simulation-container {
        grid-template-columns: 1fr;
    }
    
    .simulation-overlay {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .overlay-value {
        font-size: 1rem;
    }
    
    .control-panel {
        padding: 1rem;
    }
    
    .control-group select,
    .control-group input[type="number"] {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    /* Results */
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .export-options .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .rocket-platform {
        transform: scale(0.6);
    }
    
    #solarSystemCanvas {
        height: 300px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ==================== SOLAR SYSTEM SECTION ==================== */
.solar-system-section {
    background: var(--space-medium);
}

.solar-system-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.canvas-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 8, 20, 0.9) 0%, rgba(0, 21, 41, 0.8) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: var(--border-accent);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
}

#solarSystemCanvas {
    width: 100%;
    height: 600px;
}

.canvas-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.control-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 85, 128, 0.6) 100%);
    border: var(--border-accent);
    border-radius: var(--radius-md);
    color: var(--gray-200);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-color: var(--accent);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.4);
}

.body-selector {
    background: linear-gradient(135deg, rgba(0, 21, 41, 0.9) 0%, rgba(0, 33, 64, 0.8) 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: var(--border-accent);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.15);
}

.body-selector h3 {
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.3);
}

.body-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.body-item {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.4) 0%, rgba(0, 85, 128, 0.3) 100%);
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.body-item:hover {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 85, 128, 0.6) 100%);
    border-color: var(--accent);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(77, 166, 255, 0.3);
}

.body-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.4);
}

.body-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.body-info {
    background: var(--space-dark);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.info-header h3 {
    color: var(--white);
}

.close-btn {
    width: 32px;
    height: 32px;
    background: var(--space-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.close-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

.info-content {
    color: var(--gray-300);
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 1rem;
}

.info-content strong {
    color: var(--white);
}

/* ==================== SIMULATION SECTION ==================== */
.simulation-section {
    background: var(--space-dark);
}

.simulation-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

.simulation-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-panel {
    background: var(--space-medium);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-panel h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group {
    margin-bottom: 1.25rem;
}

.control-group label {
    display: block;
    color: var(--gray-300);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.control-group select,
.control-group input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--space-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.control-group select:focus,
.control-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--space-dark);
    border-radius: 50px;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.slider-container span {
    color: var(--accent);
    font-weight: 600;
    min-width: 50px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.simulation-view {
    background: var(--space-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.view-header h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.canvas-container {
    position: relative;
    background: var(--space-dark);
}

#simulationCanvas {
    width: 100%;
    height: 500px;
}

.simulation-overlay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--space-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-item {
    text-align: center;
}

.overlay-label {
    display: block;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.overlay-value {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ==================== RESULTS SECTION ==================== */
.results-section {
    background: var(--space-medium);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.result-card {
    background: var(--space-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-body canvas {
    max-height: 250px;
}

.data-table {
    background: var(--space-dark);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table h3 {
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 1rem;
    background: var(--space-medium);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

tbody tr:hover {
    background: var(--space-medium);
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
    padding: 3rem !important;
}

.export-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--space-dark);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-info p {
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.footer-bottom .developer-credit {
    margin-top: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-bottom .developer-credit strong {
    color: var(--primary-accent);
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .solar-system-container,
    .simulation-container {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .simulation-overlay {
        grid-template-columns: 1fr;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
