@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --h: 185;
  --bg: #05070f;
  --card: rgba(255, 255, 255, .035);
  --card-b: rgba(255, 255, 255, .08);
  --txt: #eef2ff;
  --mute: #8b95b5;
  --acc: hsl(var(--h) 100% 62%);
  --acc2: hsl(calc(var(--h) + 70) 95% 68%);
  --acc-soft: hsl(var(--h) 100% 62% / .14);
  --grad: linear-gradient(120deg, var(--acc), var(--acc2));
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--txt); font-family: var(--font); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
::selection { background: var(--acc); color: #000; }
body.has-cursor, body.has-cursor * { cursor: none !important; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--mute); }

/* ---------- Background layers ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
.spotlight { --mx: 50vw; --my: 40vh; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(650px circle at var(--mx) var(--my), hsl(var(--h) 100% 60% / .10), transparent 60%); }
.spotlight::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(380px circle at var(--mx) var(--my), #000, transparent 70%);
  mask-image: radial-gradient(380px circle at var(--mx) var(--my), #000, transparent 70%); }
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 1001; transform-origin: 0 50%;
  transform: scaleX(var(--p, 0)); background: var(--grad); box-shadow: 0 0 12px var(--acc); }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%; z-index: 9999; display: none; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: grid; }
.cursor-dot { width: 8px; height: 8px; background: var(--acc); box-shadow: 0 0 10px var(--acc), 0 0 22px var(--acc); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--acc); place-items: center; z-index: 9998;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, scale .15s; }
.cursor-ring span { font: 700 .72rem var(--display); color: #05070f; opacity: 0; letter-spacing: .05em; text-transform: uppercase; transition: opacity .2s; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--acc-soft); }
.cursor-ring.label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--acc); border-color: transparent; }
.cursor-ring.label span { opacity: 1; }
.cursor-ring.down { scale: .8; }
.ripple { position: fixed; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--acc);
  pointer-events: none; z-index: 9997; animation: ripple .7s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(9); opacity: 0; } }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s, visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { font: 700 3.2rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pulse 1.4s ease-in-out infinite; }
.loader-bar { width: 160px; height: 2px; margin-top: 18px; background: rgba(255,255,255,.08); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { opacity: .5; transform: scale(.96); } }

/* ---------- Nav ---------- */
nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 32px)); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 24px; border-radius: 999px;
  border: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
nav.scrolled { background: rgba(8, 11, 22, .65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--card-b); }
.logo { font: 700 1.35rem var(--display); color: var(--txt); text-decoration: none; }
.logo span { color: var(--acc); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--mute); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a.active { color: var(--txt); background: var(--acc-soft); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-b); background: transparent; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.menu-btn span { width: 18px; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .3s; }
nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font: 600 .95rem var(--font);
  text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s, border-color .3s, color .3s; }
.btn-primary { background: var(--grad); color: #05070f; box-shadow: 0 10px 40px -12px var(--acc); }
.btn-primary:hover { box-shadow: 0 16px 50px -8px var(--acc); }
.btn-ghost { color: var(--txt); border-color: var(--card-b); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 130px 6vw 70px; position: relative; }
.hero-text > * { opacity: 0; }
.loaded .hero-text > * { animation: rise 1s var(--ease) forwards; }
.hero-text > :nth-child(2) { animation-delay: .08s !important; }
.hero-text > :nth-child(3) { animation-delay: .16s !important; }
.hero-text > :nth-child(4) { animation-delay: .24s !important; }
.hero-text > :nth-child(5) { animation-delay: .32s !important; }
.hero-text > :nth-child(6) { animation-delay: .40s !important; }
.hero-text > :nth-child(7) { animation-delay: .48s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--card-b); background: var(--card); font-size: .82rem; color: var(--mute); backdrop-filter: blur(8px); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.hello { color: var(--mute); font-size: 1.1rem; margin-top: 26px; }
.hero h1 { font: 700 clamp(2.9rem, 7.2vw, 5.8rem)/1.02 var(--display); letter-spacing: -.035em; margin: 6px 0 14px; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .char { display: inline-block; transition: transform .35s var(--ease), color .3s; }
.hero h1 .char:hover { transform: translateY(-12px) rotate(-8deg) scale(1.1); color: var(--acc); }
.hero h1 .word.grad { background: none; }
.hero h1 .word.grad .char { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typing { font: 500 clamp(1.15rem, 2.3vw, 1.6rem) var(--display); color: var(--mute); min-height: 1.8em; }
.typing b { color: var(--acc); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--acc); vertical-align: -3px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--mute); max-width: 540px; margin: 10px 0 34px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; margin-top: 34px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--card-b); color: var(--mute); background: var(--card);
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.socials a:hover { color: var(--acc); border-color: var(--acc); box-shadow: 0 0 24px -4px var(--acc); }
.socials svg { width: 19px; height: 19px; }

/* ---------- JARVIS HUD ---------- */
.hero-visual { display: grid; place-items: center; }
.hud { --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; position: relative; width: min(600px, 44vw); aspect-ratio: 1; perspective: 1100px; }
.hud-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s ease-out; }
.hud-glow { position: absolute; inset: 10%; border-radius: 50%; transform: translateZ(-60px);
  background: radial-gradient(closest-side, hsl(var(--h) 100% 60% / .28), hsl(calc(var(--h) + 70) 90% 60% / .08) 60%, transparent); }
.hud-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hud-rings.outer { transform: translateZ(0); }
.hud-rings.inner { transform: translateZ(40px); }
.hud-rings g { transform-box: view-box; transform-origin: 50% 50%; }
.hud-rings circle, .hud-rings path { fill: none; stroke: var(--acc); }
.r-thin { stroke-width: 1; opacity: .35; }
.r-thin.dim { opacity: .18; }
.r-ticks { stroke-width: 10; stroke-dasharray: 1.6 7.4; opacity: .55; }
.r-arcs { stroke-width: 4; stroke-dasharray: 180 30 60 30 300 40 20 40 120 60; opacity: .8; }
.r-dash { stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .45; stroke: var(--acc2) !important; }
.r-bold { stroke-width: 6; stroke-dasharray: 300 391; stroke-linecap: round; opacity: .9; stroke: var(--acc2) !important; }
.r-seg { stroke-width: 9; stroke-dasharray: 38 13; opacity: .28; }
.r-cross { stroke-width: 2; opacity: .7; }
.r-text { fill: var(--acc); font: 600 11px var(--mono); letter-spacing: 3px; opacity: .75; }
.spin-slow { animation: rot 50s linear infinite; }
.spin-text { animation: rot 70s linear infinite reverse; }
.spin-med { animation: rot 20s linear infinite; }
.spin-med-rev { animation: rot 13s linear infinite reverse; }
.spin-fast-rev { animation: rot 8s linear infinite reverse; }
@keyframes rot { to { transform: rotate(360deg); } }
.hud-sweep { position: absolute; inset: 4%; border-radius: 50%; transform: translateZ(20px); pointer-events: none; animation: sweep 4.5s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 280deg, hsl(var(--h) 100% 62% / .38) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 74%, #000 75%, #000 98%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 74%, #000 75%, #000 98%, transparent 100%); }
@keyframes sweep { to { rotate: 360deg; } }

.hud-photo { position: absolute; inset: 18.5%; border-radius: 50%; overflow: hidden; transform: translateZ(70px); background: #0a1124;
  box-shadow: 0 0 0 2px hsl(var(--h) 100% 62% / .7), 0 0 50px hsl(var(--h) 100% 60% / .45); }
.hud-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hud-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light;
  background: linear-gradient(160deg, hsl(var(--h) 100% 55% / .55), hsl(calc(var(--h) + 70) 90% 55% / .5)); }
.hud-photo::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), radial-gradient(closest-side, transparent 68%, rgba(5,7,15,.9) 100%); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 28%; z-index: 3; animation: scan 3.6s ease-in-out infinite;
  background: linear-gradient(transparent, hsl(var(--h) 100% 70% / .22), transparent); border-bottom: 1px solid hsl(var(--h) 100% 70% / .5); }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(380%); } }

.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.node { position: absolute; left: 0; top: 0; padding: 8px 11px 9px; border-radius: 10px; white-space: nowrap; will-change: transform, opacity;
  background: rgba(5, 11, 26, .86); border: 1px solid hsl(var(--h) 100% 62% / .5);
  box-shadow: 0 0 20px hsl(var(--h) 100% 55% / .22), inset 0 0 14px hsl(var(--h) 100% 55% / .1);
  font: 500 11px/1.5 var(--mono); color: #cfe6ff; }
.node::before { content: ""; position: absolute; top: -1px; left: 10px; width: 26px; height: 2px; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.n-title { display: flex; justify-content: space-between; gap: 14px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.n-title em { font-style: normal; color: var(--mute); }
.n-op { margin-top: 6px; font-size: 10px; color: var(--acc2); }
.node pre { font: inherit; margin: 0; }
.node .k { color: hsl(calc(var(--h) + 70) 95% 72%); }
.node .s { color: #9ef0a8; }
.node .f { color: var(--acc); }
.node .t { color: #ff9ecd; }
.node .c { color: #6c7899; }
.node .live { color: #fff; background: hsl(var(--h) 100% 60% / .25); border-radius: 3px; padding: 0 3px; }
.arr { display: flex; gap: 3px; padding-bottom: 12px; }
.arr span, .stk span, .ll span { display: grid; place-items: center; border: 1px solid var(--acc); border-radius: 4px; font-weight: 700; color: #fff; background: hsl(var(--h) 100% 60% / .12); position: relative; }
.arr span { width: 23px; height: 23px; }
.arr span i { position: absolute; top: 100%; margin-top: 2px; font: 400 8px var(--mono); color: var(--mute); font-style: normal; }
.arr span.new, .stk span.new, .ll span.new { animation: pop .5s var(--ease); }
.arr span.hit { background: var(--acc); color: #05070f; }
@keyframes pop { from { transform: scale(0) translateY(-8px); opacity: 0; } }
.stk { display: flex; flex-direction: column-reverse; gap: 3px; min-height: 104px; justify-content: flex-start; }
.stk span { width: 64px; height: 18px; font-size: 10px; }
.stk span:last-child { background: var(--acc); color: #05070f; }
.ll { display: flex; align-items: center; gap: 3px; }
.ll span { min-width: 24px; height: 22px; padding: 0 4px; }
.ll b { color: var(--acc2); font-weight: 400; }
.tree circle { fill: hsl(var(--h) 100% 60% / .15); stroke: var(--acc); stroke-width: 1.2; transition: fill .3s; }
.tree circle.on { fill: var(--acc); }
.tree line { stroke: hsl(var(--h) 100% 62% / .5); stroke-width: 1; }
.tree text { fill: #fff; font: 700 8px var(--mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; }

.readout { position: absolute; display: grid; gap: 2px; font: 500 10px/1.3 var(--mono); letter-spacing: .12em; color: var(--mute); transform: translateZ(30px); }
.readout b { color: var(--acc); font-weight: 700; }
.readout::before { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--acc); opacity: .7; }
.readout.tl { top: 2%; left: 0; } .readout.tl::before { left: -20px; top: -4px; border-right: 0; border-bottom: 0; }
.readout.tr { top: 2%; right: 0; text-align: right; } .readout.tr::before { right: -20px; top: -4px; border-left: 0; border-bottom: 0; }
.readout.bl { bottom: 2%; left: 0; } .readout.bl::before { left: -20px; bottom: -4px; border-right: 0; border-top: 0; }
.readout.br { bottom: 2%; right: 0; text-align: right; } .readout.br::before { right: -20px; bottom: -4px; border-left: 0; border-top: 0; }
.blink { font-style: normal; animation: blink 1s steps(1) infinite; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--card-b); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--acc); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.block { max-width: 1200px; margin: 0 auto; padding: 120px 6vw; }
.sec-head { margin-bottom: 54px; }
.sec-tag { display: inline-flex; gap: 10px; font: 600 .78rem var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.sec-tag::before { content: attr(data-n) " —"; color: var(--mute); }
h2 { font: 700 clamp(2.1rem, 4.8vw, 3.4rem)/1.08 var(--display); letter-spacing: -.025em; margin-top: 12px; }
.sec-sub { color: var(--mute); max-width: 560px; margin-top: 14px; }

.card { background: var(--card); border: 1px solid var(--card-b); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, transform .5s var(--ease), box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), hsl(var(--h) 100% 70% / .13), transparent 45%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: hsl(var(--h) 100% 62% / .42); box-shadow: 0 30px 60px -30px hsl(var(--h) 100% 50% / .35); }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt.tilting { transition: border-color .3s, transform .12s ease-out, box-shadow .3s; }

.reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.tilt.reveal { transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), border-color .3s, transform .5s var(--ease), box-shadow .3s; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--mute); border: 1px dashed var(--card-b); border-radius: var(--radius); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.about-main p { font-size: 1.08rem; color: #c8cfe6; }
.info { list-style: none; display: grid; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--card-b); }
.info li { display: flex; align-items: center; gap: 14px; color: var(--mute); font-size: .95rem; }
.info svg { width: 20px; height: 20px; color: var(--acc); flex-shrink: 0; }
.stats { display: grid; gap: 18px; }
.stat { display: flex; flex-direction: column; justify-content: center; }
.stat .num { font: 700 2.8rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--mute); margin-top: 8px; font-size: .92rem; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.sphere { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: auto; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--h) 100% 60% / .08), transparent 65%); }
.sphere span { position: absolute; left: 50%; top: 50%; white-space: nowrap; font: 600 1rem var(--display); color: var(--txt);
  padding: 4px 10px; border-radius: 8px; will-change: transform, opacity; transition: color .2s, text-shadow .2s; }
.sphere span.learn { color: var(--acc2); }
.sphere span:hover { color: var(--acc); text-shadow: 0 0 16px var(--acc); }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.skill-group { padding: 24px; }
.skill-group h3 { font: 600 .82rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.skill-row { margin-top: 14px; }
.skill-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.skill-top span:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.skill-top em { font-style: normal; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--acc2);
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; box-shadow: 0 0 12px var(--acc); transition: width 1.6s var(--ease); }

/* Education */
.timeline { position: relative; padding-left: 44px; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--acc), var(--acc2), transparent); }
.t-item { position: relative; }
.t-dot { position: absolute; left: -44px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--acc); box-shadow: 0 0 18px var(--acc); }
.t-head { display: flex; align-items: flex-start; gap: 18px; }
.t-head > div { flex: 1; min-width: 0; }
.t-logo { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; object-fit: cover; background: var(--acc-soft); display: grid; place-items: center; color: var(--acc); }
.t-logo svg { width: 26px; height: 26px; }
.period { font: 600 .8rem var(--font); letter-spacing: .06em; color: var(--acc); }
.t-head h3 { font: 600 1.3rem/1.3 var(--display); margin: 4px 0; }
.inst { color: var(--mute); }
.result { padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #05070f; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.t-details { color: var(--mute); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--card-b); font-size: .95rem; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.project { padding: 0; }
.p-cover { height: 210px; position: relative; overflow: hidden; border-bottom: 1px solid var(--card-b); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .p-cover img, .project:hover .p-art span { transform: scale(1.08); }
.p-art { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 100% 60% / .35), transparent 55%), radial-gradient(circle at 80% 90%, hsl(calc(var(--h) + 70) 95% 65% / .3), transparent 55%), #0a0f22; }
.p-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.p-art span { font: 700 4rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .8s var(--ease); position: relative; z-index: 1; }
.p-flag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(5,7,15,.75); border: 1px solid var(--card-b); color: var(--acc); backdrop-filter: blur(6px); }
.p-body { padding: 24px 26px 26px; }
.p-body h3 { font: 600 1.3rem var(--display); }
.p-body p { color: var(--mute); margin-top: 8px; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); border: 1px solid hsl(var(--h) 100% 62% / .25); }
.p-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; font-size: .9rem; color: var(--txt); }
.p-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.project:hover .p-more svg { transform: translateX(5px); }

/* Certificates */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.cert { padding: 18px; }
.c-img { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--acc-soft); display: grid; place-items: center; color: var(--acc); margin-bottom: 16px; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-img svg { width: 44px; height: 44px; }
.cert h3 { font: 600 1.05rem/1.35 var(--display); }
.cert p { color: var(--mute); font-size: .88rem; margin-top: 4px; }

/* Contact */
.contact-card { text-align: center; padding: 70px 30px; }
.contact-card h2 { max-width: 760px; margin: 14px auto 0; }
.contact-card .sec-sub { margin: 16px auto 0; }
.mail-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.mail-big { font: 600 clamp(1.15rem, 3vw, 2rem) var(--display); text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }
.copy-btn { border: 1px solid var(--card-b); background: var(--card); color: var(--mute); border-radius: 999px; padding: 8px 16px; font: 500 .85rem var(--font); transition: .25s; }
.copy-btn:hover { color: var(--acc); border-color: var(--acc); }
.contact-card .socials { justify-content: center; }
.phone { margin-top: 14px; color: var(--mute); }

.footer { max-width: 1200px; margin: 0 auto; padding: 34px 6vw 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: .85rem; border-top: 1px solid var(--card-b); }
.admin-link { color: var(--mute); text-decoration: none; opacity: .6; transition: opacity .2s; }
.admin-link:hover { opacity: 1; color: var(--acc); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 12, .72); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(780px, 100%); max-height: 90vh; overflow: auto; background: #0a0f20; border: 1px solid var(--card-b); border-radius: 26px; transform: translateY(40px) scale(.96); transition: transform .45s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-b); background: rgba(5,7,15,.7); color: var(--txt); font-size: 1rem; }
.modal-close:hover { border-color: var(--acc); color: var(--acc); }
.m-img { width: 100%; max-height: 420px; object-fit: contain; background: #060912; }
.m-body { padding: 34px; }
.m-body h3 { font: 700 2rem/1.15 var(--display); margin: 10px 0 12px; }
.m-body > p { color: #c8cfe6; }
.m-body h4 { font: 600 .8rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin: 26px 0 12px; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; color: #c8cfe6; }
.checks svg { width: 18px; height: 18px; color: var(--acc); flex-shrink: 0; }
.m-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.m-actions .btn { padding: 12px 22px; }

.toast { position: fixed; bottom: 26px; left: 50%; translate: -50% 20px; z-index: 3000; padding: 12px 22px; border-radius: 999px; background: #0d1328; border: 1px solid var(--acc); color: var(--txt); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; gap: 30px; }
  .hero-visual { order: -1; }
  .hud { width: min(460px, 86vw); }
  .hero-actions, .socials { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .about-grid, .skills-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .scroll-hint { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 12px; border-radius: 22px;
    background: rgba(8, 11, 22, .94); border: 1px solid var(--card-b); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s; }
  nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  nav.open { background: rgba(8, 11, 22, .9); border-color: var(--card-b); }
  .nav-links a { padding: 12px 16px; }
}
@media (max-width: 600px) {
  .block { padding: 90px 5vw; }
  .skill-groups, .stats { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .t-head { flex-wrap: wrap; }
  .timeline { padding-left: 32px; }
  .t-dot { left: -32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .m-body { padding: 24px; }
  .sphere span { font-size: .82rem; }
  .node { font-size: 9px; padding: 6px 8px; }
  .arr span { width: 18px; height: 18px; }
  .stk { min-height: 80px; } .stk span { width: 50px; height: 14px; font-size: 8px; }
  .readout { font-size: 8px; }
  .readout::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
