/* Hareket & mikro animasyonlar */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes sparkle-float {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px) scale(1.1);
  }
}

@keyframes ring-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 136, 159, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(201, 136, 159, 0);
  }
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

@keyframes pill-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes line-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Hero giriş */
body.is-loaded .hero-enter {
  animation: fade-up 0.9s var(--ease) both;
}

body.is-loaded .hero-enter-d1 { animation-delay: 0.1s; }
body.is-loaded .hero-enter-d2 { animation-delay: 0.22s; }
body.is-loaded .hero-enter-d3 { animation-delay: 0.34s; }
body.is-loaded .hero-enter-d4 { animation-delay: 0.46s; }
body.is-loaded .hero-enter-d5 { animation-delay: 0.58s; }

body.is-loaded .hero-showcase-enter {
  animation: scale-in 1.1s var(--ease) 0.35s both;
}

.hero h1 em {
  background-size: 200% auto;
  animation: shimmer-text 6s ease-in-out infinite;
}

.showcase-glow {
  animation: glow-breathe 5s ease-in-out infinite;
}

/* Yüzen parıltılar */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  animation: sparkle-float 4s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.hero-sparkles span:nth-child(2) { top: 55%; left: 8%; animation-delay: 1.2s; width: 4px; height: 4px; }
.hero-sparkles span:nth-child(3) { top: 30%; right: 15%; animation-delay: 0.6s; }
.hero-sparkles span:nth-child(4) { bottom: 25%; right: 10%; animation-delay: 2s; width: 8px; height: 8px; }
.hero-sparkles span:nth-child(5) { top: 70%; left: 45%; animation-delay: 1.8s; width: 5px; height: 5px; }

.hero-pills li {
  animation: pill-pop 0.6s var(--ease) both;
}

body.is-loaded .hero-pills li:nth-child(1) { animation-delay: 0.7s; }
body.is-loaded .hero-pills li:nth-child(2) { animation-delay: 0.82s; }
body.is-loaded .hero-pills li:nth-child(3) { animation-delay: 0.94s; }

/* Scroll reveal — gelişmiş */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

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

.reveal-scale {
  transform: translateY(24px) scale(0.94);
}

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

/* Stagger gecikmeleri JS ile de set edilir */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* Kart hover */
.bento-card,
.fitcheck-panel,
.cta-panel,
.showcase-item .showcase-frame {
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.bento-card:not(.bento-large):hover {
  transform: translateY(-8px) scale(1.02);
}

.bento-large:hover {
  transform: translateY(-4px);
}

.bento-large:hover .bento-visual .bento-img.loaded {
  transform: scale(1.03);
  transition: transform 0.6s var(--ease);
}

.fitcheck-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

.cta-panel {
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
  animation: line-shine 8s ease-in-out infinite;
  pointer-events: none;
}

.cta-panel:hover {
  transform: translateY(-4px);
}

.story-ring {
  animation: ring-glow 2.8s ease-in-out infinite;
}

.story-ring:nth-child(2) { animation-delay: 0.4s; }
.story-ring:nth-child(3) { animation-delay: 0.8s; }

/* Nav link alt çizgi */
.nav a:not(.btn) {
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--rose-mid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Marquee hız */
.marquee-track {
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Alıntı şeridi */
.quote-strip blockquote em {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.quote-strip:hover blockquote em {
  transform: scale(1.03);
}

/* Mesh — daha canlı */
.mesh-orb-1 {
  animation: drift 16s var(--ease) infinite, glow-breathe 8s ease-in-out infinite;
}

.mesh-orb-2 {
  animation: drift 22s var(--ease) infinite reverse, glow-breathe 10s ease-in-out infinite 2s;
}

/* Telefon 3D eğim (JS) */
.hero-showcase .phone-main,
.hero-showcase .phone-float {
  transform-style: preserve-3d;
  transition: transform 0.2s var(--ease);
}

.fitcheck-panel.visible .fitcheck-list li {
  animation: pill-pop 0.55s var(--ease) both;
}

.fitcheck-panel.visible .fitcheck-list li:nth-child(1) { animation-delay: 0.15s; }
.fitcheck-panel.visible .fitcheck-list li:nth-child(2) { animation-delay: 0.28s; }
.fitcheck-panel.visible .fitcheck-list li:nth-child(3) { animation-delay: 0.41s; }

/* Bölüm ayırıcı parıltı */
.section-header .section-label {
  display: inline-block;
  animation: fade-in 1s ease both;
}

.reveal.visible .section-label {
  animation: pill-pop 0.6s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-main,
  .phone-float {
    transition: none;
  }
}
