/* Advanced Water Effects - Realistic Water Waves Background */

/* Hero section with water background */
.hero {
    position: relative;
    overflow: hidden;
}

/* Realistic water wave background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(10, 25, 47, 0.95) 0%, 
            rgba(25, 55, 109, 0.9) 25%, 
            rgba(30, 70, 130, 0.85) 50%, 
            rgba(20, 45, 95, 0.9) 75%, 
            rgba(15, 30, 60, 0.95) 100%);
    z-index: -3;
    overflow: hidden;
}

/* Water wave layer 1 - Large flowing waves */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Large wave patterns */
        radial-gradient(ellipse 1200px 300px at 20% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(135, 206, 250, 0.08) 30%, transparent 70%),
        radial-gradient(ellipse 800px 200px at 80% 20%, rgba(0, 191, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 75%),
        radial-gradient(ellipse 1000px 250px at 50% 70%, rgba(135, 206, 250, 0.1) 0%, rgba(255, 255, 255, 0.08) 35%, transparent 65%),
        radial-gradient(ellipse 900px 220px at 10% 80%, rgba(255, 255, 255, 0.14) 0%, rgba(0, 150, 255, 0.07) 45%, transparent 80%),
        radial-gradient(ellipse 1100px 280px at 90% 60%, rgba(0, 191, 255, 0.12) 0%, rgba(135, 206, 250, 0.09) 38%, transparent 72%);
    animation: waterWaves1 25s ease-in-out infinite;
    z-index: -2;
}

/* Water wave layer 2 - Medium ripples */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Medium wave patterns */
        radial-gradient(ellipse 600px 150px at 30% 40%, rgba(255, 255, 255, 0.16) 0%, rgba(0, 150, 255, 0.1) 25%, transparent 60%),
        radial-gradient(ellipse 500px 120px at 70% 30%, rgba(135, 206, 250, 0.14) 0%, rgba(255, 255, 255, 0.08) 30%, transparent 65%),
        radial-gradient(ellipse 700px 170px at 60% 80%, rgba(0, 191, 255, 0.18) 0%, rgba(135, 206, 250, 0.1) 35%, transparent 70%),
        radial-gradient(ellipse 550px 140px at 15% 60%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 150, 255, 0.07) 28%, transparent 58%),
        radial-gradient(ellipse 650px 160px at 85% 40%, rgba(135, 206, 250, 0.15) 0%, rgba(255, 255, 255, 0.09) 32%, transparent 62%);
    animation: waterWaves2 30s ease-in-out infinite reverse;
    z-index: -2;
}

/* Small water ripples layer */
.water-ripples {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 300px 80px at 25% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 250px 60px at 75% 75%, rgba(0, 191, 255, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse 350px 90px at 50% 50%, rgba(135, 206, 250, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 280px 70px at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 48%),
        radial-gradient(ellipse 320px 85px at 20% 80%, rgba(0, 150, 255, 0.17) 0%, transparent 52%);
    animation: waterRipples 18s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Water wave animations */
@keyframes waterWaves1 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-20px) translateY(-10px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translateX(15px) translateY(8px) scale(0.98);
        opacity: 1;
    }
    75% {
        transform: translateX(-10px) translateY(-5px) scale(1.02);
        opacity: 0.95;
    }
}

@keyframes waterWaves2 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateX(25px) translateY(-8px) scale(1.03) rotate(0.5deg);
        opacity: 0.85;
    }
    40% {
        transform: translateX(-15px) translateY(12px) scale(0.97) rotate(-0.3deg);
        opacity: 1;
    }
    60% {
        transform: translateX(18px) translateY(-6px) scale(1.01) rotate(0.4deg);
        opacity: 0.9;
    }
    80% {
        transform: translateX(-12px) translateY(9px) scale(0.99) rotate(-0.2deg);
        opacity: 0.95;
    }
}

@keyframes waterRipples {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.6;
    }
    66% {
        transform: scale(0.9) rotate(-0.5deg);
        opacity: 0.9;
    }
}

/* Smooth rain effect */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(135, 206, 250, 0.8) 20%, 
        rgba(0, 191, 255, 0.7) 50%, 
        rgba(0, 150, 255, 0.6) 80%, 
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: rainFall linear infinite;
    box-shadow: 
        0 0 8px rgba(135, 206, 250, 0.6),
        0 0 16px rgba(0, 191, 255, 0.3);
    filter: blur(0.3px);
}

@keyframes rainFall {
    0% {
        transform: translateY(-100vh) rotate(8deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(8deg);
        opacity: 0;
    }
}

/* Mouse interaction effects */
.mouse-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(135, 206, 250, 0.3) 20%, 
        rgba(0, 191, 255, 0.25) 40%, 
        rgba(0, 150, 255, 0.2) 60%, 
        rgba(0, 100, 200, 0.15) 80%, 
        transparent 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(135, 206, 250, 0.5),
        0 0 40px rgba(0, 191, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: mouseRippleExpand 3s ease-out forwards;
    z-index: 2;
}

@keyframes mouseRippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: scale(0);
        border-width: 3px;
    }
    30% {
        opacity: 0.8;
        border-width: 2px;
    }
    70% {
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: scale(1);
        border-width: 0;
    }
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(135, 206, 250, 0.9) 30%, 
        rgba(0, 191, 255, 0.7) 60%, 
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 1.2s ease-out forwards;
    box-shadow: 
        0 0 12px rgba(135, 206, 250, 0.8),
        0 0 24px rgba(0, 191, 255, 0.4);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Click ripple effect */
.click-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(135, 206, 250, 0.5) 15%, 
        rgba(0, 191, 255, 0.4) 30%, 
        rgba(0, 150, 255, 0.3) 50%, 
        rgba(0, 100, 200, 0.2) 70%, 
        transparent 100%);
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 0 30px rgba(135, 206, 250, 0.7),
        0 0 60px rgba(0, 191, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: clickRippleExpand 4s ease-out forwards;
    z-index: 3;
}

@keyframes clickRippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: scale(0);
        border-width: 5px;
    }
    25% {
        opacity: 0.9;
        border-width: 4px;
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    75% {
        opacity: 0.3;
        border-width: 1px;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        transform: scale(1);
        border-width: 0;
    }
}


/* Water Pool at Bottom */
.water-pool {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to top,
        rgba(64, 224, 255, 0.4) 0%,
        rgba(64, 224, 255, 0.2) 50%,
        transparent 100%
    );
    overflow: hidden;
    z-index: 1;
}

.water-pool::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: -100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: waterShimmer 4s ease-in-out infinite;
}

.water-pool::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        rgba(64, 224, 255, 0.3) 0px,
        rgba(64, 224, 255, 0.1) 10px,
        rgba(64, 224, 255, 0.3) 20px
    );
    animation: waterRipplePool 3s ease-in-out infinite;
}

@keyframes waterShimmer {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

@keyframes waterRipplePool {
    0%, 100% { 
        transform: scaleX(1) scaleY(1);
        opacity: 0.6;
    }
    50% { 
        transform: scaleX(1.1) scaleY(0.8);
        opacity: 0.8;
    }
}

/* Enhanced Mouse Trail */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(64, 224, 255, 0.8) 0%,
        rgba(64, 224, 255, 0.4) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mouse-trail.active {
    transform: translate(-50%, -50%) scale(1.5);
    background: radial-gradient(
        circle,
        rgba(64, 224, 255, 1) 0%,
        rgba(64, 224, 255, 0.6) 40%,
        transparent 70%
    );
}

/* Smooth Mouse Ripples */
.smooth-ripple {
    position: absolute;
    border: 2px solid rgba(64, 224, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: smoothRippleExpand 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes smoothRippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Enhanced Rain Drops */
.rain-drop {
    position: absolute;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(64, 224, 255, 0.6) 50%,
        rgba(64, 224, 255, 0.3) 100%
    );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.7;
    animation: rainFall linear infinite;
    box-shadow: 0 0 6px rgba(64, 224, 255, 0.3);
}

.rain-drop.small {
    width: 2px;
    height: 8px;
    animation-duration: 1s;
}

.rain-drop.medium {
    width: 3px;
    height: 12px;
    animation-duration: 1.2s;
}

.rain-drop.large {
    width: 4px;
    height: 16px;
    animation-duration: 1.5s;
}

@keyframes rainFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(10deg);
        opacity: 0;
    }
}

/* Water Splash Effect */
.water-splash {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(64, 224, 255, 0.8) 0%,
        rgba(64, 224, 255, 0.4) 50%,
        transparent 100%
    );
    border-radius: 50%;
    animation: splashEffect 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes splashEffect {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) translateY(-10px);
        opacity: 0.8;
    }
    100% {
        transform: scale(2) translateY(-20px);
        opacity: 0;
    }
}

