/* ==========================================================================
   Furkan Gül Portfolio
   Tema : modern karanlık yüzey + ölçülü dark fantasy + terminal tipografisi
   Yazı : Cormorant Garamond (başlık) · Inter (arayüz) · JetBrains Mono (kod)

   Kural: süsleme değil, hiyerarşi. Tek sıcak aksan (ember), tek soğuk aksan
   (rune); geri kalan her şey tek çizgi kalınlığı ve boşlukla çözülür.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token'lar
   -------------------------------------------------------------------------- */
:root {
  /* Zemin: mürekkep siyahı, hafif mor kaçışlı */
  --bg:        #0a090e;
  --bg-soft:   #0e0d14;
  --surface:   #131119;
  --surface-2: #191722;

  /* Metin: sahne üstünde durduğu için kontrast biraz yüksek tutuldu */
  --text:  #f2eee6;
  --muted: rgba(242, 238, 230, 0.76);
  --faint: rgba(242, 238, 230, 0.52);

  /* Sahne üstündeki yazıyı zeminden ayıran yumuşak mürekkep gölgesi */
  --text-ink: 0 1px 2px rgba(10, 9, 14, 0.9), 0 2px 22px rgba(10, 9, 14, 0.85);

  /* Aksanlar: ember = sıcak altın (fantasy) · rune = soğuk mor (terminal) */
  --ember:      #d8a95e;
  --ember-soft: #f0d5a6;
  --ember-dim:  rgba(216, 169, 94, 0.12);
  --rune:       #9b8cff;
  --rune-dim:   rgba(155, 140, 255, 0.12);
  --danger:     #e08376;

  /* WhatsApp: markanın kendi yeşili, koyu zeminde biraz yumuşatılmış.
     Sayfada tek bir yerde görünür: sağ alttaki yüzen düğme. */
  --wa:      #25d366;
  --wa-soft: #4ce187;

  /* Çizgi: tek kalınlık, iki yoğunluk */
  --line:    rgba(236, 231, 221, 0.09);
  --line-hi: rgba(236, 231, 221, 0.18);

  /* Yarıçap */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-pill: 999px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Consolas, monospace;

  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Taban
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Çok ince film greni: dokuyu verir, dikkati almaz */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

::selection { background: var(--ember); color: #14100a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(236, 231, 221, 0.14); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(216, 169, 94, 0.5); }

:focus-visible { outline: 2px solid var(--rune); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Tipografi & ortak yüzeyler
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Kod belirteci; tr yerel ayarında büyütülünce "whoami" -> "WHOAMİ" olduğu
   için text-transform uygulanmaz. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--rune);
  margin: 0 0 14px;
}

.lead { font-size: 1.02rem; line-height: 1.75; color: var(--muted); margin: 0; }
.accent { color: var(--ember); }

.shell { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 120px 0; position: relative; overflow: hidden; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: 16px; }
.section-head.center { max-width: 660px; margin-left: auto; margin-right: auto; text-align: center; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin: 0 0 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   3b. Sahne katmanı: el çizimi SVG'ler zeminde, karartılmış
       Metnin arkasında durur: düşük opaklık + karartma filtresi + üstten ve
       alttan eriyen maske. Kadraj ve yoğunluk yalnızca burada ayarlanır.
   -------------------------------------------------------------------------- */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  filter: brightness(0.86) saturate(0.98);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 86%, transparent 100%);
}

/* Okunurluk perdesi: sahne ile içerik arasında durur. Bölüm başlığının olduğu
   üst banda daha koyu, aşağı doğru açılır, görsel görünür kalır. */
.section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 9, 14, 0.52) 0%,
    rgba(10, 9, 14, 0.32) 34%,
    rgba(10, 9, 14, 0.28) 70%,
    rgba(10, 9, 14, 0.5) 100%);
}

#about      .scene { opacity: 0.46; background-position: 78% center; background-size: 128% auto; }
#experience .scene { opacity: 0.46; background-position: 56% 16%;   background-size: 120% auto; }
#projects   .scene { opacity: 0.5;  background-position: 26% 36%;    background-size: 124% auto; }
#contact    .scene { opacity: 0.44; background-position: 42% 32%;    background-size: 136% auto; }

/* Doğrudan sahnenin üstünde duran yazılar zeminden ayrılsın */
.section-head .eyebrow,
.section-head h2,
.section-head .lead,
.about-text h2,
.about-text p,
.about-text .label,
.facts strong,
.facts span,
.info-item b,
.info-item p { text-shadow: var(--text-ink); }

/* --------------------------------------------------------------------------
   4. Butonlar
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn i { font-size: 0.9em; }

.btn-primary { background: var(--ember); color: #14100a; font-weight: 600; }
.btn-primary:hover { background: var(--ember-soft); }

.btn-ghost { border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); background: var(--ember-dim); }

.btn-quiet { color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--text); border-color: var(--line-hi); }

.btn-sm { padding: 9px 16px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.35; pointer-events: none; }

/* Yeşil vurgulu düğme: yalnızca WhatsApp'a çıkan eylemlerde kullanılır
   (site asistanının yanıtlarındaki "WhatsApp'tan yaz"). */
.btn.is-wa { color: var(--wa-soft); border-color: rgba(37, 211, 102, 0.3); }
.btn.is-wa:hover { color: #0c1a10; background: var(--wa); border-color: var(--wa); }
.btn.is-wa i { font-size: 1.05em; }

/* --------------------------------------------------------------------------
   5. Navigasyon
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 95;
  height: 2px;
  width: 0;
  background: var(--ember);
  transition: width 0.1s linear;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 9, 14, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ember);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-sm);
  transition: border-color 0.25s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--ember); }
.brand-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1px;
  background: var(--ember);
}

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-link {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-link:hover { color: var(--text); background: rgba(236, 231, 221, 0.06); }

/* Dil değiştirici: iki durumlu tek hap. Seçili dil ember ile dolar. */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.lang-btn {
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { color: #14100a; background: var(--ember); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  margin-left: auto;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-sm);
  cursor: pointer;
}

/* Mobil çekmece: sağdan kayar, ekran boyunu kaplar, enini kaplamaz */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(5, 4, 9, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 80;
  width: min(82vw, 330px);
  display: flex;
  flex-direction: column;
  padding: 22px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-left: 1px solid var(--line-hi);
  box-shadow: -30px 0 70px -34px #000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.drawer-label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--rune); }
.drawer-close {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.drawer-close:hover { color: var(--ember); border-color: var(--line-hi); }

.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  /* Çekmece açılırken satırlar sırayla yerine oturur */
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), color 0.2s var(--ease);
}
.drawer-links a i { font-size: 0.68rem; color: var(--faint); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.drawer-links a:active { color: var(--ember); }
.drawer-links a:active i { color: var(--ember); transform: translateX(3px); }
.nav-drawer.is-open .drawer-links a { opacity: 1; transform: none; }
.nav-drawer.is-open .drawer-links a:nth-child(1) { transition-delay: 0.1s; }
.nav-drawer.is-open .drawer-links a:nth-child(2) { transition-delay: 0.15s; }
.nav-drawer.is-open .drawer-links a:nth-child(3) { transition-delay: 0.2s; }
.nav-drawer.is-open .drawer-links a:nth-child(4) { transition-delay: 0.25s; }
.nav-drawer.is-open .drawer-links a:nth-child(5) { transition-delay: 0.3s; }

.drawer-foot { margin-top: auto; padding-top: 26px; }

/* Çekmecedeki dil satırı: etiket solda, TR/EN hapı sağda */
.drawer-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-lang .lang-switch { margin-left: 0; }

.drawer-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}
.drawer-mail i { color: var(--ember); }
.drawer-social { display: flex; gap: 8px; margin: 16px 0 18px; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Giriş animasyonu: tek hareket, hafif yukarı kayma
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .drawer-links a { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 94vh;
  min-height: 94svh;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  overflow: hidden;
}

/* Sahne hero'da en güçlü yerinde: sağ yarıda net, sola doğru mürekkebe eriyor */
.hero .scene {
  opacity: 0.92;
  filter: brightness(0.94) saturate(1);
  background-position: center 48%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
/* Perde: metin sütununu taşır, sağ tarafta sahneyi serbest bırakır */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(96deg, var(--bg) 12%, rgba(10, 9, 14, 0.86) 32%, rgba(10, 9, 14, 0.52) 52%, rgba(10, 9, 14, 0.14) 74%, transparent 90%),
    linear-gradient(180deg, rgba(10, 9, 14, 0.7) 0%, rgba(10, 9, 14, 0.1) 22%, transparent 54%, rgba(10, 9, 14, 0.5) 88%, var(--bg) 100%);
}

.hero-inner > * { max-width: 620px; }
.hero h1,
.hero-role,
.hero-lead,
.hero-status,
.hero-meta { text-shadow: var(--text-ink); }

.hero-id { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }

/* Portre yörüngesi
   --orb   : dış halkanın çapı; simgeler tam bu halkanın üstünde oturur
   --orb-chip : simge rozetinin çapı
   Katmanlar: .orb-spin döner → .orb-slot açıyı verir → .orb-chip açıyı,
   içindeki <i> de dönüşü geri alır; böylece simgeler dik kalır. */
.hero-orb {
  --orb: 164px;
  --orb-chip: 30px;
  position: relative;
  flex: none;
  width: var(--orb);
  height: var(--orb);
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
/* Dış halka: simgelerin üzerinde yürüdüğü kesik çizgi */
.orb-ring--outer {
  inset: 0;
  border: 1px dashed rgba(216, 169, 94, 0.4);
}
/* İç halka: portreyi zeminden ayıran tek ince çizgi */
.orb-ring--inner {
  inset: calc(var(--orb-chip) / 2 + 6px);
  border: 1px solid rgba(236, 231, 221, 0.24);
  box-shadow: inset 0 0 26px rgba(216, 169, 94, 0.07);
}

.hero-avatar {
  position: absolute;
  top: 50%; left: 50%;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 6px var(--bg), 0 10px 34px rgba(10, 9, 14, 0.7);
}

.orb-spin {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: orb-turn 34s linear infinite;
}
.orb-slot {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a, 0deg));
}
.orb-slot:nth-child(1) { --a:   0deg; }
.orb-slot:nth-child(2) { --a:  72deg; }
.orb-slot:nth-child(3) { --a: 144deg; }
.orb-slot:nth-child(4) { --a: 216deg; }
.orb-slot:nth-child(5) { --a: 288deg; }

/* Rozet halkanın tepesine oturur; merkezi tam çizginin üstüne gelir */
.orb-chip {
  position: absolute;
  top: 0; left: 50%;
  display: grid;
  place-items: center;
  width: var(--orb-chip);
  height: var(--orb-chip);
  margin: calc(var(--orb-chip) / -2) 0 0 calc(var(--orb-chip) / -2);
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line-hi);
  transform: rotate(calc(-1 * var(--a, 0deg)));
}
.orb-chip i {
  font-size: 0.78rem;
  color: var(--faint);
  animation: orb-turn-back 34s linear infinite;
  transition: color 0.3s var(--ease);
}

/* Üzerine gelince yörünge durur, simgeler ısınır */
.hero-orb:hover .orb-spin,
.hero-orb:hover .orb-chip i { animation-play-state: paused; }
.hero-orb:hover .orb-chip i { color: var(--ember); }

@keyframes orb-turn      { to { transform: rotate(360deg); } }
@keyframes orb-turn-back { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  .orb-spin, .orb-chip i { animation: none; }
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.hero-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rune);
  box-shadow: 0 0 0 3px var(--rune-dim);
}

.hero h1 { font-size: clamp(3rem, 7vw, 4.8rem); margin-bottom: 14px; }
.hero-role { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ember); margin: 0 0 22px; }
.hero-lead {
  max-width: 480px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--faint);
}
.hero-meta a { color: var(--faint); text-decoration: none; transition: color 0.2s var(--ease); }
.hero-meta a:hover { color: var(--ember); }
.hero-meta i { margin-right: 8px; color: var(--line-hi); }

.hero-meta li { display: inline-flex; align-items: center; }

/* --------------------------------------------------------------------------
   8. Hakkımda + GitHub
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 64px; align-items: start; }
.about-text p { color: var(--muted); }

/* Giriş cümlesi büyük, devamındaki iki paragraf daha yoğun ve sakin */
.about-lead { margin-top: 16px; }
.about-p { margin-top: 20px; font-size: 0.95rem; line-height: 1.8; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 34px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ember);
  line-height: 1.1;
}
.facts span { font-size: 0.78rem; color: var(--faint); }

.gh-card { padding: 26px; }
.gh-head { display: flex; align-items: center; gap: 14px; }
.gh-avatar {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-hi);
  background: var(--surface-2);
}
.gh-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.gh-handle { font-family: var(--font-mono); font-size: 0.78rem; color: var(--rune); text-decoration: none; }
.gh-handle:hover { text-decoration: underline; }

.gh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gh-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
}
.gh-stats span { font-size: 0.7rem; color: var(--faint); }

.lang-bar {
  display: flex;
  height: 5px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(236, 231, 221, 0.07);
}
.lang-bar i { display: block; height: 100%; }
.lang-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.lang-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lang-dot { width: 7px; height: 7px; border-radius: 50%; }

.gh-bio { font-size: 0.88rem; line-height: 1.7; color: var(--muted); margin: 20px 0 0; }
.gh-actions { display: flex; gap: 10px; margin-top: 22px; }
.gh-actions .btn { flex: 1; }

/* Veri kaynağı damgası: "// canlı · 20 eyl 14:32" */
.gh-stamp {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-align: right;
}

/* Uyarı satırı: limit doldu, bağlantı yok vb. */
.gh-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: var(--r-sm);
  background: var(--ember-dim);
}
.gh-note p  { margin: 0; flex: 1 1 180px; }
.gh-note .btn { flex: none; }

/* Yükleme iskeleti: veri gelene kadar metin alanları nefes alır */
.gh-card.is-loading .gh-name,
.gh-card.is-loading .gh-handle,
.gh-card.is-loading .gh-bio,
.gh-card.is-loading .gh-stats b {
  color: transparent;
  border-radius: var(--r-sm);
  background-image: linear-gradient(90deg,
    rgba(236, 231, 221, 0.05) 0%,
    rgba(236, 231, 221, 0.13) 50%,
    rgba(236, 231, 221, 0.05) 100%);
  background-size: 220% 100%;
  animation: ghShimmer 1.5s var(--ease) infinite;
}
.gh-card.is-loading .gh-avatar { opacity: 0.45; }

@keyframes ghShimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-card.is-loading .gh-name,
  .gh-card.is-loading .gh-handle,
  .gh-card.is-loading .gh-bio,
  .gh-card.is-loading .gh-stats b { animation: none; }
}

/* --------------------------------------------------------------------------
   9. Deneyim + harita
   -------------------------------------------------------------------------- */
.map-panel {
  position: relative;
  height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
#work-map { position: absolute; inset: 0; z-index: 1; }

.leaflet-tile-pane { filter: grayscale(0.35) brightness(0.72) contrast(1.08); }
.leaflet-container { background: var(--surface) !important; font-family: var(--font-ui); outline: none; }
.leaflet-control-attribution {
  background: rgba(10, 9, 14, 0.78) !important;
  color: var(--faint) !important;
  font-size: 0.6rem !important;
  padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }

.leaflet-popup-content-wrapper {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-md) !important;
  box-shadow: 0 18px 40px -20px #000 !important;
}
.leaflet-popup-tip { background: var(--surface-2) !important; }
.leaflet-popup-content { margin: 13px 16px !important; }
.leaflet-popup-close-button { color: var(--faint) !important; }
.pop-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.pop-role { font-size: 0.85rem; color: var(--muted); }
.pop-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ember); margin-top: 6px; }

.pin-wrap { background: transparent !important; border: 0 !important; }
.pin {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  font-size: 0.72rem;
  color: var(--ember);
  background: rgba(10, 9, 14, 0.92);
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pin-wrap:hover .pin { border-color: var(--ember); }
.pin.is-active { background: var(--ember); border-color: var(--ember); color: #14100a; }

.map-tools { position: absolute; z-index: 500; right: 14px; top: 14px; display: grid; gap: 6px; }
.map-btn {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(10, 9, 14, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.map-btn:hover { color: var(--ember); border-color: var(--line-hi); }

.map-fallback { position: absolute; inset: 0; z-index: 2; display: none; background: var(--surface); }
.map-panel.map-failed .map-fallback { display: block; }
.map-panel.map-failed .map-tools { display: none; }
.fb-node { position: absolute; transform: translate(-50%, -50%); z-index: 3; cursor: pointer; text-align: center; }
.fb-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.xp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.xp-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 24px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.xp-card:hover { border-color: var(--line-hi); }
.xp-card.is-active { border-color: var(--ember); background: var(--surface-2); }
.xp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.xp-icon {
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ember);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.xp-company { display: block; font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: 1.2; }
.xp-place { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }
.xp-role { font-size: 0.92rem; margin-bottom: 6px; }
.xp-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-bottom: 14px;
}
.xp-dates .now { color: var(--rune); }
.xp-desc { font-size: 0.88rem; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
/* Etiket satırı kartın dibine çekilir: metinler farklı uzunlukta olsa da
   üç kartın hem başlığı hem etiketleri aynı hizada durur. */
.xp-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.xp-stack span, .proj-stack span {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   10. Projeler
   -------------------------------------------------------------------------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.proj-card { display: flex; flex-direction: column; padding: 26px; transition: border-color 0.25s var(--ease); }
.proj-card:hover { border-color: var(--line-hi); }

.proj-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.proj-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; margin: 0; }
.proj-kind { font-family: var(--font-mono); font-size: 0.66rem; color: var(--faint); flex: none; }
.proj-kind.is-gh { color: var(--rune); }
.proj-role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember); margin: 0 0 14px; }
.proj-desc { font-size: 0.89rem; line-height: 1.7; color: var(--muted); flex: 1 1 auto; margin: 0 0 18px; }
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  margin-bottom: 16px;
}
.proj-meta i { margin-right: 6px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.proj-links { display: flex; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: auto; }
.proj-links .btn { flex: 1; }

.state-note {
  grid-column: 1 / -1;
  padding: 44px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.state-note.is-loading { color: var(--faint); animation: notePulse 1.6s ease-in-out infinite; }

@keyframes notePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .state-note.is-loading { animation: none; }
}

/* --------------------------------------------------------------------------
   11. İletişim
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }

.info-list { border-top: 1px solid var(--line); }
.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s var(--ease);
}
a.info-item:hover { padding-left: 10px; }
.info-item > i { width: 18px; text-align: center; color: var(--ember); font-size: 0.9rem; }
.info-item b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--faint);
}
.info-item p { margin: 2px 0 0; font-size: 0.95rem; }

.social-row { display: flex; gap: 8px; margin-top: 26px; }
.social-btn {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-btn:hover { color: var(--ember); border-color: var(--line-hi); }

.form-card { padding: 32px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rune); }
.field input::placeholder, .field textarea::placeholder { color: rgba(236, 231, 221, 0.26); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.err { display: none; margin-top: 6px; font-size: 0.76rem; color: var(--danger); }
.field.has-error .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin: 14px 0 0; font-size: 0.76rem; color: var(--faint); text-align: center; }
.form-note a { color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Footer · bildirim
   -------------------------------------------------------------------------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--faint);
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ember); }
.footer-mono { font-family: var(--font-mono); font-size: 0.74rem; }

/* Bildirim: yüzen yığının solunda durur, üst üste binmez */
.toast {
  position: fixed;
  right: 82px; bottom: 22px;
  z-index: 120;
  max-width: 340px;
  padding: 16px 40px 16px 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: 0 24px 48px -24px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.toast.is-open { opacity: 1; visibility: visible; transform: none; }
.toast-title { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; font-weight: 500; }
.toast-title i { color: var(--ember); }
.toast p { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.65; color: var(--muted); }
.toast b { font-family: var(--font-mono); font-weight: 400; color: var(--text); }
.toast-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.toast-close:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   13. Yüzen katman: düğme yığını (dock) + site asistanı

   Sağ alt köşede tek bir yığın vardır: yukarı çık · WhatsApp · asistan.
   Üçü de aynı boyutta, aynı yüzeyde, aynı kenarlıkta durur; bu yüzden bir
   düğme kalabalığı değil tek bir bileşen gibi okunur. WhatsApp burada
   markanın parlak yeşil baloncuğu değil, sitenin kendi yüzeyinde duran
   yeşil bir simgedir; ancak üzerine gelindiğinde yeşile dolar.
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 72;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dock-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.02rem;
  color: var(--muted);
  text-decoration: none;
  background: rgba(10, 9, 14, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.dock-btn:hover { color: var(--text); border-color: var(--line-hi); transform: translateY(-2px); }

/* İpucu balonu metnini aria-label'dan okur: ayrıca bir etiket tutulmaz */
.dock-btn::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.dock-btn:hover::after,
.dock-btn:focus-visible::after { opacity: 1; visibility: visible; transform: translate(0, -50%); }

/* Yukarı çık: yalnızca sayfa aşağı indiğinde yığına katılır */
.dock-btn.is-top { display: none; }
.dock-btn.is-top.is-visible { display: grid; animation: dockIn 0.24s var(--ease); }
.dock-btn.is-top:hover { color: var(--ember); border-color: rgba(216, 169, 94, 0.4); }

@keyframes dockIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Sayfadaki tek WhatsApp düğmesi */
.dock-btn.is-wa {
  color: var(--wa-soft);
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.26);
}
.dock-btn.is-wa:hover { color: #0c1a10; background: var(--wa); border-color: var(--wa); }
.dock-btn.is-wa i { font-size: 1.24rem; }

/* Asistan: yığının birincil düğmesi, sıcak aksanı taşır */
.dock-btn.is-chat {
  width: 54px; height: 54px;
  font-size: 1.14rem;
  color: var(--ember);
  background: var(--ember-dim);
  border-color: rgba(216, 169, 94, 0.36);
}
.dock-btn.is-chat:hover { color: #14100a; background: var(--ember); border-color: var(--ember); }
.dock-btn.is-chat .ico-shut { display: none; }

/* İlk ziyaretçiyi uyaran nokta; panel bir kez açılınca DOM'dan silinir */
.dock-dot {
  position: absolute;
  top: 9px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember-soft);
  animation: dockPulse 2.4s var(--ease) infinite;
}
@keyframes dockPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 213, 166, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(240, 213, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 213, 166, 0); }
}

/* Panel açıkken yığın tek düğmeye iner; köşe kalabalıklaşmaz */
body.chat-open .dock-btn:not(.is-chat) { display: none; }
body.chat-open .dock-btn.is-chat .ico-open { display: none; }
body.chat-open .dock-btn.is-chat .ico-shut { display: block; }
body.chat-open .dock-btn.is-chat::after { content: none; }

/* ---- Asistan paneli ------------------------------------------------------ */
.chat-panel {
  position: fixed;
  right: 20px; bottom: 86px;
  z-index: 74;
  width: min(384px, calc(100vw - 40px));
  height: min(548px, calc(100vh - 152px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  box-shadow: 0 34px 68px -30px #000, 0 12px 28px -18px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.chat-mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ember);
  background: var(--ember-dim);
  border: 1px solid rgba(216, 169, 94, 0.34);
  border-radius: var(--r-sm);
}
.chat-id { margin-right: auto; min-width: 0; }
.chat-title { margin: 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.chat-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--faint);
}
.chat-sub .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--wa); }

.chat-reset, .chat-close {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.chat-reset:hover, .chat-close:hover { color: var(--text); background: rgba(236, 231, 221, 0.07); }

.chat-log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-hi) transparent;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 3px; }

.chat-msg { display: flex; flex-direction: column; gap: 5px; max-width: 90%; }
.chat-msg.is-bot { align-self: flex-start; }
.chat-msg.is-me  { align-self: flex-end; align-items: flex-end; max-width: 82%; }

.chat-who {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.chat-bubble {
  padding: 11px 14px;
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.chat-msg.is-bot .chat-bubble { border-left: 2px solid rgba(216, 169, 94, 0.45); }
.chat-msg.is-me .chat-bubble {
  color: var(--text);
  background: var(--ember-dim);
  border-color: rgba(216, 169, 94, 0.26);
}
.chat-bubble p { margin: 0; }
.chat-bubble p + p { margin-top: 8px; }
.chat-bubble a { color: var(--ember); text-decoration: none; }
.chat-bubble a:hover { text-decoration: underline; }
.chat-hint { font-size: 0.78rem; color: var(--faint); }

.chat-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.chat-list li { font-size: 0.84rem; color: var(--text); }
.chat-list span { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--faint); }
.chat-list.is-facts li { display: flex; align-items: center; gap: 10px; }
.chat-list.is-facts i { width: 15px; text-align: center; font-size: 0.82rem; color: var(--ember); }
.chat-list.is-facts a { font-size: 0.82rem; }

.chat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-tags span {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.chat-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-acts .btn { padding: 7px 12px; font-size: 0.74rem; }

/* "yazıyor" göstergesi */
.chat-dots { display: inline-flex; gap: 5px; padding: 3px 0; }
.chat-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--faint);
  animation: chatBlink 1.2s var(--ease) infinite;
}
.chat-dots i:nth-child(2) { animation-delay: 0.16s; }
.chat-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes chatBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* Kısayollar: yatayda kayar, satır kırmaz */
.chat-chips {
  display: flex;
  gap: 7px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chip {
  flex: none;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chat-chip:hover { color: var(--ember); background: var(--ember-dim); border-color: rgba(216, 169, 94, 0.4); }

.chat-form { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 13px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease);
}
.chat-form input:focus { outline: none; border-color: var(--rune); }
.chat-form input::placeholder { color: rgba(236, 231, 221, 0.26); }
.chat-send {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  color: #14100a;
  background: var(--ember);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.chat-send:hover { background: var(--ember-soft); }

@media (prefers-reduced-motion: reduce) {
  .dock-btn, .chat-panel { transition: none; }
  .dock-btn:hover { transform: none; }
  .dock-btn.is-top.is-visible { animation: none; }
  .dock-dot, .chat-dots i { animation: none; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: grid; }

  .hero { min-height: 0; padding: calc(var(--nav-h) + 64px) 0 84px; }
  .hero-lead { max-width: 560px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 92px 0; }

  /* Mobilde sahne tüm hero'yu kaplar; perde dikeyde koyulaşarak metni taşır */
  .hero .scene {
    opacity: 0.7;
    background-size: cover;
    background-position: 62% 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-veil {
    background: linear-gradient(180deg,
      rgba(10, 9, 14, 0.4) 0%,
      rgba(10, 9, 14, 0.62) 34%,
      rgba(10, 9, 14, 0.78) 100%);
  }
  .section .scene { background-size: 150% auto; background-position: center; }
}

@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .section { padding: 76px 0; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  /* Dar ekranda yörünge küçülür; portre ve rozet oranı korunur */
  .hero-id { gap: 16px; }
  .hero-orb { --orb: 126px; --orb-chip: 24px; }
  .hero-avatar { width: 74px; height: 74px; margin: -37px 0 0 -37px; box-shadow: 0 0 0 5px var(--bg), 0 8px 26px rgba(10, 9, 14, 0.7); }
  .orb-chip i { font-size: 0.66rem; }
  .hero .scene { background-position: 66% 42%; opacity: 0.62; }
  .section .scene { opacity: 0.38 !important; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 10px 18px; font-size: 0.72rem; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .gh-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .map-panel { height: 340px; }
  .form-card, .gh-card, .proj-card, .xp-card { padding: 22px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .toast { left: 16px; right: 16px; max-width: none; bottom: 78px; }

  /* Dar ekranda yığın küçülür, ipucu balonları kalkar, panel neredeyse
     tam ekran olur ve arkadaki sayfa kaymaz. */
  .dock { right: 16px; bottom: 16px; gap: 8px; }
  .dock-btn { width: 44px; height: 44px; }
  .dock-btn.is-chat { width: 50px; height: 50px; }
  .dock-btn::after { display: none; }

  .chat-panel {
    left: 12px; right: 12px; bottom: 76px;
    width: auto;
    height: min(560px, calc(100vh - 124px));
  }
  body.chat-open { overflow: hidden; }
}
