/* ============================================
   Animation Base Classes
   ============================================ */

.reveal-fade-up,
.reveal-fade-left {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade-up {
  transform: translateY(30px);
}

.reveal-fade-left {
  transform: translateX(30px);
}

.reveal-fade-up.revealed,
.reveal-fade-left.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   Staggered Animations
   ============================================ */

.reveal-fade-up:nth-child(1) { transition-delay: 0ms; }
.reveal-fade-up:nth-child(2) { transition-delay: 100ms; }
.reveal-fade-up:nth-child(3) { transition-delay: 200ms; }
.reveal-fade-up:nth-child(4) { transition-delay: 300ms; }
.reveal-fade-up:nth-child(5) { transition-delay: 400ms; }
.reveal-fade-up:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   Hover Effects
   ============================================ */

.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ============================================
   Loading States
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
}

/* ============================================
   Pulse Animation
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   Fade In Animation
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* ============================================
   Slide In Animations
   ============================================ */

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

.slide-in-bottom {
  animation: slideInFromBottom 0.6s ease-out;
}

/* ============================================
   Reduced Motion Support
   ============================================ */

@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-fade-up,
  .reveal-fade-left {
    opacity: 1;
    transform: none;
  }
}
