/* ============================================================
   burakdiri.com — kişisel web sayfası
   Tasarım sistemi
   ============================================================ */

:root {
  /* Renk — koyu, soğuk, sofistike */
  --bg:        oklch(0.155 0.012 256);
  --bg-2:      oklch(0.185 0.014 256);
  --bg-3:      oklch(0.225 0.015 256);
  --fg:        oklch(0.965 0.004 256);
  --muted:     oklch(0.70 0.012 256);
  --muted-2:   oklch(0.55 0.012 256);
  --line:      oklch(1 0 0 / 0.10);
  --line-2:    oklch(1 0 0 / 0.06);
  --accent:    oklch(0.72 0.132 238);
  --accent-2:  oklch(0.80 0.10 220);
  --accent-ink: oklch(0.18 0.04 250);

  /* Tipografi */
  --f-display: "Schibsted Grotesk", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, monospace;

  /* Ölçü */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: oklch(0.155 0.012 256 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-2);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.01em;
}
.brand .sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 4px 0;
  opacity: 0.86;
  transition: opacity .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1.5px; width: 0;
  background: var(--accent);
  transition: width .28s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* Dil seçici */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 12px;
}
.lang button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* Hamburger (mobil) */
.burger { display: none; }

/* ============================================================
   HERO — her zaman ilk ekranı dolduran görsel
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: 72% center; /* yüz sağda kalsın */
  z-index: 0;
}
/* Alttan yukarı gradient + sol taraf okunabilirlik katmanı */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 2%, oklch(0.155 0.012 256 / 0.55) 22%, transparent 52%),
    linear-gradient(to right, oklch(0.13 0.012 256 / 0.86) 0%, oklch(0.13 0.012 256 / 0.30) 38%, transparent 64%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 9vh, 110px);
}
.hero__tag {
  max-width: 580px;
}
.hero__tag .eyebrow { display: inline-block; margin-bottom: 18px; }
.hero__tag h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4.9vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__tag h1 .accent { color: var(--accent); }
.hero__tag p {
  margin-top: 20px;
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}

/* Scroll ipucu */
.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 90px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue .dot {
  writing-mode: horizontal-tb;
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
}
.scroll-cue .dot::after {
  content: "";
  position: absolute; top: 0; left: -2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: cueDrop 2.4s ease-in-out infinite;
}
@keyframes cueDrop { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(40px);opacity:0} 100%{opacity:0} }

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.logos {
  background: var(--bg-2);
  border-block: 1px solid var(--line-2);
  padding: clamp(22px, 3vw, 34px) 0;
  overflow: hidden;
}
.logos__label {
  text-align: center;
  margin-bottom: 18px;
  color: var(--muted-2);
}
.marquee {
  display: flex;
  width: max-content;
  animation: scrollX 46s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  padding-right: clamp(34px, 5vw, 68px);
}
.logo-word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0.62;
  transition: opacity .25s, color .25s;
}
.logo-word:hover { opacity: 1; color: var(--fg); }

/* Görsel logolar — yüksekliğe göre normalize, koyu zeminde tek-renk/beyaz his */
.logo-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-img {
  height: clamp(26px, 2.4vw, 34px);
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.6;
  /* Renkli logoları da koyu zeminde uyumlu beyaza çevirir;
     zaten beyaz/transparan logolar için de güvenli. */
  filter: brightness(0) invert(1);
  transition: opacity .25s ease, filter .25s ease;
}
.logo-item:hover .logo-img {
  opacity: 1;
}
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(72px, 11vw, 150px) 0;
  background:
    radial-gradient(120% 80% at 85% 0%, var(--bg-2), transparent 60%),
    var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about__photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -90px 80px -60px oklch(0.72 0.132 238 / 0.25);
  pointer-events: none;
}

.about__name {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.about__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about__title .accent { color: var(--accent); }
.about__body p {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 56ch;
}
.about__body p + p { margin-top: 16px; }

.about__cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 4px;
  transition: gap .25s ease, color .2s;
}
.btn-link:hover { gap: 16px; color: var(--accent-2); }
.btn-link svg { width: 16px; height: 16px; }

.socials { display: flex; align-items: center; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.socials a:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: oklch(0.72 0.132 238 / 0.12);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tmonials {
  padding: clamp(72px, 11vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  overflow: hidden;
}
.tmonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.tmonials__head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.02em;
}
.tmonials__head .quote-mark {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.5;
}
.t-controls { display: flex; gap: 10px; }
.t-controls button {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .15s;
}
.t-controls button:hover { background: var(--bg-3); border-color: var(--accent); }
.t-controls button:active { transform: scale(0.94); }
.t-controls svg { width: 18px; height: 18px; }

.t-track {
  display: flex;
  gap: clamp(18px, 2vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(300px, 40vw, 460px);
  height: 470px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.t-card .q-icon {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 0.4;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 22px;
}
.t-card blockquote {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  flex: 1;
}
.t-author {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 96px;
}
.t-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  border: 1px solid var(--line);
  transition: filter .3s ease;
}
.t-card:hover .t-avatar { filter: grayscale(0); }
.t-avatar--ph {
  display: grid;
  place-items: center;
  filter: none;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  color: var(--accent-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.t-author__meta { min-width: 0; }
.t-author .nm { font-weight: 600; font-size: 15px; line-height: 1.3; }
.t-author .rl {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.t-author .co {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent-2);
  margin-top: 2px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(56px, 7vw, 90px) 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-2);
}
.footer__brand .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.footer__brand .tag {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 34ch;
}
.footer__nav {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  padding: 5px 0;
  transition: color .2s;
}
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links, .scroll-cue { display: none; }
  .burger {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent; color: var(--fg);
    cursor: pointer;
  }
  .burger svg { width: 20px; height: 20px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 380px; aspect-ratio: 4/5; }
  .hero__veil {
    background:
      linear-gradient(to top, var(--bg) 4%, oklch(0.155 0.012 256 / 0.5) 26%, transparent 58%),
      linear-gradient(to right, oklch(0.13 0.012 256 / 0.82) 0%, oklch(0.13 0.012 256 / 0.45) 55%, transparent 90%);
  }
  .hero__img { background-position: 78% center; }
}

/* Mobil menü paneli */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: oklch(0.13 0.012 256 / 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 30px;
}
.mobile-menu .close {
  position: absolute;
  top: 24px; right: var(--gutter);
  background: transparent; border: 0; color: var(--fg);
  font-size: 30px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
