/* =========================================================
   Antriksh Chaudhary — Portfolio
   ========================================================= */
:root {
  --bg: #07081a;
  --bg-2: #0c0e24;
  --card: rgba(20, 23, 52, .62);
  --card-solid: #12152f;
  --line: rgba(140, 150, 255, .14);
  --line-2: rgba(140, 150, 255, .26);
  --text: #e8ebff;
  --muted: #9aa1c9;
  --dim: #6b7199;
  --p1: #7c6cff;
  --p2: #22d3ee;
  --p3: #f472b6;
  --ok: #34d399;
  --err: #fb7185;
  --grad: linear-gradient(120deg, var(--p1), var(--p2));
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font-h: 'Sora', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  font-family: var(--font-b); background: var(--bg); color: var(--text);
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--p1); color: #fff; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: var(--p1); top: -160px; left: -120px; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--p2); top: 30%; right: -160px; opacity: .25; animation: float 22s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(60px, 80px) scale(1.1); } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { font: 800 42px var(--font-h); position: relative; }
.loader-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader-mark span { position: absolute; left: 0; bottom: -10px; height: 3px; width: 100%; background: var(--grad); transform-origin: left; animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 108, 255, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .6); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--p2); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading svg { display: none; }
.btn.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; padding: 18px 0; }
.nav.scrolled { background: rgba(7, 8, 26, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--font-h); }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); font-size: 15px; color: #fff; letter-spacing: .5px; }
.logo-text b { color: var(--p2); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) { padding: 8px 14px; border-radius: 8px; font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { color: var(--text); background: rgba(124, 108, 255, .12); }
.nav-cta { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; padding: 140px 0 60px; position: relative; overflow-x: clip; display: flex; flex-direction: column; justify-content: center; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13.5px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font: 800 clamp(38px, 5.6vw, 68px)/1.08 var(--font-h); margin: 22px 0 14px; letter-spacing: -1.5px; }
.hero-role { font: 600 clamp(20px, 2.4vw, 28px) var(--font-h); color: var(--muted); min-height: 1.5em; }
.typed { color: var(--text); }
.caret { color: var(--p2); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { max-width: 580px; margin: 22px 0 34px; color: var(--muted); font-size: 17px; }
.hero-lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-social { display: flex; gap: 12px; margin-top: 34px; }
.hero-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: .25s; }
.hero-social a:hover { color: #fff; border-color: var(--p1); background: rgba(124, 108, 255, .15); transform: translateY(-3px); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.avatar-ring { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.avatar-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, var(--p1), var(--p2), var(--p3), var(--p1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 10s linear infinite; }
.avatar { width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2f6b, #0f1130 70%); box-shadow: inset 0 0 60px rgba(124, 108, 255, .35), 0 30px 80px -20px rgba(124, 108, 255, .5); }
.avatar span { font: 800 78px var(--font-h); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit { position: absolute; inset: -20px; animation: spin 26s linear infinite; }
.chip { position: absolute; font: 500 12.5px var(--font-m); font-style: normal; padding: 7px 12px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: spin 26s linear infinite reverse; white-space: nowrap; }
.c1 { top: 4%; left: 6%; color: #61dafb; }
.c2 { top: 14%; right: -6%; color: #f472b6; }
.c3 { bottom: 10%; left: -4%; color: #fbbf24; }
.c4 { bottom: 0; right: 6%; color: #e8ebff; }
.code-card { margin-top: -10px; width: 100%; max-width: 430px; background: rgba(12, 14, 36, .9); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px); position: relative; z-index: 2; }
.code-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: #fb7185; }
.code-head i:nth-child(2) { background: #fbbf24; }
.code-head i:nth-child(3) { background: #34d399; }
.code-head span { margin-left: 8px; font: 12px var(--font-m); color: var(--dim); }
.code-card pre { padding: 16px 18px; font: 13px/1.75 var(--font-m); color: #c9cee8; overflow-x: auto; }
.k { color: #c084fc; } .v { color: #22d3ee; } .s { color: #a5e8a0; } .n { color: #fbbf24; } .f { color: #f472b6; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.stat b, .stat > span { font: 800 40px var(--font-h); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--p2); border-radius: 4px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 108, 255, .045) 20%, rgba(124, 108, 255, .045) 80%, transparent); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; font: 500 13px var(--font-m); color: var(--p2); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2, .resume-left h2 { font: 700 clamp(30px, 4vw, 46px)/1.15 var(--font-h); letter-spacing: -.8px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 16.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about-text strong { color: var(--text); }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.facts li { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; word-break: break-word; }
.facts span { display: block; font: 500 11.5px var(--font-m); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.facts a:hover { color: var(--p2); }
.competencies { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.competencies h3 { font: 600 19px var(--font-h); margin-bottom: 20px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; transition: .25s; background: rgba(255,255,255,.015); }
.comp svg { flex-shrink: 0; color: var(--p2); }
.comp:hover { border-color: var(--p1); background: rgba(124, 108, 255, .1); transform: translateX(4px); }

/* ---------- Skills ---------- */
.skill-tabs, .proj-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.skill-tabs button, .proj-filter button { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: .25s; }
.skill-tabs button:hover, .proj-filter button:hover { color: var(--text); border-color: var(--p1); }
.skill-tabs button.active, .proj-filter button.active { background: var(--grad); color: #fff; border-color: transparent; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .35s, border-color .35s, opacity .35s; position: relative; overflow: hidden; }
.skill-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 108, 255, .14), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.skill-card:hover::after { opacity: 1; }
.skill-card.dim { opacity: .22; transform: scale(.97); }
.skill-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: linear-gradient(135deg, rgba(124,108,255,.25), rgba(34,211,238,.18)); border: 1px solid var(--line-2); margin-bottom: 16px; }
.skill-card h3 { font: 600 17px var(--font-h); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font: 500 12.5px var(--font-m); padding: 6px 11px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #cfd4f5; }
.tags.small span { font-size: 11.5px; padding: 4px 9px; }
.marquee { margin-top: 60px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 35s linear infinite; }
.marquee-track span { font: 700 28px var(--font-h); color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--p1), var(--p2), transparent); }
.tl-item { position: relative; margin-bottom: 34px; }
.tl-dot { position: absolute; left: -36px; top: 26px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--p1); box-shadow: 0 0 0 6px rgba(124, 108, 255, .15); }
.tl-dot.alt { border-color: var(--p2); box-shadow: 0 0 0 6px rgba(34, 211, 238, .15); }
.tl-card { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .3s; }
.tl-card:hover { border-color: var(--line-2); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tl-top h3 { font: 700 22px var(--font-h); }
.tl-org { color: var(--p2); font-weight: 500; margin-top: 2px; }
.tl-date { font: 500 13px var(--font-m); padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tl-list { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.tl-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15.5px; }
.tl-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--grad); }
.tl-list b { color: var(--text); font-weight: 600; }
.edu-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.edu-badges div { padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: center; }
.edu-badges b { display: block; font: 800 26px var(--font-h); }
.edu-badges span { font-size: 13px; color: var(--muted); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 30px; }
.project.featured { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .35s, transform .35s, opacity .35s; }
.project.featured:hover { border-color: var(--line-2); transform: translateY(-4px); }
.project.reverse .proj-visual { order: 2; }
.proj-visual { position: relative; padding: 36px; display: grid; place-items: center; min-height: 340px; overflow: hidden; }
.v-bts { background: radial-gradient(circle at 20% 20%, rgba(124,108,255,.55), transparent 55%), radial-gradient(circle at 90% 90%, rgba(34,211,238,.4), transparent 50%), #101236; }
.v-nvyra { background: radial-gradient(circle at 80% 20%, rgba(52,211,153,.45), transparent 55%), radial-gradient(circle at 10% 90%, rgba(124,108,255,.45), transparent 50%), #0d1a2b; }
.v-mychoize { background: radial-gradient(circle at 25% 80%, rgba(244,114,182,.45), transparent 55%), radial-gradient(circle at 90% 10%, rgba(251,191,36,.35), transparent 50%), #1c1030; }
.mock { width: 100%; max-width: 440px; border-radius: 12px; background: rgba(7, 8, 26, .82); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); overflow: hidden; transform: perspective(1000px) rotateY(-8deg) rotateX(4deg); transition: transform .6s; }
.project.reverse .mock { transform: perspective(1000px) rotateY(8deg) rotateX(4deg); }
.project:hover .mock { transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.03); }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock-bar span { margin-left: 10px; font: 11px var(--font-m); color: var(--dim); padding: 3px 10px; background: rgba(255,255,255,.05); border-radius: 6px; flex: 1; }
.mock-body { display: flex; gap: 12px; padding: 14px; min-height: 200px; }
.mock-body.col { flex-direction: column; }
.mock-side { width: 26%; display: flex; flex-direction: column; gap: 8px; }
.mock-side b { height: 12px; border-radius: 4px; background: rgba(255,255,255,.08); }
.mock-side b:first-child { background: var(--grad); }
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis b { height: 44px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.mock-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); opacity: .85; }
.mock-hero { padding: 18px; border-radius: 8px; background: linear-gradient(120deg, rgba(52,211,153,.25), rgba(124,108,255,.2)); display: flex; flex-direction: column; gap: 8px; }
.mock-hero b { height: 12px; border-radius: 4px; background: rgba(255,255,255,.35); }
.w60 { width: 60%; } .w40 { width: 40%; opacity: .6; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.mock-cards b { border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); min-height: 80px; }
.mock-search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.mock-search b { height: 24px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mock-search i { width: 60px; border-radius: 6px; background: linear-gradient(120deg, #f472b6, #fbbf24); }
.mock-cars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.mock-cars b { border-radius: 8px; min-height: 60px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); }
.proj-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.proj-body h3, .pcard h3 { font: 700 23px/1.3 var(--font-h); }
.proj-body > p, .pcard p { color: var(--muted); font-size: 15.5px; }
.proj-body ul { list-style: none; display: grid; gap: 8px; }
.proj-body li { position: relative; padding-left: 24px; font-size: 14.5px; color: #cfd4f5; }
.proj-body li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.proj-body .btn { align-self: flex-start; margin-top: 6px; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: 500 11.5px var(--font-m); padding: 5px 11px; border-radius: 100px; background: rgba(124, 108, 255, .14); color: #c4bcff; border: 1px solid rgba(124, 108, 255, .28); text-transform: uppercase; letter-spacing: .5px; }
.pill.lead { background: rgba(34, 211, 238, .12); color: #8beaf7; border-color: rgba(34, 211, 238, .3); }
.pill.live { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .3); }
.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.proj-grid .pcard { grid-column: span 2; }
.proj-grid .pcard:nth-child(4), .proj-grid .pcard:nth-child(5) { grid-column: span 3; }
.pcard { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: transform .35s, border-color .35s, opacity .35s; }
.pcard:hover { transform: translateY(-6px); border-color: var(--line-2); }
.pcard h3 { font-size: 19px; }
.pcard .tags { margin-top: auto; }
.pcard-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.pcard-ico svg { width: 24px; height: 24px; }
.ico-wa { background: rgba(37, 211, 102, .15); color: #4ade80; }
.ico-ai { background: rgba(244, 114, 182, .15); color: #f472b6; }
.ico-med { background: rgba(251, 113, 133, .15); color: #fb7185; }
.ico-fin { background: rgba(124, 108, 255, .18); color: #a99fff; }
.ico-log { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.links a { font: 500 12.5px var(--font-m); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--p2); transition: .2s; }
.links a:hover { background: rgba(34, 211, 238, .1); }
.hide { display: none !important; }

/* ---------- Resume ---------- */
.resume-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: 56px; border-radius: 26px; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(124,108,255,.18), rgba(34,211,238,.08)); border: 1px solid var(--line-2); }
.resume-box::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--p1); filter: blur(120px); opacity: .25; right: -100px; top: -100px; pointer-events: none; }
.resume-left p { color: var(--muted); margin: 16px 0 28px; font-size: 16.5px; max-width: 520px; }
.resume-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.resume-mail { margin-top: 32px; padding-top: 26px; border-top: 1px dashed var(--line-2); }
.resume-mail label { display: block; font: 500 12.5px var(--font-m); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.rm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-row input { flex: 1 1 180px; padding: 13px 16px; border-radius: 12px; background: rgba(7, 8, 26, .6); border: 1px solid var(--line-2); outline: none; transition: border-color .2s; }
.rm-row input:focus { border-color: var(--p2); }
.rm-row input.invalid { border-color: var(--err); }
.resume-doc { display: grid; place-items: center; position: relative; }
.doc { width: 100%; max-width: 300px; aspect-ratio: 1 / 1.3; background: #f6f7ff; border-radius: 10px; padding: 26px 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(4deg); transition: transform .5s; position: relative; color: #1b1e3a; }
.doc::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: rgba(255,255,255,.12); border-radius: 10px; z-index: -1; transform: rotate(-6deg); }
.resume-box:hover .doc { transform: rotate(0) translateY(-6px); }
.doc-head { text-align: center; margin-bottom: 14px; }
.doc-head b { display: block; font: 800 15px var(--font-h); letter-spacing: 1px; }
.doc-head span { font-size: 8.5px; color: #5b6090; }
.doc-sec { font: 700 9px var(--font-h); letter-spacing: 1px; color: #6d5dfc; margin: 14px 0 6px; border-bottom: 1px solid #dfe2f5; padding-bottom: 3px; }
.doc-lines { display: grid; gap: 5px; }
.doc-lines i { height: 5px; border-radius: 3px; background: #dfe2f5; }
.doc-lines i.m { width: 80%; } .doc-lines i.s { width: 55%; }
.doc-stamp { position: absolute; right: -14px; bottom: 26px; font: 600 11px var(--font-m); padding: 7px 12px; border-radius: 8px; background: var(--grad); color: #fff; transform: rotate(-4deg); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: .25s; word-break: break-word; }
a.ci:hover { border-color: var(--p1); transform: translateX(5px); }
.ci-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,108,255,.3), rgba(34,211,238,.2)); flex-shrink: 0; }
.ci small { display: block; font: 500 11.5px var(--font-m); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.avail { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; border: 1px dashed rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .06); margin-top: auto; }
.avail .pulse { margin-top: 7px; }
.avail p { color: var(--muted); font-size: 14px; }
.contact-form { padding: 34px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 24px 16px 10px; border-radius: 12px; background: rgba(7, 8, 26, .55); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1c9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--card-solid); }
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 16px; top: 17px; color: var(--dim); pointer-events: none; transition: .2s; font-size: 15px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.static { top: 7px; font-size: 11.5px; color: var(--p2); letter-spacing: .3px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--p1); box-shadow: 0 0 0 4px rgba(124, 108, 255, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field.invalid label { color: var(--err); }
.err { display: block; color: var(--err); font-size: 12.5px; min-height: 0; margin-top: 5px; }
.err:empty { display: none; }
.counter { position: absolute; right: 14px; bottom: 12px; font: 11px var(--font-m); color: var(--dim); }
.form-note { text-align: center; color: var(--dim); font-size: 13px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--dim); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--p2); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 14, .8); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(900px, 94vw); height: min(88vh, 1100px); background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transform: scale(.95); transition: transform .3s; }
.modal.open .modal-box { transform: scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head b { font: 500 13.5px var(--font-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head div { display: flex; gap: 10px; align-items: center; }
.modal-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 16px; }
.modal-x:hover { background: rgba(251, 113, 133, .15); border-color: var(--err); }
.modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Toast / to-top ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 140%); max-width: min(520px, 92vw); padding: 15px 22px 15px 50px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; transition: transform .4s cubic-bezier(.2, .9, .3, 1.3), opacity .3s, visibility .3s; opacity: 0; visibility: hidden; }
.toast::before { content: "✓"; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ok); color: #05261a; }
.toast.error::before { content: "!"; background: var(--err); color: #3a0610; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid .pcard, .proj-grid .pcard:nth-child(4) { grid-column: span 1; }
  .proj-grid .pcard:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch; padding: 100px 24px 30px; gap: 6px; background: rgba(10, 11, 32, .97); backdrop-filter: blur(20px); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
  .nav-links.open { transform: none; }
  .nav-links > a:not(.btn) { padding: 14px 16px; font-size: 16px; }
  .nav-cta { margin: 14px 0 0; }
  .burger { position: relative; z-index: 2; }
  .hero-inner, .about-grid, .contact-grid, .resume-box { grid-template-columns: 1fr; }
  .hero-inner { gap: 50px; }
  .hero-visual { order: -1; }
  .avatar-ring { width: 240px; height: 240px; }
  .avatar { width: 180px; height: 180px; }
  .avatar span { font-size: 60px; }
  .code-card { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project.featured { grid-template-columns: 1fr; }
  .project.reverse .proj-visual { order: 0; }
  .proj-visual { min-height: 260px; padding: 28px; }
  .resume-box { padding: 36px 26px; }
  .resume-doc { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .proj-grid .pcard:nth-child(n) { grid-column: auto; }
  .skills-grid, .proj-grid, .comp-grid, .facts, .contact-form .row, .edu-badges { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-cta .btn { flex: 1; }
  .stat { padding: 18px; }
  .stat b, .stat > span { font-size: 32px; }
  .timeline { padding-left: 26px; }
  .tl-dot { left: -26px; width: 16px; height: 16px; }
  .timeline::before { left: 7px; }
  .tl-card, .proj-body, .contact-form, .competencies { padding: 22px; }
  .rm-row .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
