import React, { useEffect, useState } from 'react'; import { motion } from 'framer-motion'; const NaturalRain = () => { const [raindrops, setRaindrops] = useState([]); useEffect(() => { // Generate random raindrops const newRaindrops = Array.from({ length: 100 }).map((_, i) => ({ id: i, left: Math.random() * 100, // percentage size: 1 + Math.random() * 2, // px (width/height of drop) height: 10 + Math.random() * 20, // px (length of the rain streak) delay: Math.random() * 5, // seconds duration: 1 + Math.random() * 1.5, // seconds to fall opacity: 0.2 + Math.random() * 0.6, color: `rgba(173, 216, 230, ${0.3 + Math.random() * 0.7})`, // Light blue, semi-transparent })); setRaindrops(newRaindrops); }, []); return (