.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(to bottom, #000000, #001f3f); /* Black transitioning to dark blue */
}

.waves {
  position: relative;
  width: 100%;
  margin-bottom: -7px; /* Fix for safari gap */
  min-height: 100px;
  max-height: 150px;
}

/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  fill: rgba(0, 0, 0, 0.8); /* Black */
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  fill: rgba(0, 31, 63, 0.6); /* Dark blue */
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  fill: rgba(0, 0, 0, 0.4); /* Black */
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  fill: rgba(0, 31, 63, 0.2); /* Dark blue */
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .owd-fade-in {
    animation: owd-fade-in linear forwards;
    animation-timeline: view();
    animation-range: entry;
  }

  @keyframes owd-fade-in {
    0% {
      opacity: 0;
      transform: translatey(400px);
    }

    50% {
      opacity: 0;
    }

    100% {
      opacity: 1;
      transform: translatey(0px);
    }
  }
}

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px; /* Slightly increase height */
  overflow: hidden;
  z-index: 5;
}

.waves {
  width: 100%;
  height: 110px; /* Adjust height to eliminate small gaps */
  display: block;
  position: absolute;
  bottom: -1px; /* Moves waves down slightly to remove artifact lines */
  left: 0;
  transform: scaleY(-1); /* Flipped vertically */
}

/* Flipped wave styling */
.waves.flipped {
  transform: scaleY(-1); /* Flips the wave vertically */
  position: absolute;
  top: 0; /* Adjust if needed */
  left: 0;
  width: 100%;
  height: 100px;
}
