/* ---------- Tasarım değişkenleri ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --surface: #ffffff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e5e7eb;
  --dark: #111827;
  --dark-2: #1f2937;
  --accent: #111827;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 8px 24px rgb(17 24 39 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--dark); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgb(17 24 39 / 5%); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--dark); color: #fff; border-radius: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}

.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-menu a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--ink); background: var(--bg-alt); }
.nav-menu .nav-cta { background: var(--dark); color: #fff; margin-left: .35rem; }
.nav-menu .nav-cta:hover, .nav-menu .nav-cta.is-active { background: var(--dark-2); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle-bar { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--dark-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #e5e7eb; }
.btn-outline-light { border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow { font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero-role { margin-top: .9rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--ink-soft); }
.hero-lead { margin-top: 1.4rem; max-width: 34rem; font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-visual { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
.truss { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }

.section-kicker { font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; max-width: 22ch; }
.section-dark .section-kicker { color: #9ca3af; }

/* Hakkımda */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: start; }
.about-text { display: grid; gap: 1.2rem; color: var(--ink-soft); font-size: 1.075rem; }

.facts { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.fact + .fact { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 14%); }
.fact dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; margin-bottom: .3rem; }
.fact dd { font-weight: 600; }
.fact dd span { font-weight: 400; color: #d1d5db; }

/* Deneyim */
.experience-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: start; }

.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1.6rem + 0px); top: 1.7rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--dark); border: 3px solid var(--bg-alt); box-sizing: content-box; transform: translateX(-3px);
}
.timeline-item h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.timeline-meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); margin: .2rem 0 .8rem; }
.timeline-item li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); }
.timeline-item li + li { margin-top: .4rem; }
.timeline-item li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--ink-mute); }

.skills { display: grid; gap: 1.25rem; }
.skill-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.skill-group h3 { font-size: .8rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .35rem .8rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; }
.chips-sm li { font-size: .8rem; padding: .25rem .65rem; }

/* Projeler */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d1d5db; }
.card-index { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); margin-bottom: .6rem; }
.card h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; }
.card-sub { font-size: .9rem; font-weight: 600; color: var(--ink-mute); margin-bottom: .5rem; }
.card p:not(.card-sub) { color: var(--ink-soft); }
.card .chips { margin-top: auto; padding-top: 1.2rem; }

/* İletişim */
.contact { display: grid; justify-items: start; }
.contact-lead { margin-top: 1.2rem; max-width: 34rem; color: #d1d5db; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Footer */
.site-footer { padding: 1.6rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-mute); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-row a:hover { color: var(--ink); }

/* ---------- Scroll animasyonu (yalnızca JS varsa) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s 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; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .experience-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 520px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem 1.25rem 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgb(17 24 39 / 8%);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .8rem 1rem; border-radius: 10px; }
  .nav-menu .nav-cta { margin: .35rem 0 0; text-align: center; }
  .brand-name { font-size: .95rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
