/* ========================================
   🌌 COSMIC HERO - VOYAGER & EARTH v2.0
   ======================================== */

/* Cosmic Hero Container */
.cosmic-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

/* ========== STARS BACKGROUND ========== */
.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.stars.small { width: 1px; height: 1px; }
.stars.medium { width: 2px; height: 2px; }
.stars.large { width: 3px; height: 3px; box-shadow: 0 0 4px white; }

/* ========== 3D REALISTIC EARTH ========== */
.earth-container {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    perspective: 1200px;
    z-index: 2;
}

/*.earth-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e5799, #0a2342);
    box-shadow: 
        inset -50px -50px 100px rgba(0, 0, 0, 0.8),
        inset 30px 30px 80px rgba(100, 180, 255, 0.3),
        0 0 60px rgba(74, 158, 255, 0.5),
        0 0 100px rgba(74, 158, 255, 0.3),
        0 0 150px rgba(74, 158, 255, 0.1);
    animation: rotateEarth 60s linear infinite;
    transform-style: preserve-3d;
}*/

/* Континенты */
.earth-sphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        radial-gradient(ellipse 80px 120px at 52% 50%, rgba(34, 139, 34, 0.7), transparent 50%),
        radial-gradient(ellipse 70px 130px at 30% 55%, rgba(34, 139, 34, 0.6), transparent 50%),
        radial-gradient(ellipse 140px 90px at 60% 35%, rgba(34, 139, 34, 0.65), transparent 50%),
        radial-gradient(ellipse 60px 50px at 75% 70%, rgba(34, 139, 34, 0.6), transparent 50%),
        radial-gradient(ellipse 90px 110px at 20% 30%, rgba(34, 139, 34, 0.65), transparent 50%);
    animation: rotateContinents 90s linear infinite;
    filter: blur(1px);
}

/* Облака */
.earth-sphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        radial-gradient(ellipse 100px 60px at 25% 25%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(ellipse 80px 50px at 65% 40%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(ellipse 90px 55px at 45% 70%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(ellipse 70px 45px at 80% 60%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(ellipse 60px 40px at 15% 80%, rgba(255, 255, 255, 0.4), transparent 60%);
    animation: rotateClouds 90s linear infinite;
    filter: blur(2px);
} 

@keyframes rotateEarth {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes rotateContinents {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes rotateClouds {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Earth Glow */
.earth-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.25), transparent 65%);
    animation: pulseGlow 4s ease-in-out infinite;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Atmospheric Limb */
.earth-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(135, 206, 250, 0.4) 70%, transparent 80%);
    pointer-events: none;
    animation: atmospherePulse 4s ease-in-out infinite;
}

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

/* Earth Shadow */
.earth-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 110% 110% at 65% 35%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 60%
    );
}

/* ========== VOYAGER SATELLITE ========== */
.voyager-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    animation: orbitVoyager 60s linear infinite;
    transform-origin: 20% 50%;  /* ← ИСПРАВЛЕНО!  Теперь вокруг Земли */
}

@keyframes orbitVoyager {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.voyager {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 50px;
    height: 150px;
    transform: translateX(-50%);
}

.voyager-body {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f4e4a6, #d4af37);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
}

.voyager-dish {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 90%;
    background: radial-gradient(circle, #f4e4a6, #d4af37);
    border: 3px solid #aa8c2c;
    box-shadow: 0 0 25px rgba(212, 175, 55, 1);
}

.voyager-dish::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #aa8c2c, transparent);
}

.voyager-antenna {
    position: absolute;
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, #d4af37, transparent);
    top: -50px;
}

.voyager-antenna.left { left: 5px; transform: rotate(-20deg); }
.voyager-antenna.right { right: 5px; transform: rotate(20deg); }

.voyager-panel {
    position: absolute;
    width: 45px;
    height: 25px;
    background: linear-gradient(90deg, #2a4a6a 0%, #4a9eff 50%, #2a4a6a 100%);
    border: 2px solid #d4af37;
    top: 12px;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.6);
}

.voyager-panel.left { left: -50px; }
.voyager-panel.right { right: -50px; }

.voyager-panel::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #d4af37;
    top: 50%;
    transform: translateY(-50%);
}

.voyager-light {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: blinkLight 2s ease-in-out infinite;
}

.voyager-light.light1 { top: 5px; left: 5px; animation-delay: 0s; }
.voyager-light.light2 { top: 5px; right: 5px; animation-delay: 0.5s; }
.voyager-light.light3 { bottom: 5px; left: 50%; transform: translateX(-50%); animation-delay: 1s; }

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

/* ========== GPS ORBITS (СИНХРОНИЗИРОВАНЫ С ЗЕМЛЁЙ) ========== */
.gps-orbit {
    position: absolute;
    top: 50%;
    left: 20%;  /* ← СИНХРОНИЗИРОВАНО!  */
    transform: translate(-50%, -50%);
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 50%;
    animation: rotateOrbit 40s linear infinite;
}

.orbit-ring.ring1 {
    width: 450px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring.ring2 {
    width: 550px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 50s;
}

.orbit-ring.ring3 {
    width: 650px;
    height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 60s;
    animation-direction: reverse;
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gps-satellite {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4a9eff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.8);
    animation: pulseSatellite 2s ease-in-out infinite;
}

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

.gps-satellite.sat1 { top: 0; left: 50%; transform: translateX(-50%); }
.gps-satellite.sat2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.gps-satellite.sat3 { top: 50%; left: 0; transform: translateY(-50%); }
.gps-satellite.sat4 { top: 50%; right: 0; transform: translateY(-50%); }

.signal-beam {
    position: absolute;
    width: 2px;
    height: 225px;
    background: linear-gradient(to bottom, rgba(74, 158, 255, 0.6), transparent);
    animation: pulseBeam 3s ease-in-out infinite;
    transform-origin: top center;
}

.signal-beam.beam1 { top: 0; left: 50%; transform: translateX(-50%); }
.signal-beam.beam2 { bottom: 0; left: 50%; transform: translateX(-50%) rotate(180deg); animation-delay: 0.5s; }
.signal-beam.beam3 { top: 50%; left: 0; transform: translateY(-50%) rotate(90deg); animation-delay: 1s; }
.signal-beam.beam4 { top: 50%; right: 0; transform: translateY(-50%) rotate(-90deg); animation-delay: 1.5s; }

@keyframes pulseBeam {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* ========== HERO CONTENT ========== */
.cosmic-hero-content {
    position: absolute;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    text-align: left;
    z-index: 10;
    color: white;
    max-width: 580px;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(9, 10, 15, 0.7), rgba(27, 39, 53, 0.6));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cosmic-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 15px rgba(74, 158, 255, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.cosmic-hero-content .subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s 0.2s ease backwards;
    line-height: 1.5;
}

.cosmic-hero-content .description {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
    animation: fadeInUp 1s 0.4s ease backwards;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cosmic-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.6s ease backwards;
}

.cosmic-btn {
    padding: 11px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.cosmic-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.5),
        0 0 30px rgba(102, 126, 234, 0.3);
}

.cosmic-btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 10px 28px rgba(102, 126, 234, 0.7),
        0 0 50px rgba(102, 126, 234, 0.5);
}

.cosmic-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.cosmic-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.03);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .cosmic-hero-content {
        left: 50%;
        text-align: center;
        max-width: 80%;
    }
    
    .cosmic-cta-buttons {
        justify-content: center;
    }
    
    .earth-container {
        left: 50%;
        width: 280px;
        height: 280px;
        opacity: 0.6;
    }
    
    .earth-glow {
        left: 50%;
        width: 310px;
        height: 310px;
    }
    
    .gps-orbit {
        left: 50%;
    }
}

@media (max-width: 768px) {
   /* .voyager {
        width: 60px;
        height: 120px;
        top: 12%;
    }*/
    .voyager {
    position: absolute;
    top: 0%;
    left: 1%;
    width: 30px;
    height: 10px;
    transform: translateX(-50%);
    }
    .earth-container {
        width: 200px;
        height: 200px;
        opacity: 0.4;
        left: 50%;
        top: 30%;
    }
    
    .earth-glow {
        width: 230px;
        height: 230px;
        left: 50%;
        top: 30%;
    }
    
    .gps-orbit {
        left: 50%;
        top: 30%;
    }
    
    .cosmic-hero-content {
        top: 65%;
        padding: 1.5rem;
        max-width: 90%;
        background: rgba(9, 10, 15, 0.85);
    }
    
    /*.voyager {
        width: 50px;
        height: 50px;
        top: 5%;
    }*/
    
    .voyager-body {
        width: 30px;
        height: 30px;
    }
    
    .voyager-dish {
        width: 30px;
        height: 30px;
        top: -1px;
    }
    
    .voyager-panel {
        width: 26px;
        height: 16px;
    }
    
    .voyager-panel.left { left: -30px; }
    .voyager-panel.right { right: -30px; }
    
    .orbit-ring.ring1 { width: 320px; height: 320px; }
    .orbit-ring.ring2 { width: 400px; height: 400px; }
    .orbit-ring.ring3 { display: none; }
    
    .cosmic-cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cosmic-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cosmic-hero-content h1 {
        font-size: 1.6rem;
    }
    
    .cosmic-hero-content .subtitle {
        font-size: 0.95rem;
    }
    
    .cosmic-hero-content .description {
        font-size: 0.85rem;
    }
    
    .earth-container {
        width: 150px;
        height: 150px;
    }
    
    .earth-glow {
        width: 180px;
        height: 180px;
    }
}