/* ==========================================================================
   Bale Kids World — Paylaşılan stil sistemi
   Bold Contemporary: dev kinetik tipografi, yüksek kontrast, canlı hareket.
   ========================================================================== */

:root {
  --coral: #ff5a3c;
  --teal: #00697f;
  --gold: #ffc24b;
  --pink: #ff9dbb;
  --ink: #17130f;
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #faf6ef;
  color: #17130f;
  overflow-x: hidden;
}

::selection {
  background: var(--coral);
  color: #fff;
}

/* -------------------------------------------------------------------------
   Akışkan (fluid) tipografi ölçeği — clamp ile ekrana göre nefes alır
   ------------------------------------------------------------------------- */
.text-hero {
  font-size: clamp(2.5rem, 7.5vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.text-mega {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.text-huge {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.text-big {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.text-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
}

/* İnce kontur (outline) başlık efekti */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}
@media (max-width: 768px) {
  .text-outline {
    -webkit-text-stroke: 1px currentColor;
  }
}

/* -------------------------------------------------------------------------
   Scroll reveal — data-reveal ile çeşitlenen giriş animasyonları
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="left"] {
  transform: translateX(-44px);
}
[data-reveal="right"] {
  transform: translateX(44px);
}
[data-reveal="scale"] {
  transform: scale(0.92);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track,
  .blob {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------
   Kayan yazı bandı (marquee)
   ------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marquee 32s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* -------------------------------------------------------------------------
   Yumuşak degrade "blob" — arka plan hareketi
   ------------------------------------------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -30px) scale(1.08);
  }
}

/* -------------------------------------------------------------------------
   Butonlar
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 60, 0.6);
}
.btn-primary:hover {
  background: #e23b1c;
  box-shadow: 0 18px 40px -12px rgba(255, 90, 60, 0.7);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-ghost {
  background: transparent;
  color: #17130f;
  border: 1.5px solid rgba(23, 19, 15, 0.2);
}
.btn-ghost:hover {
  border-color: #17130f;
  background: #17130f;
  color: #fff;
}

/* Animasyonlu alt çizgi bağlantısı */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------------------------------------------------------------------
   Kart yükseltme (hover)
   ------------------------------------------------------------------------- */
.card-lift {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(23, 19, 15, 0.35);
}

/* Görsel zoom sarmalı */
.img-zoom {
  overflow: hidden;
}
.img-zoom img,
.img-zoom .img-bg {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img,
.img-zoom:hover .img-bg {
  transform: scale(1.06);
}

/* Görsel yüklenemezse zemin degrade görünür kalsın */
.img-bg {
  background-size: cover;
  background-position: center;
}

/* -------------------------------------------------------------------------
   Navigasyon
   ------------------------------------------------------------------------- */
.nav {
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.4s ease;
}
.nav--scrolled {
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(23, 19, 15, 0.08);
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: #544b42;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #17130f;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
}

/* Mobil menü */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
  transform: translateY(0);
}

/* Sayaç / istatistik */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* İnce üst çizgi ayraç */
.rule {
  height: 1px;
  background: rgba(23, 19, 15, 0.12);
}

/* -------------------------------------------------------------------------
   Hero — sanatsal katmanlar
   ------------------------------------------------------------------------- */
/* Grain / tanecik dokusu */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("grain.png");
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Dev hayalet kelime (editoryal derinlik) */
.hero-ghost {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(9rem, 27vw, 25rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 19, 15, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Kemer (arch) fotoğraf formu — stüdyo penceresi */
.arch {
  border-radius: 13rem 13rem 1.75rem 1.75rem;
}

/* Balerin çizimi: kendini çizme + süzülme */
@keyframes draw-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.hero-art {
  animation: draw-in 2.4s cubic-bezier(0.66, 0, 0.34, 1) 0.35s both,
    floaty 7s ease-in-out 3s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}

/* -------------------------------------------------------------------------
   Mekân fotoğrafları — gerçek stüdyo görsellerinin sunumu
   ------------------------------------------------------------------------- */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Yavaş "ken burns" — panoramanın nefes alması */
@keyframes ken {
  0%   { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
  50%  { transform: scale(1.12) translate3d(1.2%, -0.6%, 0); }
  100% { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
}
.ken img {
  animation: ken 34s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ken img { animation: none; }
}

/* Fotoğrafın altına sıcak bir ışık halesi — koridordaki LED bandın yankısı */
.photo-glow {
  position: relative;
  box-shadow: 0 34px 70px -34px rgba(255, 168, 90, 0.75),
    0 26px 60px -28px rgba(23, 19, 15, 0.45);
}

/* Duvardaki ışıklı yuvarlak aynaların dijital karşılığı */
.halo {
  position: relative;
  border-radius: 50%;
}
.halo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.85), transparent 68%);
  filter: blur(12px);
  z-index: -1;
}

/* "In my dance era" — duvardaki altın el yazısının site içi yankısı */
.script-accent {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  color: #b98a3e;
  letter-spacing: 0.01em;
}

/* Koridor duvarındaki pembe S-eğrisi: bölüm geçişi */
.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 100px);
  margin-bottom: -1px;
}
.wave--flip {
  transform: scaleY(-1);
  margin-top: -1px;
  margin-bottom: 0;
}

/* Fotoğraf altyazısı rozeti */
.photo-cap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17130f;
}

/* -------------------------------------------------------------------------
   Lightbox — fotoğrafları tam ekran incelemek için
   ------------------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(23, 19, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lb.open {
  opacity: 1;
  visibility: visible;
}
.lb__img {
  max-width: min(1280px, 94vw);
  max-height: 84vh;
  border-radius: 1.25rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.lb.open .lb__img {
  transform: scale(1);
}
.lb__cap {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 246, 239, 0.75);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 1.5rem;
}
.lb__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #faf6ef;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.lb__close:hover {
  background: var(--coral);
  transform: rotate(90deg);
}
[data-lightbox] {
  cursor: zoom-in;
}
