/* ==========================================================================
   BNI ICON THAILAND — ANIMATIONS STYLESHEET
   Cinematic Reveals, Red Glow Pulses, and Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes redPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(200, 16, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

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

@keyframes mapRadar {
  0% {
    transform: scale(0.98);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
    filter: drop-shadow(0 0 30px rgba(200, 16, 46, 0.6));
  }
  100% {
    transform: scale(0.98);
    opacity: 0.75;
  }
}

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

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL UTILITIES
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Delays for staggered items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive glowing accents */
.map-animated {
  animation: mapRadar 6s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   3. ACCESSIBILITY: REDUCED MOTION SUPPORT
   -------------------------------------------------------------------------- */
@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;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
