:root {
  --accent: #d4af72;
  --accent-2: #8b7cf6;
  --bg: #030306;
  --bg-2: #0c0e14;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #ecebe6;
  --muted: #9a9aa4;
  --faint: #5c5d68;
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --radius: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-2: #efeae0;
  --surface: rgba(20,18,12,.035);
  --surface-2: rgba(20,18,12,.06);
  --border: rgba(20,18,12,.09);
  --border-strong: rgba(20,18,12,.18);
  --text: #17161a;
  --muted: #5d5b62;
  --faint: #9a968c;
  --shadow: 0 30px 80px -40px rgba(60,40,10,.35);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #0b0b0b; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* atmosphere */
.galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; transition: opacity .6s var(--ease); }
.galaxy canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[data-theme="dark"] .cf { background: transparent; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow { position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .4s; opacity: 0; }
body.has-glow .glow { opacity: 1; }
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader span { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border-strong); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 0; transition: padding .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { padding: 10px 0; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .01em; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-size: 17px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent); }
.brand__name { font-size: 15px; }
.nav__links { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.nav__links a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, transform .25s, color .25s; color: var(--muted); }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: clamp(30px, 8vw, 44px); color: var(--muted); padding: 4px 0; transition: color .25s, transform .4s var(--ease); transform: translateY(12px); }
.mobile-menu.open a { transform: none; }
.mobile-menu a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: .01em; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s; white-space: nowrap; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--gold { color: #0d0c09; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000)); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { border: 1px solid var(--border-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--link { padding-inline: 8px; color: var(--muted); }
.btn--link:hover { color: var(--accent); }
.btn svg { flex: none; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%); opacity: .5; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.hero__orb--1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -120px; opacity: .18; animation: float 16s ease-in-out infinite; }
.hero__orb--2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -200px; left: -140px; opacity: .16; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 60px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero__greet { margin-top: 30px; color: var(--muted); font-size: 17px; }
.hero__name { font-family: var(--font-head); font-weight: 600; font-size: clamp(46px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -.02em; margin-top: 6px; }
.hero__name em { font-style: italic; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero__title { margin-top: 22px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 14px; }
.hero__title::before { content: ''; width: 36px; height: 1px; background: var(--accent); }
.hero__tagline { margin-top: 18px; max-width: 540px; color: var(--muted); font-size: 18px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; align-items: center; }
.hero__social { display: flex; gap: 10px; margin-top: 40px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); transition: all .3s var(--ease); }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.portrait { position: relative; aspect-ratio: 4/5; max-width: 420px; margin-left: auto; }
.portrait__ring { position: absolute; inset: -14px; border-radius: 34px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.portrait__ring::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--accent) 85%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 6s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rot { to { --a: 360deg; } }
.portrait__img { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, var(--bg-2), color-mix(in srgb, var(--accent) 12%, var(--bg-2))); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { font-family: var(--font-head); font-size: 150px; color: color-mix(in srgb, var(--accent) 70%, transparent); font-style: italic; line-height: 1; }
.portrait__badge { position: absolute; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; font-size: 13px; background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); white-space: nowrap; }
.portrait__badge svg { color: var(--accent); }
.portrait__badge--a { left: -36px; bottom: 54px; animation: bob 5s ease-in-out infinite; }
.portrait__badge--b { right: -22px; top: 40px; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--border-strong); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 2s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* sections */
.section { position: relative; padding: 120px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.eyebrow b { font-weight: 500; color: var(--faint); letter-spacing: .1em; }
.section__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.015em; margin-top: 14px; max-width: 760px; }
.section__title em { font-style: italic; color: var(--accent); }
.section__sub { color: var(--muted); max-width: 420px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .4s, transform .4s var(--ease), background .4s; }
.card:hover { border-color: var(--border-strong); }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.about__text p { color: var(--muted); font-size: 17.5px; font-weight: 300; }
.about__text p + p { margin-top: 18px; }
.about__text p:first-child { color: var(--text); font-size: 21px; font-weight: 400; }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.trait { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; background: var(--surface); }
.trait svg { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-content: start; }
.stat { padding: 30px 26px; }
.stat__value { font-family: var(--font-head); font-size: 56px; line-height: 1; color: var(--accent); }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.skill { padding: 28px; position: relative; overflow: hidden; }
.skill:hover { transform: translateY(-4px); }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; }
.skill__name { font-size: 20px; font-weight: 600; }
.skill__pct { font-family: var(--font-head); font-size: 28px; color: var(--accent); }
.skill__desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 22px; }
.bar { margin-top: 22px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1.6s var(--ease); }
.in .bar span { width: var(--w); }

/* projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; color: var(--muted); transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { color: #0d0c09; background: var(--accent); border-color: var(--accent); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left; }
.project:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.project.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.project.hide { display: none; }
.project__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--accent-2) 22%, var(--bg-2)), color-mix(in srgb, var(--accent) 18%, var(--bg-2))); }
.project.featured .project__media { aspect-ratio: auto; min-height: 340px; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.project__ph span { font-family: var(--font-head); font-size: clamp(42px, 6vw, 80px); font-style: italic; color: rgba(255,255,255,.75); text-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 0 20px; text-align: center; line-height: 1; }
.project__ph::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
.project__flags { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 1; }
.flag { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
.flag--gold { background: var(--accent); color: #0d0c09; border-color: transparent; }
.project__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.project.featured .project__body { padding: 44px; justify-content: center; }
.project__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.project__title { font-family: var(--font-head); font-size: 28px; font-weight: 500; margin-top: 10px; line-height: 1.15; }
.project.featured .project__title { font-size: clamp(32px, 3.6vw, 46px); }
.project__desc { color: var(--muted); margin-top: 12px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag { padding: 4px 11px; border-radius: 8px; font-size: 12.5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.project__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--accent); }
.project__more svg { transition: transform .3s var(--ease); }
.project:hover .project__more svg { transform: translateX(5px); }
.empty { color: var(--muted); text-align: center; padding: 60px 0; grid-column: 1/-1; }

/* timeline */
.timeline { position: relative; display: grid; gap: 18px; }
.tl { display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: center; padding: 30px 34px; }
.tl:hover { transform: translateX(6px); }
.tl__period { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tl__title { font-family: var(--font-head); font-size: 25px; font-weight: 500; line-height: 1.2; }
.tl__school { color: var(--muted); margin-top: 4px; }
.tl__desc { color: var(--faint); margin-top: 8px; font-size: 14.5px; }
.status { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.status--live { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.07); }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert { padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.cert::before { content: ''; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.cert:hover { transform: translateY(-4px); }
.cert__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cert__title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.cert__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 10px; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: #4ade80; }
.cert a.cert__link { color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }

/* hobbies */
.hobbies { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hobby { padding: 30px 26px; }
.hobby:hover { transform: translateY(-4px); background: var(--surface-2); }
.hobby__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent); border: 1px solid var(--border); margin-bottom: 22px; }
.hobby__title { font-size: 17px; font-weight: 600; }
.hobby__desc { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact__lead { color: var(--muted); font-size: 18px; font-weight: 300; margin-top: 20px; }
.contact__list { display: grid; gap: 12px; margin-top: 36px; }
.contact__item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.contact__item:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(4px); }
.contact__item .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--surface-2); flex: none; }
.contact__item small { display: block; color: var(--faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact__item span { word-break: break-all; }
.contact__item .copy { margin-left: auto; }
.form { padding: 38px; display: grid; gap: 16px; }
.form h3 { font-family: var(--font-head); font-size: 28px; font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer__links { display: flex; align-items: center; gap: 14px; }
.footer__admin { color: var(--faint); opacity: .5; transition: opacity .3s, color .3s; }
.footer__admin:hover { opacity: 1; color: var(--accent); }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0d0c09; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility .35s; }
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(860px, 100%); max-height: 90vh; overflow: auto; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateY(24px) scale(.98); transition: transform .45s var(--ease); }
.modal.open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(0,0,0,.4); color: #fff; }
.modal .project__media { aspect-ratio: 16/8; }
.modal__content { padding: 36px 40px 40px; }
.modal__content h3 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 42px); font-weight: 500; margin-top: 8px; line-height: 1.1; }
.modal__content p { color: var(--muted); margin-top: 16px; white-space: pre-line; }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120; padding: 13px 22px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; opacity: 0; transition: all .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #ef4444; color: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 70px; }
  .portrait { margin: 0 auto; width: min(340px, 80%); }
  .about, .contact { grid-template-columns: 1fr; }
  .project.featured { grid-template-columns: 1fr; }
  .project.featured .project__media { min-height: 0; aspect-ratio: 16/10; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .projects { grid-template-columns: 1fr; }
  .project.featured .project__body, .project__body { padding: 24px; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .tl .status { justify-self: start; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 26px; }
  .modal__content { padding: 26px; }
  .portrait__badge--a { left: -10px; }
  .portrait__badge--b { right: -6px; }
  .skills { grid-template-columns: 1fr; }
  .glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ================= yeni nesil: 3D sahne, eğim, ışık ================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); pointer-events: none; }
.hero__text { will-change: transform, opacity; }

/* 3D bilgisayar sahnesi */
.portrait.has-3d { aspect-ratio: 1 / 1; max-width: 560px; width: 100%; }
.portrait.has-3d .portrait__ring, .portrait.has-3d .portrait__img { display: none; }
.portrait.has-3d .portrait__badge { z-index: 2; }
.portrait.has-3d .portrait__badge--a { bottom: 10%; left: -10px; }
.portrait.has-3d .portrait__badge--b { top: 6%; right: 0; }
.stage3d { position: absolute; inset: -24% -28%; pointer-events: none; z-index: 1; will-change: opacity;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.stage3d canvas { display: block; width: 100%; height: 100%; }

/* kart imleç ışığı */
.card { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%); }

/* projeler: 3D eğim */
.projects { perspective: 1600px; }
.project { position: relative; overflow: visible; transform-style: preserve-3d; will-change: transform; }
.project__media { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; transition: transform .6s var(--ease); }
.project.featured .project__media { border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
.project__body { transition: transform .6s var(--ease); }
.project.tilting { transition: transform .14s ease-out, border-color .4s, box-shadow .4s; border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.75), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 30px 80px -50px color-mix(in srgb, var(--accent) 60%, transparent); }
.project.tilting .project__media { transform: translateZ(26px); }
.project.tilting .project__body { transform: translateZ(48px); }
.project__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), transparent 50%); mix-blend-mode: overlay; transform: translateZ(60px); }
.project.tilting .project__glare { opacity: 1; }
.modal .project__media { border-radius: 0; }

@media (max-width: 1020px) {
  .portrait.has-3d { width: min(480px, 92%); }
  .project.featured .project__media { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
}
@media (max-width: 720px) {
  .stage3d { inset: -18% -20%; }
}

/* ================= teknolojiler: yazılan metin + dolan halka ================= */
.ch { opacity: 0; color: var(--accent); transition: opacity .25s ease, color 1.4s var(--ease); }
.ch.on { opacity: 1; color: inherit; }
.ch.caret { position: relative; }
.ch.caret::after { content: ''; position: absolute; right: -.08em; top: .12em; bottom: .08em; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink .9s steps(2) infinite; }
.section__title .ch.on { color: inherit; }
.section__title em .ch.on { color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.skill { display: flex; align-items: center; gap: 22px; padding: 26px 26px 26px 28px; }
.skill::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(120% 90% at 100% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); }
.skill.done::before { opacity: 1; }
.skill__info { flex: 1; min-width: 0; }
.skill .skill__name { font-size: 21px; font-weight: 600; line-height: 1.25; }
.skill .skill__desc { margin-top: 8px; min-height: 2.9em; line-height: 1.45; }
.skill__meter { position: relative; flex: none; width: 104px; height: 104px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 5; }
.ring__bg { stroke: var(--surface-2); }
.ring__fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
.skill__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; }
.skill__val { font-family: var(--font-head); font-size: 32px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; min-width: 1.15em; text-align: right; }
.pct { width: 15px; height: 15px; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; overflow: visible; }
.pct > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.skill.done .skill__meter { animation: meterPulse 3s ease-in-out .2s infinite; }
@keyframes meterPulse { 0%, 30%, 100% { filter: none; } 12% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent)); } }

/* ================= projeler: kendini çizen çerçeve ve ikon ================= */
.project__outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; transform: translateZ(2px); }
.project__outline rect { x: .75px; y: .75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px); rx: calc(var(--radius) - 1px); fill: none; }
.o-line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.project.in .o-line { animation: draw 2.2s var(--ease) .25s forwards, settle 1.4s ease 2.3s forwards; }
.o-comet { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .08 .92; opacity: 0; transition: opacity .5s;
  filter: drop-shadow(0 0 6px var(--accent)); animation: orbit 3.6s linear infinite; }
.project:hover .o-comet, .project.featured .o-comet { opacity: 1; }
.project.featured:not(:hover) .o-comet { opacity: .55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: .28; } }
@keyframes orbit { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.project__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.project__ph span { position: relative; z-index: 1; font-size: clamp(34px, 4.6vw, 62px); }
.draw-icon { position: relative; z-index: 1; width: clamp(60px, 7vw, 92px); height: auto; aspect-ratio: 1; fill: none; stroke: var(--accent); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 55%, transparent)); }
.draw-icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .draw-icon > *, .modal.open .draw-icon > * { animation: draw .8s var(--ease) calc(.4s + var(--i) * .25s) forwards, beat 3s ease-in-out calc(1.6s + var(--i) * .12s) infinite; }
@keyframes beat { 0%, 30%, 100% { stroke-width: 1.2; } 10%, 20% { stroke-width: 1.9; } }

/* ================= iletişim & hobiler: floating dock ================= */
.dock { display: flex; align-items: flex-end; gap: 16px; height: 64px; padding: 0 16px 12px; width: fit-content; max-width: 100%; border-radius: 18px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.dock__item { --s: 40px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.dock__item:hover, .dock__item:focus-visible, .dock__item.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.dock__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dock__icon { width: calc(var(--s) / 2); height: calc(var(--s) / 2); display: grid; place-items: center; }
.dock__icon svg { width: 100%; height: 100%; }
.dock__tip { transition: opacity .2s, transform .2s; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 0); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 5px 11px; border-radius: 9px; font-size: 12.5px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: opacity .2s, transform .25s var(--ease); z-index: 3; }
.dock__tip b { font-weight: 600; color: var(--accent); margin-right: 8px; }
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { opacity: 1; transform: translate(-50%, -10px); }
.dock__label { display: none; }

.contact__dock { margin-top: 64px; display: grid; gap: 18px; justify-items: start; }
.dock-copies { display: flex; flex-wrap: wrap; gap: 8px; }
.dock-copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  border: 1px dashed var(--border-strong); transition: color .25s, border-color .25s; }
.dock-copy:hover { color: var(--accent); border-color: var(--accent); }

.hobby-stage { display: grid; justify-items: center; gap: 30px; padding-top: 40px; }
.dock-caption { display: flex; align-items: center; gap: 20px; padding: 24px 30px; width: min(560px, 100%); }
.dock-caption.swap { animation: capIn .45s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } }
.dock-caption__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.dock-caption__title { font-size: 18px; font-weight: 600; }
.dock-caption__desc { color: var(--muted); font-size: 15px; margin-top: 2px; }

@media (max-width: 767px) {
  .dock { height: auto; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; padding: 12px; }
  .dock__item { width: auto; height: auto; border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .dock__icon { width: 24px; height: 24px; }
  .dock__tip { display: none; }
  .dock__label { display: block; font-size: 12px; line-height: 1.3; text-align: center; color: inherit; }
  .contact__dock { margin-top: 32px; justify-items: stretch; }
  .hobby-stage { padding-top: 0; }
  .skill { padding: 22px; gap: 16px; }
  .skill__meter { width: 88px; height: 88px; }
  .skill__val { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-line, .draw-icon > *, .pct > * { stroke-dashoffset: 0 !important; }
  .o-line { opacity: .28; }
  .o-comet { display: none; }
  .ch { opacity: 1; color: inherit; }
}

/* ================= sinematik altbilgi (perde açılışı) ================= */
main { border-bottom: 1px solid var(--border); }
.cf-wrap { position: relative; height: 100vh; height: 100svh; width: 100%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.cf { position: fixed; left: 0; bottom: 0; width: 100%; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; background: var(--bg); color: var(--text); }
.cf-aurora { position: absolute; left: 50%; top: 50%; width: 80vw; height: 60vh; border-radius: 50%; filter: blur(80px); pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, color-mix(in srgb, var(--accent-2) 14%, transparent) 40%, transparent 70%);
  animation: cfBreathe 8s ease-in-out infinite alternate; transform: translate(-50%, -50%); }
@keyframes cfBreathe { from { transform: translate(-50%, -50%) scale(1); opacity: .6; } to { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
.cf-grid { position: absolute; inset: 0; pointer-events: none; background-size: 60px 60px;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.cf-giant { position: absolute; left: 50%; bottom: -5vh; white-space: nowrap; pointer-events: none; user-select: none; will-change: transform, opacity;
  font-family: var(--font-head); font-size: 24vw; line-height: .75; font-weight: 700; letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%); -webkit-background-clip: text; background-clip: text;
  transform: translate(-50%, 10vh) scale(.8); opacity: 0; }

.cf-marquee { position: absolute; top: 96px; left: 0; width: 100%; overflow: hidden; z-index: 2; padding: 16px 0; transform: rotate(-2deg) scale(1.1);
  border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.cf-marquee__track { display: flex; width: max-content; animation: cfMarquee 40s linear infinite; }
.cf-marquee__group { display: flex; align-items: center; gap: 48px; padding: 0 24px; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cf-star { color: color-mix(in srgb, var(--accent) 70%, transparent); letter-spacing: 0; }
.cf-star--b { color: color-mix(in srgb, var(--accent-2) 70%, transparent); }
@keyframes cfMarquee { to { transform: translateX(-50%); } }

.cf-main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 0; width: 100%; max-width: 1080px; margin: 0 auto; }
.cf-heading { font-family: var(--font-head); font-weight: 600; font-size: clamp(44px, 8vw, 112px); line-height: 1; letter-spacing: -.03em; text-align: center; margin-bottom: 48px;
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 40%, transparent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--text) 12%, transparent)); will-change: transform, opacity; }
.cf-heading em { font-style: italic; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cf-links { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; will-change: transform, opacity; }
.cf-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cf-row--sm { gap: 12px; }
.cf-row:empty { display: none; }

.cf-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
  background: linear-gradient(145deg, color-mix(in srgb, var(--text) 4%, transparent), color-mix(in srgb, var(--text) 1%, transparent));
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5), inset 0 1px 1px color-mix(in srgb, var(--text) 10%, transparent), inset 0 -1px 2px rgba(0,0,0,.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .4s cubic-bezier(.16,1,.3,1), border-color .4s, box-shadow .4s, color .4s; will-change: transform; }
.cf-pill:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--text) 2%, transparent));
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6), 0 0 30px -8px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 1px color-mix(in srgb, var(--text) 20%, transparent); }
.cf-pill--lg { padding: 18px 36px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.cf-pill svg { flex: none; transition: color .3s; }
.cf-pill--lg svg { color: var(--accent); }

.cf-bottom { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 48px 32px; }
.cf-copy { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cf-admin { color: var(--faint); opacity: .5; transition: opacity .3s, color .3s; display: grid; }
.cf-admin:hover { opacity: 1; color: var(--accent); }
.cf-badge { padding: 10px 20px; gap: 8px; cursor: default; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cf-badge b { color: var(--text); letter-spacing: .02em; text-transform: none; font-size: 13.5px; margin-left: 2px; }
.cf-heart { width: 15px; height: 15px; color: #ef4444; animation: cfBeat 2s cubic-bezier(.25,1,.5,1) infinite; }
@keyframes cfBeat { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(239,68,68,.5)); } 15%, 45% { transform: scale(1.2); filter: drop-shadow(0 0 10px rgba(239,68,68,.8)); } 30% { transform: scale(1); } }
.cf-top { width: 48px; height: 48px; padding: 0; justify-content: center; }
.cf-top svg { transition: transform .3s; }
.cf-top:hover svg { transform: translateY(-5px); }

@media (max-width: 767px) {
  .cf-marquee { top: 80px; padding: 12px 0; }
  .cf-marquee__group { font-size: 11px; gap: 32px; }
  .cf-pill--lg { padding: 15px 26px; font-size: 14.5px; }
  .cf-bottom { flex-direction: column; padding: 0 20px 24px; gap: 14px; }
  .cf-badge { order: -1; }
  .cf-top { position: absolute; right: 20px; bottom: 24px; }
  .cf-copy { letter-spacing: .08em; font-size: 10.5px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-giant { opacity: 1; transform: translate(-50%, 0); }
}

/* ================= marka, dock kalkışı, üst menü ================= */
.brand__name { font-family: var(--font-head); font-size: 20px; font-weight: 600; font-style: italic; letter-spacing: .01em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock__item { transform: translateY(var(--lift, 0)); }

/* ================= sinematik sahneler ================= */
.scene { overflow-x: clip; }
.scene__inner { position: relative; z-index: 1; }
.sec-ghost { position: absolute; top: 48px; left: 0; right: 0; text-align: center; white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
  font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(96px, 17vw, 280px); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 11%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%); -webkit-background-clip: text; background-clip: text;
  opacity: 0; will-change: transform, opacity; }

/* ================= tüm kartlarda 3D eğim ================= */
.card.tilting { transition: transform .14s ease-out, border-color .4s, box-shadow .4s; border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.75), 0 30px 70px -50px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ================= teknolojiler: dolan bar ================= */
.skill .bar { margin-top: 14px; height: 5px; border-radius: 5px; overflow: visible; position: relative; background: var(--surface-2); }
.skill .bar span { position: relative; display: block; height: 100%; border-radius: inherit; transition: none; overflow: visible;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), color-mix(in srgb, var(--accent) 60%, #fff), var(--accent), var(--accent-2)); background-size: 300% 100%;
  animation: barFlow 3s linear infinite; box-shadow: 0 0 14px -2px color-mix(in srgb, var(--accent) 70%, transparent); }
@keyframes barFlow { to { background-position: -300% 0; } }
.skill .bar span::after { content: ''; position: absolute; right: -4px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 16px var(--accent); opacity: 0; transition: opacity .4s; }
.skill.filling .bar span::after, .skill.done .bar span::after { opacity: .95; }
.skill.done .bar span::after { animation: barPulse 2.4s ease-in-out infinite; }
@keyframes barPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 22px var(--accent); } }

@media (max-width: 720px) {
  .brand__name { font-size: 18px; }
  .sec-ghost { top: 30px; }
}

/* ================= üst menü: kavisli ikon dock ================= */
.nav__links { position: relative; align-items: flex-end; gap: 8px; padding: 8px 12px 10px; border-radius: 24px; overflow: visible;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  transform: perspective(600px) rotateX(10deg); animation: dockFloat 8s ease-in-out infinite; }
@keyframes dockFloat { 50% { transform: perspective(600px) rotateX(10deg) translateY(-2px); } }
.nav__links a.ndock__item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0; border-radius: 16px; background: none;
  color: var(--text); transition: transform .6s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.ndock__item:hover, .ndock__item:focus-visible { transform: scale(1.2) rotate(-5deg); outline: none; z-index: 2; }
.ndock__btn { position: relative; width: 40px; height: 40px; border-radius: 16px; display: grid; place-items: center; color: var(--muted);
  transition: color .25s, background .25s, box-shadow .3s; }
.ndock__btn svg { width: 22px; height: 22px; }
.ndock__item:hover .ndock__btn, .ndock__item:focus-visible .ndock__btn { color: var(--text); background: var(--surface-2);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 35%, transparent); }
.ndock__item.active .ndock__btn { color: var(--accent); }
.ndock__glow { position: absolute; inset: 0; border-radius: inherit; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); opacity: 0; transition: opacity .2s; }
.ndock__item:hover .ndock__glow, .ndock__item:focus-visible .ndock__glow { opacity: 1; }
.ndock__tip { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% -4px; scale: .95; opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 5px 11px; border-radius: 8px; font-size: 12px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transition: opacity .15s, translate .2s var(--ease), scale .2s var(--ease); }
.ndock__item:hover .ndock__tip, .ndock__item:focus-visible .ndock__tip { opacity: 1; translate: -50% 0; scale: 1; }
.ndock__dot { position: absolute; left: 0; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
  opacity: 0; pointer-events: none; transition: transform .6s var(--spring, cubic-bezier(.34,1.56,.64,1)), opacity .3s; }

/* ================= giriş butonları: kavisli dock ================= */
.hero__cta { margin-top: 34px; }
.cdock { display: inline-flex; align-items: flex-end; gap: 14px; padding: 12px 14px 14px; border-radius: 26px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
  transform: perspective(600px) rotateX(10deg); animation: dockFloat 8s ease-in-out infinite; }
.cdock__item { position: relative; display: flex; flex-direction: column; align-items: center; outline: none;
  transition: transform .6s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.cdock__item:hover, .cdock__item:focus-visible { transform: scale(1.12) rotate(-4deg); z-index: 2; }
.cdock__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px 0 18px; border-radius: 18px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  transition: background .3s, color .3s, box-shadow .3s, border-color .3s; }
.cdock__btn svg { color: var(--accent); transition: color .3s; }
.cdock__item--gold .cdock__btn { color: #0d0c09; border-color: transparent;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.cdock__item--gold .cdock__btn svg { color: #0d0c09; }
.cdock__item:hover .cdock__btn, .cdock__item:focus-visible .cdock__btn { box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent) 45%, transparent); }
.cdock__item:not(.cdock__item--gold):hover .cdock__btn { border-color: transparent; }
.cdock__glow { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.cdock__item:hover .cdock__glow, .cdock__item:focus-visible .cdock__glow { opacity: 1; }
.cdock__tip { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 4px; scale: .95; opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 5px 11px; border-radius: 8px; font-size: 12px; color: var(--text); background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); transition: opacity .15s, translate .2s var(--ease), scale .2s var(--ease); }
.cdock__item:hover .cdock__tip, .cdock__item:focus-visible .cdock__tip { opacity: 1; translate: -50% 0; scale: 1; }
.cdock__dot { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
  transform: scale(0); transition: transform .5s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.cdock__item.active .cdock__dot { transform: scale(1); }

/* ================= dil düğmesi ================= */
.lang { position: relative; display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang button { position: relative; z-index: 1; width: 42px; height: 32px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); transition: color .35s; }
.lang button:hover { color: var(--text); }
.lang button.on { color: #0d0c09; }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang__thumb { position: absolute; top: 4px; left: 4px; width: 42px; height: 32px; border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .6s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.lang[data-lang="en"] .lang__thumb { transform: translateX(42px); }

@media (max-width: 720px) {
  .cdock { gap: 10px; padding: 10px; flex-wrap: wrap; }
  .cdock__btn { height: 46px; padding: 0 16px 0 14px; font-size: 14px; }
  .lang button { width: 38px; }
  .lang__thumb { width: 38px; }
  .lang[data-lang="en"] .lang__thumb { transform: translateX(38px); }
}
@media (prefers-reduced-motion: reduce) {
  .cdock { animation: none; }
}


/* ================= özel imleç ================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type=checkbox]):not([type=radio]):not([type=range]), html.has-cursor textarea, html.has-cursor [contenteditable="true"] { cursor: text !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); will-change: transform; }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
.cur-dot::before { content: ''; position: absolute; width: 5px; height: 5px; left: -2.5px; top: -2.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .25s var(--ease), opacity .25s; }
.cur-dot.is-text::before { opacity: 0; }
.cur-ring::before { content: ''; position: absolute; width: 26px; height: 26px; left: -13px; top: -13px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 4%, transparent);
  transition: width .45s var(--ease), height .45s var(--ease), left .45s var(--ease), top .45s var(--ease), background .35s, border-color .35s, transform .2s var(--ease), opacity .3s; }
.cur-ring.is-hover::before { width: 38px; height: 38px; left: -19px; top: -19px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 85%, transparent);
  backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.cur-ring.is-view::before { width: 56px; height: 56px; left: -28px; top: -28px; background: color-mix(in srgb, var(--accent) 88%, transparent); border-color: transparent;
  box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.cur-ring.is-text::before { opacity: 0; }
.cur-ring.is-down::before { transform: scale(.78); }
.cur-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #0b0b10; white-space: nowrap; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.cur-ring.is-view .cur-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cur-ring.is-view + .cur-dot::before { opacity: 0; }
[data-theme="light"] .cur-dot::before { box-shadow: none; }

/* ================= proje modalı açılış animasyonu ================= */
.modal__panel { transform-origin: center; }
.modal.open .modal__panel { will-change: clip-path, transform; }
.modal .project__media { overflow: hidden; }
.modal .project__media > * { transform-origin: center; }
.modal__shine { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, #fff 22%, transparent) 48%, color-mix(in srgb, var(--accent) 25%, transparent) 52%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0; }
.modal__backdrop { transition: backdrop-filter .5s var(--ease), -webkit-backdrop-filter .5s var(--ease); }
.modal:not(.open) .modal__backdrop { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.modal__panel { transform: none; transition: none; }
.modal__backdrop { transition: opacity .45s var(--ease), backdrop-filter .5s var(--ease), -webkit-backdrop-filter .5s var(--ease); }
.modal.closing .modal__backdrop { opacity: 0; }
/* mor ışık hero sınırında kesilip şerit oluşturmasın */
.hero__orb--2 { bottom: 160px; left: -220px; }

/* ================= premium düzenlemeler (arayüz incelemesi) ================= */
/* 1) Kartlar: hareketli arka plan çizgileri içeriğin arkasından geçmesin — buzlu cam yüzey */
.card, .form, .field input, .field textarea, .trait, .nav__links, .lang, .icon-btn, .dock, .tag, .filter, .cf-pill {
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
[data-theme="dark"] .card { background-color: color-mix(in srgb, var(--bg-2) 82%, transparent); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea { background-color: color-mix(in srgb, var(--bg) 70%, transparent); }
[data-theme="dark"] .trait, [data-theme="dark"] .filter:not(.active), [data-theme="dark"] .tag { background-color: color-mix(in srgb, var(--bg-2) 75%, transparent); }
[data-theme="light"] .card { background-color: color-mix(in srgb, #fff 72%, transparent); }
/* kartlara ince üst ışık kenarı */
.card { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent), 0 20px 50px -30px rgba(0,0,0,.6); }

/* 2) Klavye odağı: tüm etkileşimli öğelerde görünür, markaya uygun odak halkası */
:where(a, button, [role="button"], input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

/* 3) Projeler: tek kalan son kart yarım satırda boş alan bırakmasın — geniş yatay kart olsun */
@media (min-width: 1021px) {
  .projects > .project:not(.featured):last-child:nth-child(even) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
  .projects > .project:not(.featured):last-child:nth-child(even) .project__media { aspect-ratio: auto; min-height: 300px; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
  .projects > .project:not(.featured):last-child:nth-child(even) .project__body { padding: 40px; justify-content: center; }
}

/* 4) Mobil: 3 istatistik kartı tek satırda, yetim kart kalmasın */
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 20px 14px; text-align: center; }
  .stat__value { font-size: 40px; }
  .stat__label { font-size: 12.5px; }
}
/* 5) Mobil iletişim kısayolları: 4 öğe 2×2 düzgün ızgara */
@media (max-width: 767px) {
  .contact__dock .dock { grid-template-columns: repeat(2, 1fr); }
}

/* 6) Altbilgi (mobil): isim bölünmesin, yukarı-çık butonu telif yazısının üstüne binmesin */
.cf-badge b { white-space: nowrap; }
@media (max-width: 767px) {
  .cf-bottom { padding-bottom: 88px; }
  .cf-top { bottom: 20px; right: auto; left: calc(50% - 24px); }
  .cf-copy { justify-content: center; flex-wrap: wrap; row-gap: 6px; }
}
/* devasa "ÖZBAY" yazısı daha geri planda kalsın, butonlarla yarışmasın */
.cf-giant { -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 10%, transparent); }
