/* Noomo/Zenilayda fontları */
@font-face {
  font-family: "TTNeoris";
  src: url("../assets/fonts/TTNeoris-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TheSeasons";
  src: url("../assets/fonts/TheSeasons-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #eafffb;
  --ink-soft: rgba(234, 255, 251, 0.66);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #0a3d40;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* WebGL kanvası tüm ekranı kaplar, en altta durur */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}


/* Görsel yüklenene kadar yumuşak bir fallback gradyan */
#scene {
  background: linear-gradient(180deg, #bcd6cf 0%, #4f9a98 45%, #0c6066 100%);
}

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hero a {
  pointer-events: auto;
}

.hero__top,
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__mark {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hero__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.hero__nav a:hover {
  color: var(--ink);
}

/* Sağ küme: menü + dil değiştirici */
.header__right {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.2rem);
  margin-left: auto;
}

/* Dil değiştirici (TR | EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  pointer-events: auto;
}

.lang-opt {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.lang-opt:hover,
.lang-opt.is-active {
  color: var(--ink);
}

.lang-sep {
  color: var(--ink-soft);
  opacity: 0.5;
  font-size: 0.85rem;
}

/* Hamburger butonu (yalnızca mobilde görünür) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 20;
  padding: 0 0.1em;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

/* Son menü öğesinin harf-aralığı kuyruğunu iptal et (sağ boşluk = sol boşluk) */
.hero__nav a:last-child {
  margin-right: -0.06em;
}

.hero__center {
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.hero__title {
  font-size: clamp(3rem, 11vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow: 0 2px 40px rgba(0, 50, 52, 0.35);
}

.hero__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__bottom {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__hint {
  opacity: 0.8;
}

/* Sağdaki kahraman alıntı metni (canvas üstü HTML katmanı) */
.hero-quote {
  position: fixed;
  right: 9vw;
  top: 52%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46vw;
  pointer-events: none;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 45, 48, 0.22);
}

.hero-quote {
  font-family: "TTNeoris", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(42px, 4vw, 78px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.quote-line {
  display: block;
  width: max-content;
  margin-inline: auto;
  transform: translateX(var(--x, 0));
}

.quote-what {
  --x: 1rem;
}

.quote-guides {
  --x: -0.3rem;
}

.quote-through {
  --x: 4.2rem;
}

.quote-change {
  --x: 7.2rem;
}

.quote-reinvention {
  --x: 1.1rem;
}

.quote-unknown {
  --x: -5rem;
  white-space: nowrap;
}

.hero-quote em {
  font-family: "TheSeasons", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* Satır araları: ortası parlak, kenarları transparan ışık çizgisi */
.quote-rule {
  display: block;
  height: 2px;
  width: 22vw;
  max-width: 420px;
  margin: 0.06em auto;
  transform: translateX(var(--rx, 0));
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
}

.quote-rule-short {
  width: 16vw;
  max-width: 300px;
}

.quote-rule-wide {
  width: 30vw;
  max-width: 560px;
}

@media (max-width: 900px) {
  .hero-quote {
    right: auto;
    left: 6vw;
    width: auto;
    max-width: 88vw;
    top: auto;
    bottom: 12vh;
    transform: none;
    text-align: left;
    font-size: clamp(32px, 6vw, 60px);
  }
  .quote-line {
    transform: none;
    width: auto;
    margin-inline: 0;
  }
  .quote-rule {
    transform: none;
    width: 58%;
    max-width: 260px;
    margin-left: 0;
  }
}

/* Telefon: menü görünür kalsın, küçült; hero metni sığsın */
@media (max-width: 600px) {
  .hero {
    padding: 1.25rem 1.25rem;
  }
  /* Hamburger solda, marka üstte ortalı */
  .hero__top {
    position: relative;
    justify-content: flex-start;
  }
  .hero__mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  /* Üst menü ve hamburger mobilde gizli — alt sekme çubuğu (tabbar) kullanılır */
  .nav-toggle {
    display: none;
  }
  .hero__nav {
    display: none;
  }
  .hero-quote {
    /* Metni olduğu yerde (aynı dikey konumda) sayfaya yatay ortala */
    left: 1.25rem;
    right: 1.25rem;
    bottom: 18vh;
    max-width: none;
    text-align: center;
    font-size: clamp(26px, 7.4vw, 42px);
  }
  .hero-quote .quote-line {
    margin-inline: auto;
  }
  .hero-quote .quote-rule {
    margin-inline: auto;
  }
}

/* ============================================================ */
/* MOBİL ALT SEKME ÇUBUĞU (tabbar)                              */
/* ============================================================ */
.tabbar {
  display: none;
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0.4rem;
  transform: translateX(-50%);
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  width: calc(100% - 1.6rem);
  max-width: 440px;
  padding: 0.35rem;
  background: rgba(6, 28, 30, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(234, 255, 251, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 30, 32, 0.4);
  pointer-events: auto;
}

.tabbar a {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  padding: 0.7rem 0.4rem;
  border-radius: 999px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.tabbar a[aria-current="page"] {
  color: #06201f;
  background: var(--ink);
}

@media (max-width: 600px) {
  .tabbar {
    display: flex;
  }
}
