/* ================= Fontlar (kendi sunucumuzdan) ================= */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ================= Temel ================= */
:root {
  --bg: #06070b;
  --text: #eef0f6;
  --muted: #9aa1b2;
  --dim: #5f6678;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .035);
  --glass-hi: rgba(255, 255, 255, .07);
  --blue: #5b8cff;
  --mint: #7cf2c8;
  --violet: #b48cff;
  --grad: linear-gradient(100deg, #7cf2c8 0%, #5b8cff 50%, #b48cff 100%);
  --radius: 22px;
  --max: 1180px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(91, 140, 255, .13), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(124, 242, 200, .06), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(91, 140, 255, .4); }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; position: relative; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: absolute; left: -999px; top: 10px; background: var(--mint); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }

/* WebGL tuvali ve film greni */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.gl-ready #gl { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer, .nav { position: relative; z-index: 2; }

.glass {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 60px -30px rgba(0, 0, 0, .6);
}

/* ================= Butonlar ================= */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none;
  color: #05060a; background: var(--text);
  border: 1px solid transparent;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  box-shadow: 0 10px 40px -10px rgba(124, 242, 200, .45);
}
.btn:hover { background: #fff; box-shadow: 0 14px 50px -8px rgba(91, 140, 255, .6); }
.btn--ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.btn--small { padding: 10px 18px; font-size: 14px; box-shadow: none; }

/* ================= Menü ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(6, 7, 11, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { text-decoration: none; }
.logo__mark {
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  display: inline-grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; position: relative; transition: color .25s; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ================= Giriş ================= */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding: 120px 0 90px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.hero__title { font-size: clamp(56px, 10.5vw, 148px); font-weight: 600; letter-spacing: -.055em; line-height: .92; }
.hero__title .line { display: block; }
.hero__role { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); color: var(--text); margin: 30px 0 14px; letter-spacing: -.01em; }
.hero__role span { color: var(--dim); margin: 0 6px; }
.hero__lead { max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ================= Teknoloji şeridi ================= */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: rgba(6, 7, 11, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; color: var(--dim); white-space: nowrap; letter-spacing: -.02em; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; font-size: .5em; color: rgba(124, 242, 200, .5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Bölümler ================= */
.section { padding: clamp(90px, 14vh, 150px) 0; }
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(38px, 5.5vw, 68px); }
.section__no { font-family: var(--display); font-size: 14px; color: var(--mint); letter-spacing: .1em; padding: 4px 10px; border: 1px solid rgba(124, 242, 200, .25); border-radius: 999px; }

/* Hakkımda */
.about { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
.about__big { font-family: var(--display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -.02em; color: var(--text); margin-bottom: 28px; }
.about__big em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__text p:not(.about__big) { color: var(--muted); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .02); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-size: 14px; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 500; text-align: right; }

/* Deneyim */
.timeline { position: relative; }
.job { display: grid; grid-template-columns: 160px 1fr; gap: 40px; }
.job__meta { padding-top: 30px; }
.job__time { font-family: var(--display); color: var(--mint); font-size: 15px; letter-spacing: .04em; }
.job__card { padding: 34px 38px; }
.job__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.job__top h3 { font-size: clamp(24px, 2.6vw, 30px); }
.job__company { font-family: var(--display); font-size: 18px; color: var(--muted); }
.job__list { display: grid; gap: 12px; margin-bottom: 26px; }
.job__list li { position: relative; padding-left: 26px; color: var(--muted); }
.job__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--grad); }

/* Etiketler */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 6px 13px; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

/* Yetenekler — bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 32px; position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.tile--wide { grid-column: span 2; }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(124, 242, 200, .12), transparent 45%);
}
.tile:hover { border-color: rgba(255, 255, 255, .16); }
.tile:hover::before { opacity: 1; }
.tile__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--display); font-size: 18px; color: var(--mint); background: rgba(124, 242, 200, .08); border: 1px solid rgba(124, 242, 200, .2); margin-bottom: 26px; }
.tile h3 { font-size: 24px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }

/* Projeler */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s; }
.project:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .16); }
.project__visual { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.project__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 7, 11, .6)); }
.project__visual--a { background: radial-gradient(60% 70% at 30% 30%, rgba(124, 242, 200, .55), transparent 70%), radial-gradient(50% 60% at 80% 80%, rgba(91, 140, 255, .45), transparent 70%), #0b0f14; }
.project__visual--b { background: radial-gradient(60% 70% at 70% 30%, rgba(91, 140, 255, .6), transparent 70%), radial-gradient(50% 60% at 20% 80%, rgba(180, 140, 255, .4), transparent 70%), #0b0d16; }
.project__visual--c { background: radial-gradient(60% 70% at 50% 70%, rgba(180, 140, 255, .55), transparent 70%), radial-gradient(50% 60% at 80% 20%, rgba(124, 242, 200, .35), transparent 70%), #0e0b16; }
.project__visual { transition: transform .8s var(--ease); }
.project:hover .project__visual { transform: scale(1.04); }
.project__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project__kind { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.project__body h3 { font-size: 24px; margin-bottom: 10px; }
.project__body p { color: var(--muted); font-size: 15.5px; flex: 1; }

/* İletişim */
.contact__card { padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.contact__card::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(91, 140, 255, .25), transparent 60%); pointer-events: none; }
.contact__title { font-size: clamp(40px, 6.5vw, 84px); margin: 28px 0 22px; letter-spacing: -.045em; }
.contact__lead { color: var(--muted); max-width: 520px; font-size: 18px; margin-bottom: 44px; }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__item {
  --mx: 0px; --my: 0px;
  display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-radius: 18px; text-decoration: none;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}
.contact__item:hover { border-color: rgba(124, 242, 200, .4); background: rgba(124, 242, 200, .05); }
.contact__label { font-size: 13px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.contact__value { font-family: var(--display); font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; word-break: break-all; }

/* Alt bilgi */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--text); }

/* ================= Belirme animasyonu ================= */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .btn, .contact__item { transform: none !important; }
}

/* ================= Duyarlı ================= */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; gap: 12px; }
  .job__meta { padding-top: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--max)); }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 76px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 22px;
    background: rgba(6, 7, 11, .96); border-bottom: 1px solid var(--line);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
  .hero { align-items: flex-end; padding-bottom: 70px; }
  .scroll-cue { display: none; }
  .hero__lead { text-shadow: 0 1px 12px rgba(6,7,11,.9); }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .bento, .projects, .contact__links { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .job__card { padding: 26px 22px; }
  .tile { padding: 26px; }
}
