/* CSS-only particle system - Lightweight alternative to Three.js */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2b4da8;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: float 20s infinite;
    box-shadow: 0 0 20px #2b4da8, 0 0 40px #2b4da8;
    filter: brightness(1.5);
}

.particle:nth-child(odd) {
    background: #59c089;
    animation-duration: 25s;
    box-shadow: 0 0 20px #59c089, 0 0 40px #59c089;
    width: 15px;
    height: 15px;
}

.particle:nth-child(3n) {
    background: #4a90e2;
    animation-duration: 15s;
    box-shadow: 0 0 25px #4a90e2, 0 0 50px #4a90e2;
    width: 10px;
    height: 10px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(2);
        opacity: 0;
    }
}

/* Responsive particles */
@media (max-width: 768px) {
    .particle {
        width: 8px;
        height: 8px;
    }
    .particle:nth-child(odd) {
        width: 10px;
        height: 10px;
    }
    .particle:nth-child(3n) {
        width: 6px;
        height: 6px;
    }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
        opacity: 0.3;
    }
}

/* Generate 50 particles with different positions and delays */
.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 10%; animation-delay: 1s; }
.particle:nth-child(3) { left: 15%; animation-delay: 2s; }
.particle:nth-child(4) { left: 20%; animation-delay: 3s; }
.particle:nth-child(5) { left: 25%; animation-delay: 4s; }
.particle:nth-child(6) { left: 30%; animation-delay: 5s; }
.particle:nth-child(7) { left: 35%; animation-delay: 6s; }
.particle:nth-child(8) { left: 40%; animation-delay: 7s; }
.particle:nth-child(9) { left: 45%; animation-delay: 8s; }
.particle:nth-child(10) { left: 50%; animation-delay: 9s; }
.particle:nth-child(11) { left: 55%; animation-delay: 10s; }
.particle:nth-child(12) { left: 60%; animation-delay: 11s; }
.particle:nth-child(13) { left: 65%; animation-delay: 12s; }
.particle:nth-child(14) { left: 70%; animation-delay: 13s; }
.particle:nth-child(15) { left: 75%; animation-delay: 14s; }
.particle:nth-child(16) { left: 80%; animation-delay: 15s; }
.particle:nth-child(17) { left: 85%; animation-delay: 16s; }
.particle:nth-child(18) { left: 90%; animation-delay: 17s; }
.particle:nth-child(19) { left: 95%; animation-delay: 18s; }
.particle:nth-child(20) { left: 3%; animation-delay: 19s; }
.particle:nth-child(21) { left: 8%; animation-delay: 0.5s; }
.particle:nth-child(22) { left: 13%; animation-delay: 1.5s; }
.particle:nth-child(23) { left: 18%; animation-delay: 2.5s; }
.particle:nth-child(24) { left: 23%; animation-delay: 3.5s; }
.particle:nth-child(25) { left: 28%; animation-delay: 4.5s; }
.particle:nth-child(26) { left: 33%; animation-delay: 5.5s; }
.particle:nth-child(27) { left: 38%; animation-delay: 6.5s; }
.particle:nth-child(28) { left: 43%; animation-delay: 7.5s; }
.particle:nth-child(29) { left: 48%; animation-delay: 8.5s; }
.particle:nth-child(30) { left: 53%; animation-delay: 9.5s; }