/* =====================================================================
   NEXORA WEB — animations.css
   Transform/opacity only (GPU-friendly). Respects prefers-reduced-motion.
   ===================================================================== */

/* Scroll reveal --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Glow pulse on hero orbs ---------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { transform: scale(1);    opacity: 0.25; }
  50%      { transform: scale(1.05); opacity: 0.35; }
}
.glow-orb {
  animation: pulse-glow 6s ease-in-out infinite;
}
.glow-orb:nth-child(2) { animation-delay: 2s; }
.glow-orb:nth-child(3) { animation-delay: 4s; }

/* Floating device + badges --------------------------------------------- */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero__device { animation: float-soft 7s ease-in-out infinite; }
.hero__badge--1 { animation: float-soft 6s ease-in-out infinite; }
.hero__badge--2 { animation: float-soft 6s ease-in-out infinite 1.5s; }

/* Pulsing availability dot --------------------------------------------- */
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--gold-strong); }
  70%  { box-shadow: 0 0 0 8px rgba(196, 163, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 163, 90, 0); }
}
.hero__tag-dot { animation: ping 2.2s ease-out infinite; }

/* Animated abstract UI bars inside the device mockup ------------------- */
@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.device-bar { animation: shimmer 3s ease-in-out infinite; }
.device-bar:nth-child(2) { animation-delay: 0.4s; }
.device-bar:nth-child(3) { animation-delay: 0.8s; }

/* Reduced motion: disable all motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
