/* ---------- Renkler ve temel ayarlar ---------- */
:root {
  --bg: #0b0f14;
  --bg-card: #11161d;
  --bg-chip: #161c25;
  --text: #e6eaf0;
  --muted: #8b95a5;
  --border: #212a36;
  --accent: #3ddc97;
  --accent-ink: #062a1b;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --max-width: 1080px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.mono { font-family: var(--font-mono); }

/* ---------- Üst menü ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--border); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Giriş ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Yazıların arkası okunaklı kalsın diye kenarlara doğru karartma */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 15, 20, 0.85) 0%, rgba(11, 15, 20, 0.35) 50%, rgba(11, 15, 20, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 88px;
  pointer-events: none;
}

.hero-inner a, .hero-inner button { pointer-events: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

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

.badge-dot, .hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2s infinite;
}

@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(48px, 9vw, 92px);
  line-height: 1;
  letter-spacing: -2px;
  margin: 24px 0 22px;
}

.hero-name span { color: var(--accent); }

.hero-text { max-width: 540px; color: var(--muted); font-size: 18px; }

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

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.chips li, .tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-chip);
  color: var(--text);
}

.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Rakamlar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.1;
  color: var(--accent);
}

.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Bölümler ---------- */
.section { padding-top: 88px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 24px;
  margin-bottom: 32px;
}

.eyebrow {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.section-sub { color: var(--muted); max-width: 420px; }
.section-head .section-sub { text-align: right; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about p { color: var(--muted); font-size: 17px; }

/* ---------- Kartlar ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: rgba(61, 220, 151, 0.4); transform: translateY(-2px); }

.card-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.card h3 { font-family: var(--font-head); font-size: 21px; margin-bottom: 6px; }
.card > p:not(.card-code) { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

/* ---------- Projeler ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-card .card-code { margin-bottom: 10px; }
.project-summary { color: var(--muted); font-size: 15px; }

.project-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

.project-stats span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}

.tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-chip);
}

.project-more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* Detay penceresi */
.project-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text);
}

.project-dialog::backdrop { background: rgba(5, 8, 12, 0.75); backdrop-filter: blur(4px); }

.project-dialog[open] { animation: dialog-in 0.2s ease-out; }
@keyframes dialog-in { from { transform: translateY(12px); } }

.dialog-scroll { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 32px; }

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  margin: -12px -12px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-chip);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { border-color: var(--accent); color: var(--accent); }

.dialog-body h3 { font-family: var(--font-head); font-size: 30px; line-height: 1.2; }
.dialog-body .tags { margin-top: 14px; }

.dialog-body h4 {
  margin: 28px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.dialog-body > p:not(.card-code) { color: var(--muted); }

.steps { display: grid; gap: 12px; counter-reset: step; }

.steps li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-chip);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.result {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 10px;
  background: var(--accent-soft);
}

.result strong { color: var(--accent); }

/* ---------- Deneyim ---------- */
.companies { display: grid; gap: 16px; }

.company {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.company-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.company-head h3 { font-family: var(--font-head); font-size: 22px; }
.company-date { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

.roles { display: grid; gap: 12px; margin-bottom: 16px; }

.role {
  position: relative;
  padding-left: 22px;
}

.role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--muted);
}

.role:first-child::before { border-color: var(--accent); background: var(--accent); }

/* Aynı kurumdaki roller arasında dikey çizgi */
.role + .role::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -14px;
  height: 18px;
  border-left: 1px dashed var(--border);
}

.role strong { display: block; font-weight: 600; }
.role span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.duties { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }

.duties li { position: relative; padding-left: 22px; }

.duties li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.6;
}

/* ---------- İletişim ---------- */
.contact { padding-bottom: 88px; }
.contact h2 { margin: 4px 0 12px; }

.contact-mail {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  word-break: break-all;
}

.contact-mail:hover { border-color: var(--accent); }

/* ---------- Alt bilgi ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-dot, .hint-dot { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .lang-toggle { margin-left: auto; }
  .hero::after { background: rgba(11, 15, 20, 0.72); }
  .hero-inner { padding-top: 64px; padding-bottom: 60px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .dialog-scroll { padding: 24px 20px; }
  .dialog-body h3 { font-size: 24px; }
  .section { padding-top: 64px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .section-sub { text-align: left; }
  .about { grid-template-columns: 1fr; gap: 14px; }
  .cards { grid-template-columns: 1fr; }
  .company { padding: 22px 20px; }
}
