/* =========================================================
   Rabia Öztürk — kişisel site
   Renkleri değiştirmek için yalnızca aşağıdaki değişkenleri düzenle.
   ========================================================= */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1b1d1f;
  --muted: #5b616a;
  --border: #e2dfd6;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --accent-ink: #ffffff;
  --accent-soft: #d8efeb;
  --shadow: 0 1px 2px rgb(20 20 20 / 4%), 0 8px 24px rgb(20 20 20 / 6%);
  --header-bg: rgb(247 246 242 / 82%);

  --code-bg: #2b2b2b;
  --code-bar: #3c3f41;
  --code-text: #a9b7c6;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1100px;
  --gutter: 16px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1215;
    --surface: #161a1f;
    --surface-2: #1d2229;
    --text: #e7e9ec;
    --muted: #9aa3ad;
    --border: #2a3039;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-ink: #062b27;
    --accent-soft: rgb(45 212 191 / 12%);
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --header-bg: rgb(15 18 21 / 80%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1215;
  --surface: #161a1f;
  --surface-2: #1d2229;
  --text: #e7e9ec;
  --muted: #9aa3ad;
  --border: #2a3039;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-ink: #062b27;
  --accent-soft: rgb(45 212 191 / 12%);
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  --header-bg: rgb(15 18 21 / 80%);
  color-scheme: dark;
}

/* ---------- Dil seçimi: aktif olmayan dili gizle ---------- */
html[lang="tr"] body [lang="en"]:not([data-keep-lang]),
html[lang="en"] body [lang="tr"]:not([data-keep-lang]) {
  display: none !important;
}

/* ---------- Temel ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.04em;
}

.pill-toggle [data-opt] {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.pill-toggle [data-opt]:hover {
  color: var(--text);
}

html[lang="tr"] .pill-toggle [data-opt="tr"],
html[lang="en"] .pill-toggle [data-opt="en"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Tema simgesi: açık temada ay, koyu temada güneş göster */
.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

.menu-btn {
  display: none;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

/* ---------- Giriş (hero) ---------- */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgb(34 197 94 / 18%);
}

.hello {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.role {
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  min-width: 0;
}

.code-card {
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 4%) inset;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--code-bar);
}

.code-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.code-bar .dot:nth-child(2) {
  background: #febc2e;
}

.code-bar .dot:nth-child(3) {
  background: #28c840;
}

.code-file {
  margin-left: 10px;
  color: #bbbbbb;
  font: 500 0.8rem var(--font-mono);
}

.code {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  color: var(--code-text);
  font: 0.86rem/1.75 var(--font-mono);
  tab-size: 4;
}

/* Android Studio (Darcula) renkleri */
.code .k { color: #cc7832; }
.code .t { color: #a9b7c6; font-weight: 500; }
.code .p { color: #9876aa; }
.code .s { color: #6a8759; }
.code .f { color: #ffc66d; }

/* ---------- Bölümler ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 40px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.section-num {
  color: var(--accent);
  font: 500 0.95rem var(--font-mono);
  letter-spacing: 0;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* Hakkımda */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  font-size: 1.075rem;
}

.about-text p + p {
  margin-top: 18px;
}

.facts dl {
  margin: 0;
  display: grid;
  gap: 20px;
}

.facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.facts dd .muted {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
}

/* Deneyim */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-meta {
  padding-top: 3px;
  color: var(--muted);
  font: 500 0.85rem var(--font-mono);
}

.timeline-body {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-body::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-body h3 {
  font-size: 1.2rem;
}

.company {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
}

.timeline-body ul:not(.tags) {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline-body li + li {
  margin-top: 6px;
}

/* Etiketler ve çipler */
.tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 0.78rem var(--font-mono);
}

.chips {
  margin: 0;
}

.chips li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projeler */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project p:not(.project-kicker) {
  color: var(--muted);
}

.project .tags {
  margin-top: auto;
  padding-top: 20px;
}

.project-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font: 500 0.78rem var(--font-mono);
  letter-spacing: 0.04em;
}

.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
}

.project-featured h3 {
  font-size: 1.6rem;
}

.project-featured .tags {
  margin-top: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.link-arrow {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.15s;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* Yetenekler */
.skills-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.skills-grid .card > .muted {
  margin-top: 20px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

/* İletişim */
.contact-card {
  padding: clamp(32px, 6vw, 64px);
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  text-align: center;
}

.contact-card .section-num {
  margin-bottom: 12px;
}

.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-card .lead {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.contact-actions .btn-primary {
  overflow-wrap: anywhere;
}

#copy-email .copy-done {
  display: none;
}

#copy-email.is-copied .copy-idle {
  display: none;
}

#copy-email.is-copied .copy-done {
  display: inline;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.socials a:hover {
  color: var(--accent);
}

/* ---------- Alt bilgi ---------- */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

/* Alt bilgide yalnızca "Başa dön" var; sağda durur */
.footer-inner .to-top {
  margin-left: auto;
}

.to-top {
  color: var(--muted);
  text-decoration: none;
}

.to-top:hover {
  color: var(--accent);
}

/* ---------- Kaydırınca beliren öğeler ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .code-card,
  .project:hover {
    transform: none;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .code-card {
    max-width: 520px;
    transform: none;
  }

  .about-grid,
  .skills-grid,
  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured {
    gap: 24px;
  }
}

/* ---------- Telefon / dar ekran: menü tek düğmede ---------- */
@media (max-width: 1023px) {
  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgb(0 0 0 / 8%);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    font-size: 1rem;
  }

  .brand-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .card,
  .project-featured {
    padding: 22px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-meta {
    padding-left: 29px;
  }

  .code {
    font-size: 0.78rem;
    padding: 18px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   3D MOD — kaydırmalı sinematik yolculuk (js/scene3d.js)
   WebGL yoksa bu bölüm devreye girmez, yukarıdaki düz tasarım kullanılır.
   ========================================================= */

:root.has-3d {
  --bg: #05080c;
  --surface: #0d131a;
  --surface-2: #141c25;
  --text: #e6edf3;
  --muted: #8d9aa8;
  --border: #1d2733;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-ink: #04201c;
  --accent-soft: rgb(45 212 191 / 12%);
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 20px 50px rgb(0 0 0 / 35%);
  --header-bg: rgb(5 8 12 / 62%);
  --glass: rgb(11 17 24 / 58%);
  --glass-strong: rgb(11 17 24 / 84%);
  --glass-border: rgb(255 255 255 / 7%);
  --font-cine: "Jost", var(--font-body);
  color-scheme: dark;
}

.scene-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.scene-ready .scene-canvas {
  opacity: 1;
}

/* Kenarları karartan sinematik vinyet */
.has-3d body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgb(0 0 0 / 60%) 100%);
}

.has-3d main,
.has-3d .site-footer {
  position: relative;
  z-index: 1;
}

.has-3d #theme-toggle {
  display: none;
}

/* Üst menü: en üstte şeffaf, kaydırınca cam */
.has-3d .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.has-3d .brand-name,
.has-3d .nav a {
  font-family: var(--font-cine);
  letter-spacing: 0.08em;
}

/* ---------- Giriş ---------- */
.has-3d .hero {
  position: relative;
  min-height: 100svh;
  margin-top: -64px;
  padding: 96px 0 120px;
  display: flex;
  align-items: center;
  text-align: center;
}

.has-3d .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.has-3d .hero-visual,
.has-3d .hero .lead,
.has-3d .hero .location {
  display: none;
}

.has-3d .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.has-3d .status {
  background: rgb(5 8 12 / 45%);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 36px;
}

.has-3d .hello {
  font: 400 0.8rem var(--font-cine);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  margin: 0 -0.55em 18px 0;
}

.has-3d .hero h1 {
  font-family: var(--font-cine);
  font-weight: 300;
  font-size: clamp(1.9rem, 6.2vw, 4.75rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgb(0 0 0 / 70%);
}

.has-3d .role {
  margin: 18px -0.55em 0 0;
  color: #9fb3c4;
  font: 400 clamp(0.62rem, 1.3vw, 0.8rem) var(--font-cine);
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.has-3d .hero-actions {
  justify-content: center;
  margin-top: 44px;
}

.has-3d .btn {
  font-family: var(--font-cine);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 999px;
  padding-inline: 26px;
}

.has-3d .btn-ghost {
  background: rgb(5 8 12 / 40%);
  border-color: rgb(255 255 255 / 16%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.has-3d .btn-primary {
  box-shadow: 0 0 28px rgb(45 212 191 / 35%);
}

.hero-nav {
  display: none;
}

.has-3d .hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.has-3d .hero-nav a {
  color: #9fb3c4;
  font: 500 0.68rem var(--font-cine);
  letter-spacing: 0.32em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.has-3d .hero-nav a:hover {
  color: var(--accent);
}

/* ---------- Duraklar (bölümler) ---------- */
.has-3d .section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  border-top: 0;
}

.has-3d .section > .container {
  width: 100%;
}

.has-3d .panel {
  max-width: 600px;
  padding: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

.has-3d .panel--right {
  margin-left: auto;
}

.has-3d .section-title {
  font-family: var(--font-cine);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.has-3d .panel .about-grid,
.has-3d .panel .skills-grid,
.has-3d .panel .projects-grid,
.has-3d .panel .project-featured {
  grid-template-columns: 1fr;
}

.has-3d .panel .about-grid {
  gap: 0;
}

.has-3d .panel .project-featured {
  gap: 22px;
  padding: 28px;
}

.has-3d .panel .card {
  background: rgb(255 255 255 / 3%);
  border-color: var(--glass-border);
}

.has-3d .panel .timeline-item {
  grid-template-columns: 1fr;
  gap: 6px;
}

.has-3d .panel .timeline-meta {
  padding-left: 29px;
}

.has-3d .chips li {
  background: rgb(255 255 255 / 3%);
  border-color: var(--glass-border);
}

.has-3d .contact-card {
  max-width: 760px;
  margin-inline: auto;
  border-color: var(--glass-border);
  background:
    radial-gradient(80% 120% at 50% 0%, rgb(45 212 191 / 10%), transparent 60%),
    var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.has-3d .contact-card h2 {
  font-family: var(--font-cine);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.has-3d .site-footer {
  background: var(--glass-strong);
  border-top-color: var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Tablet ve telefon: paneller ortada, daha opak */
@media (max-width: 959px) {
  .has-3d .panel,
  .has-3d .panel--right {
    margin-inline: auto;
    background: var(--glass-strong);
  }

  .has-3d .hero-nav {
    display: none;
  }

  .has-3d .hero {
    align-items: flex-start;
    padding-top: 22svh;
  }
}

@media (max-width: 640px) {
  .has-3d .panel {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .has-3d .section {
    padding: 72px 0;
  }

  .has-3d .hero h1 {
    letter-spacing: 0.18em;
    margin-right: -0.18em;
  }

  .has-3d .role,
  .has-3d .hello {
    letter-spacing: 0.35em;
    margin-right: -0.35em;
  }
}

/* Geniş ekranda girişteyken bölüm bağlantıları kürenin altında; üst menü kaydırınca belirir */
@media (min-width: 1024px) {
  .has-3d .site-header .nav {
    transition: opacity 0.4s ease;
  }

  .has-3d .site-header:not(.is-scrolled) .nav {
    opacity: 0;
    pointer-events: none;
  }
}

/* E-posta adresi büyük harfe çevrilmez (Türkçe "İ" adresi bozar) */
.has-3d .contact-actions .btn-primary {
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ---------- Hakkımda: selamlama satırı ---------- */
.about-text .about-hello {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
}

.has-3d .about-text .about-hello {
  font-family: var(--font-cine);
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ---------- Projeler: GitHub bağlantısı ---------- */
.more-projects {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.more-projects svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.more-projects::after {
  content: "→";
  margin-left: auto;
  color: var(--accent);
  transition: transform 0.2s;
}

.more-projects:hover {
  border-color: var(--accent);
  color: var(--text);
}

.more-projects:hover::after {
  transform: translateX(4px);
}

.has-3d .more-projects {
  border-color: var(--glass-border);
}

/* ---------- Makale ---------- */
.article-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.article-card .article-sub {
  margin-bottom: 6px;
  color: var(--muted);
  font-style: italic;
}

.article-card > p:not(.project-kicker):not(.article-sub):not(.muted) {
  margin-top: 16px;
  color: var(--muted);
}

.article-meta {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.article-meta dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta dd {
  margin: 0;
  font-weight: 500;
}

.article-card .article-link {
  margin-top: 24px;
}

.has-3d .article-meta {
  border-top-color: var(--glass-border);
}

/* =========================================================
   3D MOD — daha sade paneller: 3D sahne daha çok görünsün
   ========================================================= */
:root.has-3d {
  --glass: rgb(8 12 18 / 42%);
  --glass-strong: rgb(8 12 18 / 74%);
}

.has-3d .panel {
  max-width: 500px;
  padding: 30px 30px 26px;
  border-radius: 24px;
  font-size: 0.94rem;
  line-height: 1.6;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.has-3d .section-title {
  margin-bottom: 22px;
}

.has-3d .panel .card {
  padding: 20px 22px;
  background: rgb(255 255 255 / 2%);
}

.has-3d .panel .card h3,
.has-3d .panel .project h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.has-3d .panel .project-featured h3 {
  font-size: 1.3rem;
}

.has-3d .panel .project-featured {
  padding: 20px 22px;
}

/* Uzun özellik listeleri 3D'de gizli (düz tasarımda görünür) */
.has-3d .panel .feature-list {
  display: none;
}

.has-3d .panel .projects-grid {
  gap: 12px;
}

.has-3d .panel .project .tags {
  padding-top: 14px;
}

.has-3d .panel .tags {
  gap: 6px;
  margin-top: 14px;
}

.has-3d .panel .tags li {
  padding: 3px 9px;
  font-size: 0.7rem;
}

.has-3d .about-text p {
  font-size: 0.95rem;
}

.has-3d .about-text p + p {
  margin-top: 12px;
}

.has-3d .panel .facts {
  margin-top: 18px;
}

.has-3d .panel .facts dl {
  gap: 12px;
}

.has-3d .panel .timeline-item {
  padding-bottom: 24px;
}

.has-3d .panel .timeline-body h3 {
  font-size: 1.05rem;
}

.has-3d .panel .timeline-body ul:not(.tags) {
  margin-top: 8px;
  font-size: 0.88rem;
}

.has-3d .panel .chips {
  gap: 6px;
}

.has-3d .panel .chips li {
  padding: 6px 11px;
  font-size: 0.82rem;
}

.has-3d .article-card > p:not(.project-kicker):not(.article-sub):not(.muted) {
  margin-top: 12px;
  font-size: 0.9rem;
}

.has-3d .article-meta {
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 0.88rem;
}

.has-3d .article-card .article-link {
  margin-top: 18px;
}

.has-3d .more-projects {
  margin-top: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
}

.has-3d .contact-card {
  max-width: 640px;
}

.has-3d .about-text .about-hello {
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .has-3d .panel {
    padding: 22px 18px;
  }
}

/* ---------- Projeler: mağaza bağlantısı ---------- */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.store-link svg {
  width: 16px;
  height: 16px;
}

.store-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.has-3d .store-link {
  font-family: var(--font-cine);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* ---------- Deneyim: çalışma biçimi (uzaktan vb.) ---------- */
.timeline-body .work-mode {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}
