/* =========================================================
   BHUVANSH KATARIA — PORTFOLIO
   Design system: "editor / terminal" — dark indigo ink,
   amber signal accent, teal for success states.
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  /* ---- surfaces (dark, default) ---- */
  --ink:        #10121c;
  --ink-2:      #14161f;
  --surface:    #1b1e2c;
  --surface-2:  #232739;
  --border:     rgba(255,255,255,.09);
  --border-2:   rgba(255,255,255,.16);

  /* ---- text ---- */
  --text:       #eef0f7;
  --text-soft:  #a6acc4;
  --text-faint: #6b7089;

  /* ---- signature accents ---- */
  --amber:      #ffb454;
  --amber-ink:  #17130a;
  --teal:       #5eead4;
  --coral:      #ff6b81;
  --violet:     #8b7bff;

  --grad: linear-gradient(100deg, var(--amber) 0%, #ff8f6b 45%, var(--violet) 100%);

  /* ---- type ---- */
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
  --nav-h: 74px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .18s var(--ease);
  --t: .32s var(--ease);
  --t-slow: .55s var(--ease);

  --shadow-sm: 0 2px 10px rgba(0,0,0,.28);
  --shadow: 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.45);
  --glow-amber: 0 0 0 1px rgba(255,180,84,.35), 0 8px 30px rgba(255,180,84,.18);
}

[data-theme="light"]{
  --ink:        #fbfaf6;
  --ink-2:      #f3f1ea;
  --surface:    #ffffff;
  --surface-2:  #f5f3ec;
  --border:     rgba(20,20,25,.10);
  --border-2:   rgba(20,20,25,.18);

  --text:       #15161d;
  --text-soft:  #4c4f5d;
  --text-faint: #82869a;

  --amber:      #b5730a;
  --amber-ink:  #ffffff;
  --teal:       #0d8f7f;
  --coral:      #d43a56;
  --violet:     #5b4bd6;

  --shadow-sm: 0 2px 10px rgba(20,20,25,.06);
  --shadow: 0 12px 32px rgba(20,20,25,.08);
  --shadow-lg: 0 24px 64px rgba(20,20,25,.12);
  --glow-amber: 0 0 0 1px rgba(181,115,10,.30), 0 8px 30px rgba(181,115,10,.14);
}

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

html{ scroll-behavior:smooth; scroll-padding-top: 90px; }
::selection{ background: var(--amber); color: var(--amber-ink); }

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--ink-2); }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius:999px; border:2px solid var(--ink-2); }
::-webkit-scrollbar-thumb:hover{ background: var(--amber); }

body{
  background: var(--ink);
  color: var(--text-soft);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }
button{ font-family:inherit; }
h1,h2,h3,h4{ font-family: var(--f-display); color: var(--text); font-weight:600; letter-spacing:-.02em; }
.mono{ font-family: var(--f-mono); }
.accent{ color: var(--amber); }
.accent-grad{
  background: var(--grad);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-style: normal;
}

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--amber); color:var(--amber-ink);
  padding:10px 16px; z-index:5000; font-weight:600; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

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

/* =============== LAYOUT UTILITIES =============== */
.container{ width:min(var(--container),92%); margin:0 auto; }
.section-pad{ padding: 120px 0; position:relative; }
.alt-bg{ background: var(--ink-2); }

.sec-eyebrow{
  font-size:13px; letter-spacing:.4px; color: var(--amber);
  margin-bottom:16px; display:inline-flex; align-items:center; gap:8px;
}
.sec-eyebrow::before{ content:'#'; color: var(--text-faint); }

.sec-heading{
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08; margin-bottom:20px;
}
.sec-sub{ color: var(--text-soft); font-size:17px; max-width:580px; margin-bottom:56px; }

.reveal{ opacity:0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible{ opacity:1; transform:none; }
.reveal-stagger.visible > *{ transition-delay: calc(var(--i,0) * 70ms); }

/* =============== BUTTONS =============== */
.btn{
  display:inline-flex; align-items:center; gap:9px; padding:13px 26px;
  border-radius: var(--radius-sm); font-weight:600; font-size:14.5px;
  border:1.5px solid transparent; cursor:pointer; white-space:nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  position:relative;
}
.btn-primary{ background: var(--amber); color: var(--amber-ink); box-shadow: var(--glow-amber); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 0 0 1px var(--amber), 0 14px 36px rgba(255,180,84,.3); }
.btn-outline{ background:transparent; color:var(--text); border-color: var(--border-2); }
.btn-outline:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-ghost{ background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover{ background: var(--surface-2); transform: translateY(-2px); }
.btn-sm{ padding:9px 18px; font-size:13px; }
.full-btn{ width:100%; justify-content:center; }

.magnetic{ will-change: transform; }

/* =============== NAVBAR (editor tabs) =============== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:2000; height:var(--nav-h);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom:1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.nav-inner{
  max-width: var(--container); margin:0 auto; height:100%;
  display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 4%;
}
.nav-logo{ display:flex; align-items:center; gap:10px; font-family:var(--f-display); font-weight:700; font-size:18px; color:var(--text); flex:0 0 auto; }
.logo-chip{
  background: var(--amber); color: var(--amber-ink); font-family:var(--f-mono);
  font-weight:700; font-size:13px; padding:5px 8px; border-radius:6px;
}
.nav-tabs{ display:flex; align-items:center; gap:2px; flex:1; overflow-x:auto; scrollbar-width:none; }
.nav-tabs::-webkit-scrollbar{ display:none; }
.nav-tab{
  display:flex; align-items:center; gap:7px; padding:9px 14px; border-radius:8px 8px 0 0;
  font-family:var(--f-mono); font-size:12.5px; color:var(--text-faint);
  border:1px solid transparent; border-bottom:2px solid transparent; transition: all var(--t-fast); white-space:nowrap;
}
.nav-tab .dot{ width:6px; height:6px; border-radius:50%; background: var(--text-faint); transition: background var(--t-fast); }
.nav-tab:hover{ color: var(--text); background: var(--surface); }
.nav-tab:hover .dot{ background: var(--teal); }
.nav-tab-cta{ background: var(--surface); border-color:var(--border); color:var(--text); margin-left:6px; }
.nav-tab-cta:hover{ border-color: var(--amber); color: var(--amber); }
.nav-tab.is-active{ color: var(--amber); background: var(--surface); border-bottom-color: var(--amber); }
.nav-tab.is-active .dot{ background: var(--amber); }
.nav.scrolled{ box-shadow: var(--shadow-sm); }
.nav-right{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.nav-resume-btn{
  display:flex; align-items:center; gap:8px; padding:9px 16px; border-radius:8px;
  border:1px solid var(--border-2); font-size:13px; font-weight:600; color:var(--text);
  transition: all var(--t-fast);
}
.nav-resume-btn:hover{ border-color: var(--amber); color:var(--amber); }
.theme-toggle, .hamburger{
  width:40px; height:40px; border-radius:8px; border:1px solid var(--border);
  background: var(--surface); color:var(--text); display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: all var(--t-fast);
}
.theme-toggle:hover, .hamburger:hover{ border-color: var(--amber); color:var(--amber); }
.theme-toggle #iconLight{ display:none; }
[data-theme="light"] .theme-toggle #iconLight{ display:inline; }
[data-theme="light"] .theme-toggle #iconDark{ display:none; }
.hamburger{ display:none; flex-direction:column; gap:4px; }
.hamburger span{ width:18px; height:2px; background: currentColor; border-radius:2px; transition: all var(--t-fast); }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; top:var(--nav-h); left:0; right:0; background: var(--ink);
  border-bottom:1px solid var(--border); z-index:1900; padding:14px 5%;
  transform: translateY(-12px); opacity:0; pointer-events:none; transition: all var(--t);
}
.mobile-menu.open{ transform:none; opacity:1; pointer-events:auto; }
.mob-link{ display:flex; align-items:center; gap:10px; padding:13px 6px; font-family:var(--f-mono); font-size:14px; color:var(--text-soft); border-bottom:1px solid var(--border); }
.mob-link:hover{ color: var(--amber); }
.mob-resume{ color: var(--amber); font-weight:600; border-bottom:none; }

/* =============== HERO =============== */
.hero{ position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding: calc(var(--nav-h) + 40px) 0 40px; overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.grid-overlay{
  position:absolute; inset:0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent);
  opacity:.5;
}
.glow{ position:absolute; border-radius:50%; filter: blur(80px); opacity:.35; }
.glow-1{ width:520px; height:520px; background: var(--amber); top:-160px; right:-120px; animation: drift 16s ease-in-out infinite; }
.glow-2{ width:460px; height:460px; background: var(--violet); bottom:-160px; left:-140px; animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(30px,-30px); } }

.hero-container{
  position:relative; z-index:2; max-width: var(--container); margin:0 auto; width:92%;
  display:grid; grid-template-columns: 1.15fr .95fr; gap:60px; align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:999px;
  background: var(--surface); border:1px solid var(--border); font-size:12.5px; color:var(--text-soft); margin-bottom:22px; flex-wrap:wrap;
}
.badge-dot{ width:7px; height:7px; border-radius:50%; background: var(--teal); box-shadow:0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
.badge-divider{ width:1px; height:12px; background: var(--border-2); }
.badge-location{ display:flex; align-items:center; gap:5px; color:var(--text-faint); }

.hero-greeting{ color: var(--text-faint); margin-bottom:6px; font-size:13px; }
.hero-name{ font-size: clamp(46px, 7vw, 84px); line-height:1; margin-bottom:18px; }
.hero-role{ font-size:16px; color:var(--text-soft); margin-bottom:22px; min-height:24px; }
.role-prefix{ color: var(--amber); margin-right:8px; }
.type-cursor{ color: var(--amber); animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.hero-desc{ max-width:560px; margin-bottom:28px; font-size:16.5px; }
.hero-desc strong{ color: var(--text); font-weight:600; }

.hero-tech{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:34px; }
.hero-tech span{
  font-family: var(--f-mono); font-size:12px; padding:6px 12px; border-radius:7px;
  background: var(--surface); border:1px solid var(--border); color:var(--text-soft);
}
.hero-btns{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:30px; }
.hero-social{ display:flex; gap:12px; }
.hero-social a{
  width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:1px solid var(--border); color:var(--text-soft); transition: all var(--t-fast);
}
.hero-social a:hover{ color:var(--amber); border-color:var(--amber); transform: translateY(-3px); }

/* Terminal window — signature element */
.hero-right{ display:flex; flex-direction:column; gap:18px; }
.terminal-window{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow:hidden;
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform var(--t-slow);
}
.terminal-window:hover{ transform: perspective(1000px) rotateY(0deg); }
.term-titlebar{
  display:flex; align-items:center; gap:10px; padding:12px 16px; background: var(--surface-2); border-bottom:1px solid var(--border);
}
.term-dots{ display:flex; gap:7px; }
.term-dots span{ width:11px; height:11px; border-radius:50%; }
.term-dots span:nth-child(1){ background:#ff5f56; }
.term-dots span:nth-child(2){ background:#ffbd2e; }
.term-dots span:nth-child(3){ background:#27c93f; }
.term-title{ flex:1; text-align:center; font-size:12px; color:var(--text-faint); }
.term-icon{ color: var(--text-faint); font-size:12px; }
.term-body{ padding:20px; font-size:12.6px; line-height:1.9; max-height:360px; overflow-y:auto; }
.term-body p{ color: var(--text-soft); white-space:pre-wrap; word-break:break-word; }
.term-prompt{ color: var(--teal); }
.term-path{ color: var(--violet); margin:0 4px; }
.term-dollar{ color: var(--amber); margin-right:6px; }
.term-out{ color: var(--text-faint); padding-left:2px; }
.term-tag{ color: var(--amber); }
.term-ok{ color: var(--teal); }
.term-blank{ height:6px; }
.term-cursor-blink{ color: var(--amber); animation: blink 1s step-end infinite; }
.term-stats{ display:grid; grid-template-columns: repeat(2,1fr); gap:10px; margin:10px 0 4px; }
.term-stat{
  background: var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:10px 12px;
  display:flex; flex-direction:column; gap:2px;
}
.term-stat .stat-num{ color: var(--amber); font-size:19px; font-weight:700; }
.term-stat .stat-label{ color: var(--text-faint); font-size:10.5px; }

.focus-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:20px; }
.focus-card h4{ font-size:12.5px; color: var(--text); margin-bottom:14px; display:flex; gap:8px; align-items:center; }
.focus-card h4 i{ color: var(--amber); }
.focus-card ul{ display:flex; flex-direction:column; gap:10px; }
.focus-card li{ font-size:13.5px; color: var(--text-soft); display:flex; gap:9px; align-items:flex-start; }
.focus-card li i{ color: var(--teal); margin-top:3px; font-size:11px; }

/* org marquee */
.org-marquee{ margin-top:56px; position:relative; overflow:hidden; border-top:1px solid var(--border); padding-top:26px; }
.org-marquee::before, .org-marquee::after{
  content:''; position:absolute; top:26px; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.org-marquee::before{ left:0; background: linear-gradient(90deg, var(--ink), transparent); }
.org-marquee::after{ right:0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee-track{ display:flex; gap:40px; width:max-content; animation: marquee 32s linear infinite; }
.marquee-track span{ display:flex; align-items:center; gap:9px; font-family:var(--f-mono); font-size:13px; color:var(--text-faint); white-space:nowrap; }
.marquee-track span i{ color: var(--amber); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

.hero-scroll{ position:absolute; bottom:22px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--text-faint); font-size:11px; z-index:2; }
.scroll-track{ width:1px; height:34px; background: var(--border-2); position:relative; overflow:hidden; }
.scroll-dot{ position:absolute; width:1px; height:12px; background: var(--amber); animation: scrolldown 1.8s ease-in-out infinite; }
@keyframes scrolldown{ 0%{ top:-12px; } 100%{ top:34px; } }

/* =============== ABOUT =============== */
.about-grid{ display:grid; grid-template-columns: 1.4fr 1fr; gap:56px; align-items:flex-start; }
.about-left p{ margin-bottom:18px; }
.about-left strong{ color: var(--text); font-weight:600; }
.about-highlights{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:36px; }
.highlight-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:22px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.highlight-card:hover{ transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow); }
.highlight-card i{ color: var(--amber); font-size:20px; margin-bottom:12px; display:block; }
.highlight-card h4{ font-size:15px; margin-bottom:6px; }
.highlight-card p{ font-size:13.5px; color: var(--text-faint); }

.fact-card, .uses-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:24px; margin-bottom:20px; }
.fact-card h3{ font-size:13px; color: var(--amber); margin-bottom:16px; }
.fact-item{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); font-size:14px; color:var(--text-soft); }
.fact-item:last-child{ border-bottom:none; }
.fact-item i{ color: var(--teal); width:18px; text-align:center; }
.uses-card h4{ font-size:13px; color:var(--text); margin-bottom:16px; display:flex; gap:8px; align-items:center; }
.uses-card h4 i{ color: var(--amber); }
.uses-grid{ display:flex; flex-direction:column; gap:10px; }
.use-item{ display:flex; justify-content:space-between; font-size:13.5px; padding:6px 0; border-bottom:1px solid var(--border); color:var(--text-soft); }
.use-item:last-child{ border-bottom:none; }
.use-label{ color: var(--text-faint); }

/* =============== STAT STRIP / OPEN SOURCE =============== */
.stat-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; margin-bottom:56px; }
.stat-block{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:24px 18px; text-align:center;
}
.stat-block .stat-num, .stat-block > .stat-num + *{ display:inline; }
.stat-block .stat-num{ font-family:var(--f-display); font-size:32px; font-weight:700; color: var(--amber); }
.stat-block span:not(.stat-num){ display:block; font-size:12.5px; color: var(--text-faint); margin-top:6px; }

.org-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-bottom:44px; }
.org-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:24px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.org-card:hover{ border-color: var(--amber); box-shadow: var(--shadow); }
.org-icon{ width:44px; height:44px; border-radius:10px; background: var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--amber); margin-bottom:14px; }
.org-card h4{ font-size:16px; margin-bottom:8px; }
.org-card p{ font-size:13.5px; color: var(--text-faint); margin-bottom:14px; }
.org-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.org-tags span{ font-family:var(--f-mono); font-size:10.5px; padding:4px 9px; border-radius:6px; background: var(--surface-2); color:var(--text-soft); }
.org-links{ display:flex; flex-wrap:wrap; gap:14px; }
.org-links a{ font-size:12.5px; font-weight:600; color: var(--teal); display:flex; align-items:center; gap:6px; }
.org-links a:hover{ color: var(--amber); }

.os-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:34px; }
.os-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:28px; }
.os-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.os-rank{ font-size:13px; font-weight:700; padding:5px 12px; border-radius:999px; }
.os-rank.gold{ background: rgba(255,180,84,.15); color: var(--amber); }
.os-rank.silver{ background: rgba(148,163,184,.15); color:#cbd5e1; }
.os-head span.mono{ color: var(--text-faint); font-size:12px; }
.os-card h3{ font-size:22px; margin-bottom:4px; }
.os-fullname{ font-size:13px; color:var(--text-faint); margin-bottom:12px; }
.os-card > p{ font-size:14px; margin-bottom:14px; }
.os-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.os-list li{ font-size:13px; color:var(--text-soft); display:flex; gap:9px; align-items:flex-start; }
.os-list li i{ color: var(--teal); margin-top:3px; font-size:11px; }
.chip-row{ display:flex; flex-wrap:wrap; gap:7px; }
.chip-row span{ font-family:var(--f-mono); font-size:11px; padding:5px 10px; border-radius:6px; background: var(--surface-2); border:1px solid var(--border); color: var(--text-soft); }

.banner-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:22px; }
.ssoc-banner{
  display:flex; align-items:center; gap:16px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding:18px 22px; position:relative; overflow:hidden;
}
.ssoc-badge{ font-size:11px; font-weight:700; padding:5px 11px; border-radius:999px; background: var(--amber); color: var(--amber-ink); white-space:nowrap; }
.ssoc-banner strong{ display:block; color:var(--text); font-size:14.5px; margin-bottom:3px; }
.ssoc-banner span.mono{ font-size:11.5px; color:var(--text-faint); }
.ssoc-banner i{ margin-left:auto; font-size:22px; color: var(--border-2); }

.os-strip{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:26px 28px; margin-bottom:56px; }
.os-strip-left{ display:flex; align-items:center; gap:16px; }
.os-strip-left i{ font-size:28px; color: var(--amber); }
.os-strip-left strong{ display:block; color:var(--text); margin-bottom:4px; }
.os-strip-left span.mono{ font-size:12px; color: var(--text-faint); }

.featured-heading{ margin-bottom:26px; }
.featured-heading p{ color:var(--amber); font-size:13px; margin-bottom:8px; }
.featured-heading h3{ font-size:26px; }
.featured-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.featured-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:22px; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.featured-card:hover{ transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow); }
/* Featured contribution links */
.featured-link{ display:block; color:inherit; text-decoration:none;}
.featured-link:hover{ color:inherit;}
.featured-link:focus-visible{ outline:2px solid var(--amber); outline-offset:4px; border-radius:var(--radius);}
.featured-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.featured-org{ font-size:12.5px; font-weight:600; color:var(--text); }
.status{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; padding:4px 10px; border-radius:999px; }
.status-merged{ background: rgba(94,234,212,.14); color: var(--teal); }
.status-active{ background: rgba(255,107,129,.14); color: var(--coral); }
.status-creator{ background: rgba(255,180,84,.14); color: var(--amber); }
.featured-card h4{ font-size:15.5px; margin-bottom:9px; }
.featured-card p{ font-size:13.5px; color: var(--text-faint); margin-bottom:14px; }
.tag{ font-size:11px; font-weight:600; padding:4px 10px; border-radius:999px; background: var(--surface-2); color: var(--text-soft); }

/* =============== PROJECTS =============== */
.projects-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.proj-featured{ grid-column: 1 / -1; display:grid; grid-template-columns: 1fr 1fr; gap:0; }
.proj-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.proj-card:hover{ transform: translateY(-5px); border-color: var(--amber); box-shadow: var(--shadow-lg); }
.proj-screenshot{ position:relative; aspect-ratio: 16/10; background: var(--surface-2); overflow:hidden; }
.proj-featured .proj-screenshot{ aspect-ratio:auto; height:100%; }
.screenshot-placeholder{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color: var(--text-faint); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.screenshot-placeholder i{ font-size:34px; color: var(--border-2); }
.screenshot-placeholder span{ font-size:11.5px; }
.proj-overlay{ position:absolute; inset:0; background: rgba(16,18,28,.72); display:flex; align-items:center; justify-content:center; gap:14px; opacity:0; transition: opacity var(--t); }
.proj-card:hover .proj-overlay{ opacity:1; }
.proj-overlay-btn{ width:46px; height:46px; border-radius:50%; background: var(--amber); color: var(--amber-ink); display:flex; align-items:center; justify-content:center; font-size:18px; transform: translateY(10px); transition: transform var(--t); }
.proj-card:hover .proj-overlay-btn{ transform:none; }
.proj-body{ padding:26px; }
.proj-meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.proj-meta .mono{ color: var(--text-faint); font-size:12px; }
.proj-body h3{ font-size:19px; margin-bottom:10px; }
.proj-body > p{ font-size:14px; color: var(--text-faint); margin-bottom:16px; }
.proj-features{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.proj-features span{ font-size:12px; color:var(--text-soft); display:flex; align-items:center; gap:6px; }
.proj-features i{ color: var(--teal); font-size:10px; }
.proj-card .chip-row{ margin-bottom:18px; }
.projects-footer{ margin-top:44px; text-align:center; }

/* =============== TIMELINE =============== */
.timeline{ position:relative; padding-left:8px; }
.tl-row{ display:grid; grid-template-columns: 92px 1fr; gap:22px; margin-bottom:8px; }
.tl-meta{ display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; }
.tl-meta::after{ content:''; position:absolute; top:22px; bottom:-8px; width:1px; background: var(--border); }
.tl-row:last-child .tl-meta::after{ display:none; }
.tl-meta .mono{ font-size:11.5px; color: var(--text-faint); white-space:nowrap; }
.tl-dot{ width:11px; height:11px; border-radius:50%; background: var(--border-2); border:2px solid var(--ink-2); z-index:2; }
.tl-dot.active{ background: var(--amber); box-shadow: 0 0 0 4px rgba(255,180,84,.18); }
.tl-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:22px; margin-bottom:26px; transition: border-color var(--t), transform var(--t); }
.tl-card:hover{ border-color: var(--amber); transform: translateX(4px); }
.tl-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; gap:10px; flex-wrap:wrap; }
.tl-top h3{ font-size:16.5px; }
.tl-card > p{ font-size:14px; color: var(--text-faint); margin-bottom:14px; }

/* =============== SKILLS =============== */
.skills-cats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; margin-bottom:56px; }
.skill-cat h4{ color: var(--amber); font-size:12.5px; margin-bottom:14px; }
.skill-pills{ display:flex; flex-wrap:wrap; gap:9px; }
.pill{ font-size:12.5px; padding:7px 14px; border-radius:999px; background: var(--surface); border:1px solid var(--border); color: var(--text-soft); }
.pill.strong{ border-color: var(--border-2); color: var(--text); font-weight:600; }
.skills-bars{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:32px; }
.bars-label{ color: var(--amber); font-size:13px; margin-bottom:22px; }
.bar-item{ margin-bottom:20px; }
.bar-item:last-child{ margin-bottom:0; }
.bar-meta{ display:flex; justify-content:space-between; font-size:13.5px; color: var(--text-soft); margin-bottom:8px; }
.bar-track{ height:8px; border-radius:999px; background: var(--surface-2); overflow:hidden; }
.bar-fill{ height:100%; width:0; border-radius:999px; background: var(--grad); transition: width 1.3s var(--ease); }

/* =============== EDUCATION =============== */
.edu-grid{ display:flex; flex-direction:column; gap:16px; }
.edu-card{ display:flex; align-items:center; gap:20px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:22px; transition: border-color var(--t); }
.edu-card:hover{ border-color: var(--amber); }
.edu-icon-box{ width:52px; height:52px; flex:0 0 auto; border-radius:12px; background: var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:20px; color: var(--amber); }
.edu-main{ flex:1; }
.edu-main .mono{ font-size:12px; color: var(--text-faint); }
.edu-main h3{ font-size:17px; margin:4px 0 4px; }
.edu-inst{ font-size:14px; color: var(--text-soft); margin-bottom:3px; }
.edu-note{ font-size:12.5px; color: var(--text-faint); }

/* =============== CERTIFICATIONS =============== */
.certs-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-bottom:40px; }
.cert-card{ display:flex; align-items:center; gap:16px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:18px; transition: border-color var(--t), transform var(--t); }
.cert-card:hover{ border-color: var(--amber); transform: translateY(-3px); }
.cert-logo{ width:46px; height:46px; flex:0 0 auto; border-radius:10px; background: var(--surface-2); display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-weight:700; font-size:13px; color: var(--amber); }
.cert-body{ flex:1; min-width:0; }
.cert-body h4{ font-size:14px; margin-bottom:3px; }
.cert-body p{ font-size:12px; color: var(--text-faint); margin-bottom:3px; }
.cert-body span{ font-size:11px; color: var(--text-faint); }
.cert-btn{ width:36px; height:36px; border-radius:8px; border:1px solid var(--border); background:transparent; color: var(--text-soft); cursor:pointer; flex:0 0 auto; transition: all var(--t-fast); }
.cert-btn:hover{ border-color: var(--amber); color: var(--amber); }
.cert-placeholder{ border-style:dashed; opacity:.7; }
.cert-issuers{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.cert-issuers .mono{ color: var(--text-faint); font-size:12.5px; }
.issuer-logos{ display:flex; gap:12px; flex-wrap:wrap; }
.issuer-logos span{ font-size:12.5px; color: var(--text-faint); padding:6px 14px; border:1px solid var(--border); border-radius:999px; }

/* =============== CONTACT =============== */
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:flex-start; }
.contact-left p{ margin:16px 0 26px; max-width:440px; }
.email-cta{ display:inline-flex; align-items:center; gap:10px; font-size:16px; font-weight:600; color: var(--text); padding-bottom:6px; border-bottom:2px solid var(--amber); margin-bottom:28px; }
.email-cta:hover{ color: var(--amber); }
.contact-links{ display:flex; flex-wrap:wrap; gap:22px; margin-bottom:26px; }
.contact-links a{ display:flex; align-items:center; gap:8px; font-size:14px; color: var(--text-soft); }
.contact-links a:hover{ color: var(--amber); }
.availability-note{ display:flex; align-items:center; gap:10px; font-size:13.5px; color: var(--text-soft); }
.contact-form{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:32px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:11.5px; color: var(--text-faint); margin-bottom:8px; }
.field input, .field textarea{
  width:100%; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:12px 14px; color: var(--text); font-family:var(--f-body); font-size:14px; resize:vertical;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-faint); }
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,180,84,.14); }
.form-note{ text-align:center; margin-top:14px; font-size:11.5px; color: var(--text-faint); }

/* =============== FOOTER =============== */
.footer{ background: var(--ink-2); border-top:1px solid var(--border); padding:56px 0 32px; }
.footer-inner{ max-width: var(--container); margin:0 auto; width:92%; text-align:center; }
.footer-top{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:26px; }
.footer-top .nav-logo{ justify-content:center; }
.footer-tagline{ color: var(--text-faint); font-size:12.5px; }
.footer-socials{ display:flex; justify-content:center; gap:14px; margin-bottom:26px; }
.footer-socials a{ width:40px; height:40px; border-radius:10px; background: var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--text-soft); transition: all var(--t-fast); }
.footer-socials a:hover{ color: var(--amber); border-color: var(--amber); transform: translateY(-3px); }
.footer-bottom{ display:flex; justify-content:center; gap:22px; flex-wrap:wrap; padding-top:22px; border-top:1px solid var(--border); font-size:12px; color: var(--text-faint); }

#topBtn{
  position:fixed; bottom:26px; right:26px; width:46px; height:46px; border-radius:50%;
  background: var(--amber); color: var(--amber-ink); border:none; cursor:pointer; font-size:15px;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow);
  opacity:0; transform: translateY(12px); pointer-events:none; transition: all var(--t); z-index:1500;
}
#topBtn.show{ opacity:1; transform:none; pointer-events:auto; }
#topBtn:hover{ transform: translateY(-3px); }

/* modal */
.modal{ position:fixed; inset:0; background: rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; z-index:4000; opacity:0; pointer-events:none; transition: opacity var(--t); padding:24px; }
.modal.open{ opacity:1; pointer-events:auto; }
.modal-box{ position:relative; width:min(880px,100%); height:min(80vh,700px); background: var(--surface); border-radius: var(--radius); overflow:hidden; }
.modal-box iframe{ width:100%; height:100%; border:none; }
.modal-close{ position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:8px; border:none; background: var(--surface-2); color: var(--text); font-size:20px; cursor:pointer; z-index:2; }

/* tilt helper */
.tilt{ transform-style: preserve-3d; will-change: transform; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1080px){
  .hero-container{ grid-template-columns:1fr; }
  .hero-right{ order:-1; }
  .about-grid, .contact-wrap{ grid-template-columns:1fr; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .org-grid, .featured-grid, .skills-cats{ grid-template-columns: repeat(2,1fr); }
  .projects-cards{ grid-template-columns: repeat(2,1fr); }
  .proj-featured{ grid-column:1/-1; grid-template-columns:1fr; }
  .proj-featured .proj-screenshot{ aspect-ratio:16/9; }
  .certs-grid{ grid-template-columns: repeat(2,1fr); }
  .banner-row, .os-grid{ grid-template-columns:1fr; }
}

@media (max-width: 860px){
  .nav-tabs{ display:none; }
  .hamburger{ display:flex; }
  .nav-resume-btn span{ display:none; }
}

@media (max-width: 640px){
  .section-pad{ padding:80px 0; }
  .hero{ padding-top: calc(var(--nav-h) + 20px); }
  .about-highlights, .org-grid, .featured-grid, .skills-cats, .projects-cards, .certs-grid{ grid-template-columns:1fr; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); gap:12px; }
  .tl-row{ grid-template-columns: 70px 1fr; }
  .contact-form{ padding:22px; }
  .hero-name{ font-size: clamp(38px,12vw,56px); }
}

.featured-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.featured-link:hover{
  color:inherit;
}

.featured-link:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:4px;
  border-radius:var(--radius);
}

.featured-footer{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--amber);
  font-size:13px;
  font-weight:600;
}

.featured-footer i{
  transition:transform .25s ease;
}

.featured-link:hover .featured-footer i{
  transform:translate(4px,-4px);
}

.projects-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.proj-featured{
  grid-column:auto;
  display:block;
}

@media (max-width:1080px){
  .projects-cards{
    grid-template-columns:repeat(2,1fr);
  }

  .proj-featured{
    grid-column:auto;
  }
}

@media (max-width:640px){
  .projects-cards{
    grid-template-columns:1fr;
  }
}