/* mertbulut.com — Koyu tema (lacivert + turkuaz) */

:root {
  --bg: #0B1220;
  --bg-alt: #0E1627;
  --card: #121C2E;
  --border: #1E2A40;
  --border-2: #2C3B55;
  --text: #E5EAF3;
  --text-2: #C7D0DE;
  --muted: #9AA7BA;
  --muted-2: #6E7B91;
  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --white: #FFFFFF;

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;

  --container: 1200px;
  --gutter: 32px;
  --radius: 12px;
}

*, *::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-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--white); }
p { margin: 0; }
ul { margin: 0; padding-left: 20px; }
img, svg { display: block; }

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

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

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

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-title {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-head { display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 6px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-outline { border-color: var(--border-2); color: var(--text); font-weight: 500; }
.btn-outline:hover { border-color: var(--accent); color: var(--white); }
.btn-text { padding: 0 8px; color: var(--muted); font-weight: 500; }
.btn-text:hover { color: var(--white); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 16px; color: var(--text); letter-spacing: .02em;
}
.brand:hover { color: var(--white); }
.brand-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px;
}
.lang a { color: var(--muted-2); }
.lang a:hover { color: var(--white); }
.lang .current { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border-2); border-radius: 6px;
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--border); }
.hero .container {
  padding-top: 112px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center;
}
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.hero-side { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }

.eyebrow-line { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.eyebrow-line::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: 60px; line-height: 1.08; letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead { max-width: 560px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap; padding-top: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
}

.now-card { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.now-card .label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.now-card .title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--white); }
.now-card .org { font-size: 15px; color: var(--muted); }
.now-card .date { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--white); line-height: 1; }
.stat .cap { font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.about { border-bottom: 1px solid var(--border); }
.about .container {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px;
}
.about-head { grid-column: span 4; }
.about-body { grid-column: span 8; display: flex; flex-direction: column; gap: 32px; }
.about-body .lead { font-size: 19px; color: var(--text-2); }
.about-body .sub { font-size: 17px; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { border-top: 2px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.pillar h3 { font-size: 17px; }
.pillar p { font-size: 15px; color: var(--muted); }

/* ---------- Experience ---------- */
.experience { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.experience .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.experience-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.experience-range { font-family: var(--font-mono); font-size: 14px; color: var(--muted-2); }

.timeline { display: flex; flex-direction: column; }
.job {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: 36px 0; border-top: 1px solid var(--border);
}
.job:last-child { border-bottom: 1px solid var(--border); }
.job-when { display: flex; flex-direction: column; gap: 6px; }
.job-when .date { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.job.current .job-when .date { color: var(--accent); }
.job-when .place { font-size: 14px; color: var(--muted-2); }
.job-what { display: flex; flex-direction: column; gap: 14px; }
.job-what h3 { font-size: 22px; }
.job-what h3 span { color: var(--muted-2); font-weight: 500; }
.job-what ul { color: var(--muted); font-size: 16px; display: flex; flex-direction: column; gap: 8px; }
.job-what p { color: var(--muted); font-size: 16px; }

/* ---------- Skills ---------- */
.skills { border-bottom: 1px solid var(--border); }
.skills .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.skill.wide { grid-column: span 2; }
.skill h3 { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: 4px; padding: 6px 10px;
}

/* ---------- Projects ---------- */
.projects { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.projects .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; transition: border-color .15s ease; }
.project:hover { border-color: var(--border-2); }
.project .kind { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.project h3 { font-size: 22px; }
.project p { font-size: 15px; color: var(--muted); flex-grow: 1; }
.project .stack { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.projects-more { font-family: var(--font-mono); font-size: 14px; color: var(--muted-2); }

/* ---------- Contact ---------- */
.contact .container {
  padding-top: 112px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center;
}
.contact-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
.contact-copy p { font-size: 18px; color: var(--muted); max-width: 520px; }
.contact-card { grid-column: span 5; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-card a { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 17px; min-height: 44px; }
.contact-card a:hover { color: var(--white); }
.contact-card a svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--accent); }
.contact-card .tz {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
  padding-top: 8px; border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 52px; }
  .hero .container, .about .container, .contact .container { grid-template-columns: 1fr; }
  .hero-copy, .hero-side, .about-head, .about-body, .contact-copy, .contact-card { grid-column: auto; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill.wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links li a { display: block; padding: 14px var(--gutter); font-size: 17px; }
  .nav-open .nav-links { display: flex; }
  .nav-right .btn { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section-title { font-size: 28px; }
  .about .container, .experience .container, .skills .container, .projects .container { padding-top: 64px; padding-bottom: 64px; }
  .job { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .job-what h3 { font-size: 19px; }
  .pillars { grid-template-columns: 1fr; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .skill.wide { grid-column: span 1; }
  .contact .container { padding-top: 64px; padding-bottom: 64px; }
  .contact-copy h2 { font-size: 32px; }
  .stat .num { font-size: 32px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
