/* =========================================================================
   BBRU — Ana sayfa (sinematik) stilleri
   ========================================================================= */
:root {
  /* Gerçek fotoğraf eklemek için: none yerine url('assets/img/insaat.jpg') yazın */
  --photo-insaat: none;
  --photo-lojistik: none;
  --photo-av: none;
  --photo-madencilik: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 60% at 78% 30%, rgba(201,162,75,0.16), transparent 60%),
    radial-gradient(60% 60% at 20% 80%, rgba(90,68,51,0.22), transparent 60%),
    linear-gradient(180deg, #0b0b0e, #08080a 60%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -2; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
  width: 100%;
}
.hero__copy h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); margin: 18px 0 22px; }
.hero__copy h1 .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* 3D amblem */
.hero__emblem {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto;
  transform-style: preserve-3d; perspective: 900px;
}
.emblem__glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,0.28), transparent 62%); filter: blur(12px); }
/* Arkadan aydınlatma diski — siyah kartal/aslan silüetleri bunun önünde belirginleşir */
.emblem__sun {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 60%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(231,205,134,0.75) 0%, rgba(201,162,75,0.42) 34%, rgba(138,106,53,0.15) 55%, transparent 70%);
  filter: blur(3px);
}
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201,162,75,0.25); }
.emblem__ring--1 { animation: spin 26s linear infinite; border-style: dashed; }
.emblem__ring--2 { inset: 10%; border-color: rgba(231,205,134,0.18); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem__layer { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; transition: transform 0.2s ease-out; }
.emblem__layer svg { width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.55)); }
.emblem__eagle { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(-3%); } 50% { transform: translateY(2%); } }

/* Kare çerçeveli logo (hero) — eski 3D kartalın yerine */
.hero__logo-frame {
  position: absolute; inset: 15%; z-index: 2;
  display: grid; place-items: center;
  padding: clamp(10px, 2vw, 18px);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(22,22,28,0.88), rgba(10,10,12,0.72));
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  animation: floaty 7s ease-in-out infinite;
}
/* İnce altın gradyan çerçeve kenarı */
.hero__logo-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad-gold);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero__logo-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 18px; display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Hero 3D (model-viewer / Spline) katmanı — yoksa amblem (glow/sun/ring) kalır */
.hero__spline { position: absolute; inset: -4%; z-index: 1; }
.hero__spline spline-viewer { width: 100%; height: 100%; display: block; }
.hero__spline model-viewer { width: 100%; height: 100%; display: block; background: transparent; --poster-color: transparent; }
.hero__emblem.has-spline > .emblem__glow,
.hero__emblem.has-spline > .emblem__sun,
.hero__emblem.has-spline > .emblem__ring { display: none; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-2); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero__emblem { max-width: 340px; order: -1; }
  .hero__actions { justify-content: center; }
  .eyebrow::before { display: none; }
  .hero { padding-bottom: 40px; }
  .hero__scroll { display: none; } /* mobilde butonlarla çakışmasın */
}

/* ---------- Lenis yumuşak scroll (önerilen) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- CINEMA (pinned) ---------- */
.cinema { position: relative; height: 560vh; }
.cinema__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.cinema__sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #0a0a0d 0%, #12100c 50%, #0a0a0d 100%);
  transition: background 0.6s linear;
}
.cinema__stars {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(231,205,134,0.5), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.4), transparent);
}

/* Sahneler */
.scene { position: absolute; inset: 0; z-index: 1; opacity: 0; }
.scene--insaat { opacity: 1; } /* JS gelene kadar ilk sahne görünsün */
/* Gerçek fotoğraf katmanı — <body class="use-photos"> eklenince tam ekran görünür */
.scene__photo { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s var(--ease); will-change: transform; }
.scene__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,0.45) 0%, rgba(8,8,10,0.15) 35%, rgba(8,8,10,0.55) 65%, rgba(8,8,10,0.92) 100%); }
body.use-photos .scene__photo { opacity: 1; }
body.use-photos .scene__art { display: none; } /* foto/video varken vektör siluetleri gizle */

/* Tam ekran sinematik sahne videosu (poster = fotoğraf fallback) */
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; will-change: transform; }
.scene__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,0.42) 0%, rgba(8,8,10,0.12) 32%, rgba(8,8,10,0.5) 66%, rgba(8,8,10,0.94) 100%); }
.scene__art { position: absolute; inset: 0; }
.scene__art .layer,
.scene__art .road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; will-change: transform; }
.scene__art .layer--far { height: 62%; bottom: 0; }
.scene__art .layer--mid { height: 78%; bottom: 0; }
.scene__art .layer--near { height: 46%; bottom: 0; }
.scene__art::after { /* zemin karartma */ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,0.35) 0%, transparent 30%, rgba(8,8,10,0.85) 100%); }

/* Lojistik yol + tırlar */
.road { height: 30%; display: flex; align-items: flex-end; gap: 60px; justify-content: center; padding-bottom: 8%; }
.road span { width: 60px; height: 8px; background: rgba(201,162,75,0.5); border-radius: 4px; }
.layer--truck { bottom: 12%; height: auto; }
.truck--1 { width: 260px; left: -10%; }
.truck--2 { width: 200px; left: 60%; opacity: 0.85; }

/* Sahne metin paneli */
.scene__panel {
  position: absolute; z-index: 3; bottom: 12%; left: 6%; max-width: 500px;
  padding: 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16,16,20,0.72), rgba(10,10,12,0.55));
  border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow-2);
}
.scene__panel--right { left: auto; right: 6%; }
.scene__index { font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(201,162,75,0.5); display: block; margin-bottom: 8px; }
.scene__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 6px 0 14px; }
.scene__title .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene__panel p { color: var(--muted); margin-bottom: 24px; }

/* Maskotlar — geçişte yandan geçen GERÇEK 3D model */
.mascot { position: absolute; z-index: 4; top: 24%; opacity: 0; pointer-events: none; background: transparent; --poster-color: transparent; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.6)); }
.mascot--eagle { width: 360px; height: 270px; }
.mascot--lion { width: 340px; height: 250px; }

/* İlerleme */
.cinema__progress { position: absolute; z-index: 5; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 18px; }
.cinema__progress .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; transition: all 0.35s var(--ease); }
.cinema__progress .dot.active { background: var(--grad-gold); box-shadow: 0 0 16px var(--gold); transform: scale(1.25); }
.cinema__progress .dot span {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; white-space: nowrap; color: var(--muted);
  opacity: 0; transition: all 0.3s var(--ease); pointer-events: none;
}
.cinema__progress .dot:hover span, .cinema__progress .dot.active span { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 720px) {
  .scene__panel { left: 4%; right: 4%; bottom: 8%; max-width: none; padding: 22px; }
  .scene__panel--right { left: 4%; right: 4%; }
  .scene__index { font-size: 2.4rem; }
  .scene__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .cinema__progress { right: 10px; gap: 14px; }
  .cinema__progress .dot span { display: none; }
  /* Performans: geçiş 3D maskotlarını mobilde gizle (hero+aslan zaten 3D) */
  .mascot { display: none; }
}
/* Çok küçük ekranlarda hero 3D'yi biraz küçült */
@media (max-width: 480px) {
  .hero__emblem { max-width: 280px; }
}

/* ---------- İSTATİSTİK ŞERİDİ ---------- */
.stats-band { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); border-block: 1px solid var(--line); }

/* ---------- NEDEN BBRU ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 60px; }
.why__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.why__emblem { width: 70%; position: relative; z-index: 1; animation: floaty 7s ease-in-out infinite; }
.why__emblem img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }
/* Gerçek 3D aslan modeli (scroll ile döner) */
.why__model { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: transparent; --poster-color: transparent; }
/* Kartal (üst) + Aslan (alt) aynı karede istiflenir; scroll ile birlikte döner */
.why__stack { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: 1fr 1fr; }
.why__stack .why__model { position: static; inset: auto; width: 100%; height: 100%; }
.why__model--eagle { align-self: stretch; }
.why__model--lion { align-self: stretch; }
.why__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,0.2), transparent 60%); filter: blur(20px); }
.why__media::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(201,162,75,0.22); animation: spin 30s linear infinite; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 30px; } .why__media { width: min(320px, 78vw); margin-inline: auto; } }

/* ---------- Hareket azaltma / GSAP yoksa fallback ---------- */
html.no-anim .cinema { height: auto; }
html.no-anim .cinema__pin { position: static; height: auto; overflow: visible; }
html.no-anim .scene { position: relative; inset: auto; opacity: 1 !important; min-height: 92svh; border-bottom: 1px solid var(--line); }
html.no-anim .mascot { display: none; }
html.no-anim .cinema__progress { display: none; }

/* Av bayisi — bayi/marka adı */
.scene__brand {
  display: block; width: fit-content; max-width: 100%; margin: 6px 0 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: 0.01em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
