/* ===== Keyframes ===== */

@keyframes waveFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  75% { transform: translateY(4px) rotate(3deg); }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 101, 192, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(21, 101, 192, 0); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ===== Animation utility classes ===== */

.animate-fade-in {
  animation: fadeSlideUp 0.5s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.4s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.4s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.3s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}

.spinning {
  animation: spin 1s linear infinite;
}

/* ===== Staggered children ===== */
.stagger-children > * {
  opacity: 0;
  animation: fadeSlideUp 0.4s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }

/* ===== Number counter effect ===== */
.count-animate {
  animation: countUp 0.6s ease forwards;
}

/* ===== Hover effects ===== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ===== Water wave effect for cards ===== */
.wave-bg {
  position: relative;
  overflow: hidden;
}

.wave-bg::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  right: -10%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(21,101,192,0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* ===== Refresh spin ===== */
.refresh-spin {
  animation: spin 0.8s linear;
}

/* ===== Page transitions ===== */
.page-enter {
  animation: fadeSlideUp 0.4s ease forwards;
}

.page-exit {
  animation: fadeSlideUp 0.3s ease reverse forwards;
}
