/* ==========================================================================
   JUMLEBAAJ.COM - ANIMATIONS & MOTION SYSTEM
   ========================================================================== */

/* Fade & Slide in Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(2.4) rotate(-15deg);
  }
  70% {
    opacity: 1;
    transform: scale(0.95) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-6deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(230, 81, 0, 0);
  }
}

/* Radar Pulse Animations for Interactive India Map (Matching Reference Image 2) */
@keyframes pulseRadar {
  0% {
    r: 8px;
    opacity: 0.9;
    stroke-width: 2.5px;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    r: 28px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

@keyframes pulseRadarOuter {
  0% {
    r: 12px;
    opacity: 0.25;
  }
  100% {
    r: 44px;
    opacity: 0;
  }
}

/* Continuous Marquee Ticker Track Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 42s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* Scroll-triggered reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Mobile Off-canvas Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background-color: #121315;
  border-left: 2px solid var(--accent-saffron);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2e36;
  padding-bottom: 16px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.mobile-nav-link {
  font-family: var(--font-body-hi);
  font-size: 16px;
  font-weight: 600;
  color: #f4efe6;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.mobile-nav-link:hover {
  color: var(--accent-saffron);
}

/* Prefers-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;
  }

  .ticker-track {
    animation: none !important;
  }
}
