/* animations.css - Menderes Dalgıç Pompa & Bobinaj */

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
  }
}

@keyframes pulseCopper {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes waveFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUpFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pulse-badge {
  animation: pulseCopper 2s infinite;
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.float-anim {
  animation: floatGentle 4s ease-in-out infinite;
}

.spin-slow {
  animation: spinSlow 20s linear infinite;
}

/* Modal and Tooltip Transitions */
.fade-in {
  animation: scaleUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Water Ripple Effect */
.water-ripple {
  position: relative;
  overflow: hidden;
}

.water-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
}

.water-ripple:active::after {
  width: 280px;
  height: 280px;
  opacity: 1;
  transition: 0s;
}
