/* animations.css */
/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-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-left {
  transform: translateX(-30px);
}
.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(30px);
}
.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.95);
}
.reveal-scale.is-visible {
  transform: scale(1);
}

/* Keyframes */
@keyframes shimmer {
  0% {
    left: -150%;
  }
  100% {
    left: 250%;
  }
}

@keyframes float {
  0%, 100% {
    transform: rotateY(-25deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateY(-25deg) rotateX(5deg) translateY(-10px);
  }
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 199, 123, 0.05);
  }
  to {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 50px rgba(232, 199, 123, 0.15);
  }
}

@keyframes count-flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(-90deg); opacity: 0; }
  51% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0); opacity: 1; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Micro-interactions */
a {
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--text-gold);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.footer__links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.card:hover .card__icon svg {
  transform: rotate(5deg) scale(1.1);
  transition: transform var(--duration) var(--ease-out);
}

.card__icon svg {
  transition: transform var(--duration) var(--ease-out);
}

.badge {
  animation: badge-pulse 3s infinite;
}

@keyframes badge-pulse {
  0%, 100% { background: rgba(232, 199, 123, 0.05); }
  50% { background: rgba(232, 199, 123, 0.1); }
}

/* prefers-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;
  }
  
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
