/* ==========================================================================
   Animations & Micro-interactions
   ========================================================================== */

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 229, 153, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0);
    transform: scale(0.95);
  }
}

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

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

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

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

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

.animate-glow {
  animation: glowPulse 5s ease-in-out infinite;
}

/* Button Shimmer Effect */
.submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg);
  transition: none;
}

.submit-btn:hover::after {
  left: 140%;
  transition: all 0.75s ease-in-out;
}

/* Intersection Observer Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
