/* ============================================================
   Animations — aobaheth.com
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.from-right { transform: translateX(28px); }
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right.in, .reveal.from-left.in { transform: none; }

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(255,210,0,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(255,210,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,210,0,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.anim-float { animation: floatY 6s ease-in-out infinite; }
.anim-spin  { animation: spinSlow 40s linear infinite; }
.anim-pulse { animation: pulseRing 2.4s infinite; }
.anim-up    { animation: fadeUp .8s ease both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-float, .anim-spin, .anim-pulse, .anim-up { animation: none; }
}
