/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
  /* surfaces */
  --white:#FFFFFF;
  --surface-1:#F8FAFC;
  --surface-2:#F1F5F9;
  --border:#E2E8F0;

  /* text */
  --ink:#0F172A;
  --ink-soft:#475569;
  --ink-faint:#94A3B8;

  /* accents */
  --blue:#2563EB;
  --blue-2:#3B82F6;
  --cyan:#06B6D4;
  --violet:#7C3AED;
  --teal:#14B8A6;

  --grad-main: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 50%, var(--violet) 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.10), rgba(124,58,237,.10));
  --grad-text: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 45%, var(--violet) 100%);

  /* type */
  --font-display: 'Space Grotesk', 'Sora', sans-serif;
  --font-head: 'Sora', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* radii / shadow */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px -8px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 60px -20px rgba(37,99,235,.25), 0 8px 24px -8px rgba(15,23,42,.10);

  /* motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  --nav-h: 76px;
  --container: 1180px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; background:none; border:none; cursor:pointer; color:inherit; }
input,textarea{ font:inherit; color:inherit; }
ul{ list-style:none; }
svg{ display:block; }

::selection{ background:var(--violet); color:#fff; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:4px; }

/* hide native cursor only when custom cursor is active (desktop, fine pointer) */
@media (hover:hover) and (pointer:fine){
  body.cursor-ready, body.cursor-ready a, body.cursor-ready button{ cursor:none; }
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.section-inner{ max-width:var(--container); margin:0 auto; padding:0 32px; }
.section{ position:relative; padding:140px 0; }
.section-alt{ background:var(--surface-1); }
.section-eyebrow{
  font-family:var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--violet); font-weight:500; margin-bottom:14px;
}
.section-title{
  font-family:var(--font-head); font-weight:700; font-size:clamp(30px,4vw,46px);
  letter-spacing:-.02em; line-height:1.15; margin-bottom:56px; max-width:640px;
}
.grad-text{
  background:var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent;
  background-size:200% auto;
}

/* ==========================================================================
   BACKGROUND LAYER (grid + blobs + particles)
   ========================================================================== */
.bg-layer{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.bg-grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}
.blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.35; will-change:transform; }
.blob-a{ width:520px; height:520px; top:-160px; left:-120px; background:radial-gradient(circle at 30% 30%, var(--blue), transparent 70%); }
.blob-b{ width:460px; height:460px; top:220px; right:-160px; background:radial-gradient(circle at 60% 40%, var(--violet), transparent 70%); }
.blob-c{ width:380px; height:380px; bottom:-140px; left:35%; background:radial-gradient(circle at 50% 50%, var(--teal), transparent 70%); }
.particles-canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.5; }

main, .nav, .footer, .dock{ position:relative; z-index:1; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader{
  position:fixed; inset:0; z-index:9999; background:var(--white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden{ opacity:0; visibility:hidden; }
.loader-mark{ font-family:var(--font-display); font-weight:700; font-size:40px; letter-spacing:-.02em; display:flex; gap:6px; }
.loader-bracket{ color:var(--ink-faint); animation:loaderPulse 1.2s ease-in-out infinite; }
.loader-name{ background:var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.loader-bar{ width:160px; height:3px; background:var(--surface-2); border-radius:2px; overflow:hidden; }
.loader-bar-fill{ display:block; height:100%; width:0%; background:var(--grad-main); border-radius:2px; transition:width .4s var(--ease-soft); }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot,.cursor-ring{ position:fixed; top:0; left:0; z-index:9998; pointer-events:none; border-radius:50%; }
.cursor-dot{ width:8px; height:8px; background:var(--blue); transform:translate(-50%,-50%); transition:opacity .2s, transform .12s; }
.cursor-ring{ width:36px; height:36px; border:1.5px solid rgba(37,99,235,.5); transform:translate(-50%,-50%); transition:width .25s var(--ease-soft), height .25s var(--ease-soft), opacity .2s, background .25s; }
.cursor-ring.is-link{ width:64px; height:64px; background:rgba(37,99,235,.08); border-color:transparent; }
@media (hover:none), (pointer:coarse){ .cursor-dot,.cursor-ring{ display:none; } }

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress{ position:fixed; top:0; left:0; height:3px; width:0%; background:var(--grad-main); z-index:1200; transition:width .1s linear; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav{ position:fixed; top:0; left:0; right:0; z-index:1000; height:var(--nav-h); display:flex; align-items:center; }
.nav-inner{
  width:100%; max-width:var(--container); margin:0 auto; padding:0 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav.is-scrolled{
  background:rgba(255,255,255,.72); backdrop-filter:blur(16px) saturate(180%); -webkit-backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid var(--border); box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.nav-logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:700; }
.nav-logo-mark{
  width:36px; height:36px; border-radius:10px; background:var(--grad-main); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-family:var(--font-mono);
}
.nav-logo-text{ font-size:16px; letter-spacing:-.01em; }
.nav-links{ display:flex; gap:36px; }
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--ink-soft); position:relative; padding:4px 0;
  transition:color .2s;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:-2px; height:2px; width:0; background:var(--grad-main);
  transition:width .3s var(--ease); border-radius:2px;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width:100%; }
.nav-links a.is-active{ color:var(--ink); }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-cmdk{
  display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:12.5px;
  color:var(--ink-soft); border:1px solid var(--border); padding:7px 11px; border-radius:8px; background:var(--surface-1);
  transition:border-color .2s, color .2s;
}
.nav-cmdk:hover{ border-color:var(--blue-2); color:var(--ink); }
.nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav-toggle span{ height:2px; background:var(--ink); border-radius:2px; transition:transform .25s var(--ease), opacity .25s; }
.nav-mobile{
  position:fixed; top:var(--nav-h); left:0; right:0; background:var(--white); border-bottom:1px solid var(--border);
  display:flex; flex-direction:column; padding:8px 32px 20px; gap:4px; transform:translateY(-8px); opacity:0; visibility:hidden;
  transition:all .3s var(--ease); z-index:999;
}
.nav-mobile.is-open{ transform:translateY(0); opacity:1; visibility:visible; }
.nav-mobile a{ padding:12px 0; border-bottom:1px solid var(--surface-2); font-weight:500; }

/* section dots */
.section-dots{ position:fixed; right:28px; top:50%; transform:translateY(-50%); z-index:500; display:flex; flex-direction:column; gap:14px; }
.section-dots .dot-item{
  width:8px; height:8px; border-radius:50%; background:var(--border); cursor:pointer; transition:all .3s var(--ease); display:block; position:relative;
}
.section-dots .dot-item::after{
  content:attr(data-label); position:absolute; right:18px; top:50%; transform:translateY(-50%);
  font-size:11px; font-family:var(--font-mono); white-space:nowrap; color:var(--ink-soft);
  background:var(--white); padding:3px 8px; border-radius:6px; border:1px solid var(--border);
  opacity:0; pointer-events:none; transition:opacity .2s;
}
.section-dots .dot-item:hover::after{ opacity:1; }
.section-dots .dot-item.is-active{ background:var(--blue); transform:scale(1.4); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:600; font-size:15px; padding:15px 28px; border-radius:14px;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  isolation:isolate;
}
.btn span{ position:relative; z-index:2; }
.btn-primary{ background:var(--grad-main); color:#fff; box-shadow:var(--shadow-md); }
.btn-primary:hover{ box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.btn-ghost{ background:var(--white); color:var(--ink); border:1px solid var(--border); }
.btn-ghost:hover{ border-color:var(--blue-2); transform:translateY(-2px); }
.btn-sm{ padding:10px 18px; font-size:13.5px; border-radius:10px; }
.btn-block{ width:100%; }
.ripple{ position:absolute; border-radius:50%; background:rgba(255,255,255,.5); transform:scale(0); animation:rippleAnim .6s var(--ease-soft); pointer-events:none; z-index:1; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  min-height:100vh; display:flex; flex-direction:column; justify-content:center; gap:64px;
  padding:calc(var(--nav-h) + 40px) 32px 80px; max-width:var(--container); margin:0 auto;
  position:relative;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:13px;
  color:var(--ink-soft); background:var(--surface-1); border:1px solid var(--border); padding:7px 14px;
  border-radius:100px; width:fit-content; margin-bottom:28px;
}
.eyebrow-dot{ width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 3px rgba(20,184,166,.18); animation:dotPulse 2s ease-in-out infinite; }
.hero-title{
  font-family:var(--font-display); font-weight:700; font-size:clamp(38px,6.4vw,84px); line-height:1.04; letter-spacing:-.03em;
  max-width:920px;
}
.hero-title .line{ display:block; overflow:hidden; }
.hero-title em{ font-style:normal; color:var(--blue); }
.hero-sub{ font-size:18px; color:var(--ink-soft); max-width:560px; margin-top:28px; line-height:1.7; }
.hero-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:48px; margin-top:64px; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; gap:4px; }
.stat-num{ font-family:var(--font-display); font-size:32px; font-weight:700; }
.stat-label{ font-size:13px; color:var(--ink-soft); }

.hero-terminal{
  position:absolute; right:0; top:calc(var(--nav-h) + 40px); width:min(420px, 40vw); max-width:420px;
  background:rgba(255,255,255,.7); backdrop-filter:blur(20px); border:1px solid var(--border); border-radius:var(--r-md);
  box-shadow:var(--shadow-lg); overflow:hidden;
}
.terminal-chrome{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); background:rgba(248,250,252,.7); }
.terminal-chrome .dot{ width:9px; height:9px; border-radius:50%; }
.dot-r{ background:#FF5F57; } .dot-y{ background:#FEBC2E; } .dot-g{ background:#28C840; }
.terminal-title{ margin-left:8px; font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); }
.terminal-body{
  font-family:var(--font-mono); font-size:13px; line-height:1.75; padding:20px; white-space:pre-wrap; word-break:break-word;
  color:var(--ink); min-height:220px;
}
.terminal-cursor{ display:inline-block; width:7px; background:var(--blue); animation:blink 1s steps(1) infinite; margin-left:1px; }
.terminal-glow{ position:absolute; inset:-40% -40% auto auto; width:220px; height:220px; background:radial-gradient(circle, rgba(6,182,212,.35), transparent 70%); filter:blur(30px); z-index:-1; }

.scroll-cue{
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-faint);
}
.scroll-cue-line{ width:1px; height:34px; background:linear-gradient(var(--ink-faint), transparent); position:relative; overflow:hidden; }
.scroll-cue-line::after{ content:''; position:absolute; top:-30%; left:0; width:100%; height:30%; background:var(--blue); animation:scrollCue 1.8s ease-in-out infinite; }

/* code syntax colors */
.tok-kw{ color:var(--violet); } .tok-fn{ color:var(--blue); } .tok-str{ color:var(--teal); } .tok-com{ color:var(--ink-faint); } .tok-punc{ color:var(--ink-soft); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface-1);
  padding:22px 0; overflow:hidden; white-space:nowrap; position:relative; z-index:1;
}
.marquee-track{ display:inline-flex; gap:14px; font-family:var(--font-mono); font-size:14px; color:var(--ink-soft); animation:marqueeScroll 32s linear infinite; }
.marquee-track span{ padding:0 2px; }
.marquee:hover .marquee-track{ animation-play-state:paused; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:80px; align-items:center; }
.about-text{ color:var(--ink-soft); font-size:16.5px; max-width:520px; margin-top:20px; }
.about-badges{ display:flex; gap:10px; margin-top:32px; flex-wrap:wrap; }
.badge{
  font-size:13px; font-weight:500; padding:9px 16px; border-radius:100px; background:var(--surface-1);
  border:1px solid var(--border); color:var(--ink-soft);
}
.about-visual{ display:flex; justify-content:center; }
.about-photo-card{
  position:relative; width:280px; height:340px; border-radius:var(--r-lg); background:var(--grad-soft);
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center; overflow:visible;
}
.about-photo-frame{
  font-family:var(--font-display); font-size:64px; font-weight:700; color:var(--white);
  width:200px; height:200px; border-radius:50%; background:var(--grad-main); display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg);
}
.about-photo-glow{ position:absolute; inset:-15%; background:radial-gradient(circle at 30% 20%, rgba(124,58,237,.25), transparent 60%); filter:blur(30px); z-index:-1; }
.about-photo-badge{
  position:absolute; bottom:-20px; right:-24px; background:var(--white); border:1px solid var(--border); border-radius:var(--r-md);
  padding:14px 18px; box-shadow:var(--shadow-md); display:flex; flex-direction:column; text-align:center; line-height:1.2;
}
.about-photo-badge-num{ font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--blue); }
.about-photo-badge-label{ font-size:11px; color:var(--ink-soft); margin-top:2px; }

/* tilt wrapper */
.tilt-card{ transition:transform .1s var(--ease-soft); transform-style:preserve-3d; will-change:transform; }

/* ==========================================================================
   STACK TABS
   ========================================================================== */
.stack-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:36px; }
.stack-tab{
  padding:10px 18px; border-radius:100px; font-size:13.5px; font-weight:500; color:var(--ink-soft);
  border:1px solid var(--border); background:var(--white); transition:all .25s var(--ease-soft);
}
.stack-tab:hover{ border-color:var(--blue-2); color:var(--ink); }
.stack-tab.is-active{ background:var(--grad-main); color:#fff; border-color:transparent; box-shadow:var(--shadow-sm); }
.stack-panel{ display:none; }
.stack-panel.is-active{ display:block; animation:fadeIn .4s var(--ease); }
.chip-grid{ display:flex; flex-wrap:wrap; gap:12px; }
.chip{
  padding:11px 18px; border-radius:var(--r-sm); background:var(--white); border:1px solid var(--border);
  font-size:14px; font-weight:500; box-shadow:var(--shadow-sm); transition:transform .2s var(--ease-soft), border-color .2s, box-shadow .2s;
}
.chip:hover{ transform:translateY(-3px); border-color:var(--blue-2); box-shadow:var(--shadow-md); }
.chip-learning{ border-style:dashed; color:var(--violet); border-color:rgba(124,58,237,.4); }

.skills-progress{ margin-top:64px; display:flex; flex-direction:column; gap:26px; max-width:640px; }
.skill-bar-head{ display:flex; justify-content:space-between; font-size:14px; font-weight:500; margin-bottom:10px; }
.skill-percent{ font-family:var(--font-mono); color:var(--blue); }
.skill-track{ height:8px; background:var(--surface-2); border-radius:8px; overflow:hidden; }
.skill-fill{ height:100%; width:0%; border-radius:8px; background:var(--grad-main); transition:width 1.4s var(--ease); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.section-head-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:48px; flex-wrap:wrap; }
.section-head-row .section-title{ margin-bottom:0; }
.project-controls{ display:flex; flex-direction:column; gap:14px; align-items:flex-end; }
.project-search{
  display:flex; align-items:center; gap:8px; border:1px solid var(--border); border-radius:100px; padding:9px 16px;
  background:var(--white); color:var(--ink-faint); width:240px;
}
.project-search input{ border:none; outline:none; background:none; font-size:13.5px; width:100%; color:var(--ink); }
.project-filters{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.filter-chip{
  padding:8px 15px; border-radius:100px; font-size:13px; font-weight:500; color:var(--ink-soft); border:1px solid var(--border);
  transition:all .2s var(--ease-soft);
}
.filter-chip:hover{ border-color:var(--blue-2); color:var(--ink); }
.filter-chip.is-active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.project-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.project-card{
  position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--white); border:1px solid var(--border);
  box-shadow:var(--shadow-sm); transition:transform .35s var(--ease), box-shadow .35s var(--ease); display:flex; flex-direction:column;
}
.project-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.project-media{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--surface-2); }
.project-media-inner{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--font-display);
  font-weight:700; font-size:15px; color:#fff; text-align:center; padding:20px; transition:transform .6s var(--ease-soft);
}
.project-card:hover .project-media-inner{ transform:scale(1.08); }
.project-media-overlay{
  position:absolute; inset:0; background:linear-gradient(0deg, rgba(15,23,42,.55), transparent 50%);
  display:flex; align-items:flex-end; padding:16px; opacity:0; transition:opacity .3s var(--ease-soft);
}
.project-card:hover .project-media-overlay{ opacity:1; }
.project-stats-row{ display:flex; gap:10px; }
.project-stat-pill{
  font-family:var(--font-mono); font-size:11px; color:#fff; background:rgba(255,255,255,.18); backdrop-filter:blur(6px);
  padding:5px 10px; border-radius:100px; border:1px solid rgba(255,255,255,.25);
}
.project-body{ padding:24px 24px 26px; display:flex; flex-direction:column; gap:12px; flex:1; }
.project-title{ font-family:var(--font-head); font-size:19px; font-weight:700; }
.project-desc{ font-size:14px; color:var(--ink-soft); line-height:1.6; }
.project-badges{ display:flex; flex-wrap:wrap; gap:7px; margin-top:2px; }
.project-badge{ font-size:11.5px; font-weight:500; padding:5px 11px; border-radius:100px; background:var(--surface-1); border:1px solid var(--border); color:var(--ink-soft); }
.project-actions{ display:flex; gap:10px; margin-top:auto; padding-top:14px; }
.project-action{
  flex:1; text-align:center; font-size:13px; font-weight:600; padding:10px 12px; border-radius:10px;
  border:1px solid var(--border); transition:all .2s var(--ease-soft);
}
.project-action:hover{ border-color:var(--blue-2); background:var(--surface-1); }
.project-action.is-primary{ background:var(--ink); color:#fff; border-color:var(--ink); }
.project-action.is-primary:hover{ background:var(--blue); border-color:var(--blue); }
.project-empty{ grid-column:1/-1; text-align:center; padding:60px 0; color:var(--ink-soft); font-family:var(--font-mono); font-size:14px; }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline{ position:relative; padding-top:20px; }
.timeline-line{ position:absolute; left:50%; top:0; bottom:0; width:2px; background:var(--border); transform:translateX(-50%); }
.timeline-line-fill{ display:block; width:100%; height:0%; background:var(--grad-main); transition:height .1s linear; }
.timeline-item{ position:relative; width:50%; padding:0 56px 64px; }
.timeline-item[data-side="left"]{ left:0; text-align:right; }
.timeline-item[data-side="right"]{ left:50%; text-align:left; }
.timeline-dot{
  position:absolute; top:6px; width:16px; height:16px; border-radius:50%; background:var(--white); border:3px solid var(--blue);
  z-index:2; box-shadow:0 0 0 6px var(--white);
}
.timeline-item[data-side="left"] .timeline-dot{ right:-8px; }
.timeline-item[data-side="right"] .timeline-dot{ left:-8px; }
.timeline-card{
  display:inline-block; text-align:left; background:var(--white); border:1px solid var(--border); border-radius:var(--r-md);
  padding:26px 28px; box-shadow:var(--shadow-sm); max-width:440px;
}
.timeline-tag{ display:inline-block; font-size:11px; font-family:var(--font-mono); padding:4px 10px; border-radius:100px; margin-bottom:12px; }
.tag-work{ background:rgba(37,99,235,.1); color:var(--blue); }
.tag-project{ background:rgba(20,184,166,.12); color:#0f766e; }
.tag-learning{ background:rgba(124,58,237,.1); color:var(--violet); }
.timeline-card h3{ font-family:var(--font-head); font-size:17px; margin-bottom:4px; }
.timeline-meta{ font-size:12.5px; color:var(--ink-faint); margin-bottom:12px; }
.timeline-list{ display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:var(--ink-soft); }
.timeline-list li{ position:relative; padding-left:16px; }
.timeline-list li::before{ content:''; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background:var(--teal); }
.timeline-card p{ font-size:13.5px; color:var(--ink-soft); }

/* ==========================================================================
   RADIAL SKILLS
   ========================================================================== */
.radial-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.radial-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg); padding:36px 20px;
  display:flex; flex-direction:column; align-items:center; gap:14px; box-shadow:var(--shadow-sm); text-align:center;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.radial-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.radial-svg{ width:120px; height:120px; transform:rotate(-90deg); }
.radial-track{ fill:none; stroke:var(--surface-2); stroke-width:8; }
.radial-fill{ fill:none; stroke:url(#none); stroke:var(--blue); stroke-width:8; stroke-linecap:round; stroke-dasharray:327; stroke-dashoffset:327; transition:stroke-dashoffset 1.4s var(--ease); }
.radial-label{ position:relative; margin-top:-92px; font-family:var(--font-display); font-size:22px; font-weight:700; }
.radial-title{ font-size:13.5px; color:var(--ink-soft); font-weight:500; margin-top:56px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.service-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg); padding:30px 26px;
  box-shadow:var(--shadow-sm); transition:box-shadow .3s var(--ease); position:relative; overflow:hidden;
}
.service-card::before{
  content:''; position:absolute; inset:0; opacity:0; background:var(--grad-soft); transition:opacity .3s;
}
.service-card:hover::before{ opacity:1; }
.service-card:hover{ box-shadow:var(--shadow-md); }
.service-icon{ font-size:28px; display:block; margin-bottom:16px; position:relative; }
.service-card h3{ font-family:var(--font-head); font-size:16.5px; margin-bottom:8px; position:relative; }
.service-card p{ font-size:13.5px; color:var(--ink-soft); position:relative; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-slider{ max-width:760px; margin:0 auto; position:relative; }
.testimonial-track{ display:flex; transition:transform .6s var(--ease); }
.testimonial-card{
  min-width:100%; background:rgba(255,255,255,.6); backdrop-filter:blur(16px); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:44px 48px; box-shadow:var(--shadow-md); text-align:center;
}
.testimonial-quote{ font-family:var(--font-head); font-size:20px; line-height:1.6; margin-bottom:28px; }
.testimonial-author{ display:flex; align-items:center; justify-content:center; gap:12px; }
.testimonial-author div:last-child{ display:flex; flex-direction:column; text-align:left; font-size:13.5px; }
.testimonial-author span{ color:var(--ink-soft); }
.avatar{ width:42px; height:42px; border-radius:50%; background:var(--grad-main); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; font-family:var(--font-head); }
.testimonial-dots{ display:flex; justify-content:center; gap:8px; margin-top:24px; }
.testimonial-dots button{ width:8px; height:8px; border-radius:50%; background:var(--border); transition:all .3s; }
.testimonial-dots button.is-active{ background:var(--blue); width:24px; border-radius:5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section{ overflow:hidden; }
.contact-bg{
  position:absolute; inset:0; background:
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(124,58,237,.08), transparent 40%);
  background-size:100% 100%;
}
.contact-bg::after{
  content:''; position:absolute; inset:0; opacity:.5;
  background-image:radial-gradient(var(--border) 1px, transparent 1px); background-size:26px 26px;
  mask-image:radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 80%);
}
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; position:relative; }
.contact-links{ display:flex; flex-direction:column; gap:14px; margin-top:36px; }
.contact-link{
  display:flex; align-items:center; gap:12px; font-weight:500; font-size:15px; padding:14px 18px;
  border:1px solid var(--border); border-radius:var(--r-sm); background:var(--white); transition:all .25s var(--ease-soft); width:fit-content;
}
.contact-link:hover{ border-color:var(--blue-2); transform:translateX(4px); box-shadow:var(--shadow-sm); }
.contact-link-icon{ font-size:16px; }

.contact-form{
  background:rgba(255,255,255,.7); backdrop-filter:blur(16px); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:36px; box-shadow:var(--shadow-md); display:flex; flex-direction:column; gap:20px; position:relative;
}
.form-row{ display:flex; flex-direction:column; gap:8px; position:relative; }
.form-row label{ font-size:13px; font-weight:600; color:var(--ink-soft); }
.form-row input, .form-row textarea{
  border:1px solid var(--border); border-radius:10px; padding:13px 14px; background:var(--white); outline:none;
  transition:border-color .2s, box-shadow .2s; resize:vertical; font-size:14.5px;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--blue-2); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
.form-row.has-error input, .form-row.has-error textarea{ border-color:#EF4444; }
.form-error{ display:none; font-size:12px; color:#EF4444; }
.form-row.has-error .form-error{ display:block; }
.contact-form .btn{ margin-top:6px; }
.btn-success{ display:none; }
.contact-form.is-success .btn-label{ display:none; }
.contact-form.is-success .btn-success{ display:inline-flex; align-items:center; gap:6px; }
.contact-form.is-success .btn-primary{ background:linear-gradient(120deg, var(--teal), var(--cyan)); }

/* ==========================================================================
   FOOTER + DOCK
   ========================================================================== */
.footer{ border-top:1px solid var(--border); padding:32px 0; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-inner span{ font-size:13px; color:var(--ink-faint); }
.footer-socials{ display:flex; gap:16px; }
.footer-socials a{ font-size:16px; opacity:.7; transition:opacity .2s, transform .2s; }
.footer-socials a:hover{ opacity:1; transform:translateY(-2px); }

.dock{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:900; display:flex; gap:6px;
  background:rgba(255,255,255,.7); backdrop-filter:blur(18px); border:1px solid var(--border); border-radius:20px;
  padding:8px; box-shadow:var(--shadow-lg);
}
.dock-item{
  width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:17px;
  transition:transform .25s var(--ease-soft), background .25s;
}
.dock-item:hover{ background:var(--surface-2); transform:translateY(-4px); }

/* ==========================================================================
   COMMAND PALETTE
   ========================================================================== */
.palette-overlay{
  position:fixed; inset:0; z-index:2000; background:rgba(15,23,42,.35); backdrop-filter:blur(4px);
  display:flex; align-items:flex-start; justify-content:center; padding-top:14vh; opacity:0; visibility:hidden;
  transition:opacity .25s var(--ease-soft); pointer-events:none;
}
.palette-overlay.is-open{ opacity:1; visibility:visible; pointer-events:auto; }
.palette{
  width:min(560px,90vw); background:var(--white); border-radius:var(--r-md); box-shadow:var(--shadow-lg); border:1px solid var(--border);
  overflow:hidden; transform:translateY(-12px) scale(.98); transition:transform .25s var(--ease-soft);
}
.palette-overlay.is-open .palette{ transform:translateY(0) scale(1); }
.palette-input-row{ display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid var(--border); }
.palette-icon{ color:var(--ink-faint); flex-shrink:0; }
.palette-input-row input{ flex:1; border:none; outline:none; font-size:15px; background:none; }
.palette-input-row kbd{ font-family:var(--font-mono); font-size:11px; color:var(--ink-faint); border:1px solid var(--border); padding:3px 6px; border-radius:5px; }
.palette-list{ max-height:340px; overflow-y:auto; padding:8px; }
.palette-list li{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px; cursor:pointer; font-size:14px;
  transition:background .15s;
}
.palette-list li .p-icon{ width:28px; height:28px; border-radius:8px; background:var(--surface-1); display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.palette-list li span.p-label{ flex:1; }
.palette-list li span.p-hint{ font-size:11px; color:var(--ink-faint); font-family:var(--font-mono); }
.palette-list li.is-active, .palette-list li:hover{ background:var(--surface-1); }
