// PARTICLES GENERATION const particlesContainer = document.getElementById('particles'); function createParticle() { if (!particlesContainer) return; const p = document.createElement('div'); p.className = 'particle'; const size = Math.random() * 4 + 2 + 'px'; p.style.width = size; p.style.height = size; p.style.left = Math.random() * 100 + '%'; p.style.top = '100%'; p.style.animationDuration = Math.random() * 2 + 2 + 's'; p.style.opacity = Math.random(); particlesContainer.appendChild(p); setTimeout(() => p.remove(), 4000); } setInterval(createParticle, 200);