/* Ripple and Water Effects CSS */

@keyframes fluid-wave {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  30% {
    opacity: 0.6;
    transform: scale(2);
  }
  70% {
    opacity: 0.3;
    transform: scale(4);
  }
  100% {
    opacity: 0;
    transform: scale(6);
  }
}

/* Fluid Water Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(ellipse 800px 600px at 50% 0%, rgba(120, 180, 255, 0.3), transparent),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(100, 200, 255, 0.2), transparent),
    radial-gradient(ellipse 400px 300px at 20% 50%, rgba(150, 220, 255, 0.25), transparent),
    linear-gradient(180deg, #314554 0%, #132c41 50%, #010a11 100%);
}

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

.wave {
  position: absolute;
  width: 200%;
  height: 200px;
  background: linear-gradient(45deg, 
    rgba(135, 206, 250, 0.1) 0%, 
    rgba(173, 216, 230, 0.2) 25%, 
    rgba(135, 206, 250, 0.1) 50%, 
    rgba(173, 216, 230, 0.2) 75%, 
    rgba(135, 206, 250, 0.1) 100%);
  border-radius: 50% 50% 0 0;
  animation: wave-flow 20s ease-in-out infinite;
}

.wave:nth-child(1) {
  top: 10%;
  left: -50%;
  animation-delay: 0s;
  opacity: 0.7;
}

.wave:nth-child(2) {
  top: 30%;
  right: -50%;
  animation-delay: 3s;
  animation-direction: reverse;
  opacity: 0.5;
}

.wave:nth-child(3) {
  top: 60%;
  left: -50%;
  animation-delay: 6s;
  opacity: 0.6;
}

.wave:nth-child(4) {
  top: 80%;
  right: -50%;
  animation-delay: 9s;
  animation-direction: reverse;
  opacity: 0.4;
}

.ripple {
  position: absolute;
  border: 2px solid rgba(135, 206, 250, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple-expand 1.5s ease-out forwards;
}

@keyframes wave-flow {
  0%, 100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(10%) rotate(1deg) scale(1.1);
  }
  50% {
    transform: translateX(-5%) rotate(-1deg) scale(0.9);
  }
  75% {
    transform: translateX(15%) rotate(0.5deg) scale(1.05);
  }
}

@keyframes ripple-expand {
  0% {
    opacity: 0.8;
    transform: scale(0);
  }
  50% {
    opacity: 0.4;
    transform: scale(3);
  }
  100% {
    opacity: 0;
    transform: scale(8);
  }
}

.floating-object {
  position: absolute;
  bottom: -150px; /* Appear from further down */
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(0, 255, 255, 0.3));
  border-radius: 50%;
  animation: float 16s infinite ease-in-out;
  z-index: 0;
  box-shadow: inset -2px -2px 8px rgba(255, 255, 255, 0.5),
              inset 2px 2px 6px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

@keyframes float {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; } /* Fade in quickly at the bottom */
  90%  { opacity: 1; } /* Stay fully visible most of the way up */
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; } /* Fade out at the very top */
}

.floating-object:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-object:nth-child(2) { left: 30%; animation-delay: 2s; width: 30px; height: 30px; }
.floating-object:nth-child(3) { left: 40%; animation-delay: 3s; width: 30px; height: 30px; }
.floating-object:nth-child(4) { left: 50%; animation-delay: 5s; width: 50px; height: 50px; }
.floating-object:nth-child(5) { left: 70%; animation-delay: 8s; width: 20px; height: 20px; }
.floating-object:nth-child(6) { left: 90%; animation-delay: 11s; width: 60px; height: 60px; }
.floating-object:nth-child(7) { left: 90%; animation-delay: 12s; width: 60px; height: 60px; }

.floating-object.trail1 {
  opacity: 0.5;
  filter: blur(2px);
  animation-delay: 0.3s;
}

.floating-object.trail2 {
  opacity: 0.3;
  filter: blur(4px);
  animation-delay: 0.6s;
}

.floating-object.trail3 {
  opacity: 0.15;
  filter: blur(6px);
  animation-delay: 0.9s;
}