/* ============================================
   UTILITIES - Animations & Keyframes
   ============================================ */

/* Spin Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Premium Pulse Animation */
@keyframes premiumPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Premium Shimmer Animation */
@keyframes premiumShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Premium Fade In Up Animation */
@keyframes premiumFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Check Slide In Animation */
@keyframes premiumCheckSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Premium Check Pop Animation */
@keyframes premiumCheckPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Data Animate Utilities */
[data-animate] {
  opacity: 0;
  transform: translateY(18px) translateZ(0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

[data-animate="fade-left"] {
  transform: translateX(18px) translateZ(0);
}

[data-animate="fade-right"] {
  transform: translateX(-18px) translateZ(0);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
