/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }

/* ============================================
   AMBIENT GLOW KEYFRAMES
   ============================================ */
@keyframes ambientPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1), 0 0 60px rgba(34, 211, 238, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2), 0 0 80px rgba(34, 211, 238, 0.1);
  }
}

/* ============================================
   GRADIENT SHIFT
   ============================================ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* ============================================
   SUBTLE HOVER GLOW (Cards)
   ============================================ */
.feature-card,
.sidebar-card,
.rg-tip-card,
.symbol-card,
.rule-step,
.exp-float-card {
  transition: all 0.3s ease;
}

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */
main {
  animation: pageIn 0.5s ease;
}

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

/* ============================================
   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;
  }

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

  .particle {
    display: none;
  }
}