/* ============================================
   ABRAHAM CPA — Animations
   ============================================ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: all 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: all 0.7s ease; }
.reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: none; }

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Utility animations */
.fade-up   { animation: fadeUp 0.6s ease both; }
.fade-in   { animation: fadeIn 0.6s ease both; }
.slide-down{ animation: slideDown 0.5s ease both; }
.bounce    { animation: bounce 2s ease-in-out infinite; }

/* Respect user's 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;
  }
}