:root {
  color-scheme: dark;
  --background: #0b0a14;
  --panel: #161426;
  --text: #f1f6fb;
  --muted: #aabbd0;
  --accent: #c9a9ff;
  --line: #36304e;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.65 system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
h1 { font-size: clamp(3rem, 7.2vw, 6.65rem); line-height: .99; letter-spacing: -.075em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: 1.05rem; line-height: 1.35; }
.shell { width: min(1160px, calc(100% - 4rem)); margin-inline: auto; }

.site-header, .site-footer { background: #100e1d; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.top, .footer, .brand { display: flex; align-items: center; }
.top, .footer { justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.1rem; }
.brand { gap: .7rem; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border: 1px solid #705397; border-radius: .48rem; color: var(--accent); font-size: .85rem; letter-spacing: -.04em; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
nav a { border-bottom: 2px solid transparent; padding: .3rem .1rem; color: var(--muted); font-size: .93rem; }
nav a:hover, nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.footer { color: var(--muted); font-size: .9rem; }
main { flex: 1; padding-block: clamp(2.6rem, 7.4vw, 6.6rem); }

.kicker { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.lead { color: var(--text); font-size: clamp(1.12rem, 2.25vw, 1.53rem); line-height: 1.43; max-width: 35ch; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.button { display: inline-block; background: var(--accent); color: #1a1030; border: 1px solid var(--accent); font-weight: 750; border-radius: .52rem; padding: .66rem 1rem; }
.button:hover { background: #e0ccff; }
.button.secondary { background: transparent; color: var(--text); border-color: #526980; }
.button.secondary:hover { background: var(--panel); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
.fact-grid > div { padding: 1.15rem; display: grid; gap: .1rem; }
.fact-grid > div + div { border-left: 1px solid var(--line); }
.fact-grid strong { font-size: 1.2rem; }
.fact-grid span, .cert-row span { color: var(--muted); }

.section { margin-top: clamp(2rem, 6vw, 4rem); padding-top: 1.7rem; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 1.25rem 2rem; }
.split p + p { margin-top: .8rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.tags li { border: 1px solid var(--line); background: #141122; padding: .28rem .65rem; border-radius: .35rem; color: #ccdaeb; font-size: .9rem; }
.page-intro { display: grid; gap: 1rem; margin-bottom: 2.2rem; }
.page-intro h1 { font-size: clamp(2.85rem, 8vw, 5.6rem); }
.page-intro p { font-size: 1.18rem; max-width: 53ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1.15rem, 3vw, 2rem); }
.project-grid, .tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.experience-grid { display: grid; gap: 1rem; }
.role { display: grid; gap: .75rem; }
.responsibilities { padding-left: 1.2rem; margin: .15rem 0 0; color: var(--muted); }
.responsibilities li + li { margin-top: .55rem; }
.responsibilities li::marker { color: var(--accent); }
.tool-grid { margin-top: 1rem; }
.tool-grid h3 { margin-bottom: .75rem; }
.featured-cert { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; background: linear-gradient(115deg, #372348, var(--panel)); }
.featured-cert h2 { margin: .35rem 0; }
.seal { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: .92rem; font-weight: 800; }
.cert-group { margin-top: 2.2rem; }
.cert-group h2 { margin-bottom: .65rem; }
.rows { border-top: 1px solid var(--line); }
.cert-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: .85rem 0; gap: .28rem 1rem; border-bottom: 1px solid var(--line); }
.cert-row p, .cert-row span { font-size: .93rem; }
.contact { max-width: 40rem; }
.contact .button { margin-top: 1rem; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; transform: translateY(-220%); padding: .4rem .75rem; background: var(--background); }
.skip:focus { transform: none; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .project-grid, .tool-grid, .fact-grid { grid-template-columns: 1fr; }
  .fact-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

body {
  background:
    radial-gradient(ellipse at 68% 13%, #49227d55, transparent 44rem),
    radial-gradient(ellipse at 0% 68%, #14588333, transparent 38rem),
    var(--background);
}
body[data-page="projeler"] { --accent: #79e6ed; }
body[data-page="sertifikalar"] { --accent: #f5cf87; }
body[data-page="deneyim"] { --accent: #c4b5ff; }
body[data-page="iletisim"] { --accent: #f6a7d4; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #100e1de8;
  backdrop-filter: blur(16px);
}
.site-header .top { min-height: 4.4rem; }
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 6;
  height: 3px;
  background: linear-gradient(90deg, #a77afb, #64e9ef, #f0abfc);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.skip { z-index: 8; }
.hero { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); }
.hero-copy { display: grid; gap: .95rem; max-width: 47rem; }
.hero-copy > p:not(.kicker) { max-width: 63ch; }
.hero h1 {
  font-size: clamp(3.4rem, 10.4vw, 9.2rem);
  font-weight: 800;
  background: linear-gradient(112deg, #fff 12%, #e3c8ff 54%, #83e6f1 98%);
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.hero-art {
  position: relative;
  isolation: isolate;
  margin: 0;
  border: 1px solid #a87dce9e;
  border-radius: clamp(.65rem, 2vw, 1.25rem);
  background: #151124;
  box-shadow: 0 22px 65px #05040cbc, 0 0 48px #8859b850;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.hero-art::after, .project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(230px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #d2b0ff48, transparent 75%);
  transition: opacity .22s ease;
}
.hero-art:hover::after, .project:hover::after { opacity: 1; }
.fact-grid { box-shadow: 0 10px 30px #05040b54; }
.page-intro h1 { text-shadow: 0 0 42px color-mix(in srgb, var(--accent) 24%, transparent); }
.project {
  min-height: 12rem;
  position: relative;
  display: grid;
  align-content: end;
  gap: .75rem;
  overflow: hidden;
  border-top: 2px solid var(--accent);
  background: radial-gradient(ellipse at 93% 0%, #26405a, transparent 67%), var(--panel);
}
.project:nth-child(2n) { background: radial-gradient(ellipse at 93% 0%, #39295a, transparent 68%), var(--panel); }
.project:first-child { grid-column: 1 / -1; min-height: 15rem; background: radial-gradient(ellipse at 92% 0%, #245472, transparent 70%), var(--panel); }
.featured-cert { box-shadow: 0 16px 43px #251522a8; }
.cert-row { transition: border-color .22s ease; }
.cert-row:hover { border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .19s ease both page-out; }
  ::view-transition-new(root) { animation: .42s cubic-bezier(.2,.75,.25,1) both enter; }
  .hero-copy > *, .hero-art, .page-intro { animation: enter .66s cubic-bezier(.2,.75,.25,1) both; }
  .hero-copy h1 { animation-delay: .08s; }
  .hero-copy .lead { animation-delay: .15s; }
  .hero-copy .actions, .hero-art { animation-delay: .23s; }
  [data-entered] { animation: enter .6s cubic-bezier(.2,.75,.25,1) both; }
  .button, .project { transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease; }
  .button:hover, .project:hover { transform: translateY(-3px); box-shadow: 0 14px 32px #06030a60; }
  @keyframes enter { from { opacity: .22; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
}

@media (max-width: 500px) {
  .site-header .top { gap: .4rem; padding-block: .65rem; }
  nav { column-gap: .68rem; }
  nav a { font-size: .88rem; }
}

:root:not([data-theme="dark"]) {
  color-scheme: light;
  --background: #f6f3fc;
  --panel: #fffdfd;
  --text: #231933;
  --muted: #51475e;
  --accent: #61378e;
  --line: #dcd1e9;
}
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(ellipse at 71% 9%, #e4d3f8 0%, transparent 39rem),
    radial-gradient(ellipse at 1% 48%, #ddecf9 0%, transparent 37rem),
    var(--background);
}
:root:not([data-theme="dark"]) body[data-page="projeler"] { --accent: #13656e; }
:root:not([data-theme="dark"]) body[data-page="sertifikalar"] { --accent: #805010; }
:root:not([data-theme="dark"]) body[data-page="deneyim"] { --accent: #59409b; }
:root:not([data-theme="dark"]) body[data-page="iletisim"] { --accent: #8b3466; }
:root:not([data-theme="dark"]) .site-header { background: #fffaffdf; }
:root:not([data-theme="dark"]) .site-footer { background: #eee6f7; }
:root:not([data-theme="dark"]) .brand-mark { border-color: #c4afd9; }
:root:not([data-theme="dark"]) .hero h1 { color: var(--text); }
:root:not([data-theme="dark"]) .hero h1 span { color: #603992; }
:root:not([data-theme="dark"]) .button { background: var(--accent); color: #fff; }
:root:not([data-theme="dark"]) .button:hover { background: #422660; }
:root:not([data-theme="dark"]) .button.secondary { background: #ffffffa0; color: var(--text); border-color: #ae9ac1; }
:root:not([data-theme="dark"]) .button.secondary:hover { background: #e9dcf5; }
:root:not([data-theme="dark"]) .tags li { background: #f3edf9; color: #4d3962; }
:root:not([data-theme="dark"]) .project { background: linear-gradient(140deg, #e5f5f5, #fff 72%); }
:root:not([data-theme="dark"]) .project:nth-child(2n) { background: linear-gradient(140deg, #f1e8fa, #fff 72%); }
:root:not([data-theme="dark"]) .featured-cert { background: linear-gradient(120deg, #fff0d3, #fff 70%); }
:root:not([data-theme="dark"]) .hero-art,
:root:not([data-theme="dark"]) .fact-grid,
:root:not([data-theme="dark"]) .featured-cert { box-shadow: 0 16px 48px #56387922; }

.hero { max-width: 1050px; margin-inline: auto; }
.hero-copy { max-width: 47rem; }
.hero h1 {
  width: auto;
  font-size: clamp(2.65rem, 6.25vw, 5.3rem);
  letter-spacing: -.06em;
  color: var(--text);
  background: none;
}
.hero h1 span { color: var(--accent); }
.hero-art { border-color: var(--line); }
.preferences, .language-switch { display: flex; align-items: center; gap: .5rem; }
.language-switch { padding: .22rem; gap: .12rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.language-switch a { display: grid; place-items: center; padding: .24rem .5rem; min-height: 2rem; border-radius: .38rem; color: var(--muted); font-size: .85rem; font-weight: 750; }
.language-switch a[aria-current] { background: var(--background); color: var(--accent); }
.theme-switch { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; background: var(--panel); color: var(--accent); border: 1px solid var(--line); border-radius: .6rem; font: inherit; font-size: 1.28rem; cursor: pointer; }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.theme-switch .sun, [data-theme="dark"] .theme-switch .moon { display: none; }
[data-theme="dark"] .theme-switch .sun { display: inline; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.email { display: inline-block; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; }
.contact .email { margin-top: .8rem; }
.footer { display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: start; padding-block: clamp(1.5rem, 5vw, 3rem); }
.footer-name { color: var(--text); font-size: 1.2rem; font-weight: 750; }
.footer h2 { font-size: 1rem; margin-bottom: .35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .top nav { order: 3; width: 100%; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer, .contact-grid { grid-template-columns: 1fr; }
}
