/* Pranabhoomi — Animations & transitions */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseUrgent {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 8px rgba(192, 57, 43, 0);
  }
}

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

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(244, 196, 48, 0.4); }
  50% { box-shadow: 0 0 40px rgba(244, 196, 48, 0.7); }
}

@keyframes sectionFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dropletShine {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Hero stagger */
.hero-animate {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.2s; }
.hero-animate:nth-child(3) { animation-delay: 0.3s; }
.hero-animate:nth-child(4) { animation-delay: 0.4s; }
.hero-animate:nth-child(5) { animation-delay: 0.5s; }

/* Urgent pulse */
.urgency-dot.pulse,
.urgent-pulse {
  animation: pulseUrgent 2s ease-in-out infinite;
}

/* Badge glow */
.tier-badge.active.glow {
  animation: badgeGlow 2.5s ease-in-out infinite;
}

/* Section transitions */
.section-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
