/* =========================================================
   Mehmet Efe Gezici — Portfolio
   Dark / Futuristic / Neon accents
   ========================================================= */

:root {
  --bg: #050508;
  --bg-2: #0a0a11;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededf2;
  --muted: #8b8b9a;
  --dim: #5a5a68;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 35%, #a855f7 65%, #f472b6 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }

[data-lucide], .lucide { width: 1em; height: 1em; stroke-width: 1.8; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); color: var(--cyan); opacity: .8; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Global effects ---------- */
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  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");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(168, 85, 247, .8);
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; z-index: 0;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(129, 140, 248, .09), transparent 60%);
  opacity: 0; transition: opacity .4s;
  will-change: transform;
}
@media (pointer: fine) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- Reveal (fade-in-up) ---------- */
.reveal {
  opacity: 0;
  translate: 0 48px;
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0s),
    translate 1.1s var(--ease) var(--d, 0s),
    filter 1.1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; translate: 0 0; filter: blur(0); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 150;
  translate: -50% 0;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(12, 12, 20, .55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  transition: translate .6s var(--ease), background .3s;
  animation: navIn 1.2s var(--ease) .2s both;
}
.nav.hidden { translate: -50% -140%; }
@keyframes navIn { from { opacity: 0; transform: translateY(-20px); } }

.nav-logo { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; }
.nav-logo span { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; font-size: .875rem; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; color: #000;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { box-shadow: 0 0 24px rgba(255, 255, 255, .35); transform: translateY(-1px); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: var(--surface-2); border-radius: 50%; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav.open .nav-toggle span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 500; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
  will-change: transform;
}
.btn i, .btn svg { transition: transform .4s var(--ease); }
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 0 0 rgba(255,255,255,0); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(168, 85, 247, .45), 0 0 80px rgba(34, 211, 238, .2); }
.btn-primary:hover i, .btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: 120px 24px 80px; isolation: isolate;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 40%), rgba(129, 140, 248, .14), transparent 60%);
  transition: background .2s;
}
.aurora { position: absolute; z-index: -3; border-radius: 50%; filter: blur(110px); opacity: .5; pointer-events: none; }
.aurora.a1 { width: 520px; height: 520px; background: #7c3aed; top: -180px; left: -120px; animation: float1 18s ease-in-out infinite alternate; opacity: .35; }
.aurora.a2 { width: 460px; height: 460px; background: #0891b2; bottom: -200px; right: -100px; animation: float2 22s ease-in-out infinite alternate; opacity: .3; }
@keyframes float1 { to { transform: translate(180px, 120px) scale(1.15); } }
@keyframes float2 { to { transform: translate(-160px, -140px) scale(1.1); } }

.grid-overlay {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero-content { text-align: center; max-width: 1100px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: .8rem; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero-title {
  display: flex; flex-direction: column; align-items: center;
  margin: 28px 0 26px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.1rem, 11.5vw, 10rem);
  line-height: .92; letter-spacing: -.055em;
}
.hero-title .line { position: relative; display: inline-block; overflow: hidden; padding: 0 .04em .08em; white-space: nowrap; }
.hero-title .char {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  opacity: 0;
  animation: charIn 1.2s var(--ease) forwards;
  animation-delay: calc(.25s + var(--i) * .045s);
  background: linear-gradient(180deg, #ffffff 30%, #a1a1b5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .gradient .char {
  background-image: var(--grad);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, .35));
}
@keyframes charIn { to { transform: none; opacity: 1; } }

.hero-fade { opacity: 0; animation: fadeUp 1.2s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

.hero-sub {
  font-size: clamp(1rem, 2.1vw, 1.35rem); color: var(--muted); font-weight: 400;
  letter-spacing: -.01em;
}
.hero-sub .amp { font-family: var(--font-display); color: var(--violet); margin: 0 .35em; text-shadow: 0 0 14px rgba(168,85,247,.8); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 6px; vertical-align: -0.18em; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--dim); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-indicator .mouse { width: 24px; height: 38px; border: 1.5px solid var(--dim); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-indicator .wheel { width: 3px; height: 8px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 140px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--cyan);
  letter-spacing: .05em; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.02; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 40%, #8d8da0 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title .text-grad { -webkit-text-fill-color: transparent; }
.section-desc { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }

/* ---------- Card base (spotlight + border glow) ---------- */
.card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, #a855f7) 14%, transparent), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, #a855f7) 85%, white 10%), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.spotlight-group:hover .card::after { opacity: .9; }
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c, #a855f7) 45%, transparent);
}
.card.tilting { transition: transform .12s linear, border-color .4s, box-shadow .6s var(--ease); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 22px; max-width: 580px; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-text .section-title { margin-bottom: 10px; }

.traits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; max-width: 580px; }
.trait {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.trait:hover { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.04); transform: translateY(-3px); }
.trait > i, .trait > svg {
  width: 40px; height: 40px; padding: 10px; border-radius: 12px; flex-shrink: 0;
  color: var(--cyan); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.18);
}
.trait small { display: block; font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.trait strong { font-size: .95rem; font-weight: 500; }

.code-window {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(10, 10, 18, .8);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -30px rgba(124, 58, 237, .45), 0 0 0 1px rgba(255,255,255,.02) inset;
  transition: transform .6s var(--ease);
}
.code-window::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34,211,238,.6), transparent 35%, transparent 65%, rgba(168,85,247,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.code-window.tilting { transition: transform .12s linear; }
.code-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.code-head .dots { display: flex; gap: 7px; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-head .dots i:nth-child(2) { background: #febc2e; }
.code-head .dots i:nth-child(3) { background: #28c840; }
.code-head .file { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.code-head .lang { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: #a78bfa; padding: 3px 9px; border-radius: 999px; background: rgba(127,82,255,.12); border: 1px solid rgba(127,82,255,.3); }
.code-body {
  padding: 24px 24px 28px; overflow-x: auto;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.85; color: #c9c9d6;
}
.code-body .c { color: #5c6370; font-style: italic; }
.code-body .k { color: #f472b6; }
.code-body .v { color: #e5e7eb; }
.code-body .f { color: #22d3ee; }
.code-body .p { color: #c4b5fd; }
.code-body .s { color: #86efac; }
.code-caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; margin-left: 4px; background: var(--cyan); animation: blink 1s steps(1) infinite; box-shadow: 0 0 10px var(--cyan); }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill { padding: 28px; min-height: 220px; display: flex; flex-direction: column; }
.skill.span-2 { grid-column: span 2; }
.skill-top { display: flex; justify-content: space-between; align-items: flex-start; }
.skill-icon {
  font-size: 44px; line-height: 1; width: 44px; height: 44px;
  transition: transform .6s var(--ease), filter .5s;
  filter: grayscale(.25) brightness(.95);
  transform: translateZ(30px);
}
.lucide-icon.skill-icon { color: var(--c); }
.icon-pair { display: flex; gap: 10px; }
.skill:hover .skill-icon {
  transform: translateZ(40px) scale(1.12) rotate(-4deg);
  filter: grayscale(0) brightness(1.1) drop-shadow(0 0 18px var(--c));
}
.skill h3 { margin-top: auto; padding-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; transform: translateZ(20px); }
.skill.span-2 h3 { font-size: 1.6rem; }
.skill p { color: var(--muted); font-size: .9rem; margin-top: 6px; transform: translateZ(10px); }
.tag {
  font-family: var(--font-mono); font-size: .7rem; padding: 5px 11px; border-radius: 999px;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 8%, transparent);
}
.sub-skills { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sub-skills span {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem;
  padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
.sub-skills i { font-size: 15px; }
.skill-learning { background: linear-gradient(160deg, rgba(244,114,182,.07), rgba(168,85,247,.04)); border-style: dashed; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; --c: #818cf8; }
.project-wide { grid-column: 1 / -1; flex-direction: row; --c: #22d3ee; }
.project-wide .pv { flex: 1.15; min-height: 380px; }
.project-wide .project-body { flex: 1; padding: 44px; justify-content: center; }
.project-wide h3 { font-size: 2.4rem; }

.pv { position: relative; height: 240px; overflow: hidden; background: #07070d; border-bottom: 1px solid var(--border); }
.project-wide .pv { height: auto; border-bottom: 0; border-right: 1px solid var(--border); }
.project-body { padding: 28px; display: flex; flex-direction: column; flex: 1; transform: translateZ(20px); }
.project-type { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; color: var(--c); }
.project h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.15; margin: 12px 0 10px; }
.project p { color: var(--muted); font-size: .93rem; }
.feature-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.feature-row span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; padding: 8px 14px; border-radius: 12px; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2); color: #a5f3fc; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-family: var(--font-mono); font-size: .7rem; padding: 4px 10px; border-radius: 6px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.project-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px;
  font-size: .88rem; font-weight: 500; color: var(--text); width: fit-content;
}
.project-link i, .project-link svg { transition: transform .4s var(--ease); }
.project-link:hover { color: var(--c); }
.project-link:hover i, .project-link:hover svg { transform: translate(3px, -3px); }

/* --- Jarvis visual --- */
.pv-jarvis {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(34,211,238,.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(34,211,238,.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(34,211,238,.04) 0 1px, transparent 1px 28px),
    #04070c;
}
.reactor { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.reactor .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(34,211,238,.5); }
.reactor .r1 { inset: 0; border-style: dashed; animation: spin 22s linear infinite; }
.reactor .r2 { inset: 22px; border-color: transparent; border-top-color: #22d3ee; border-bottom-color: #22d3ee; box-shadow: 0 0 20px rgba(34,211,238,.35); animation: spin 5s linear infinite reverse; }
.reactor .r3 { inset: 46px; border-width: 3px; border-color: rgba(34,211,238,.25); border-left-color: #a5f3fc; animation: spin 3s linear infinite; }
.reactor .core { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #67e8f9 35%, rgba(34,211,238,.1) 70%); box-shadow: 0 0 40px #22d3ee, 0 0 90px rgba(34,211,238,.6); animation: corePulse 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 50% { transform: scale(.86); box-shadow: 0 0 24px #22d3ee, 0 0 60px rgba(34,211,238,.4); } }
.wave { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 4px; height: 40px; }
.wave b { width: 3px; border-radius: 3px; background: linear-gradient(180deg, #22d3ee, #a855f7); height: 20%; animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s); opacity: .85; }
@keyframes wave { 0%, 100% { height: 15%; } 50% { height: 100%; } }
.hud { position: absolute; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em; color: rgba(165,243,252,.7); }
.hud::before { content: "● "; color: #22c55e; }
.hud-tl { top: 20px; left: 22px; }
.hud-br { bottom: 84px; right: 22px; }

/* --- Laser visual --- */
.pv-laser {
  background:
    radial-gradient(circle at 50% 120%, rgba(239,68,68,.25), transparent 60%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 22px 22px,
    #0a0506;
}
.beam { position: absolute; left: -10%; width: 120%; height: 2px; background: linear-gradient(90deg, transparent, #ef4444 20%, #fca5a5 50%, #ef4444 80%, transparent); box-shadow: 0 0 10px #ef4444, 0 0 24px rgba(239,68,68,.7); transform-origin: center; }
.beam.b1 { top: 30%; transform: rotate(12deg); animation: beamFlicker 3s infinite; }
.beam.b2 { top: 52%; transform: rotate(-9deg); animation: beamFlicker 3.6s .6s infinite; }
.beam.b3 { top: 70%; transform: rotate(5deg); animation: beamFlicker 2.8s 1.1s infinite; }
.beam.b4 { top: 0; height: 100%; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(239,68,68,.12), transparent); box-shadow: none; animation: sweep 4s ease-in-out infinite; }
@keyframes beamFlicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 94% { opacity: .2; } 96% { opacity: 1; } }
@keyframes sweep { to { left: 110%; } }
.sensor { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: #1f1f25; border: 1px solid #ef4444; box-shadow: 0 0 12px #ef4444; }
.sensor.s1 { left: 14px; top: 26%; }
.sensor.s2 { right: 14px; top: 62%; }
.armed { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .15em; color: #fca5a5; padding: 5px 10px; border-radius: 999px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); }
.armed i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1s steps(1) infinite; box-shadow: 0 0 8px #ef4444; }
.pv-icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px !important; height: 56px !important; color: #fecaca; filter: drop-shadow(0 0 18px rgba(239,68,68,.9)); stroke-width: 1.4 !important; }

/* --- Künefe visual --- */
.pv-kunefe { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(251,146,60,.35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(234,179,8,.25), transparent 50%), #0c0704; }
.browser { width: 82%; border-radius: 12px; overflow: hidden; background: #140c06; border: 1px solid rgba(251,146,60,.25); box-shadow: 0 20px 50px rgba(0,0,0,.6); transform: perspective(800px) rotateX(10deg) rotateY(-8deg); transition: transform .8s var(--ease); }
.project:hover .browser { transform: perspective(800px) rotateX(0) rotateY(0) translateY(-6px); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,.04); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.browser-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .6rem; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); padding: 2px 10px; border-radius: 999px; }
.browser-body { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 20px; gap: 10px; }
.k-hero small { display: block; font-size: .6rem; color: #fdba74; letter-spacing: .1em; text-transform: uppercase; }
.k-hero strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; margin: 4px 0 10px; background: linear-gradient(90deg, #fde68a, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.k-btn { display: inline-block; font-size: .62rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #f97316, #eab308); color: #1a0d03; }
.k-plate { width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle, #f97316 0 42%, #c2410c 43% 48%, #e5e7eb 49% 62%, #9ca3af 63% 66%, transparent 67%); box-shadow: 0 0 30px rgba(249,115,22,.5); position: relative; animation: spin 20s linear infinite; }
.k-plate span { position: absolute; inset: 22%; border-radius: 50%; background: repeating-conic-gradient(rgba(253,224,71,.5) 0 8deg, transparent 8deg 20deg); }

/* --- Password visual --- */
.pv-pass { display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, rgba(168,85,247,.28), transparent 55%), #08060d; }
.terminal { width: 84%; padding: 18px 18px 16px; border-radius: 12px; background: rgba(0,0,0,.55); border: 1px solid rgba(168,85,247,.3); font-family: var(--font-mono); font-size: .75rem; box-shadow: 0 0 40px rgba(168,85,247,.15); }
.t-line { color: var(--muted); }
.t-prompt { color: #a855f7; }
.t-out { margin: 12px 0; font-size: 1.05rem; letter-spacing: .06em; color: #e9d5ff; text-shadow: 0 0 12px rgba(168,85,247,.8); white-space: nowrap; overflow: hidden; }
.strength { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.strength span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #a855f7, #22d3ee); box-shadow: 0 0 10px #a855f7; transition: width .6s var(--ease); }
.t-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .7rem; }
.t-meta b { color: #86efac; font-weight: 500; }

/* =========================================================
   HOBBIES
   ========================================================= */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0; margin-bottom: 110px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.012);
  -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; align-items: center; gap: 38px; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); white-space: nowrap; transition: color .3s; }
.marquee-track span:hover { color: #fff; }
.marquee-track i { font-style: normal; color: var(--violet); text-shadow: 0 0 12px var(--violet); }
@keyframes marquee { to { transform: translateX(calc(-50% - 19px)); } }

.hobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hobby { padding: 34px 30px 30px; }
.hobby-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  transform: translateZ(40px);
  transition: transform .6s var(--ease), box-shadow .5s;
}
.hobby-icon svg, .hobby-icon i { width: 30px; height: 30px; }
.hobby:hover .hobby-icon { transform: translateZ(50px) rotate(-8deg) scale(1.08); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 55%, transparent); }
.hobby h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; margin: 26px 0 8px; }
.hobby p { color: var(--muted); font-size: .93rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.badge { font-size: .76rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: #d4d4de; }
.badge-fb { background: linear-gradient(90deg, rgba(250,204,21,.14), rgba(30,58,138,.35)); border-color: rgba(250,204,21,.35); color: #fde68a; }
.hobby-fb { background: linear-gradient(160deg, rgba(30,58,138,.28), rgba(255,255,255,.01) 60%); }
.hobby-fb .hobby-icon svg { fill: #facc15; }
.fb-stripes {
  position: absolute; top: 0; right: 0; width: 140px; height: 140px; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(135deg, #facc15 0 10px, #1e3a8a 10px 20px);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
          mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  transition: opacity .5s;
}
.hobby-fb:hover .fb-stripes { opacity: .6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-info .section-desc { margin-bottom: 40px; }

.gh-btn {
  position: relative; display: inline-block; padding: 1.5px; border-radius: 20px; overflow: hidden;
  isolation: isolate; transition: transform .4s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 0 0 rgba(168,85,247,0);
}
.gh-border {
  position: absolute; inset: -150%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 55%, #22d3ee 70%, #a855f7 82%, #f472b6 92%, transparent 100%);
  animation: spin 3.5s linear infinite;
}
.gh-btn::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--border-strong); }
.gh-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 24px 18px 20px; border-radius: 18.5px;
  background: #0a0a12;
  transition: background .4s;
}
.gh-logo { width: 38px; height: 38px; color: #fff; transition: transform .6s var(--ease), filter .4s; }
.gh-text small { display: block; font-size: .78rem; color: var(--muted); }
.gh-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.gh-arrow { width: 22px !important; height: 22px !important; margin-left: 18px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.gh-btn:hover { box-shadow: 0 0 50px rgba(168,85,247,.45), 0 0 100px rgba(34,211,238,.2); }
.gh-btn:hover .gh-border { animation-duration: 1.4s; }
.gh-btn:hover .gh-inner { background: #0e0e18; }
.gh-btn:hover .gh-logo { transform: rotate(-12deg) scale(1.08); filter: drop-shadow(0 0 12px rgba(255,255,255,.6)); }
.gh-btn:hover .gh-arrow { transform: translate(4px, -4px); color: #fff; }

.contact-form { padding: 38px; --c: #22d3ee; }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea {
  width: 100%; padding: 26px 2px 10px; border: 0; outline: 0; resize: none;
  background: transparent; border-bottom: 1px solid var(--border-strong);
  font-size: 1rem; transition: border-color .3s;
}
.field label {
  position: absolute; left: 2px; top: 24px; color: var(--muted); font-size: 1rem; pointer-events: none;
  transform-origin: 0 0; transition: transform .35s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(.78); color: var(--cyan);
}
.field-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.field textarea + label + .field-line { bottom: 6px; }
.field input:focus ~ .field-line, .field textarea:focus ~ .field-line { transform: scaleX(1); }
.field.error input, .field.error textarea { border-bottom-color: #f87171; }
.field.error label { color: #f87171; }
.contact-form .btn { margin-top: 10px; }
.contact-form .btn[disabled] { opacity: .7; pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding: 40px 0 36px; border-top: 1px solid var(--border); overflow: hidden; }
.footer-big {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.06em; line-height: .9;
  font-size: clamp(2.6rem, 10.5vw, 9.5rem); text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 30px 0 40px; user-select: none;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: .85rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; font-size: .92rem;
  background: rgba(14, 14, 22, .85); border: 1px solid rgba(34,197,94,.35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(34,197,94,.15);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.toast i, .toast svg { color: #4ade80; width: 20px; height: 20px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-wide { flex-direction: column; }
  .project-wide .pv { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--border); }
  .project-wide .project-body { padding: 30px; }
  .project-wide h3 { font-size: 2rem; }
  .projects-grid .project:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { gap: 14px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: 22px;
    background: rgba(12,12,20,.92); border: 1px solid var(--border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav { min-width: min(92vw, 420px); justify-content: space-between; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hobby-grid { grid-template-columns: 1fr; }
  .section { padding: 110px 0; }
}

@media (max-width: 600px) {
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .skill.span-2 { grid-column: auto; }
  .traits { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero-cta .btn { width: 100%; }
  .contact-form { padding: 28px 22px; }
  .gh-inner { padding: 16px 18px; gap: 14px; }
  .gh-arrow { margin-left: 4px; }
  .code-body { font-size: .74rem; }
  .footer-row { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; translate: none; filter: none; }
}
