/* ═══════════════════════════════════════
   BatuhanWeb — animations.css
   Animasyonlar & Geçişler
   ═══════════════════════════════════════ */

/* Hero içeriği giriş */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Hero animasyon sırası */
.hero-content > *:nth-child(1) { animation: fadeUp .7s ease both .1s; }
.hero-content > *:nth-child(2) { animation: fadeUp .7s ease both .25s; }
.hero-content > *:nth-child(3) { animation: fadeUp .7s ease both .4s; }
.hero-content > *:nth-child(4) { animation: fadeUp .7s ease both .55s; }

/* Orb yavaş dönme */
@keyframes orbPulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

.hero-orb { animation: orbPulse 4s ease-in-out infinite; }

/* ── SCROLL ANİMASYONLARI ── */
/* data-animate özelliğine sahip elemanlar başlangıçta gizli */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

/* IntersectionObserver tarafından eklenen sınıf */
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sıralı kart animasyonları */
[data-animate]:nth-child(2) { transition-delay: .1s; }
[data-animate]:nth-child(3) { transition-delay: .2s; }

/* Kullanıcı hareketi azaltmak istiyorsa animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
