/* Keyframe Animations & Micro-interactions - Pragyan Institute */

/* Pulse Ring Animation for Hero Eyebrow & Badges */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(181, 84, 58, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(181, 84, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(181, 84, 58, 0);
  }
}

/* Floating Animation for Hero Visual Badges */
@keyframes float-y {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Scroll Reveal Fade-Up Effect */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Counter Fade Slide Up */
@keyframes countUpFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-animated {
  animation: countUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lightbox Modal Spring Zoom */
@keyframes springZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  70% {
    transform: scale(1.02) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-modal.active .lightbox-content {
  animation: springZoomIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Shimmer Highlight Effect for CTA Buttons */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-btn {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 4s infinite;
}

/* Smooth Tab Fade Transition */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.batch-card-animating {
  animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Accessibility: Disable non-essential animations on prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-badge {
    animation: none !important;
  }
  .shimmer-btn {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
