/* ==========================================================================
   MASA EXPORTS – ANIMATIONS & MOTION SYSTEM
   High performance hardware-accelerated transitions & keyframes
   ========================================================================== */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pulse Glow (Hotspots & Trade Nodes) */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 140, 137, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(22, 140, 137, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 140, 137, 0);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 164, 109, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(197, 164, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 164, 109, 0);
  }
}

/* Subtle Floating effect */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Dash array flow animation for trade route SVGs */
@keyframes dashFlow {
  to {
    stroke-dashoffset: -40;
  }
}

/* Reveal classes driven by Intersection Observer */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  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-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 3D Earth Canvas Section Overlay */
.globe-overlay-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  transition: transform var(--transition-fast);
}

.globe-pin-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-champagne-gold);
  border: 2px solid var(--color-pure-white);
  animation: pulseGold 2.2s infinite;
}

.globe-pin-label {
  position: absolute;
  left: 20px;
  top: -8px;
  background: rgba(7, 23, 41, 0.9);
  border: 1px solid rgba(197, 164, 109, 0.4);
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-pure-white);
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Prefer Reduced Motion Accessibility */
@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;
  }
}
