/* Rain & Water Effects */

.water-effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Rain drops */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rain-drop {
    position: absolute;
    top: -20px;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(100, 180, 255, 0.6));
    border-radius: 0 0 2px 2px;
    animation: rain-fall 1.2s linear infinite;
    opacity: 0;
}

@keyframes rain-fall {
    0% {
        top: -20px;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

/* Water surface ripple */
.water-surface {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 180, 255, 0.3) 25%,
        rgba(100, 180, 255, 0.5) 50%,
        rgba(100, 180, 255, 0.3) 75%,
        transparent 100%);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scaleX(1) translateY(0); }
    50%       { transform: scaleX(1.05) translateY(-2px); }
}

/* Floating bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.6),
        rgba(100, 180, 255, 0.2));
    border: 1px solid rgba(100, 180, 255, 0.3);
    animation: bubble-float linear infinite;
    bottom: -60px;
    opacity: 0;
}

.bubble-1  { width: 12px; height: 12px; left: 10%; animation-duration: 6s;  animation-delay: 0s;   }
.bubble-2  { width: 18px; height: 18px; left: 25%; animation-duration: 8s;  animation-delay: 1s;   }
.bubble-3  { width: 8px;  height: 8px;  left: 40%; animation-duration: 5s;  animation-delay: 2s;   }
.bubble-4  { width: 22px; height: 22px; left: 55%; animation-duration: 9s;  animation-delay: 0.5s; }
.bubble-5  { width: 14px; height: 14px; left: 70%; animation-duration: 7s;  animation-delay: 1.5s; }
.bubble-6  { width: 10px; height: 10px; left: 82%; animation-duration: 6s;  animation-delay: 3s;   }
.bubble-7  { width: 16px; height: 16px; left: 15%; animation-duration: 8s;  animation-delay: 2.5s; }
.bubble-8  { width: 20px; height: 20px; left: 90%; animation-duration: 7s;  animation-delay: 4s;   }

@keyframes bubble-float {
    0%   { bottom: -60px; opacity: 0; transform: translateX(0) scale(0.8); }
    10%  { opacity: 0.8; }
    80%  { opacity: 0.4; }
    100% { bottom: 110vh; opacity: 0; transform: translateX(30px) scale(1.1); }
}

/* Screen droplets */
.screen-droplet {
    position: absolute;
    width: 6px;
    height: 10px;
    background: rgba(100, 180, 255, 0.4);
    border-radius: 50% 50% 60% 60%;
    animation: droplet-slide linear infinite;
    opacity: 0;
}

.droplet-1 { top: 10%; left: 20%; animation-duration: 3s;  animation-delay: 0s;   }
.droplet-2 { top: 20%; left: 60%; animation-duration: 4s;  animation-delay: 1s;   }
.droplet-3 { top: 35%; left: 80%; animation-duration: 3.5s; animation-delay: 2s;  }
.droplet-4 { top: 50%; left: 40%; animation-duration: 5s;  animation-delay: 0.5s; }
.droplet-5 { top: 70%; left: 10%; animation-duration: 4.5s; animation-delay: 1.5s;}

@keyframes droplet-slide {
    0%   { opacity: 0; transform: translateY(0); }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(80px); }
}

/* Water ripple (JS tomonidan yaratiladi) */
.water-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid rgba(100, 180, 255, 0.5);
    animation: ripple-expand 0.8s ease-out forwards;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes ripple-expand {
    0%   { width: 0;     height: 0;     opacity: 0.8; }
    100% { width: 120px; height: 120px; opacity: 0;   }
}

.water-splash {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 180, 255, 0.6);
    animation: splash-burst 0.5s ease-out forwards;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes splash-burst {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0;   }
}

/* Reduced motion — foydalanuvchi tanlovi */
@media (prefers-reduced-motion: reduce) {
    .rain-drop,
    .bubble,
    .screen-droplet,
    .water-surface,
    .water-ripple,
    .water-splash {
        animation: none !important;
        opacity: 0 !important;
    }
}
