.water {
  position: fixed;
  bottom: -30px;
  left: -50%;
  width: 200%;
  height: 0;
  max-height: 80vh;
  background: rgba(196, 231, 255, 0.42); /* Slight tint */
  background: radial-gradient(circle, rgba(196, 231, 255, 0.42) 30%, transparent 90%);
  backdrop-filter: blur(2px) contrast(1.2) brightness(0.85); /* Water distortion */
  transition: height 0.81s ease-out;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  animation: water 8s infinite linear;
}

.water:before {
  content: "";
  position: absolute;
  top: -20px; /* Starts slightly above the water */
  left: 0;
  width: 200%; /* Ensure smooth horizontal animation */
  height: 30px; /* Height of the waves */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 20%, transparent 80%);
  border-radius: 50%; /* Smooth wave shape */
  mix-blend-mode: lighten;
  opacity: 0.7;
  animation: wave 4s infinite linear;
}

.water:after {
  content: "";
  position: absolute;
  top: -10px; /* Align with the main wave */
  left: 0;
  width: 200%;
  height: 25px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 30%, transparent 90%);
  border-radius: 50%;
  mix-blend-mode: lighten;
  opacity: 0.5;
  animation: wave 6s infinite linear reverse; /* Moves in the opposite direction for dynamic effect */
}

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

@keyframes water {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg); /* Floating movement */
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.text-layout {
p {
  transition: all 0.53s;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}

p.blurred {
  color: rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 5px rgba(0, 162, 232, 0.6);
}

.floating-text {
  transition: all 0.3s;
  position: relative;
}

.floating-text span {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.floating-text span:nth-child(even) {
  animation-delay: 0.5s; /* Staggered animation */
}

.floating-text span:nth-child(odd) {
  animation-delay: 0s; /* Staggered animation */
}
}
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg); /* Floating movement */
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
