/* ==========================================================================
   Portfolyo teması — sade, açık renk, tek vurgu rengi
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-ring: rgba(37, 99, 235, .25);
  --success: #16a34a;
  --success-soft: #f0fdf4;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .10);

  --container: 1080px;
  --gutter: 24px;
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--text); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.brand img { max-height: 36px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a.nav-link {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: .95rem;
}
.site-nav a.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a.nav-link.is-active { color: var(--accent); }

.lang-switch {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
}
.lang-switch a {
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--text-subtle); letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--text); color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a.nav-link { padding: 12px; font-size: 1rem; }
  .lang-switch { align-self: flex-start; margin: 4px 0 0 4px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn-icon { width: 44px; padding: 0; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-sm { padding: 56px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--text-muted); }
.eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow i { transition: transform .15s; }
.link-arrow:hover i { transform: translateX(3px); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center; }

.badge-available {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--success-soft); color: #166534; font-size: .85rem; font-weight: 600;
  border: 1px solid #bbf7d0;
}
.badge-available .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }

.hero-hello { color: var(--text-muted); font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; }
.hero h1 { margin-bottom: 10px; }
.hero-headline { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero-intro { font-size: 1.1rem; color: var(--text-muted); max-width: 40em; margin-bottom: 28px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-subtle); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.avatar {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin-left: auto;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #e0e7ff 100%);
  box-shadow: var(--shadow-lg);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -.04em; color: var(--accent);
}
.avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); pointer-events: none;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .avatar { max-width: 140px; margin: 0; border-radius: 28px; }
  .avatar-initials { font-size: 3.2rem; }
}

/* ── Chips ──────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem; font-weight: 500; line-height: 1.5;
}
.chips-lg .chip { padding: 8px 16px; font-size: .92rem; background: var(--bg); color: var(--text); }

/* ── Project cards ──────────────────────────────────────────────────────── */

/* Projeler alt alta: görsel solda, içerik sağda; dar ekranda görsel üstte */
.project-list { display: grid; gap: 20px; }

.project-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.project-cover { position: relative; min-height: 240px; background: var(--bg-soft); overflow: hidden; border-right: 1px solid var(--border); }
/* Kapak, içerik uzadıkça satır yüksekliğine uzar */
.project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.project-card:hover .project-cover img { transform: scale(1.03); }

.cover-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .14), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, .14), transparent 55%),
    var(--accent-soft);
  color: var(--accent); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em;
}

.project-body { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 22px; }
.project-meta { font-size: .82rem; color: var(--text-subtle); margin-bottom: 6px; }
/* Başlık seviyesi sayfaya göre h2 veya h3 olabilir; görünüm aynı kalır */
.project-card :is(h2, h3) { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.project-card :is(h2, h3) a { color: var(--text); }
.project-card:hover :is(h2, h3) a { color: var(--accent); }
.project-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-summary { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }

.project-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
}
.project-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.project-cta i { font-size: .85em; transition: transform .2s; }
.project-card:hover .project-cta i { transform: translateX(4px); }
.project-card:hover .project-cta { color: var(--accent-hover); }

@media (max-width: 700px) {
  .project-card { grid-template-columns: 1fr; }
  .project-cover { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--border); }
  .project-body { padding: 20px 20px 22px; }
  .project-card :is(h2, h3) { font-size: 1.2rem; }
}

/* Demo / kaynak kod düğmeleri: kartı kaplayan başlık linkinin üstünde tıklanır */
.project-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.empty-state {
  padding: 48px 24px; text-align: center; color: var(--text-subtle);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}

/* ── Page header ────────────────────────────────────────────────────────── */

.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-hero .lead { font-size: 1.12rem; color: var(--text-muted); max-width: 42em; margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; font-size: .92rem; color: var(--text-muted); }
.back-link:hover { color: var(--text); }
.back-link i { transition: transform .15s; }
.back-link:hover i { transform: translateX(-3px); }

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

/* ── Project detail ─────────────────────────────────────────────────────── */

.project-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.project-head .project-meta { font-size: .95rem; margin-bottom: 10px; }
.project-head .lead { margin-bottom: 20px; }
@media (max-width: 760px) { .project-head { grid-template-columns: 1fr; } }

.project-hero-image {
  margin: 8px 0 48px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.aside-block h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin-bottom: 10px; }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-aside { position: static; order: -1; }
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.pager a {
  display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.pager a:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pager small { display: block; color: var(--text-subtle); font-size: .8rem; margin-bottom: 4px; }
.pager strong { font-weight: 700; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* ── Prose (zengin metin) ───────────────────────────────────────────────── */

.prose { font-size: 1.05rem; color: #334155; max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .6em; color: var(--text); }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; border: 1px solid var(--border); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: .1em .35em;
}
.prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.1em; border-left: 3px solid var(--accent); color: var(--text-muted); }

/* ── About ──────────────────────────────────────────────────────────────── */

.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
  box-shadow: var(--shadow);
}
.profile-card .avatar { max-width: none; margin: 0 0 18px; border-radius: 18px; box-shadow: none; }
.profile-card .avatar-initials { font-size: 4.5rem; }
.profile-card h2 { font-size: 1.35rem; margin-bottom: 2px; }
.profile-card .headline { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.profile-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; color: var(--text-muted); font-size: .92rem; }
.profile-facts li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-facts i { width: 16px; color: var(--text-subtle); text-align: center; }
.profile-facts a { color: var(--text-muted); overflow-wrap: anywhere; }
.profile-facts a:hover { color: var(--accent); }
.about-block + .about-block { margin-top: 48px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { position: static; display: grid; grid-template-columns: 96px 1fr; gap: 0 18px; align-items: center; }
  .profile-card .avatar { width: 96px; margin: 0; grid-row: span 2; }
  .profile-card .avatar-initials { font-size: 2.2rem; }
  .profile-card .profile-facts, .profile-card .btn-row { grid-column: 1 / -1; margin-top: 16px; }
  .profile-card .headline { margin-bottom: 0; }
}

/* ── Özgeçmiş (Hakkımda): zaman çizelgesi + kısa liste ─────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  position: relative; margin-left: 7px; padding: 0 0 28px 28px;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before {
  content: ""; position: absolute; left: -8px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.timeline-date { display: block; margin-bottom: 4px; font-size: .82rem; font-weight: 600; color: var(--text-subtle); }
.timeline-title { margin: 0 0 2px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.timeline-title a { color: var(--text); }
.timeline-title a:hover { color: var(--accent); }
.timeline-org { margin: 0 0 6px; font-size: .95rem; font-weight: 600; color: var(--accent); }
.timeline-org a { color: inherit; }
.timeline-org a:hover { color: var(--accent-hover); }
.timeline-org i { font-size: .75em; }
.timeline-summary { margin: 0; color: var(--text-muted); font-size: .95rem; }
.timeline-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: .9rem; }
.timeline-more i { font-size: .85em; transition: transform .15s; }
.timeline-more:hover i { transform: translateX(3px); }

.resume-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.resume-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.resume-row-main { min-width: 0; }
.resume-row-title { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.resume-row-title a { color: var(--text); }
.resume-row-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.resume-row.has-detail:hover .resume-row-title a { color: var(--accent); }
.resume-row-org { margin: 2px 0 0; font-size: .9rem; color: var(--text-muted); }
.resume-row-summary { margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); }
.resume-row-side { flex: none; display: flex; align-items: center; gap: 12px; }
.resume-date { font-size: .85rem; color: var(--text-subtle); white-space: nowrap; }
.resume-link {
  position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  color: var(--text-muted); border: 1px solid var(--border); background: var(--bg);
}
.resume-link:hover { color: var(--text); border-color: var(--text); }
.resume-arrow { color: var(--accent); font-size: .9rem; transition: transform .15s; }
.resume-row.has-detail:hover .resume-arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .resume-row { align-items: flex-start; }
  .resume-row-side { flex-direction: column; align-items: flex-end; gap: 6px; }
}

/* ── CTA ────────────────────────────────────────────────────────────────── */

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .25);
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta .btn-light { background: #fff; color: var(--accent); }
.cta .btn-light:hover { background: #eff6ff; color: var(--accent-hover); }
.cta .cta-mail { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .cta { padding: 28px 22px; } }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--bg);
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
a.contact-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.contact-card .icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem;
}
.contact-card small { display: block; color: var(--text-subtle); font-size: .8rem; }
.contact-card span { font-weight: 600; overflow-wrap: anywhere; }

.form-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: var(--success-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.form_loader {
  display: none; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center; background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px);
}
.form_loader > div { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); font-weight: 600; }
.loader_rolling { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.not-found { padding: 120px 0; text-align: center; }
.not-found .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.not-found p { color: var(--text-muted); max-width: 32em; margin: 0 auto 28px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-subtle); font-size: .9rem; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.social-row { display: flex; gap: 6px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-muted); border: 1px solid var(--border); font-size: 1.05rem;
}
.social-row a:hover { color: var(--text); border-color: var(--text); }

/* ── Sayfa geçişleri ───────────────────────────────────────────────────────
   Kart → detay sayfasına geçerken kapak görseli büyüyerek yerine oturur
   (modal hissi, ama paylaşılabilir gerçek bir sayfa). Desteklemeyen
   tarayıcılar normal sayfa geçişi yapar. */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* ── Motion preference ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
