/* ========================================
   RESET & BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #BDBDBD;
    color: #1A1A1A;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor for Interactive Elements */
a, button, .nav-link, .cta-button, .launch-card {
    cursor: crosshair !important;
}

/* ========================================
   PROGRESS BAR
======================================== */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #FF6B35;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #BDBDBD;
    border-bottom: 4px solid #1A1A1A;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    height: 70px;
    background: rgba(189, 189, 189, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-container {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    height: 100%;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 60px;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1A1A1A;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background: #FF6B35;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #FF6B35;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
    animation: fadeInScale 1.2s ease-out;
    transition: all 0.3s ease;
}

.hero-title:hover {
    animation: glitchEffect 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glitchEffect {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

/* Audio Controls */
.audio-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.audio-btn:hover {
    background: #FF6B35;
    transform: scale(1.1);
}

.volume-slider-container {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.audio-controls:hover .volume-slider-container {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFFFFF;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #FF6B35;
    border: 2px solid #FFFFFF;
}

/* ========================================
   STATS SECTION
======================================== */

.stats-section {
    background: #9E9E9E;
    padding: 80px 40px;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    pointer-events: none;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(3%, -15%); }
    50% { transform: translate(12%, 9%); }
    70% { transform: translate(9%, 4%); }
    90% { transform: translate(-1%, 7%); }
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.logo-stats {
    width: 150px;
}

.logo-stats img {
    width: 100%;
    height: auto;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.stat-card {
    background: #FFFFFF;
    border: 4px solid #1A1A1A;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    padding: 40px 50px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px rgba(0, 0, 0, 1);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #757575;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #FF6B35;
    color: #1A1A1A;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 60px;
    border: 4px solid #1A1A1A;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 1);
    background: #F7931E;
}

/* ========================================
   FILTERS SECTION
======================================== */

.filters-section {
    background: #F5F5F5;
    padding: 30px 40px;
    border-bottom: 4px solid #1A1A1A;
    margin-top: 80px;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
}

.filter-select,
.filter-input {
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    border: 3px solid #1A1A1A;
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.reset-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #757575;
    color: #FFFFFF;
    border: 3px solid #1A1A1A;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #1A1A1A;
    transform: translateY(-2px);
}

/* ========================================
   LAUNCHES SECTION
======================================== */

.launches-section {
    background: linear-gradient(180deg, #E0E0E0 0%, #FFFFFF 100%);
    padding: 80px 40px;
    min-height: 60vh;
}

.launches-container {
    max-width: 1400px;
    margin: 0 auto;
}

.launches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 100px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #BDBDBD;
    border-top: 6px solid #FF6B35;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1A1A1A;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 100px 20px;
}

.no-results h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    color: #757575;
}

/* ========================================
   LAUNCH CARD
======================================== */

.launch-card {
    background: #FFFFFF;
    border: 3px solid #1A1A1A;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.launch-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.launch-card:hover {
    transform: scale(1.03);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.4);
}

.card-header {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #757575;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.card-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    background: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1A1A1A;
    z-index: 2;
}

.card-content {
    padding: 20px;
}

.card-mission-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-rocket {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 6px;
}

.card-agency {
    font-size: 13px;
    font-weight: 600;
    color: #FF6B35;
    margin-bottom: 8px;
}

.card-location {
    font-size: 12px;
    color: #9E9E9E;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-location::before {
    content: '📍';
}

.card-datetime {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.card-countdown {
    background: #F5F5F5;
    border: 2px solid #FF6B35;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.countdown-time {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
}

.countdown-time.imminent {
    animation: pulse 1.5s ease-in-out infinite;
    color: #FF0000;
}

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

.card-status {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
}

.status-go {
    background: #4CAF50;
    color: #FFFFFF;
    border-color: #2E7D32;
}

.status-tbd {
    background: #9E9E9E;
    color: #FFFFFF;
    border-color: #616161;
}

.status-hold {
    background: #FF9800;
    color: #FFFFFF;
    border-color: #E65100;
}

.status-success {
    background: #2196F3;
    color: #FFFFFF;
    border-color: #0D47A1;
}

.status-failure {
    background: #F44336;
    color: #FFFFFF;
    border-color: #B71C1C;
}

/* ========================================
   FOOTER
======================================== */

.main-footer {
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    border-top: 4px solid #FF6B35;
}

.main-footer p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-footer a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.main-footer a:hover {
    text-decoration: underline;
    color: #F7931E;
}

/* ========================================
   ROCKET EASTER EGG
======================================== */

.rocket-animation {
    position: fixed;
    font-size: 80px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.rocket-animation.launch {
    animation: rocketLaunch 3s ease-out forwards;
}

@keyframes rocketLaunch {
    0% {
        opacity: 1;
        bottom: -100px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        bottom: 120vh;
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .launches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .stats-grid {
        gap: 30px;
    }
    
    .stat-card {
        width: 280px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
        text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    }
    
    .stats-section {
        padding: 40px 20px;
    }
    
    .logo-stats {
        width: 100px;
    }
    
    .stats-grid {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .stat-card {
        width: 100%;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 56px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 16px 40px;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .launches-section {
        padding: 40px 20px;
    }
    
    .launches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card-mission-name {
        font-size: 16px;
    }
    
    .card-header {
        height: 120px;
    }
    
    .audio-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
    }
    
    .volume-slider {
        width: 80px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .launches-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
}