/* === Zeynep Sinem Anlar — Portfolio === */

:root {
  --bg: #0d0c0b;
  --bg-elev: #141312;
  --bg-card: #181715;
  --line: rgba(255, 245, 230, 0.08);
  --line-strong: rgba(255, 245, 230, 0.16);
  --fg: #f5efe6;
  --fg-dim: #b8b0a3;
  --fg-mute: #6b655c;
  --accent: oklch(0.78 0.14 75); /* warm amber default */
  --accent-soft: oklch(0.78 0.14 75 / 0.14);
  --radius: 14px;
  --maxw: 1200px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background-color .4s ease, color .4s ease;
}

.mono { font-family: "Geist Mono", ui-monospace, "JetBrains Mono", monospace; }
.serif { font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; }

/* === Subtle grain overlay === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
}

/* === Layout === */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.nav-brand .name { font-weight: 500; white-space: nowrap; }
.nav-brand .role { color: var(--fg-mute); font-family: "Geist Mono", monospace; font-size: 11px; white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--line); }
.nav-links a.cta {
  color: var(--bg);
  background: var(--fg);
  margin-left: 8px;
}
.nav-links a.cta:hover { background: var(--accent); color: #181613; }

/* === Hero === */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.hero-meta .sep { width: 24px; height: 1px; background: var(--line-strong); }
.hero-meta .status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-dim);
}
.hero-meta .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.74 0.16 145);
  box-shadow: 0 0 8px oklch(0.74 0.16 145 / 0.6);
}

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .sans {
  font-family: "Geist", sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-sub {
  max-width: 640px;
  font-size: 19px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0 0 40px;
}
.hero-sub strong { color: var(--fg); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #181613; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* === Section header === */
.sec {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: baseline;
}
.sec-tag {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.sec-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}
.sec-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.about-side {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.8;
}
.about-side .k { color: var(--fg-dim); display: block; }
.about-side .v { color: var(--fg); font-family: "Geist", sans-serif; font-size: 14px; text-transform: none; letter-spacing: 0; }
.about-side .row { margin-bottom: 20px; }

.about-body {
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg);
  max-width: 720px;
  letter-spacing: -0.01em;
}
.about-body p { margin: 0 0 24px; }
.about-body .dim { color: var(--fg-dim); }
.about-body em.serif { color: var(--accent); font-size: 1.02em; }

/* === Skills === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill {
  background: var(--bg-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .25s;
  cursor: default;
}
.skill:hover { background: color-mix(in oklab, var(--bg-card) 70%, var(--accent) 30%); }
.skill:hover .skill-num { color: var(--accent); }
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.skill-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  transition: color .25s;
}
.skill-level {
  display: flex;
  gap: 3px;
}
.skill-level i {
  width: 14px; height: 4px;
  background: var(--line-strong);
  border-radius: 1px;
  display: block;
}
.skill-level i.on { background: var(--fg); }
.skill h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.skill p {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.5;
}
.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.skill-tags span {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--fg-mute);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* === Experience === */
.exp-list { border-top: 1px solid var(--line); }
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding .25s;
  cursor: default;
  position: relative;
}
.exp-item:hover { padding-left: 16px; }
.exp-item:hover .exp-title { color: var(--accent); }
.exp-date {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.exp-main { }
.exp-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  transition: color .25s;
}
.exp-org { color: var(--fg-dim); font-size: 14px; margin: 0 0 10px; }
.exp-org .serif { color: var(--accent); font-size: 16px; }
.exp-desc { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; max-width: 520px; }
.exp-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end;
}
.exp-tags span {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--fg-dim);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* === Certifications === */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cert {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.cert:hover { padding-left: 12px; }
.cert:hover .cert-num { color: var(--accent); }
.cert-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  transition: color .25s;
}
.cert-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.cert-issuer {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  text-align: right;
}
@media (max-width: 900px) {
  .cert { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .cert-issuer { text-align: left; }
}

/* === Experience group divider === */
.exp-group {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.exp-group-tag {
  grid-column: 1;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .exp-group { grid-template-columns: 1fr; gap: 4px; }
}

/* === Blog === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  /* button reset */
  font: inherit;
  text-align: left;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .25s;
}
.post:hover { transform: translateY(-3px); }
.post:hover::after { border-color: var(--accent); }
.post:hover .post-arrow { transform: translate(3px, -3px); color: var(--accent); }

.post-cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.post-cover.glyph-1 { background: linear-gradient(135deg, oklch(0.28 0.04 60), oklch(0.18 0.02 60)); }
.post-cover.glyph-2 { background: linear-gradient(135deg, oklch(0.30 0.06 220), oklch(0.16 0.03 220)); }
.post-cover.glyph-3 { background: linear-gradient(135deg, oklch(0.30 0.08 30), oklch(0.16 0.03 30)); }

.post-cover svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
.post-excerpt {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
}
.post-arrow {
  display: inline-block;
  transition: transform .25s, color .25s;
}

/* === Contact === */
.contact {
  padding: 120px 0 100px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.contact h2 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.contact h2 .sans {
  font-family: "Geist", sans-serif;
  font-style: normal;
  font-weight: 500;
}
.contact h2 .accent { color: var(--accent); }

.contact-side {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--fg-dim);
}
.contact-side a {
  color: var(--fg);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s;
}
.contact-side a:hover { color: var(--accent); padding-left: 8px; }
.contact-side a .at { color: var(--fg-mute); }

/* === Footer === */
.foot {
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

/* === Post Page (full route) === */
.post-page {
  padding: 80px 0 120px;
  border-bottom: 1px solid var(--line);
}
.post-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 6px 0;
  margin-bottom: 56px;
  transition: color .2s, transform .2s;
}
.post-back:hover { color: var(--accent); }
.post-back:hover .arrow { transform: translateX(-3px); }
.post-back .arrow { display: inline-block; transition: transform .2s; }

.post-page-head {
  margin-bottom: 48px;
}
.post-page-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.post-page-meta .dot-sep { opacity: 0.5; }

.post-page-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--fg);
  text-wrap: balance;
}

.post-page-lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}

.post-page-cover {
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  margin: 0 0 56px;
}
.post-page-cover.glyph-1 { background: linear-gradient(135deg, oklch(0.28 0.04 60), oklch(0.18 0.02 60)); }
.post-page-cover.glyph-2 { background: linear-gradient(135deg, oklch(0.30 0.06 220), oklch(0.16 0.03 220)); }
.post-page-cover.glyph-3 { background: linear-gradient(135deg, oklch(0.30 0.08 30), oklch(0.16 0.03 30)); }
.post-page-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.post-page-prose p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 26px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.post-page-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 72px;
}
.pn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  transition: all .25s ease;
}
.pn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pn:hover .pn-title { color: var(--accent); }
.pn-next { text-align: right; }
.pn-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.pn-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  transition: color .2s;
}

@media (max-width: 700px) {
  .post-page-wrap { padding: 0 22px; }
  .post-page { padding: 48px 0 80px; }
  .post-page-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
}

/* === Reveal (CSS-only, no JS needed) === */
.reveal {
  opacity: 1;
  transform: none;
  animation: revealIn .8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav-links a:not(.cta) { display: none; }
  .sec-head, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
  .exp-tags { justify-content: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 60px; }
  .sec { padding: 64px 0; }
}
