/* ============================================================
   Goathletic — pages/home.css
   Anasayfa: yükleme ekranı, scroll animasyon sahnesi, iş birlikleri
   marquee, "Neden Goathletic", eğitmen kartları ve SSS.
   ============================================================ */

/* Anasayfada kaydırma animasyonu kare kare çizildiği için
   yumuşak kaydırma (smooth scroll) kapalı olmalı. */
html { scroll-behavior: auto; }

/* ── Yükleme ekranı ─────────────────────────────────────── */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loading.fade-out { animation: fadeOut 0.7s ease forwards; }

@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

.load-logo {
  margin-bottom: 2.5rem;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
}
.load-logo span { color: var(--accent); }

.load-track {
  width: 220px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.load-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.08s linear;
}
.load-pct {
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Kaydırmalı animasyon sahnesi ───────────────────────── */
.scroll-section {
  position: relative;
  height: 800vh;
}

.sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* alta doğru siyah geçiş */
.sticky::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  z-index: 5;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  pointer-events: none;
}

.scene-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* JS opacity'lerini animasyonla değiştirir */
.vignette-left,
.vignette-right {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.vignette-left {
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    transparent 65%);
}
.vignette-right {
  opacity: 0;
  background: linear-gradient(to left,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    transparent 65%);
}

/* ── İlk kare içeriği ───────────────────────────────────── */
.first-overlay {
  position: absolute;
  left: 5.5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  z-index: 10;
  will-change: opacity, transform;
}

/* anasayfada eyebrow biraz daha iri */
.first-overlay .eyebrow,
.carousel-header .eyebrow,
.why-header .eyebrow,
.trainers-header .eyebrow,
.faq-header .eyebrow,
.last-overlay .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  margin-bottom: 1.1rem;
}

.first-overlay h1 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}
.first-overlay p {
  max-width: 400px;
  margin-bottom: 2.6rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.stats { display: flex; gap: 2.8rem; }

.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 2.8rem;
}

/* ── Son kare içeriği ───────────────────────────────────── */
.last-overlay {
  position: absolute;
  right: 5.5%;
  top: 50%;
  transform: translateY(-50%) translateX(60px);
  max-width: 480px;
  z-index: 10;
  text-align: right;
  opacity: 0;
  will-change: opacity, transform;
}
.last-overlay h2 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}
.last-overlay p {
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.cta {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: var(--accent);
  color: #000;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}
.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ── Kaydırma ipucu ─────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  will-change: opacity;
}
.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  animation: bounce 1.4s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(5px); }
}

/* ── İş birlikleri (sonsuz kayan şerit) ─────────────────── */
.carousel-section {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 5rem 0 6rem;
}
.carousel-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255, 107, 0, 0.045) 0%, transparent 100%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255, 107, 0, 0.03)  0%, transparent 100%);
}

.carousel-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 5%;
}
.carousel-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.marquee-outer { position: relative; z-index: 1; }

/* kenarlarda silikleşme */
.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 130px;
  z-index: 10;
  pointer-events: none;
}
.marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, #000 15%, transparent 100%);
}
.marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, #000 15%, transparent 100%);
}

/* %50 = tek yarının genişliği. Şerit her zaman iki özdeş yarıdan oluşur;
   yarıdaki kart sayısını partial belirler (kayıt sayısına göre tekrarlar).
   --marquee-suresi de oradan gelir, böylece kart sayısı değişse de hız sabit kalır. */
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 28px 0 36px;
  animation: marqueeScroll var(--marquee-suresi, 32s) linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  width: 172px;
  text-align: center;
}

.marquee-square {
  position: relative;
  overflow: hidden;
  width: 172px;
  height: 172px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition:
    background   0.35s ease,
    border-color 0.35s ease,
    box-shadow   0.35s ease,
    transform    0.35s ease;
}
.marquee-square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.marquee-card:hover .marquee-square {
  background: var(--glass-bg-hover);
  border-color: var(--accent-border);
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-card-hov);
}

.marquee-logo {
  position: relative;
  z-index: 2;
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) brightness(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
  pointer-events: none;
  user-select: none;
}
.marquee-card:hover .marquee-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7)) brightness(1.15);
}

/* Marka adı yalnızca kartın üzerine gelinince belirir.
   Gizliyken de yerini korur (opacity ile gizlenir, display:none değil) —
   böylece hover'da şeridin yüksekliği zıplamaz. */
.marquee-label {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.marquee-card:hover .marquee-label {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

/* Dokunmatik cihazlarda hover yok — marka adı hep görünsün. */
@media (hover: none) {
  .marquee-label { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .marquee-square { width: 138px; height: 138px; border-radius: 18px; }
  .marquee-card   { width: 138px; }
  .marquee-track  { gap: 16px; }
  .marquee-outer::before,
  .marquee-outer::after { width: 60px; }
}

/* ── Neden Goathletic ───────────────────────────────────── */
.why-section {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 5rem 5% 6rem;
}
.why-section::before,
.why-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 48%;
  z-index: 2;
  pointer-events: none;
}
.why-section::before {
  top: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.why-section::after {
  bottom: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* JS ile eklenen dalga videosu arka planı */
.why-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
  pointer-events: none;
}

.why-header {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
.why-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.why-header h2 span { color: var(--accent); }
.why-header p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-muted);
}

.why-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.why-card {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 2rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity      0.65s ease,
    transform    0.65s ease,
    background   0.35s ease,
    border-color 0.35s ease,
    box-shadow   0.35s ease;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.why-card:nth-child(2) { transition-delay: 0.13s; }
.why-card:nth-child(3) { transition-delay: 0.26s; }

.why-card.visible { opacity: 1; transform: translateY(0); }
.why-card.visible:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hov);
}

.why-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1.65rem;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.why-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card.visible:hover .why-icon {
  background: rgba(255, 107, 0, 0.25);
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.35);
}

.why-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}
.why-card p {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--text-muted);
}

@media (max-width: 900px) { .why-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .why-cards   { grid-template-columns: 1fr; }
  .why-section { padding: 6rem 5% 7rem; }
}

/* ── Eğitmenlerimiz (anasayfa özeti) ────────────────────── */
.trainers-section {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 5rem 5% 6rem;
}
.trainers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.trainers-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem;
}
.trainers-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.trainers-header h2 span { color: var(--accent); }
.trainers-header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-soft);
}

.trainers-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.trainers-cta {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 900px) { .trainers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) {
  .trainers-grid    { grid-template-columns: 1fr; max-width: 380px; }
  .trainers-section { padding: 6rem 5% 7rem; }
}

/* ── SSS ────────────────────────────────────────────────── */
.faq-section {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 5rem 5% 6rem;
}
.faq-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}
.faq-section::before,
.faq-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 1;
  pointer-events: none;
}
.faq-section::before {
  top: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.faq-section::after {
  bottom: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}

.faq-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 5rem;
}
.faq-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.3rem;
}
.faq-header h2 span { color: var(--accent); }
.faq-header p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.faq-list {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
/* açıkken görünen sol turuncu çizgi */
.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease, top 0.35s ease, bottom 0.35s ease;
}
.faq-item.open {
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 107, 0, 0.08);
}
.faq-item.open::before { opacity: 1; top: 12px; bottom: 12px; }

.faq-question {
  width: 100%;
  padding: 1.35rem 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.faq-num {
  flex-shrink: 0;
  min-width: 28px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}
.faq-item.open .faq-num { color: var(--accent); }

.faq-q-text {
  flex: 1;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s ease;
}
.faq-item.open .faq-q-text { color: #fff; }

/* + / × ikonu */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  transition:
    transform  0.38s var(--ease),
    background 0.3s ease,
    opacity    0.3s ease;
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 12px; }

.faq-item.open .faq-icon {
  background: var(--accent-dim);
  border-color: rgba(255, 107, 0, 0.4);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after  { background: var(--accent); }
.faq-item.open .faq-icon::before { transform: rotate(45deg) scaleX(1.1); }
.faq-item.open .faq-icon::after  { transform: rotate(45deg) scaleY(1.1); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease);
}
.faq-answer-inner {
  padding: 1.1rem 1.6rem 1.5rem 3.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-soft);
}

@media (max-width: 600px) {
  .faq-section      { padding: 6rem 5% 7rem; }
  .faq-answer-inner { padding-left: 1.6rem; }
  .faq-q-text       { font-size: 0.88rem; }
}

/* ── Mobil düzen (animasyon sahnesi) ────────────────────── */
@media (max-width: 768px) {
  /* metinler ortada değil, alta sabitlenir */
  .first-overlay {
    left: 5%;
    right: 5%;
    top: auto;
    bottom: 7%;
    max-width: 100%;
    /* JS burada yalnızca translateX kullanır — translateY(-50%) yok */
  }
  .first-overlay h1 { font-size: 1.85rem; }
  .first-overlay p {
    font-size: 0.875rem;
    max-width: 100%;
    margin-bottom: 1.4rem;
  }

  .stats { gap: 0; }
  .stat + .stat { padding-left: 1.3rem; }
  .stat-num   { font-size: 1.65rem; }
  .stat-label { font-size: 0.6rem; }

  .last-overlay {
    left: 5%;
    right: 5%;
    top: auto;
    bottom: 7%;
    max-width: 100%;
    text-align: left;
  }
  .last-overlay h2 { font-size: 1.85rem; }
  .last-overlay p  { font-size: 0.875rem; margin-bottom: 1.5rem; }

  /* mobilde okunabilirlik için alttan karartma */
  .vignette-left,
  .vignette-right {
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      transparent 68%);
  }
}

@media (max-width: 420px) {
  .first-overlay h1,
  .last-overlay h2 { font-size: 1.55rem; }
  .stat-num        { font-size: 1.45rem; }
  .cta             { font-size: 0.75rem; padding: 0.8rem 1.6rem; }
}

/* ── Hero giriş animasyonu ──────────────────────────────── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
