/* Beyaz zemin, renk blokları. Her proje türünün kendi rengi var:
   mavi = backend, turuncu = yarışma, yeşil = güvenlik, pembe = mobil, sarı = araştırma */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f4f6fb;
  --line: #e4e8f0;
  --ink: #0f1b2d;
  --navy: #14245e;
  --navy-deep: #0d1a47;
  --muted: #56627a;
  --blue: #2b59ff;
  --blue-tint: #ebf0ff;
  --orange: #ff6a2b;
  --orange-tint: #fff1e9;
  --green: #0b8a5f;
  --green-tint: #e5f6ef;
  --pink: #e8366f;
  --pink-tint: #fdeaf1;
  --yellow: #ffc21a;
  --yellow-tint: #fff6d9;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
code { font-family: var(--mono); font-size: 0.86em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
p { max-width: 65ch; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Üst menü */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--blue); background: var(--blue-tint); }
.nav a.cta { background: var(--navy); color: #fff; }
.nav a.cta:hover { background: var(--blue); }

/* Giriş */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 48px;
}
.hello { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 500; color: var(--muted); }
.hello b { color: var(--ink); font-weight: 600; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(11, 138, 95, 0.18); }
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 .hl-blue { color: var(--blue); }
h1 .hl-orange { color: var(--orange); }
.hero-text p.sub { font-size: 1.15rem; color: var(--muted); margin: 22px 0 0; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--blue); border-color: var(--blue); }
.btn.light { background: #fff; color: var(--ink); }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  border-radius: var(--r);
  padding: 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.tile .num { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile .lbl { font-size: 14px; line-height: 1.4; font-weight: 500; }
.tile.blue { background: var(--blue); color: #fff; }
.tile.orange { background: var(--orange); color: var(--ink); }
.tile.yellow { background: var(--yellow); color: var(--ink); }
.tile.green { background: var(--green); color: #fff; }
.tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }

/* Katkı şeridi */
.orgs { background: var(--navy); background-image: linear-gradient(90deg, var(--navy-deep), var(--navy)); }
.orgs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 22px; }
.orgs p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa6ff; }
.orgs ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.orgs li { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; opacity: 0.92; }

/* Bölümler */
.section { padding-block: 88px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.eyebrow.blue { background: var(--blue-tint); color: var(--blue); }
.eyebrow.orange { background: var(--orange-tint); color: #c4440f; }
.eyebrow.green { background: var(--green-tint); color: var(--green); }
.eyebrow.pink { background: var(--pink-tint); color: var(--pink); }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }

/* Hakkımda */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.about-text p { font-size: 1.1rem; margin: 18px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--soft);
}
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.timeline li:nth-child(1) .dot { background: var(--blue); }
.timeline li:nth-child(2) .dot { background: var(--orange); }
.timeline li:nth-child(3) .dot { background: var(--green); }
.timeline li:nth-child(4) .dot { background: var(--pink); }
.timeline div { min-width: 0; }
.timeline .when { font-size: 13px; font-weight: 600; color: var(--muted); }
.timeline h3 { font-family: var(--display); font-size: 1.15rem; margin: 2px 0 4px; letter-spacing: -0.01em; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
.timeline .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px -6px rgba(43, 89, 255, 0.7);
  transition: transform 0.15s ease, background 0.15s ease;
}
.timeline .more:hover { background: var(--ink); transform: translateY(-1px); }

/* Projeler */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--soft); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  --c: var(--blue);
  --t: var(--blue-tint);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--r);
  background: var(--t);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 27, 45, 0.35); }
.card.backend { --c: var(--blue); --t: var(--blue-tint); }
.card.security { --c: var(--green); --t: var(--green-tint); }
.card.mobile { --c: var(--pink); --t: var(--pink-tint); }
.card.research { --c: #b98500; --t: var(--yellow-tint); }
/* Proje illüstrasyonları: kartın rengini alır */
.art {
  margin: -8px -8px 6px;
  padding: 18px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  background-image: radial-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
}
.art svg { display: block; width: 100%; height: 150px; }
.art .a { fill: var(--c); }
.art .soft { fill: var(--c); opacity: 0.28; }
.art .w { fill: #fff; }
.art .ink { fill: var(--ink); }
.art .s { fill: none; stroke: var(--c); stroke-width: 2.5; }
.art .sw { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art .sk { fill: none; stroke: var(--ink); }
.art .t { fill: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; text-anchor: middle; }
.art-feat { margin: 0; background: rgba(255, 255, 255, 0.92); background-image: none; }
.art-feat svg { height: 130px; }
.card:hover .art svg { transform: scale(1.03); }
.art svg { transition: transform 0.3s ease; }

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kind { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.vis { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--muted); }
.vis.public { color: var(--green); }
.card h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.card .meta { margin: -4px 0 0; font-size: 14px; font-weight: 600; color: var(--c); }
.card .desc { margin: 0; color: #2d3a50; font-size: 15px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 7px; background: #fff; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px -6px rgba(15, 27, 45, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
}
.links a::after { content: "↗"; font-size: 0.9em; opacity: 0.85; }
.links a:hover { filter: brightness(1.15); transform: translateY(-1px); }

.card.featured {
  grid-column: 1 / -1;
  background: var(--orange);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  padding: 36px;
}
.card.featured .kind, .card.featured .meta { color: var(--ink); }
.card.featured h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.card.featured .desc { color: var(--ink); font-size: 1.05rem; }
.card.featured .links a { background: var(--navy); }
.feat-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feat-stats { display: grid; gap: 12px; align-content: center; }
.feat-stats div { background: rgba(255, 255, 255, 0.92); border-radius: 14px; padding: 16px 18px; }
.feat-stats b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.02em; }
.feat-stats span { font-size: 14px; color: var(--muted); }

/* Açık kaynak */
.prs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  min-width: 0;
}
.pr-head { display: flex; align-items: center; gap: 12px; }
.org-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.pr-head div { min-width: 0; }
.pr-head strong { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.pr-head a { font-family: var(--mono); font-size: 12.5px; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(43, 89, 255, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pr-head a::after { content: " ↗"; }
.pr-head a:hover { text-decoration-color: currentColor; }
.pr p { margin: 0; font-size: 15px; color: #2d3a50; }
.merged { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: #8250df; background: #f3edff; padding: 4px 10px; border-radius: 999px; }
.pr.wide { grid-column: 1 / -1; }

.sweeps { margin-top: 18px; border-radius: var(--r); background: var(--soft); }
.sweeps summary { cursor: pointer; padding: 20px 24px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; align-items: center; gap: 12px; }
.sweeps summary::-webkit-details-marker { display: none; }
.sweeps summary:hover { background: var(--blue-tint); border-radius: var(--r); }
.sweeps summary::after { content: "Listeyi aç +"; margin-left: auto; flex: none; font-family: var(--body); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 10px; background: var(--blue); color: #fff; }
.sweeps[open] summary::after { content: "Kapat −"; }
.sweeps summary span { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--muted); }
.table-scroll { overflow-x: auto; padding: 0 12px 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: 12px; overflow: hidden; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
td:first-child a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(43, 89, 255, 0.35); text-underline-offset: 3px; }
td:first-child a::after { content: " ↗"; }
td:first-child a:hover { text-decoration-color: currentColor; }
td:last-child { color: var(--muted); min-width: 24ch; }

/* Yetenekler */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill { padding: 24px; border-radius: var(--r); background: var(--soft); min-width: 0; }
.skill h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; margin: 0 0 14px; }
.skill h3 i { width: 12px; height: 12px; border-radius: 4px; }
.skill ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.skill li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }

/* İletişim */
.contact {
  margin-top: 88px;
  border-radius: 28px;
  background: var(--navy);
  background-image: radial-gradient(circle at 100% 0%, rgba(43, 89, 255, 0.55), transparent 55%);
  color: #fff;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin: 16px 0 0; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
a.contact-item:hover { background: rgba(255, 255, 255, 0.2); }
.contact-item small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.contact-item span { font-weight: 600; overflow-wrap: anywhere; }
.copy {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9px;
  border: 0;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.copy:hover { background: var(--yellow); color: var(--ink); }

footer { margin-top: 88px; padding-block: 32px; background: var(--navy-deep); color: #c3cdf2; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-top: 40px; }
  .card.featured { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid, .prs, .skills { grid-template-columns: 1fr; }
  .brand span:last-child { display: none; }
  .nav a:not(.cta) { padding: 8px 10px; }
  .card, .card.featured { padding: 22px; }
  .section { padding-top: 64px; }
  .tile { min-height: 120px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
