/* ====================================
   SOLAR SYSTEM ANIMATION FOR HERO
   ==================================== */

.hero .solar-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
}

/* Sun */
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px #FFD700,
        0 0 40px #FFA500,
        0 0 60px #FF6347;
    animation: sunPulse 4s ease-in-out infinite;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFFF00 0%, #FFD700 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    animation: rotate 15s linear infinite reverse;
}

.sun-rays::before,
.sun-rays::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #FFD700, transparent);
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 6px #FFD700,
        25px 0 0 0 #FFD700,
        -25px 0 0 0 #FFD700,
        0 25px 0 0 #FFD700,
        0 -25px 0 0 #FFD700,
        18px 18px 0 0 #FFD700,
        -18px -18px 0 0 #FFD700,
        18px -18px 0 0 #FFD700,
        -18px 18px 0 0 #FFD700;
}

/* Orbits */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: rotate 10s linear infinite;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation: rotate 20s linear infinite;
}

.orbit-3 {
    width: 450px;
    height: 450px;
    animation: rotate 30s linear infinite;
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.planet-1 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #87CEEB, #4682B4);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.planet-2 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #32CD32, #228B22);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
}

.planet-3 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #FF6347, #DC143C);
    box-shadow: 0 0 12px rgba(255, 99, 71, 0.5);
    position: relative;
}

.planet-surface {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.8;
}

.planet-moon {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #C0C0C0, #808080);
    border-radius: 50%;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: rotate 5s linear infinite;
}

/* Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

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

.star:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    bottom: 40%;
    left: 15%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

.star:nth-child(5) {
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
}

.star:nth-child(6) {
    top: 10%;
    left: 60%;
    animation-delay: 2.5s;
}


/* Animations */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes sunPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px #FFD700,
            0 0 40px #FFA500,
            0 0 60px #FF6347;
    }
    50% {
        box-shadow: 
            0 0 30px #FFD700,
            0 0 60px #FFA500,
            0 0 90px #FF6347;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero .solar-system {
        width: 400px;
        height: 400px;
    }
    
    .orbit-1 {
        width: 140px;
        height: 140px;
    }
    
    .orbit-2 {
        width: 220px;
        height: 220px;
    }
    
    .orbit-3 {
        width: 300px;
        height: 300px;
    }
    
    .sun {
        width: 60px;
        height: 60px;
    }
    
    .sun-core {
        width: 45px;
        height: 45px;
    }
    
    .solar-content h2 {
        font-size: 2rem;
    }
    
    .solar-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero .solar-system {
        width: 300px;
        height: 300px;
    }
    
    .orbit-1 {
        width: 100px;
        height: 100px;
    }
    
    .orbit-2 {
        width: 160px;
        height: 160px;
    }
    
    .orbit-3 {
        width: 220px;
        height: 220px;
    }
    
    .sun {
        width: 40px;
        height: 40px;
    }
    
    .sun-core {
        width: 30px;
        height: 30px;
    }
    
    .planet-1 {
        width: 15px;
        height: 15px;
    }
    
    .planet-2 {
        width: 20px;
        height: 20px;
    }
    
    .planet-3 {
        width: 18px;
        height: 18px;
    }
}