.water-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,224L48,213.3C96,203,192,181,288,186.7C384,192,480,224,576,213.3C672,203,768,149,864,144C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 1440px 100px;
  animation: wave 15s linear infinite;
}

.wave:nth-child(2) {
  bottom: 0;
  opacity: 0.7;
  animation: wave2 15s linear infinite;
}

.wave:nth-child(3) {
  bottom: 0;
  opacity: 0.5;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1440px;
  }
}

@keyframes wave2 {
  0% {
    background-position-x: 1440px;
  }
  100% {
    background-position-x: 0;
  }
}

.water-drop {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  animation: fall 6s infinite linear;
  z-index: 999;
  opacity: 1 !important;
}

@keyframes fall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Features with interactive water tank */

.water-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.water-card {
  position: relative;
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  overflow: hidden;
}

.water-card:hover {
  transform: translateY(-10px);
}

.water-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: #ee6531;
  top: 0;
  left: 0;
}

.water-icon {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #ee6531;
  font-size: 30px;
}

.water-card h3 {
  margin-bottom: 15px;
  color: #ee6531;
}

/* Interactive water tank demo */
.tank-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 60px 0;
}

.water-tank {
  width: 200px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 5px solid #ee6531;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.water-level {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, #ee6531 0%, #ffbaba 100%);
  height: 50%;
  transition: height 2s ease;
}

.water-level::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ee3131' fill-opacity='1' d='M0,160L48,144C96,128,192,96,288,101.3C384,107,480,149,576,149.3C672,149,768,107,864,96C960,85,1056,107,1152,128C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  animation: wave-small 10s linear infinite;
}

@keyframes wave-small {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 200px;
  }
}

.level-markers {
  position: absolute;
  height: 100%;
  width: 20px;
  right: -25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

.level-marker {
  width: 10px;
  height: 2px;
  background-color: #ee6531;
  position: relative;
}

.level-marker::after {
  content: attr(data-level);
  position: absolute;
  right: -30px;
  top: -10px;
  font-size: 12px;
  color: #ee6531;
}

.tank-controls {
  display: flex;
  gap: 20px;
}

.tank-btn {
  background-color: #ee6531;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tank-btn:hover {
  background-color: #ee6531;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .water-tank {
    width: 150px;
    height: 250px;
  }

  .feature-card {
    margin-bottom: 20px;
  }
}
