/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Float animation for hero cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Fade in up for scroll reveal */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.4s; }

/* Particle animation */
@keyframes particleDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--drift-x, 100px), var(--drift-y, -200px)) rotate(360deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift var(--duration, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}

.particle.small {
  width: 4px;
  height: 4px;
  background: var(--color-accent-highlight);
}

.particle.large {
  width: 8px;
  height: 8px;
  background: var(--color-accent-secondary);
  opacity: 0.5;
}

/* Subtle glow pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 4px 30px rgba(230, 180, 80, 0.15);
  }
  50% {
    box-shadow: 0 4px 40px rgba(230, 180, 80, 0.3);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

  .hero-floating-card {
    animation: none;
  }
}