/* ==========================================
   Particle Glow Animation for Hero Banner
   ========================================== */

/* Container for particles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Individual particle */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(0, 243, 255, 0.8) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 243, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4);
}

/* Different particles with different timings */
.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-delay: 1.5s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    left: 40%;
    top: 30%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 60%;
    top: 70%;
    animation-delay: 2s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 75%;
    top: 40%;
    animation-delay: 4s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 85%;
    top: 55%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.particle:nth-child(7) {
    left: 50%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 14s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(8) {
    left: 30%;
    top: 80%;
    animation-delay: 3.5s;
    animation-duration: 11s;
}

/* Particle float animation */
@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }
    
    10% {
        opacity: 0.6;
    }
    
    50% {
        opacity: 1;
        transform: translateY(-30px) translateX(20px) scale(1.2);
    }
    
    90% {
        opacity: 0.6;
    }
}

/* Center horizon glow pulse */
.horizon-glow {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 243, 255, 0.3) 0%, 
        rgba(0, 212, 255, 0.15) 30%, 
        transparent 70%);
    z-index: 1;
    animation: horizonPulse 4s ease-in-out infinite;
    pointer-events: none;
    filter: blur(20px);
}

@keyframes horizonPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Floating light orbs (larger particles) */
.light-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: orbFloat 15s ease-in-out infinite;
}

.light-orb:nth-child(9) {
    left: 15%;
    top: 45%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
    filter: blur(15px);
}

.light-orb:nth-child(10) {
    right: 20%;
    top: 35%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation-delay: 3s;
    filter: blur(20px);
}

@keyframes orbFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    
    25% {
        opacity: 0.5;
    }
    
    50% {
        opacity: 0.8;
        transform: translateY(-50px) scale(1.2);
    }
    
    75% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .horizon-glow {
        width: 400px;
        height: 150px;
    }
    
    .light-orb:nth-child(9),
    .light-orb:nth-child(10) {
        width: 50px;
        height: 50px;
    }
}

/* Performance optimization */
.particles-container,
.horizon-glow,
.particle,
.light-orb {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}