/* ============================================================
   Modern Animations & Motion (2026)
   Intersection Observer + CSS-only scroll animations
   prefers-reduced-motion respected
   ============================================================ */

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent-strong);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---- Alpine cloak ---- */
[x-cloak] { display: none !important; }

/* ---- Navbar scrolled state ---- */
.navbar-mybd {
  transition: padding .2s ease, box-shadow .2s ease, background .2s ease;
}
.navbar-mybd.navbar-scrolled {
  padding: .5rem 0;
  background: rgba(255, 253, 251, 0.98);
  box-shadow: 0 4px 20px rgba(42, 26, 26, 0.08);
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  /* will-change KALDIRILDI — çok element için sürekli will-change yüzlerce composite layer yaratıyor */
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"].is-visible { transition-delay: 100ms; }
.reveal[data-delay="200"].is-visible { transition-delay: 200ms; }
.reveal[data-delay="300"].is-visible { transition-delay: 300ms; }
.reveal[data-delay="400"].is-visible { transition-delay: 400ms; }
.reveal[data-delay="500"].is-visible { transition-delay: 500ms; }
.reveal[data-delay="600"].is-visible { transition-delay: 600ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-zoom {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

/* ---- Hero entrance: stagger letters/words ---- */
@keyframes hero-word-up {
  from { opacity: 0; transform: translateY(40px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero-word {
  display: inline-block;
  opacity: 0;
  animation: hero-word-up .9s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero-word:nth-child(1) { animation-delay: .15s; }
.hero-word:nth-child(2) { animation-delay: .3s; }
.hero-word:nth-child(3) { animation-delay: .45s; }
.hero-word:nth-child(4) { animation-delay: .6s; }
.hero-word:nth-child(5) { animation-delay: .75s; }
.hero-word:nth-child(6) { animation-delay: .9s; }

/* ---- Hero ballerina float ---- */
@keyframes ballerina-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }   /* rotate kaldırıldı, mesafe azaltıldı */
}
.ballerina-float {
  animation: ballerina-float 8s ease-in-out infinite;  /* 6s → 8s, daha az repaint */
}

/* ---- Hero gradient blob (background decoration) — STATİK (animasyon yok) ---- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);     /* 80px → 60px, daha az GPU */
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob.b1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  top: -10%; right: -10%;
  /* blob-drift animasyonu KALDIRILDI — büyük filter:blur element'leri sürekli transform => büyük kasma */
}
.hero-blob.b2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  bottom: -15%; left: -10%;
  opacity: .25;
  /* blob-drift animasyonu KALDIRILDI */
}

/* ---- Animated underline (links) ---- */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.65, .05, .36, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Card hover lift (modern variant) ---- */
.card-lift {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
  /* will-change KALDIRILDI — hover'a kadar transform yok, statik will-change boşa overhead */
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(42, 26, 26, 0.12);
}

/* ---- Floating WhatsApp ---- */
.fab-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: pulse-wa 4s ease-in-out infinite;  /* 2.5s → 4s, daha az frame */
}
.fab-whatsapp:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  color: #fff;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---- Scroll-to-top button ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: background .2s ease, transform .2s ease;
}
.scroll-top-btn:hover {
  background: var(--color-accent-strong);
  transform: translateY(-3px);
}

/* ---- Footer ---- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  padding: .15rem 0;
}
.footer-links a {
  color: rgba(255, 253, 251, 0.7);
  font-size: .9rem;
  transition: color .15s ease, padding-left .2s ease;
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: .35rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255, 253, 251, 0.08);
  border: 1px solid rgba(255, 253, 251, 0.18);
  border-radius: 50%;
  color: rgba(255, 253, 251, 0.85);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.newsletter-form input[type="email"] {
  background: rgba(255, 253, 251, 0.08);
  border: 1px solid rgba(255, 253, 251, 0.18);
  color: #fff;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 253, 251, 0.5);
}
.newsletter-form input[type="email"]:focus {
  background: rgba(255, 253, 251, 0.12);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

/* ---- Stats Counter ---- */
.stat-counter {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Marquee (logo / partner şeridi) ---- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 60s linear infinite;   /* 40s → 60s, daha yavaş = daha az fps yükü */
  width: max-content;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* ---- 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;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
  }
  .ballerina-float, .hero-blob, .fab-whatsapp { animation: none !important; }
}
