/* =========================================================
   0. TOKENS — theme system
   Themes are swapped by setting data-theme on <html>.
   Default (no attribute, or data-theme="royal") = Royal Purple.
   ========================================================= */
:root, [data-theme="royal"]{
  --bg:#f8f6fc;
  --surface:#ffffff;
  --surface-alt:#f1ecfa;
  --ink:#1e1533;
  --ink-soft:#5b4e78;
  --ink-faint:#9186ac;
  --border:#e3daf6;
  --accent:#6c3fc5;
  --accent-dark:#4e2b94;
  --accent-soft:#ede4fb;
  --amber:#b8860b;
  --amber-soft:#f6efd9;
  --code-bg:#1b1030;
  --code-ink:#e3d9f7;
  --code-highlight:#c9a9ff;
  --code-comment:#7a6a9e;
  --theme-swatch:#6c3fc5;
  --on-ink:#ffffff;      /* text on --ink backgrounds (buttons, version pills) */
  --on-accent:#ffffff;   /* text on --accent backgrounds */
  --panel-bg:var(--ink); /* contact panel background */
}
[data-theme="emerald"]{
  --bg:#f5f7fa;
  --surface:#ffffff;
  --surface-alt:#eef1f6;
  --ink:#10182b;
  --ink-soft:#52607a;
  --ink-faint:#8b96ab;
  --border:#dfe4ec;
  --accent:#0e7c66;
  --accent-dark:#0a5f4f;
  --accent-soft:#e3f3ee;
  --amber:#c9821e;
  --amber-soft:#faf0dd;
  --code-bg:#0f1b2d;
  --code-ink:#d7e3f0;
  --code-highlight:#6ee7c0;
  --code-comment:#5c7089;
  --theme-swatch:#0e7c66;
}
[data-theme="midnight"]{
  --bg:#f7f6f3;
  --surface:#ffffff;
  --surface-alt:#efeae1;
  --ink:#1c1a15;
  --ink-soft:#5a5546;
  --ink-faint:#948d78;
  --border:#e5dfd0;
  --accent:#9a6a12;
  --accent-dark:#734e0c;
  --accent-soft:#f3e8cf;
  --amber:#734e0c;
  --amber-soft:#f3e8cf;
  --code-bg:#12141f;
  --code-ink:#e9e4d6;
  --code-highlight:#e9c46a;
  --code-comment:#6b7086;
  --theme-swatch:#9a6a12;
}
/* ---------- NEW THEMES: copy any block to add your own ----------
   Then add a matching data-theme-choice button in index.html and a
   swatch rule in the 'theme swatches' section further down. */
/* Aurora (dark) - teal / violet glow */
[data-theme="aurora"]{
  --bg:#0b0f1a;
  --surface:#131a2a;
  --surface-alt:#192238;
  --ink:#eaf0ff;
  --ink-soft:#a3b0cf;
  --ink-faint:#6d7a9c;
  --border:#243050;
  --accent:#5eead4;
  --accent-dark:#2dd4bf;
  --accent-soft:#12323a;
  --amber:#fbbf24;
  --amber-soft:#2d2a1a;
  --code-bg:#070a12;
  --code-ink:#d6e2ff;
  --code-highlight:#a78bfa;
  --code-comment:#5b6a8f;
  --on-ink:#0b0f1a;
  --on-accent:#04211d;
  --panel-bg:linear-gradient(135deg,#1b2447,#1a1040);
}
/* Sunset - coral / peach */
[data-theme="sunset"]{
  --bg:#fff7f2;
  --surface:#ffffff;
  --surface-alt:#ffece1;
  --ink:#2b1620;
  --ink-soft:#6e4d57;
  --ink-faint:#a58a92;
  --border:#f6d9cc;
  --accent:#e4572e;
  --accent-dark:#b83e1b;
  --accent-soft:#ffe3d7;
  --amber:#c77700;
  --amber-soft:#fff0cf;
  --code-bg:#2b1620;
  --code-ink:#ffe9df;
  --code-highlight:#ff9a76;
  --code-comment:#9b7480;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
  --panel-bg:linear-gradient(135deg,#3a1a2a,#5a2230);
}
/* Mocha Mousse - warm earthy neutrals */
[data-theme="mocha"]{
  --bg:#faf5f0;
  --surface:#fffdfb;
  --surface-alt:#f1e7dd;
  --ink:#2a1f1a;
  --ink-soft:#6b5a4f;
  --ink-faint:#a39284;
  --border:#e7d9cb;
  --accent:#8a5a44;
  --accent-dark:#6a4130;
  --accent-soft:#f0e0d4;
  --amber:#a8741a;
  --amber-soft:#f5e8cc;
  --code-bg:#241a15;
  --code-ink:#f0e3d6;
  --code-highlight:#e0b48f;
  --code-comment:#8c7767;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
}
/* Neon Lime (dark) - cyber / brutalist */
[data-theme="neon"]{
  --bg:#0a0a0a;
  --surface:#141414;
  --surface-alt:#1c1c1c;
  --ink:#f4f4f0;
  --ink-soft:#b5b5ab;
  --ink-faint:#777770;
  --border:#2a2a2a;
  --accent:#c6ff3d;
  --accent-dark:#a6e01f;
  --accent-soft:#222b0c;
  --amber:#ffb800;
  --amber-soft:#2b2408;
  --code-bg:#050505;
  --code-ink:#e8ffd0;
  --code-highlight:#c6ff3d;
  --code-comment:#666660;
  --on-ink:#0a0a0a;
  --on-accent:#0a0a0a;
  --panel-bg:#1c1c1c;
}
/* Ocean - deep cobalt blue */
[data-theme="ocean"]{
  --bg:#f3f7fe;
  --surface:#ffffff;
  --surface-alt:#e6eefb;
  --ink:#0c1b3a;
  --ink-soft:#4a5d85;
  --ink-faint:#8493b3;
  --border:#d6e2f6;
  --accent:#1d6fdc;
  --accent-dark:#1452a8;
  --accent-soft:#dce9fc;
  --amber:#c98a12;
  --amber-soft:#faf0d6;
  --code-bg:#0a1630;
  --code-ink:#d9e6ff;
  --code-highlight:#6cb4ff;
  --code-comment:#5d7099;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
}
/* Rose Quartz - soft blush / raspberry */
[data-theme="rose"]{
  --bg:#fff5f8;
  --surface:#ffffff;
  --surface-alt:#fde7ee;
  --ink:#2c1220;
  --ink-soft:#744559;
  --ink-faint:#b08698;
  --border:#f7d5e1;
  --accent:#d6336c;
  --accent-dark:#a8244f;
  --accent-soft:#fde0ea;
  --amber:#b8860b;
  --amber-soft:#f8ecd0;
  --code-bg:#2a1020;
  --code-ink:#ffe3ee;
  --code-highlight:#ff8fb5;
  --code-comment:#96687d;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
}
/* Sage - calm organic green */
[data-theme="sage"]{
  --bg:#f5f7f1;
  --surface:#fdfefb;
  --surface-alt:#e9eee0;
  --ink:#1d2619;
  --ink-soft:#566350;
  --ink-faint:#93a08b;
  --border:#dde5d1;
  --accent:#5f7d4f;
  --accent-dark:#46603a;
  --accent-soft:#e3ebd9;
  --amber:#a8761a;
  --amber-soft:#f4ead0;
  --code-bg:#172014;
  --code-ink:#e4efd9;
  --code-highlight:#a9d18e;
  --code-comment:#71836a;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
}
/* Nord Frost (dark) - slate / ice blue */
[data-theme="nord"]{
  --bg:#171c26;
  --surface:#1f2633;
  --surface-alt:#262e3e;
  --ink:#e5ecf6;
  --ink-soft:#a7b4c9;
  --ink-faint:#6f7d94;
  --border:#2f3a4e;
  --accent:#88c0d0;
  --accent-dark:#6aa9bb;
  --accent-soft:#20323b;
  --amber:#ebcb8b;
  --amber-soft:#332e22;
  --code-bg:#10141c;
  --code-ink:#dce6f2;
  --code-highlight:#81a1c1;
  --code-comment:#5d6b82;
  --on-ink:#171c26;
  --on-accent:#0f1a20;
  --panel-bg:#2b3548;
}
/* Arctic - crisp icy cyan */
[data-theme="arctic"]{
  --bg:#f2fafc;
  --surface:#ffffff;
  --surface-alt:#e2f3f7;
  --ink:#0b2530;
  --ink-soft:#46646f;
  --ink-faint:#85a2ad;
  --border:#d0e8ee;
  --accent:#0891b2;
  --accent-dark:#0b6f8a;
  --accent-soft:#d5f0f6;
  --amber:#c28512;
  --amber-soft:#f8efd5;
  --code-bg:#08202a;
  --code-ink:#d8f3fa;
  --code-highlight:#67e8f9;
  --code-comment:#5a8391;
  --on-ink:#ffffff;
  --on-accent:#ffffff;
}
/* Noir (dark) - editorial monochrome + red */
[data-theme="noir"]{
  --bg:#0e0e10;
  --surface:#161618;
  --surface-alt:#1e1e21;
  --ink:#f5f5f5;
  --ink-soft:#b0b0b5;
  --ink-faint:#76767c;
  --border:#2b2b30;
  --accent:#ff4d4d;
  --accent-dark:#e03232;
  --accent-soft:#301517;
  --amber:#ffb454;
  --amber-soft:#2d2416;
  --code-bg:#08080a;
  --code-ink:#ececec;
  --code-highlight:#ff7a7a;
  --code-comment:#6a6a70;
  --on-ink:#0e0e10;
  --on-accent:#ffffff;
  --panel-bg:#1e1e21;
}
:root{
  --radius-s:6px;
  --radius-m:10px;
  --radius-l:16px;
  --shadow-s:0 1px 2px rgba(16,24,43,0.06);
  --shadow-m:0 8px 24px rgba(16,24,43,0.08);
  --shadow-l:0 20px 48px rgba(16,24,43,0.14);
  --maxw:1120px;
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;
}
body{
  transition:background 0.25s ease, color 0.25s ease;
}
body, body *{
  transition:background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; color:var(--ink); line-height:1.15;}
p{margin:0;}
button{font-family:inherit; cursor:pointer;}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:500;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-dark);
  display:flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
  flex:none;
}

.section-tag{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--ink-faint);
  margin-bottom:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 22px;
  border-radius:999px;
  font-weight:600;
  font-size:14.5px;
  border:1px solid transparent;
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--ink);
  color:var(--on-ink);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-m);
}
.btn-outline{
  background:transparent;
  border-color:var(--border);
  color:var(--ink);
}
.btn-outline:hover{
  border-color:var(--ink);
  transform:translateY(-2px);
}
.btn-accent{
  background:var(--accent);
  color:var(--on-accent);
}
.btn-accent:hover{
  background:var(--accent-dark);
  transform:translateY(-2px);
  box-shadow:var(--shadow-m);
}

/* =========================================================
   1. NAV
   ========================================================= */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  background:rgba(245,247,250,0.85);
  background:color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled{
  border-bottom-color:var(--border);
  background:rgba(245,247,250,0.96);
  background:color-mix(in srgb, var(--bg) 96%, transparent);
}
.nav-inner{
  max-width:var(--maxw);
  margin:0 auto;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo .dot{color:var(--accent);}

.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
}
.nav-links a{
  font-size:14px;
  font-weight:500;
  color:var(--ink-soft);
  position:relative;
  padding:4px 0;
  transition:color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active{color:var(--ink);}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-4px;
  height:2px;
  background:var(--accent);
  border-radius:2px;
}

.nav-actions{display:flex; align-items:center; gap:12px;}
.nav-actions .btn{padding:10px 18px; font-size:13.5px;}

/* ---- theme picker: toggle button + popover grid ---- */
.theme-switch{position:relative;}
.theme-toggle{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--border);
  padding:0;
  cursor:pointer;
  background:linear-gradient(135deg,var(--accent) 50%,var(--surface-alt) 50%);
  box-shadow:inset 0 0 0 3px var(--surface);
  transition:transform 0.15s ease;
}
.theme-toggle:hover{transform:rotate(20deg) scale(1.06);}
.theme-menu{
  position:absolute;
  right:0; top:calc(100% + 10px);
  display:grid;
  grid-template-columns:repeat(5,32px);
  gap:10px;
  padding:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-l);
  opacity:0; visibility:hidden;
  transform:translateY(-6px);
  transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index:200;
}
.theme-switch.open .theme-menu{opacity:1; visibility:visible; transform:none;}
.theme-dot{
  width:32px; height:32px;
  border-radius:50%;
  border:2px solid transparent;
  padding:0;
  cursor:pointer;
  /* two-tone swatch: --dot-a = accent, --dot-b = background */
  background:linear-gradient(135deg,var(--dot-a,#888) 50%,var(--dot-b,#eee) 50%);
  box-shadow:inset 0 0 0 1px rgba(128,128,128,0.35);
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-dot:hover{transform:scale(1.12);}
.theme-dot.active{
  border-color:var(--ink);
  box-shadow:0 0 0 2px var(--surface), 0 0 0 3px var(--ink);
}

/* ---- theme swatches (accent / background) - keep in sync with theme tokens ---- */
.theme-dot[data-theme-choice="royal"]{--dot-a:#6c3fc5; --dot-b:#f1ecfa;}
.theme-dot[data-theme-choice="emerald"]{--dot-a:#0e7c66; --dot-b:#eef1f6;}
.theme-dot[data-theme-choice="midnight"]{--dot-a:#9a6a12; --dot-b:#12141f;}
.theme-dot[data-theme-choice="aurora"]{--dot-a:#5eead4; --dot-b:#0b0f1a;}
.theme-dot[data-theme-choice="sunset"]{--dot-a:#e4572e; --dot-b:#ffece1;}
.theme-dot[data-theme-choice="mocha"]{--dot-a:#8a5a44; --dot-b:#f1e7dd;}
.theme-dot[data-theme-choice="neon"]{--dot-a:#c6ff3d; --dot-b:#0a0a0a;}
.theme-dot[data-theme-choice="ocean"]{--dot-a:#1d6fdc; --dot-b:#e6eefb;}
.theme-dot[data-theme-choice="rose"]{--dot-a:#d6336c; --dot-b:#fde7ee;}
.theme-dot[data-theme-choice="sage"]{--dot-a:#5f7d4f; --dot-b:#e9eee0;}
.theme-dot[data-theme-choice="nord"]{--dot-a:#88c0d0; --dot-b:#171c26;}
.theme-dot[data-theme-choice="arctic"]{--dot-a:#0891b2; --dot-b:#e2f3f7;}
.theme-dot[data-theme-choice="noir"]{--dot-a:#ff4d4d; --dot-b:#0e0e10;}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.nav-toggle span{
  width:22px; height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}



.mobile-panel{

  position: fixed;
  top: 60px; /* Height of your navbar */
  left: 0;
  width: 100%;
  z-index: 9999;
  

  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 24px 20px;
  background:var(--bg);
  border-bottom:1px solid var(--border);

  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  
  transition: max-height 0.4s ease, opacity 0.3s ease,visibility 0.4s ease;
}
.mobile-panel.open{
   max-height: 500px;
   opacity: 1;
   visibility: visible;
}
.mobile-panel a{
  padding:12px 4px;
  font-size:15px;
  font-weight:500;
  color:var(--ink-soft);
  border-bottom:1px solid var(--border);
}
.mobile-panel .btn{margin-top:12px;}

/* =========================================================
   2. STATUS BAR (signature strip)
   ========================================================= */
.status-bar{
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.status-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:10px 24px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 28px;
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--ink-soft);
}
.status-item{display:flex; align-items:center; gap:7px; white-space:nowrap;}
.status-item .led{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  flex:none;
}
.status-divider{width:1px; height:14px; background:var(--border); flex:none;}

/* =========================================================
   3. HERO
   ========================================================= */
.hero{
  padding:72px 0 90px;
}
.hero-inner{
  display:flex;
  align-items:center;
  gap:56px;
  flex-wrap:wrap;
}
.hero-text{
  flex:1 1 420px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
}
.hero-text h1{
  font-size:clamp(32px, 4.4vw, 50px);
  font-weight:700;
  letter-spacing:-0.02em;
}
.hero-text h1 .accent-word{color:var(--accent);}
.hero-sub{
  font-size:17px;
  color:var(--ink-soft);
  max-width:52ch;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:6px;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:8px;
  font-size:13.5px;
  color:var(--ink-faint);
}
.hero-meta span{display:flex; align-items:center; gap:6px;}

/* terminal / api-response card */
.hero-visual{flex:1 1 380px; min-width:300px;}
.term-card{
  background:var(--code-bg);
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-l);
  overflow:hidden;
  transform:rotate(1.2deg);
  transition:transform 0.3s ease;
}
.term-card:hover{transform:rotate(0deg);}
.term-head{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.term-dot{width:10px; height:10px; border-radius:50%;}
.term-dot.r{background:#ff5f56;}
.term-dot.y{background:#ffbd2e;}
.term-dot.g{background:#27c93f;}
.term-title{
  margin-left:8px;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--code-comment);
}
.term-body{
  padding:22px 22px 26px;
  font-family:var(--font-mono);
  font-size:13.5px;
  line-height:1.85;
  color:var(--code-ink);
  overflow-x:auto;
}
.term-body .req{color:var(--code-highlight);}
.term-body .status-ok{color:#8fd6ff;}
.term-body .key{color:#9db4d1;}
.term-body .str{color:var(--code-highlight);}
.term-body .comment{color:var(--code-comment);}
.term-body .punc{color:var(--code-comment);}

/* =========================================================
   4. SECTION SHELL
   ========================================================= */
section{padding:80px 0;}
.section-alt{background:var(--surface-alt);}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:40px;
}
.section-head h2{
  font-size:clamp(26px, 3vw, 34px);
  font-weight:700;
  letter-spacing:-0.01em;
}
.section-lead{
  color:var(--ink-soft);
  max-width:56ch;
  font-size:15.5px;
}

/* =========================================================
   5. ABOUT
   ========================================================= */
.about-inner{
  display:flex;
  gap:56px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.about-copy{flex:1 1 420px;}
.about-copy p{color:var(--ink-soft); font-size:16px; margin-bottom:16px;}
.about-copy p:last-child{margin-bottom:0;}
.about-stats{
  flex:1 1 320px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.stat-card{
  flex:1 1 130px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.stat-num{
  font-family:var(--font-display);
  font-size:28px;
  font-weight:700;
  color:var(--ink);
}
.stat-label{
  font-size:12.5px;
  color:var(--ink-faint);
  font-family:var(--font-mono);
}

/* =========================================================
   6. SKILLS
   ========================================================= */
.skills-grid{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}
.skill-card{
  flex:1 1 280px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:22px 24px;
}
.skill-card h3{
  font-size:15px;
  font-family:var(--font-mono);
  font-weight:600;
  color:var(--accent-dark);
  margin-bottom:14px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  font-size:13px;
  font-family:var(--font-mono);
  padding:6px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  border:1px solid transparent;
}

/* =========================================================
   7. EXPERIENCE (changelog)
   ========================================================= */
.timeline{
  display:flex;
  flex-direction:column;
  gap:0;
}
.timeline-item{
  display:flex;
  gap:28px;
  padding:0 0 40px;
  position:relative;
}
.timeline-item:last-child{padding-bottom:0;}
.tl-marker{
  flex:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:64px;
}
.tl-version{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:600;
  color:var(--on-ink);
  background:var(--ink);
  padding:4px 9px;
  border-radius:999px;
}
.tl-line{
  flex:1;
  width:2px;
  background:var(--border);
  margin-top:8px;
}
.timeline-item:last-child .tl-line{display:none;}
.tl-content{flex:1; padding-bottom:4px;}
.tl-top{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:6px;
}
.tl-role{font-size:19px; font-weight:700; font-family:var(--font-display);}
.tl-company{color:var(--accent-dark); font-weight:600;}
.tl-date{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--ink-faint);
  white-space:nowrap;
}
.tl-list{display:flex; flex-direction:column; gap:8px; margin-top:12px;}
.tl-list li{
  display:flex;
  gap:10px;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.6;
}
.tl-list li::before{
  content:"▸";
  color:var(--accent);
  flex:none;
  font-size:13px;
  margin-top:3px;
}
.tl-stack{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}
.tl-stack span{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--ink-soft);
  background:var(--surface-alt);
  border:1px solid var(--border);
  padding:4px 9px;
  border-radius:6px;
}

/* =========================================================
   8. PROJECTS
   ========================================================= */
.project-grid{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}
.project-card{
  flex:1 1 320px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-l);
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-m);
  border-color:transparent;
}
.project-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.project-icon{
  width:38px; height:38px;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:14px;
  flex:none;
}
.project-links{display:flex; gap:10px;}
.project-links a{
  font-size:12.5px;
  font-family:var(--font-mono);
  color:var(--ink-soft);
  border:1px solid var(--border);
  padding:5px 10px;
  border-radius:6px;
  transition:border-color 0.15s ease, color 0.15s ease;
}
.project-links a:hover{border-color:var(--ink); color:var(--ink);}
.project-card h3{font-size:19px;}
.project-card p{color:var(--ink-soft); font-size:14.5px;}
.project-metric{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--accent-dark);
  background:var(--accent-soft);
  display:inline-block;
  padding:6px 10px;
  border-radius:6px;
  width:fit-content;
}
.project-stack{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
  padding-top:10px;
}
.project-stack span{
  font-size:11.5px;
  font-family:var(--font-mono);
  color:var(--ink-faint);
}
.project-stack span:not(:last-child)::after{content:" ·"; color:var(--border);}

/* =========================================================
   9. EDUCATION
   ========================================================= */
.edu-grid{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}
.edu-card{
  flex:1 1 320px;
  display:flex;
  gap:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:22px;
}
.edu-icon{
  width:42px; height:42px;
  border-radius:10px;
  background:var(--amber-soft);
  color:var(--amber);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  flex:none;
}
.edu-card h3{font-size:16px; margin-bottom:4px;}
.edu-card p{color:var(--ink-soft); font-size:14px;}
.edu-card .edu-date{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--ink-faint);
  margin-top:6px;
  display:block;
}

/* =========================================================
   10. CONTACT
   ========================================================= */
.contact-panel{
  background:var(--panel-bg);
  border-radius:var(--radius-l);
  padding:56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
  color:#fff;
}
.contact-panel h2{color:#fff; font-size:clamp(26px,3.4vw,36px); margin-bottom:10px;}
.contact-panel p{color:#aab4c8; max-width:46ch; font-size:15.5px;}
.contact-copy{flex:1 1 360px;}
.contact-actions{
  flex:1 1 300px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.contact-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-m);
  padding:14px 18px;
  transition:background 0.15s ease, border-color 0.15s ease;
}
.contact-row:hover{background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.24);}
.contact-row .label{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.contact-row .label small{
  font-family:var(--font-mono);
  font-size:11px;
  color:#8b96ab;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.contact-row .label strong{font-size:14.5px; font-weight:600;}
.contact-row .go{color:var(--code-highlight); font-family:var(--font-mono); font-size:13px;}
.copy-toast{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--code-highlight);
  opacity:0;
  transition:opacity 0.2s ease;
  margin-top:2px;
}
.copy-toast.show{opacity:1;}


@media (max-width:600px){
  .contact-copy{flex:1 1 0px;}
}


/* =========================================================
   11. FOOTER
   ========================================================= */
footer{
  padding:34px 0 42px;
  border-top:1px solid var(--border);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  font-size:13px;
  color:var(--ink-faint);
  font-family:var(--font-mono);
}
.footer-links{display:flex; gap:18px;}
.footer-links a{color:var(--ink-soft); transition:color 0.15s ease;}
.footer-links a:hover{color:var(--ink);}

/* =========================================================
   12. SCROLL REVEAL
   ========================================================= */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in{opacity:1; transform:translateY(0);}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */
@media (max-width:860px){
  .nav-links, .nav-actions .btn-outline{display:none;}
  .nav-toggle{display:flex;}
  .contact-panel{padding:36px 24px;}
}
@media (max-width:600px){
  section{padding:56px 0;}
  .hero{padding:44px 0 60px;}
  .status-inner{font-size:11.5px; gap:8px 16px;}
  .term-card{transform:none;}
  .contact-panel{flex-direction:column; align-items:stretch;}
  .nav-actions .btn-primary{padding:9px 14px; font-size:12.5px;}
}
