/* ========================
   animations.css — Aref Abdala Portfolio
   ======================== */

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

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

/* ========================
   Hero Load Sequence
   ======================== */
.fade-in {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }

/* ========================
   Scroll Reveal
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for reveal groups */
.reveal-group .reveal:nth-child(1)  { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2)  { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3)  { transition-delay: 0.2s; }
.reveal-group .reveal:nth-child(4)  { transition-delay: 0.3s; }
.reveal-group .reveal:nth-child(5)  { transition-delay: 0.4s; }
.reveal-group .reveal:nth-child(6)  { transition-delay: 0.5s; }
.reveal-group .reveal:nth-child(7)  { transition-delay: 0.6s; }
.reveal-group .reveal:nth-child(8)  { transition-delay: 0.7s; }

/* ========================
   Page Transition
   ======================== */
body {
  animation: fadeIn 0.3s ease;
}
