/* =========================================================
   Portfolio — modern glass / gradient theme
   ========================================================= */
:root {
  --primary: #7c5cff;
  --secondary: #00d4ff;
  --accent: #ff4d8d;
  --grad: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-3: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--accent));
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: 'Space Grotesk', 'Hind Siliguri', system-ui, sans-serif;
  --font-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
}
html[data-theme="dark"], html:not([data-theme]) {
  --bg: #07070d;
  --bg-2: #0e0e1a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --text: #eeedf7;
  --muted: #9b99b3;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --orb-op: .55;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f5f5fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .95);
  --border: rgba(30, 30, 70, .09);
  --text: #14132a;
  --muted: #5e5c78;
  --shadow: 0 20px 50px -24px rgba(40, 30, 120, .25);
  --orb-op: .28;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
#main, .footer { overflow-x: hidden; }
@supports (overflow: clip) { body, #main, .footer { overflow-x: clip; } }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--primary); color: #fff; }
svg.lucide { width: 1.2em; height: 1.2em; stroke-width: 1.8; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grad, .grad-text {
  background: var(--grad-3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-content: center; gap: 22px; justify-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-logo {
  width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  font: 700 30px var(--font-head); color: #fff; background: var(--grad);
  animation: plPulse 1.4s var(--ease) infinite;
  box-shadow: 0 0 60px -10px var(--primary);
}
.pl-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: plBar 1.1s ease-in-out infinite; border-radius: 3px; }
@keyframes plPulse { 50% { transform: scale(.9) rotate(-6deg); border-radius: 50%; } }
@keyframes plBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---------- background fx ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-op); will-change: transform; }
.o1 { width: 48vmax; height: 48vmax; background: var(--primary); top: -18vmax; left: -14vmax; animation: float1 22s ease-in-out infinite; }
.o2 { width: 38vmax; height: 38vmax; background: var(--secondary); bottom: -16vmax; right: -12vmax; animation: float2 26s ease-in-out infinite; opacity: calc(var(--orb-op) * .7); }
.o3 { width: 26vmax; height: 26vmax; background: var(--accent); top: 40%; left: 55%; animation: float3 30s ease-in-out infinite; opacity: calc(var(--orb-op) * .45); }
@keyframes float1 { 50% { transform: translate(18vw, 14vh) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-16vw, -12vh) scale(1.15); } }
@keyframes float3 { 50% { transform: translate(-30vw, 10vh) scale(.85); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  opacity: .55;
}
.noise {
  position: absolute; inset: 0; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%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: 3px; z-index: 1001; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--grad-3); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 7px; height: 7px; background: var(--secondary); margin: -3.5px 0 0 -3.5px; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--primary); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: transparent; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  isolation: isolate; overflow: hidden;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px var(--primary); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-3); background-size: 200%;
  opacity: 0; transition: opacity .4s;
}
.btn-primary:hover::before { opacity: 1; animation: gradShift 2s linear infinite; }
.btn-primary:hover { box-shadow: 0 18px 40px -10px var(--primary); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--primary); }
.btn .lucide { transition: transform .35s var(--ease); }
.btn:hover .lucide { transform: translateX(4px); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .3s;
}
.icon-btn:hover { border-color: var(--primary); transform: rotate(15deg); }

/* ---------- navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; transition: height .4s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { height: 64px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--border); }
.nav.hidden { transform: translateY(-100%); }
.nav { transition: transform .45s var(--ease), height .4s var(--ease), background .4s, border-color .4s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 700 19px var(--font-head); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 16px; box-shadow: 0 8px 20px -8px var(--primary); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; padding: 6px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-links a { position: relative; padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #fff; }
.nav-links a.active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); z-index: -1; }
.nav-links a { z-index: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px; gap: 40px;
  clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font: 600 clamp(28px, 8vw, 40px) var(--font-head); padding: 6px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .3s; display: flex; align-items: baseline; gap: 14px; }
.mobile-menu nav a small { font: 500 13px var(--font-body); color: var(--primary); }
.mobile-menu nav a.active { color: var(--primary); }
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mm-social { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { position: relative; padding: clamp(80px, 11vw, 130px) 0; scroll-margin-top: 60px; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.sec-title { font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
.sec-sub { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 45%);
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: var(--shadow); }

.ico-box {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 12px 24px -10px var(--primary); position: relative;
  transition: transform .6s var(--ease);
}
.ico-box svg.lucide { width: 26px; height: 26px; }
.card:hover .ico-box { transform: rotate(-8deg) scale(1.08); }

/* ---------- reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"] { transform: scale(.88); }
[data-reveal="blur"] { filter: blur(12px); transform: translateY(20px); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- hero ---------- */
#hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 80px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; }
.availability { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.availability .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; position: relative; }
.availability .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-greet { margin-top: 26px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); font-weight: 500; }
.hero-name { font-size: clamp(42px, 7.4vw, 88px); font-weight: 700; margin-top: 6px; line-height: 1.02; }
.hero-name .char { display: inline-block; opacity: 0; transform: translateY(70%) rotate(8deg); animation: charIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .3s); }
@keyframes charIn { to { opacity: 1; transform: none; } }
.hero-role { margin-top: 16px; font: 600 clamp(20px, 3vw, 30px) var(--font-head); min-height: 1.4em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-role .typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-role .caret { width: 3px; height: 1.1em; background: var(--secondary); border-radius: 2px; animation: blink 1s steps(1) infinite; }
.hero-desc { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); max-width: 560px; }
.hero-btns { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-social { margin-top: 38px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-social .label { font-size: 13px; color: var(--muted); margin-right: 6px; }
.soc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.soc:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); }
.soc svg.lucide { width: 18px; height: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; container-type: inline-size; }
.hv-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); animation: spin 40s linear infinite; }
.hv-ring.r2 { inset: 12%; border-style: solid; border-color: var(--border); animation-duration: 28s; animation-direction: reverse; }
.hv-photo-wrap { position: relative; width: 66%; aspect-ratio: 1; border-radius: 50%; padding: 5px; background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary)); animation: spin 8s linear infinite; box-shadow: 0 0 80px -10px var(--primary); }
.hv-photo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--bg-2); animation: spin 8s linear infinite reverse; }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.orbit .ob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--primary); transform: rotate(var(--a)) translate(50cqw) rotate(calc(-1 * var(--a))); }
.orbit .ob > span { display: grid; place-items: center; width: 100%; height: 100%; animation: spin 24s linear infinite reverse; }
.orbit .ob:nth-child(even) { color: var(--secondary); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; white-space: nowrap; z-index: 2; }
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.float-card b { display: block; font: 600 15px var(--font-head); }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card.f0 { left: -6%; bottom: 14%; }
.float-card.f1 { right: -4%; top: 12%; animation-delay: -2.5s; }
.float-card.f2 { right: 0; bottom: 4%; animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--primary); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--border); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 50px; font: 600 clamp(18px, 2.4vw, 26px) var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--primary); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-img { position: relative; border-radius: 28px; aspect-ratio: 4/5; max-width: 440px; width: 100%; justify-self: center; }
.about-img .frame { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); z-index: 1; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-img:hover img { transform: scale(1.06); }
.about-img::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform: translate(18px, 18px); opacity: .9; z-index: 0; }
.about-img .exp-badge { position: absolute; z-index: 2; right: -18px; bottom: 40px; padding: 18px 22px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); text-align: center; animation: bob 5s ease-in-out infinite; }
.exp-badge b { display: block; font: 700 34px var(--font-head); }
.exp-badge small { font-size: 12px; color: var(--muted); }
.about-text { color: var(--muted); font-size: 16.5px; }
.about-text p + p { margin-top: 14px; }
.about-content .sec-title { margin-bottom: 22px; }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.hl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: 15px; }
.hl .lucide { color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(50px, 7vw, 80px); }
.stat { padding: 26px 18px; text-align: center; }
.stat b { display: block; font: 700 clamp(32px, 4vw, 46px) var(--font-head); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- roles ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card { padding: 36px 30px; overflow: hidden; display: flex; flex-direction: column; }
.role-card .num { position: absolute; right: 22px; top: 12px; font: 700 80px var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--border); line-height: 1; transition: -webkit-text-stroke-color .4s; }
.role-card:hover .num { -webkit-text-stroke-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.role-card h3 { font-size: 24px; margin-top: 26px; }
.role-card .sub { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 6px; }
.role-card p { color: var(--muted); margin-top: 14px; flex: 1; }
.role-card .link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.role-card .link .lucide { transition: transform .3s var(--ease); }
.role-card .link:hover .lucide { transform: translateX(5px); }
.role-card .glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--primary); filter: blur(70px); opacity: 0; bottom: -100px; left: -60px; transition: opacity .5s; pointer-events: none; }
.role-card:hover .glow { opacity: .35; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { padding: 32px 28px; overflow: hidden; }
.svc h3 { font-size: 21px; margin: 22px 0 10px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.svc li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.svc li .lucide { color: var(--secondary); width: 16px; height: 16px; }
.svc .svc-n { position: absolute; top: 26px; right: 26px; font: 600 14px var(--font-head); color: var(--muted); }
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc:hover::before { transform: scaleX(1); }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.skill { padding: 20px 22px; }
.skill-top { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.skill-top .lucide { color: var(--primary); }
.skill-top em { margin-left: auto; font-style: normal; font-family: var(--font-head); color: var(--muted); }
.bar { margin-top: 14px; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-3); background-size: 200% auto; transition: width 1.6s var(--ease); animation: gradShift 3s linear infinite; position: relative; }
.skills-marquee { margin-top: 56px; }

/* ---------- projects ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--muted); transition: all .3s var(--ease); }
.filters button:hover { color: var(--text); border-color: var(--primary); }
.filters button.active { background: var(--grad); color: #fff; border-color: transparent; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .5s var(--ease), opacity .4s, border-color .4s, box-shadow .5s; }
.proj.hide { display: none; }
.proj-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: calc(var(--radius) - 6px); margin: 8px 8px 0; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.proj:hover .proj-cover img, .proj:hover .ph { transform: scale(1.07); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; transition: transform .9s var(--ease); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--secondary) 55%, transparent), transparent 55%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 50%), var(--grad); }
.ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; }
.ph .lucide { width: 64px; height: 64px; color: #fff; stroke-width: 1.4; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); position: relative; }
.proj-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 6, 20, .55); opacity: 0; transition: opacity .4s; }
.proj-overlay span { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; transform: scale(.5) rotate(-45deg); transition: transform .5s var(--ease); }
.proj:hover .proj-overlay { opacity: 1; }
.proj:hover .proj-overlay span { transform: none; }
.proj-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.proj-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.proj h3 { font-size: 20px; margin: 8px 0 8px; }
.proj p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- experience timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--border); }
.timeline .tl-fill { position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; background: var(--grad); height: 0; transition: height .2s linear; }
.tl-item { position: relative; width: 50%; padding: 0 44px 44px 0; }
.tl-item:nth-child(odd of .tl-item) { margin-left: 50%; padding: 0 0 44px 44px; }
.tl-item .tl-dot { position: absolute; top: 18px; right: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--primary); color: var(--primary); z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.tl-item:nth-child(odd of .tl-item) .tl-dot { right: auto; left: -22px; }
.tl-item .tl-dot .lucide { width: 18px; height: 18px; }
.tl-card { padding: 24px 26px; }
.tl-period { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 100px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.tl-card h3 { font-size: 20px; margin-top: 12px; }
.tl-org { color: var(--secondary); font-weight: 500; font-size: 14px; margin-top: 4px; }
.tl-card p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- testimonials ---------- */
.t-slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; overscroll-behavior-x: contain; }
.t-slider::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; padding: 30px 28px; display: flex; flex-direction: column; }
.t-card .quote { position: absolute; top: 22px; right: 24px; color: var(--primary); opacity: .25; }
.t-card .quote .lucide { width: 46px; height: 46px; }
.stars { display: flex; gap: 3px; color: #fbbf24; }
.stars .lucide { width: 17px; height: 17px; fill: currentColor; }
.t-card p { margin-top: 16px; font-size: 16px; flex: 1; }
.t-person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 17px var(--font-head); flex-shrink: 0; }
.t-person b { display: block; font-family: var(--font-head); }
.t-person small { color: var(--muted); }
.t-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 9px; height: 9px; border-radius: 9px; background: var(--border); transition: width .4s var(--ease), background .3s; }
.t-dots button.active { width: 28px; background: var(--grad); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.ci { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.ci .ico-box { width: 50px; height: 50px; border-radius: 14px; }
.ci .ico-box svg.lucide { width: 22px; height: 22px; }
.ci small { display: block; color: var(--muted); font-size: 13px; }
.ci b { font-weight: 600; word-break: break-word; }
.contact-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form { padding: clamp(24px, 4vw, 40px); }
.form h3 { font-size: 24px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; outline: none;
  transition: border-color .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.field select { padding: 22px 16px 10px; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 16px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 11.5px; color: var(--primary); font-weight: 600; }
.field select option { background: var(--bg-2); color: var(--text); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form .btn { width: 100%; margin-top: 6px; }
.form .btn.loading { pointer-events: none; opacity: .75; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-cta { text-align: center; padding-bottom: 50px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-cta h2 { font-size: clamp(30px, 5.6vw, 64px); }
.footer-cta .btn { margin-top: 26px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { margin-top: 30px; text-align: center; color: var(--muted); font-size: 14px; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px var(--primary); opacity: 0; transform: translateY(20px) scale(.8); transition: all .4s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px #25d366; animation: bob 4s ease-in-out infinite; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 12, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 24px; opacity: 0; transform: translateY(40px) scale(.96); transition: all .5s var(--ease); overscroll-behavior: contain; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card .proj-cover { margin: 10px 10px 0; aspect-ratio: 16/8; }
.modal-body { padding: 26px clamp(20px, 4vw, 36px) 34px; }
.modal-body h2 { font-size: clamp(24px, 4vw, 34px); margin: 8px 0 14px; }
.modal-body .details { color: var(--muted); }
.modal-body .details p + p { margin-top: 12px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 500; transition: transform .5s var(--ease); max-width: calc(100% - 40px); }
.toast.show { transform: translate(-50%, 0); }
.toast.ok .lucide { color: #22c55e; }
.toast.err .lucide { color: #ef4444; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid .role-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .t-slider { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-visual { order: -1; max-width: 340px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns, .hero-social, .hero-role { justify-content: center; }
  .orbit .ob { width: 42px; height: 42px; margin: -21px; border-radius: 12px; }
  .float-card { padding: 8px 12px; }
  .float-card .fc-ico { width: 32px; height: 32px; border-radius: 10px; }
  .float-card b { font-size: 13px; }
  .float-card small { font-size: 11px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 720px) {
  .timeline::before, .timeline .tl-fill { left: 22px; }
  .tl-item, .tl-item:nth-child(odd of .tl-item) { width: 100%; margin-left: 0; padding: 0 0 30px 64px; }
  .tl-item .tl-dot, .tl-item:nth-child(odd of .tl-item) .tl-dot { left: 0; right: auto; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .container { padding: 0 16px; }
  .nav-cta { display: none; }
  .services-grid, .projects-grid, .roles-grid { grid-template-columns: 1fr; }
  .t-slider { grid-auto-columns: 88%; gap: 14px; }
  .highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-btns .btn { flex: 1 1 100%; }
  .stats { gap: 10px; }
  .stat { padding: 20px 10px; }
  .about-img .exp-badge { right: -6px; padding: 14px 16px; }
  .about-img::before { transform: translate(10px, 10px); }
  .float-card.f0 { left: -4%; }
  .float-card.f1 { right: -4%; }
  .card { border-radius: 18px; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .wa-float { left: 16px; bottom: 16px; }
  .modal { padding: 10px; align-items: end; }
  .modal-card { max-height: calc(100dvh - 20px); }
}

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
