@font-face {
  font-family: PortfolioSans;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(fonts/PortfolioSans-400.woff) format('woff');
}
@font-face {
  font-family: PortfolioSans;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(fonts/PortfolioSans-700.woff) format('woff');
}

/* Tokens */
:root {
  --bg: #f6f6f2;
  --bg-2: #eeeee8;
  --surface: #ffffff;
  --ink: #141613;
  --muted: #565a53;
  --faint: #6b6f68;
  --line: #dfe0d8;
  --soft: #ecede6;
  --accent: #2b50e8;
  --accent-ink: #2041c9;
  --accent-soft: #e8edff;
  --live: #1f8a4c;
  --band: #10120f;
  --band-ink: #f2f3ee;
  --band-muted: #b4b8af;
  --band-line: #2a2e28;
  --shadow: 0 30px 80px -30px rgb(16 18 15 / 35%);
  --radius: 18px;
  --sans: PortfolioSans, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0c0e0c;
  --bg-2: #121512;
  --surface: #161a16;
  --ink: #eceee8;
  --muted: #a7aca2;
  --faint: #959a90;
  --line: #272b26;
  --soft: #1d211c;
  --accent: #7891ff;
  --accent-ink: #93a6ff;
  --accent-soft: #1b2246;
  --live: #4cc47f;
  --band: #151915;
  --band-ink: #eceee8;
  --band-muted: #a7aca2;
  --band-line: #2a2f29;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-lang='tr'] [data-l='en'],
[data-lang='en'] [data-l='tr'] {
  display: none !important;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus {
  outline: none;
}
.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ink) 30%, var(--line));
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
[data-theme='dark'] .button.primary {
  color: #0c0e0c;
}
.button.primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.button.on-dark {
  border-color: var(--band-line);
  background: transparent;
  color: var(--band-ink);
}
.button.on-dark:hover {
  border-color: var(--band-muted);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: border-color 0.2s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.monogram {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.monogram i {
  color: var(--accent);
  font-style: normal;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: var(--soft);
}
.settings {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.demo-pill:hover {
  border-color: var(--accent);
}
.languages {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.languages button,
.theme-toggle {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 12px/1 var(--mono);
  cursor: pointer;
}
.languages button {
  padding: 7px 9px;
  border-radius: 999px;
}
.languages button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
[data-theme='light'] .theme-toggle .sun,
[data-theme='dark'] .theme-toggle .moon {
  display: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0 56px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 500 13px/1.2 var(--mono);
}
.hero h1 {
  margin-top: 28px;
  font-weight: 700;
}
.hero-name {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-statement {
  display: block;
  margin-top: 14px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-statement em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-links {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  font-size: 15px;
}
.hero-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.hero-feature {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: rotate(1.2deg);
  transition: transform 0.35s ease;
}
.hero-feature:hover {
  transform: rotate(0deg) translateY(-4px);
}
.feature-tag {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 12px/1 var(--mono);
}
.hero-shot,
.browser {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.hero-shot img,
.browser img {
  width: 100%;
  height: auto;
}
[data-theme='light'] .shot-dark,
[data-theme='dark'] .shot-light {
  display: none;
}
.hero-feature-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 6px 2px;
  color: var(--muted);
  font-size: 14px;
}
.hero-feature-caption strong {
  color: var(--ink);
  font-size: 17px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  display: grid;
  gap: 4px;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat strong {
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Section headings */
.section-head {
  max-width: 720px;
}
.kicker,
.eyebrow {
  color: var(--accent-ink);
  font: 600 12.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

/* Work */
.work {
  padding-top: 120px;
}
.featured {
  margin-top: 56px;
  padding: 28px 0;
}
.featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: var(--band);
  color: var(--band-ink);
}
[data-theme='dark'] .featured-inner {
  border: 1px solid var(--band-line);
}
.featured .eyebrow {
  color: #9db0ff;
}
.featured h3 {
  margin-top: 10px;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.featured-summary {
  margin-top: 18px;
  color: var(--band-muted);
}
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--band-muted);
}
.feature-list li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid #3a4bb0;
}
.feature-list b {
  color: var(--band-ink);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.metrics dd {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metrics dt {
  color: var(--band-muted);
  font-size: 13px;
  line-height: 1.35;
}
.featured .stack {
  margin-top: 22px;
  color: var(--band-muted);
}
.stack {
  font: 500 12.5px/1.7 var(--mono);
  color: var(--faint);
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.featured .button.primary {
  border-color: #fff;
  background: #fff;
  color: #10120f;
}
.featured .button.primary:hover {
  background: #e6e8e1;
  border-color: #e6e8e1;
}
.featured-visual .browser {
  border-color: var(--band-line);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 80%);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.url {
  flex: 1;
  max-width: 300px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
  text-align: center;
}
.featured-visual figcaption {
  margin-top: 12px;
  color: var(--band-muted);
  font: 500 12px/1.4 var(--mono);
  text-align: right;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.project-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
        circle at 1px 1px,
        color-mix(in srgb, var(--ink) 14%, transparent) 1px,
        transparent 0
      )
      0 0 / 18px 18px,
    var(--bg-2);
  color: var(--accent);
}
.project-art svg {
  width: min(62%, 300px);
  height: auto;
  transition: transform 0.4s ease;
}
.project:hover .project-art svg {
  transform: scale(1.04);
}
.a-surface {
  fill: var(--surface);
  stroke: var(--line);
}
.a-line {
  stroke: var(--line);
}
.a-ink {
  stroke: currentColor;
}
.a-soft {
  fill: var(--soft);
}
.a-accent-soft {
  fill: var(--accent-soft);
}
.a-dot {
  fill: currentColor;
}
.project-num {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--faint);
  font: 600 12px/1 var(--mono);
}
.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 30px 26px;
}
.project h3 {
  margin-top: 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.project-body > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}
.metrics.small {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.metrics.small dd {
  font-size: 22px;
}
.metrics.small dt {
  color: var(--faint);
}
details {
  margin-top: auto;
  padding-top: 18px;
}
summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 500 14px/1 var(--mono);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
details .stack {
  font-size: 12px;
}
.note {
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
#experience {
  padding-top: 140px;
}
.sticky {
  position: sticky;
  top: 110px;
}
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 40px 36px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}
.timeline li.current::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.when {
  color: var(--faint);
  font: 500 13px/1.4 var(--mono);
}
.timeline h3 {
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.where {
  color: var(--accent-ink);
  font-weight: 600;
}
.timeline p:not(.where):not(.tags) {
  margin-top: 10px;
  color: var(--muted);
}
.tags {
  margin-top: 12px;
  color: var(--faint);
  font: 500 12.5px/1.5 var(--mono);
}

/* About */
.about {
  margin-top: 140px;
  padding: 110px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.about-text {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.about-languages {
  margin-top: 18px;
  color: var(--muted);
  font: 500 13px/1.4 var(--mono);
}
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.skill {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.skill h3 {
  font-size: 16px;
}
.skill p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Contact */
.contact {
  padding: 40px 0 0;
}
.contact-inner {
  padding: 88px 56px;
  border-radius: 32px;
  background: var(--band);
  color: var(--band-ink);
  text-align: center;
}
[data-theme='dark'] .contact-inner {
  border: 1px solid var(--band-line);
}
.contact .kicker {
  color: #9db0ff;
}
.contact h2 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.email {
  display: inline-block;
  margin-top: 26px;
  color: var(--band-ink);
  font-size: clamp(20px, 3vw, 32px);
  text-decoration: none;
  border-bottom: 2px solid #3a4bb0;
  overflow-wrap: anywhere;
}
.email:hover {
  border-color: #9db0ff;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.contact .button.primary {
  border-color: #fff;
  background: #fff;
  color: #10120f;
}
.copy-status {
  min-height: 1.6em;
  margin-top: 14px;
  color: var(--band-muted);
  font-size: 14px;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 36px 0 44px;
  color: var(--faint);
  font: 500 13px/1.5 var(--mono);
}
.footer a {
  color: var(--muted);
}

/* Reveal on scroll */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.motion-ready .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1020px) {
  .nav {
    display: none;
  }
  .settings {
    margin-left: auto;
  }
  .hero,
  .featured-inner,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 48px;
    padding-top: 48px;
  }
  .hero-feature {
    transform: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .featured-inner {
    padding: 36px;
  }
  .featured-visual {
    order: -1;
  }
  .sticky {
    position: static;
  }
  .split {
    gap: 36px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .project-grid,
  .skills {
    grid-template-columns: 1fr;
  }
  /* The featured section right below shows the same screenshot. */
  .hero-feature {
    display: none;
  }
  .featured-inner {
    width: 100%;
    padding: 32px 20px;
    border-radius: 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .metrics dd {
    font-size: 21px;
  }
  .metrics.small dd {
    font-size: 19px;
  }
  .project-body {
    padding: 24px 22px;
  }
  .stat {
    padding: 22px 16px;
  }
  .contact-inner {
    width: 100%;
    padding: 64px 20px;
    border-radius: 0;
  }
  .work {
    padding-top: 88px;
  }
  #experience,
  .about {
    margin-top: 0;
    padding-top: 96px;
  }
  .about {
    margin-top: 96px;
    padding-bottom: 80px;
  }
  .hero-links {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .topbar,
  .hero-feature,
  .featured-visual,
  .contact-actions {
    display: none;
  }
}
