/* =========================================================
   ENHANCED GALAXY EFFECTS
   Additional spectacular animations and effects
   ========================================================= */

/* Cosmic Dust Particles */
.cosmic-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dustFloat 15s linear infinite;
}

@keyframes dustFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Pulsar Effect */
.pulsar {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ffff 0%, transparent 70%);
    border-radius: 50%;
    animation: pulsarPulse 2s ease-in-out infinite;
}

@keyframes pulsarPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 10px #00ffff;
    }
    50% {
        transform: scale(3);
        opacity: 1;
        box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff;
    }
}

/* Black Hole Effect */
.black-hole {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.8) 30%, black 100%);
    animation: blackHoleRotate 20s linear infinite;
    opacity: 0.3;
}

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

.black-hole::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: blackHoleRing 10s linear infinite;
}

@keyframes blackHoleRing {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.5); opacity: 0; }
}

/* Supernova Explosion */
.supernova {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff6b6b 0%, #ffa500 30%, #ffff00 60%, transparent 100%);
    border-radius: 50%;
    animation: supernovaExplode 1s ease-out forwards;
}

@keyframes supernovaExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(5);
        opacity: 0.8;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* Comet Trail */
.comet {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: cometFly 4s linear infinite;
}

.comet::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    transform: translateY(0.5px);
}

@keyframes cometFly {
    0% {
        transform: translateX(-100px) translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh);
        opacity: 0;
    }
}

/* Nebula Clouds Enhanced */
.nebula-cloud {
    position: absolute;
    border-radius: 50%;
    animation: nebulaDrift 25s ease-in-out infinite;
    opacity: 0.2;
}

.nebula-cloud.purple {
    background: radial-gradient(ellipse, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
}

.nebula-cloud.blue {
    background: radial-gradient(ellipse, rgba(0, 191, 255, 0.2) 0%, transparent 70%);
}

.nebula-cloud.pink {
    background: radial-gradient(ellipse, rgba(255, 20, 147, 0.2) 0%, transparent 70%);
}

@keyframes nebulaDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, -20px) scale(1.1);
    }
    50% {
        transform: translate(20px, -30px) scale(0.9);
    }
    75% {
        transform: translate(-10px, 20px) scale(1.05);
    }
}

/* Interactive Star Clusters */
.star-cluster {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: clusterRotate 30s linear infinite;
}

.star-cluster .cluster-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px white;
}

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

/* Enhanced Footer Galaxy Effects */
.footer-galaxy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
    animation: footerGalaxyFloat 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerGalaxyFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(-15px, -20px) scale(1.1);
        opacity: 0.4;
    }
    50% { 
        transform: translate(10px, -15px) scale(0.9);
        opacity: 0.2;
    }
    75% { 
        transform: translate(-5px, 10px) scale(1.05);
        opacity: 0.35;
    }
}

/* Galaxy Spiral Arms */
.galaxy-arm {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: armRotate 40s linear infinite;
    opacity: 0.2;
}

.galaxy-arm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

/* Cosmic Rays */
.cosmic-ray {
    position: absolute;
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: rayShoot 2s linear infinite;
}

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

/* Removed galaxy theme from hamburger menu for professional look */

/* Responsive Galaxy Effects */
@media (max-width: 768px) {
    .galaxy-arm {
        width: 150px;
        height: 150px;
    }
    
    .black-hole {
        width: 50px;
        height: 50px;
    }
    
    .nebula-cloud {
        transform: scale(0.7);
    }
}

/* Performance Optimizations */
.cosmic-dust,
.dust-particle,
.pulsar,
.black-hole,
.supernova,
.comet,
.nebula-cloud,
.star-cluster,
.galaxy-arm,
.cosmic-ray {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .dust-particle,
    .pulsar,
    .black-hole,
    .supernova,
    .comet,
    .nebula-cloud,
    .star-cluster,
    .galaxy-arm,
    .cosmic-ray,
    .footer-galaxy::after,
    /* Removed galaxy theme animations */
}
