/* ==========================================================================
   ALAN'S WEB RESUME - APPLE-STYLE SCROLL DYNAMICS & ANIMATIONS
   ========================================================================== */

/* Apple iMac-inspired smooth reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.delay-100 { transition-delay: 80ms; }
.delay-200 { transition-delay: 160ms; }
.delay-300 { transition-delay: 240ms; }
.delay-400 { transition-delay: 320ms; }
.delay-500 { transition-delay: 400ms; }

/* Subtle floating pulse */
@keyframes soft-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.live-beacon {
  position: relative;
}
.live-beacon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: inherit;
  animation: soft-pulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .live-beacon::after {
    animation: none !important;
  }
}
