/* MIND-BLOWING SATELLITE-MOON-COMPUTER ANIMATION */

/* === SPACE ENVIRONMENT === */
.space-environment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    /* Ensure it stays within hero section */
    z-index: 0;
}

/* === DYNAMIC SATELLITE TRACKING === */
.dynamic-satellite-tracking {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    /* Only visible on hero section */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Adjust tracking lines for mobile */
@media (max-width: 768px) {
    .dynamic-satellite-tracking {
        z-index: 100; /* Lower z-index for mobile */
        opacity: 0.8; /* Slightly visible on mobile */
    }
    
    #trackingLine {
        stroke-width: 2; /* Thinner lines on mobile */
    }
    
    #waveLine {
        stroke-width: 2;
    }
}

/* Show tracking when hero is visible */
.hero.in-view .dynamic-satellite-tracking {
    opacity: 1;
}

.tracking-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#trackingLine {
    animation: trackingPulse 2s ease-in-out infinite;
}

#waveLine {
    stroke-dasharray: 100 20;
    animation: 
        waveFlow 4s linear infinite,
        wavePulse 2s ease-in-out infinite;
}

@keyframes trackingPulse {
    0%, 100% { 
        stroke-width: 4; 
        opacity: 0.8; 
    }
    50% { 
        stroke-width: 6; 
        opacity: 1; 
    }
}

@keyframes waveFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -120;
    }
}

@keyframes wavePulse {
    0%, 100% { 
        stroke-width: 3; 
        opacity: 0.6; 
    }
    50% { 
        stroke-width: 5; 
        opacity: 0.9; 
    }
}

/* Deep Space Stars */
.stars-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    animation: starDrift linear infinite;
}

.layer-1 {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 160px, white, transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 150px 80px, white, transparent);
    background-size: 200px 200px;
    animation-duration: 100s;
    opacity: 0.8;
}

.layer-2 {
    background-image: 
        radial-gradient(2px 2px at 150px 150px, white, transparent),
        radial-gradient(2px 2px at 70px 70px, white, transparent),
        radial-gradient(2px 2px at 90px 190px, white, transparent);
    background-size: 300px 300px;
    animation-duration: 150s;
    opacity: 0.6;
}

.layer-3 {
    background-image: 
        radial-gradient(1px 1px at 80px 120px, #fff6, transparent),
        radial-gradient(1px 1px at 110px 90px, #fff6, transparent);
    background-size: 250px 250px;
    animation-duration: 200s;
    opacity: 0.4;
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Nebula Background */
.nebula-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top right, rgba(139, 111, 142, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(196, 169, 98, 0.1) 0%, transparent 40%);
    animation: nebulaPulse 20s ease-in-out infinite;
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* === MOON SATELLITE SYSTEM - UNRESTRICTED === */
.moon-satellite-system {
    position: relative;
    width: 600px;
    height: 500px;
    perspective: 1200px;
    transform-style: preserve-3d;
    margin: 0 auto;
    z-index: 10;
    overflow: visible !important;
}

/* Mobile optimization for animation container */
@media (max-width: 768px) {
    .animation-container {
        width: 100%;
        height: 100%;
        overflow: visible !important;
    }
}

/* === REALISTIC MOON - STANDARD DISTANCE === */
.moon {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 12vw;
    height: 12vw;
    min-width: 120px;
    min-height: 120px;
    max-width: 200px;
    max-height: 200px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    perspective: 1000px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* Realistic Moon Sphere - Stationary and Lighter */
.moon-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
    /* Lighter lunar surface colors */
    background: 
        /* Base lunar surface - much lighter */
        radial-gradient(ellipse at 30% 20%, #f5f5f5, #e8e8e8, #d0d0d0),
        /* Lunar highlands - brighter */
        radial-gradient(ellipse at 70% 60%, #f8f8f8 0%, transparent 40%),
        /* Maria (dark plains) - lighter gray */
        radial-gradient(ellipse at 40% 80%, #b8b8b8 0%, transparent 30%);
    
    /* Softer lunar lighting */
    box-shadow: 
        /* Softer terminator shadow */
        inset -30px -8px 60px rgba(0, 0, 0, 0.4),
        inset -45px -15px 80px rgba(0, 0, 0, 0.3),
        /* Subtle earthshine */
        inset 25px 12px 50px rgba(173, 216, 230, 0.15),
        inset 45px 25px 70px rgba(173, 216, 230, 0.08),
        /* Brighter outer glow */
        0 0 80px rgba(240, 240, 240, 0.5),
        0 0 150px rgba(220, 220, 220, 0.3);
    
    /* Remove rotation - stationary moon */
    overflow: hidden;
}

/* Lunar surface texture overlay - Stationary */
.moon-sphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        /* Surface texture - more subtle on lighter surface */
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 0.08) 0%, transparent 1%),
        radial-gradient(circle at 45% 65%, rgba(255, 255, 255, 0.15) 0%, transparent 3%),
        radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.06) 0%, transparent 2%);
    /* Remove animation - stationary */
    z-index: 1;
}

/* Lunar terminator (day-night boundary) - Stationary */
.moon-sphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        linear-gradient(105deg, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.4) 25%, 
            rgba(0, 0, 0, 0.2) 45%, 
            rgba(0, 0, 0, 0.05) 50%, 
            transparent 55%, 
            transparent 100%);
    /* Remove animation - stationary terminator */
    z-index: 2;
}

.moon-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

/* === LUNAR SURFACE FEATURES === */

/* Realistic Lunar Craters - Stationary */
.crater {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15), transparent);
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.3);
    /* Remove animation - stationary craters */
}

/* Tycho Crater - Famous bright crater */
.crater-large {
    width: 30px;
    height: 25px;
    top: 70%;
    left: 45%;
    background: radial-gradient(ellipse at 25% 25%, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1), transparent);
    box-shadow: inset 1px 1px 6px rgba(0, 0, 0, 0.4), 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Copernicus Crater */
.crater-medium {
    width: 18px;
    height: 15px;
    top: 35%;
    left: 30%;
    background: radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.12), transparent);
}

/* Smaller craters scattered realistically */
.crater-small-1 {
    width: 10px;
    height: 8px;
    top: 20%;
    left: 60%;
}

.crater-small-2 {
    width: 7px;
    height: 7px;
    top: 55%;
    left: 75%;
}

.crater-small-3 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 25%;
}

/* Realistic Lunar Maria (Dark Plains) - Stationary */
.maria {
    position: absolute;
    background: radial-gradient(ellipse, rgba(160, 160, 160, 0.4), transparent);
    /* Remove animation - stationary maria */
}

/* Mare Tranquillitatis (Sea of Tranquility) - Where Apollo 11 landed */
.maria-1 {
    width: 45px;
    height: 35px;
    top: 40%;
    left: 50%;
    border-radius: 60% 40% 50% 70%;
    background: radial-gradient(ellipse at 40% 60%, rgba(140, 140, 140, 0.5), transparent);
}

/* Mare Imbrium (Sea of Rains) - Large circular maria */
.maria-2 {
    width: 35px;
    height: 30px;
    top: 25%;
    left: 25%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 40%, rgba(150, 150, 150, 0.4), transparent);
}

/* Mare Serenitatis (Sea of Serenity) */
.maria-3 {
    width: 22px;
    height: 18px;
    top: 15%;
    left: 55%;
    border-radius: 55% 45% 60% 40%;
    background: radial-gradient(ellipse at 50% 30%, rgba(145, 145, 145, 0.45), transparent);
}

/* Realistic Lunar Highlands - Stationary */
.highlands {
    position: absolute;
    background: radial-gradient(ellipse, rgba(250, 250, 250, 0.3), transparent);
    /* Remove animation - stationary highlands */
}

/* Lunar South Pole Highlands */
.highlands-1 {
    width: 28px;
    height: 22px;
    top: 85%;
    left: 40%;
    border-radius: 60% 40% 50% 50%;
    background: radial-gradient(ellipse at 60% 40%, rgba(255, 255, 255, 0.4), transparent);
}

/* Lunar North Pole Highlands */
.highlands-2 {
    width: 25px;
    height: 20px;
    top: 5%;
    left: 45%;
    border-radius: 50% 50% 60% 40%;
    background: radial-gradient(ellipse at 30% 50%, rgba(248, 248, 248, 0.35), transparent);
}

/* Lunar Terminator - Stationary */
.lunar-terminator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(115deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.3) 30%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 60%);
    /* Remove animation - stationary terminator */
    z-index: 3;
}

.moon-shadow {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.moon-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
    filter: blur(10px);
    animation: moonGlow 6s ease-in-out infinite;
}

/* === STATIONARY MOON - NO ANIMATIONS === */
/* Moon is now stationary with realistic features */

/* Enhanced moon glow - stationary */
@keyframes moonGlow {
    0%, 100% { 
        opacity: 0.6; 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
    }
}

/* === SATELLITE ORBIT === */
.satellite-orbit {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 32vw;
    height: 32vw;
    min-width: 350px;
    min-height: 350px;
    max-width: 550px;
    max-height: 550px;
    transform: translate(-50%, -50%) rotateX(15deg);
    animation: satelliteOrbit 30s linear infinite;
    transform-style: preserve-3d;
    z-index: 25;
}

@keyframes satelliteOrbit {
    from { transform: translate(-50%, -50%) rotateX(15deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(15deg) rotateZ(360deg); }
}

/* Adjusted orbit animation for mobile */
@media (max-width: 768px) {
    @keyframes satelliteOrbit {
        from { transform: translate(-50%, -50%) rotateX(10deg) rotateZ(0deg); }
        to { transform: translate(-50%, -50%) rotateX(10deg) rotateZ(360deg); }
    }
}

/* === ADVANCED SATELLITE === */
.advanced-satellite {
    position: absolute;
    top: 0;
    left: 96%;
    transform: translateX(-50%) translateY(-250px);
    transform-style: preserve-3d;
    animation: satelliteSelfRotation 15s linear infinite;
    z-index: 30;
}

/* Adjust satellite position for mobile orbits */
@media (max-width: 768px) {
    .advanced-satellite {
        left: 98%; /* Slightly adjusted for smaller orbit */
    }
}

.satellite-main-body {
    position: relative;
    transform-style: preserve-3d;
}

/* Satellite Central Core */
.satellite-central-core {
    width: 40px;
    height: 60px;
    position: relative;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af, #6b7280);
    border-radius: 8px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: translateZ(20px);
}

.core-processor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #3b82f6, #1e40af);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    animation: processorPulse 2s ease-in-out infinite;
}

.core-light {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: lightBlink 1s ease-in-out infinite;
}

/* Solar Panels */
.solar-panel-left,
.solar-panel-right {
    position: absolute;
    width: 80px;
    height: 50px;
    top: 5px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #3730a3);
    border: 2px solid #4c1d95;
    border-radius: 4px;
    transform-style: preserve-3d;
}

.solar-panel-left {
    right: 45px;
    transform: rotateY(-25deg) translateZ(10px);
    animation: panelFlex 20s ease-in-out infinite;
}

.solar-panel-right {
    left: 45px;
    transform: rotateY(25deg) translateZ(10px);
    animation: panelFlex 20s ease-in-out infinite reverse;
}

.panel-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.1) 3px, rgba(255, 255, 255, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.1) 3px, rgba(255, 255, 255, 0.1) 4px);
}

.panel-reflection {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: panelShine 8s ease-in-out infinite;
}

/* Communication Array */
.comm-array {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    transform-style: preserve-3d;
}

.main-dish {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #e5e7eb, #9ca3af);
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    position: relative;
    transform: rotateX(-30deg) translateZ(15px);
    box-shadow: 
        0 5px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(196, 169, 98, 0.4);
    animation: dishTransmission 2s ease-in-out infinite;
}

.main-dish::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    background: #374151;
    border-radius: 50%;
}

.secondary-dish {
    position: absolute;
    top: -10px;
    left: -15px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #d1d5db, #9ca3af);
    border-radius: 50%;
    border: 1px solid #6b7280;
    transform: rotateX(-30deg);
}

.transmitter-antenna {
    position: absolute;
    top: -25px;
    left: 50%;
    width: 2px;
    height: 25px;
    background: linear-gradient(to top, #6b7280, #374151);
    transform: translateX(-50%);
}

.transmitter-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color);
    animation: antennaTransmission 1.5s ease-in-out infinite;
}

/* Navigation Lights */
.nav-light {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: navPulse 2s ease-in-out infinite;
}

.light-red {
    top: 5px;
    left: 5px;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.light-green {
    top: 5px;
    right: 5px;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation-delay: 0.5s;
}

.light-blue {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation-delay: 1s;
}

/* Thruster Effects */
.thruster-effects {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.thruster-flame {
    position: absolute;
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa, transparent);
    filter: blur(2px);
    animation: thrusterFlame 0.5s ease-in-out infinite;
}

.flame-1 {
    left: -10px;
    transform: rotate(-5deg);
}

.flame-2 {
    right: -10px;
    transform: rotate(5deg);
    animation-delay: 0.25s;
}



/* === COMPUTER TERMINAL === */
.computer-terminal {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    perspective: 800px;
    z-index: 8;
}

/* Monitor */
.monitor {
    position: relative;
    transform: rotateY(-15deg);
    transform-style: preserve-3d;
}

.screen {
    width: 18vw;
    height: 12vw;
    min-width: 200px;
    min-height: 130px;
    max-width: 320px;
    max-height: 200px;
    background: #0a0f1b;
    border: 3px solid #374151;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.code-display {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.code-line {
    display: block;
    color: #10b981;
    animation: typewriter 3s steps(40, end) infinite;
}

.code-line .status { color: #3b82f6; }
.code-line .signal-strength { color: #fbbf24; }
.code-line .data-rate { color: #f59e0b; }
.code-line .frequency { color: #8b5cf6; }
.code-line .receiving-data { animation: blink 0.5s ease-in-out infinite; }

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

.signal-visualizer {
    height: 50px;
    margin-top: 10px;
    position: relative;
    border-top: 1px solid #374151;
    padding-top: 10px;
}

#waveform {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.monitor-stand {
    width: 60px;
    height: 30px;
    background: linear-gradient(to bottom, #374151, #1f2937);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

/* Keyboard */
.keyboard {
    margin-top: 20px;
    transform: rotateX(70deg) rotateY(-15deg);
    transform-origin: center top;
}

.keys {
    width: 300px;
    height: 100px;
    background: linear-gradient(135deg, #374151, #1f2937);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.keys::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(255, 255, 255, 0.05) 8px, rgba(255, 255, 255, 0.05) 10px),
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255, 255, 255, 0.05) 8px, rgba(255, 255, 255, 0.05) 10px);
}

.keyboard-glow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 80%;
    height: 20px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.4), transparent);
    filter: blur(10px);
}

/* === ANIMATIONS === */
@keyframes satelliteSelfRotation {
    from { transform: translateX(-50%) translateY(-250px) rotateY(0deg) rotateX(0deg); }
    to { transform: translateX(-50%) translateY(-250px) rotateY(360deg) rotateX(360deg); }
}

@keyframes processorPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 25px rgba(59, 130, 246, 1);
    }
}

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

@keyframes panelFlex {
    0%, 100% { transform: rotateY(-25deg) translateZ(10px); }
    50% { transform: rotateY(-30deg) translateZ(15px); }
}

@keyframes panelShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes antennaTransmission {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color);
    }
    50% { 
        transform: scale(1.8);
        opacity: 0.8;
        box-shadow: 0 0 25px var(--secondary-color), 0 0 50px var(--secondary-color);
    }
}

@keyframes dishTransmission {
    0%, 100% { 
        box-shadow: 
            0 5px 10px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(196, 169, 98, 0.4);
    }
    50% { 
        box-shadow: 
            0 5px 10px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(196, 169, 98, 0.8),
            0 0 50px rgba(196, 169, 98, 0.4);
    }
}

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

@keyframes thrusterFlame {
    0%, 100% { 
        height: 20px;
        opacity: 0.8;
    }
    50% { 
        height: 30px;
        opacity: 1;
    }
}

/* === RESPONSIVE - MAINTAINING PROPORTIONAL DISTANCE === */
@media (max-width: 1200px) {
    .moon-satellite-system {
        width: 500px;
        height: 400px;
    }
    
    .moon {
        /* Standard distance: left: 15% */
        left: 15%;
        width: 10vw;
        height: 10vw;
        min-width: 100px;
        min-height: 100px;
        max-width: 160px;
        max-height: 160px;
    }
    
    .satellite-orbit {
        /* Standard distance: left: 15% */
        left: 15%;
        width: 28vw;
        height: 28vw;
        min-width: 300px;
        min-height: 300px;
        max-width: 450px;
        max-height: 450px;
    }
    
    .computer-terminal {
        /* PC at right edge */
        right: 0%;
    }
    
    .advanced-satellite {
        transform: translateX(-50%) translateY(-200px);
    }
    
    .screen {
        width: 16vw;
        height: 10vw;
        min-width: 180px;
        min-height: 115px;
        max-width: 250px;
        max-height: 160px;
    }
}

@media (max-width: 768px) {
    .moon-satellite-system {
        width: 100%;
        height: 350px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: relative;
    }
    
    .moon {
        /* Better positioning for mobile */
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
        margin-left: 10px;
    }
    
    .satellite-orbit {
        /* Smaller orbit radius for mobile - closer to moon */
        position: absolute;
        left: 50%;
        top: 50%;
        width: 140px; /* Reduced from 200px */
        height: 140px; /* Reduced from 200px */
        min-width: 140px;
        min-height: 140px;
        max-width: 140px;
        max-height: 140px;
        transform: translate(-50%, -50%) rotateX(15deg);
    }
    
    .advanced-satellite {
        /* Adjusted for smaller orbit */
        transform: translateX(-50%) translateY(-70px) scale(0.7);
    }
    
    .computer-terminal {
        /* Better positioning for mobile */
        position: relative;
        right: auto;
        top: auto;
        transform: scale(0.7);
        margin-right: 10px;
    }
    
    .screen {
        width: 120px;
        height: 80px;
        min-width: 120px;
        min-height: 80px;
        max-width: 120px;
        max-height: 80px;
    }
    
    .code-display {
        font-size: 8px;
        line-height: 1.3;
    }
    
    .keyboard {
        display: none; /* Hide keyboard on mobile to save space */
    }
}

@media (max-width: 480px) {
    .moon-satellite-system {
        width: 100%;
        height: 280px;
        padding: 10px;
    }
    
    .moon {
        /* Compact moon for small mobile */
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
        margin-left: 5px;
    }
    
    .satellite-orbit {
        /* Much smaller orbit for mobile - very close to moon */
        width: 110px; /* Reduced from 160px */
        height: 110px; /* Reduced from 160px */
        min-width: 110px;
        min-height: 110px;
        max-width: 110px;
        max-height: 110px;
    }
    
    .advanced-satellite {
        /* Adjusted for smaller orbit */
        transform: translateX(-50%) translateY(-55px) scale(0.6);
    }
    
    .computer-terminal {
        transform: scale(0.6);
        margin-right: 5px;
    }
    
    .screen {
        width: 100px;
        height: 65px;
        min-width: 100px;
        min-height: 65px;
        max-width: 100px;
        max-height: 65px;
    }
    
    .code-display {
        font-size: 7px;
        line-height: 1.2;
    }
    
    /* Hide some details on very small screens */
    .crater-small-1,
    .crater-small-2,
    .crater-small-3 {
        display: none;
    }
    
    .solar-panel-left,
    .solar-panel-right {
        width: 50px;
        height: 30px;
    }
}

@media (max-width: 320px) {
    .moon-satellite-system {
        width: 100%;
        height: 240px;
        padding: 5px;
    }
    
    .moon {
        /* Minimal moon for tiny screens */
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        margin-left: 0;
    }
    
    .satellite-orbit {
        /* Very close orbit for tiny screens */
        width: 90px; /* Reduced from 140px */
        height: 90px; /* Reduced from 140px */
        min-width: 90px;
        min-height: 90px;
        max-width: 90px;
        max-height: 90px;
    }
    
    .advanced-satellite {
        /* Adjusted for minimal orbit */
        transform: translateX(-50%) translateY(-45px) scale(0.5);
    }
    
    .computer-terminal {
        transform: scale(0.5);
        margin-right: 0;
    }
    
    .screen {
        width: 90px;
        height: 60px;
        min-width: 90px;
        min-height: 60px;
        max-width: 90px;
        max-height: 60px;
    }
    
    .code-display {
        font-size: 6px;
        line-height: 1.1;
    }
    
    /* Hide more details on tiny screens */
    .maria-2,
    .maria-3,
    .highlands-1,
    .highlands-2 {
        display: none;
    }
    
    .comm-array {
        display: none;
    }
}