/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS - Miracles2Motion (M2M)
   ========================================================================== */

/* Scroll Reveal */
[data-reveal] {
  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);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation */
@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-animate {
  animation: float-subtle 4.5s ease-in-out infinite;
}

.float-animate-delay {
  animation: float-subtle 5.2s ease-in-out 1.5s infinite;
}

/* Pulse Border Glow */
@keyframes border-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 56, 92, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 56, 92, 0.45);
  }
}

.glow-pulsing {
  animation: border-glow 3s infinite ease-in-out;
}

/* Number Counter Animation (CSS Fallback) */
.num-counter {
  font-variant-numeric: tabular-nums;
}

/* Responsive Accessibility: Reduced Motion */
@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;
  }
  .ambient-orb {
    display: none;
  }
}
