/* ============================================================
   DESIGN TOKENS — Dark Mode (default)
   ============================================================ */
:root {
  --bg:       #080810;
  --bg2:      #0e0e1a;
  --bg3:      #141422;
  --bg4:      #1c1c2e;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --text1:    #f0f0ff;
  --text2:    rgba(240,240,255,0.75);
  --text3:    rgba(240,240,255,0.45);
  --accent:   #7c6fff;
  --accent2:  #a78bfa;
  --ar:       124,111,255;
  --green:    #34d399;
  --card:     rgba(255,255,255,0.03);
  --shadow:   0 24px 56px rgba(0,0,0,0.55);
  --nav-bg:   rgba(8,8,16,0.90);
  --code-bg:  rgba(124,111,255,0.07);
}

/* ============================================================
   LIGHT MODE — highly readable, strong contrast
   ============================================================ */
[data-theme="light"] {
  --bg:       #f5f5fa;
  --bg2:      #ededf5;
  --bg3:      #e3e3ef;
  --bg4:      #d6d6e8;
  --border:   rgba(80,70,160,0.12);
  --border2:  rgba(80,70,160,0.22);
  --text1:    #0d0d1f;           /* near-black — max contrast */
  --text2:    #2a2a4a;           /* very dark indigo — fully readable */
  --text3:    #5a5a80;           /* mid tone — labels, meta */
  --accent:   #5b4fe8;           /* deeper purple — passes WCAG AA on white */
  --accent2:  #7c6fff;
  --ar:       91,79,232;
  --green:    #059669;
  --card:     rgba(255,255,255,0.70);
  --shadow:   0 16px 40px rgba(80,70,160,0.12);
  --nav-bg:   rgba(245,245,250,0.95);
  --code-bg:  rgba(91,79,232,0.08);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
}
::selection { background: rgba(var(--ar),.22); color: var(--text1); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 9px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900; height: 66px; transition: all .35s;
}
.nav.solid {
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 40px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  box-shadow: 0 4px 16px rgba(var(--ar),.38); letter-spacing: -.5px;
}
.logo-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 19px; letter-spacing: -.5px;
  color: var(--text1);
}
.logo-name em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: all .2s; position: relative;
}
.nav-links a:hover { color: var(--text1); background: var(--card); }
.nav-links a.active { color: var(--accent); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent);
}
.nav-r { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border2); background: var(--card);
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s;
}
.theme-btn:hover { color: var(--text1); border-color: var(--accent); }
.hire-btn {
  padding: 9px 22px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; border: none;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 14px rgba(var(--ar),.3); letter-spacing: .01em;
}
.hire-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--ar),.42); }
.mob-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border2); background: var(--card);
  cursor: pointer; align-items: center; justify-content: center;
}
.mob-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text2); border-radius: 2px; transition: all .3s;
}
.mob-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border2);
  padding: 14px 24px 18px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: all .28s; z-index: 899;
}
.mob-menu.open { opacity: 1; pointer-events: all; transform: none; }
.mob-menu a {
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--text2); transition: all .15s;
}
.mob-menu a:hover, .mob-menu a.active {
  color: var(--accent); background: rgba(var(--ar),.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 88px 5% 60px;
}
.hero-bg { position: absolute; inset: 0; background: var(--bg); overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 15% 50%, rgba(var(--ar),.11) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 25%, rgba(52,211,153,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 65% 80%, rgba(var(--ar),.07) 0%, transparent 60%);
  animation: meshMove 14s ease-in-out infinite alternate;
}
@keyframes meshMove {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.04) translate(-1%,2%); }
  100% { transform: scale(1.02) translate(1%,-1%); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}
.hero-wrap {
  position: relative; z-index: 1; max-width: 1240px;
  margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 26px; }

/* badge */
.h-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px; border-radius: 99px;
  border: 1px solid var(--border2); background: var(--card);
  width: fit-content; animation: fadeUp .6s ease both;
}
.h-badge-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(var(--ar),.12);
  display: flex; align-items: center; justify-content: center;
}
.h-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  50%       { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
}
.h-badge-txt {
  font-size: 12.5px; font-weight: 600; color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
}

/* name */
.h-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 800; line-height: 1.06; letter-spacing: -2px;
  color: var(--text1); animation: fadeUp .6s .1s ease both;
}
.h-name .n1 {
  display: block; color: var(--text3);
  font-size: .52em; font-weight: 600; letter-spacing: -1px; margin-bottom: 4px;
}
.h-name .n2 { display: block; }
.h-name .nh { color: var(--accent); }

/* role */
.h-role {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 600; color: var(--text2); letter-spacing: -.4px;
  min-height: 1.4em; display: flex; align-items: center;
  animation: fadeUp .6s .2s ease both;
}
.h-prefix { white-space: nowrap; margin-right: 9px; }
.typed { color: var(--text1); font-weight: 700; }
.cursor {
  display: inline-block; width: 2.5px; height: 1.1em;
  background: var(--accent); margin-left: 3px; border-radius: 2px;
  animation: blink 1s step-end infinite; vertical-align: text-bottom;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.h-desc {
  font-size: 16px; line-height: 1.8; color: var(--text2);
  max-width: 460px; animation: fadeUp .6s .3s ease both;
}
.h-desc strong { color: var(--text1); font-weight: 700; }

.h-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .6s .4s ease both;
}
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 11px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; border: none;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 20px rgba(var(--ar),.32);
  font-family: 'Outfit', sans-serif;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(var(--ar),.45); }
.btn-s {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 11px;
  background: transparent; color: var(--text1);
  font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--border2);
  cursor: pointer; transition: all .25s; font-family: 'Outfit', sans-serif;
}
.btn-s:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.h-socials { display: flex; gap: 10px; animation: fadeUp .6s .5s ease both; }
.soc {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border2); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: all .2s; cursor: pointer;
}
.soc:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-3px); background: rgba(var(--ar),.07);
}
.soc svg { width: 18px; height: 18px; fill: currentColor; }

/* hero right card */
.hero-right {
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp .7s .3s ease both; position: relative;
}
.h-card {
  width: 340px; max-width: 100%; border-radius: 22px;
  overflow: hidden; border: 1px solid var(--border2);
  background: var(--bg2); box-shadow: var(--shadow);
}
.hcard-bar {
  padding: 14px 18px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.hcard-dot { width: 11px; height: 11px; border-radius: 50%; }
.hcard-url {
  margin-left: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text3);
}
.hcard-avatar {
  background: linear-gradient(145deg, var(--bg3), var(--bg4));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; padding: 36px 20px 28px;
}
.av-circle {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--ar),.22), rgba(52,211,153,.13));
  border: 2px solid rgba(var(--ar),.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; box-shadow: 0 0 40px rgba(var(--ar),.14);
}
.profile-pic-small {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(var(--ar),.28);
}
.av-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text2);
  text-align: left; line-height: 1.7;
  padding: 12px 16px; border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border2); width: 100%;
}
.av-code .kw  { color: var(--accent); font-weight: 600; }
.av-code .str { color: var(--green); }
.av-code .prop{ color: var(--accent2); }

.hcard-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--border); gap: 1px;
}
.hcard-stat { background: var(--bg2); padding: 13px 10px; text-align: center; }
.hcs-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--text1);
}
.hcs-lbl { font-size: 10.5px; color: var(--text3); margin-top: 2px; }
.hcard-foot { padding: 14px 18px; border-top: 1px solid var(--border); }
.hcf-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text1);
}
.hcf-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px; font-family: 'JetBrains Mono', monospace;
  background: rgba(var(--ar),.12); color: var(--accent);
  border: 1px solid rgba(var(--ar),.22); font-weight: 600;
}
.hcf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.ftag {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 10px;
  font-size: 12px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border2);
  background: var(--bg2); box-shadow: 0 8px 24px rgba(0,0,0,.22);
  color: var(--text2); white-space: nowrap;
}
.ftag1 { top: 24px; right: -24px; animation: flt 4s ease-in-out infinite; }
.ftag2 { bottom: 24px; left: -24px; animation: flt 4s ease-in-out infinite; animation-delay: 2s; }
@keyframes flt {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.ftag-icon.accent { color: var(--accent); }
.ftag-icon.green  { color: var(--green); }

.scroll-ind {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text3); font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer; animation: fadeIn 1s 1.6s ease both;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: lineAnim 1.6s ease-in-out infinite;
}
@keyframes lineAnim {
  0%, 100% { opacity: .3; transform: scaleY(.5); }
  50%       { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
section { padding: 108px 5%; position: relative; }
.swrap { max-width: 1240px; margin: 0 auto; }
.alt { background: var(--bg2); }

.sec-hdr { margin-bottom: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eline { width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.etxt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase;
}
.stitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800; color: var(--text1); letter-spacing: -1.5px; line-height: 1.1;
}
.stitle span { color: var(--accent); }
.ssub { font-size: 16px; line-height: 1.8; color: var(--text2); margin-top: 14px; max-width: 540px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.rv  { opacity: 0; transform: translateY(28px);  transition: opacity .65s ease, transform .65s ease; }
.rvl { opacity: 0; transform: translateX(-28px); transition: opacity .65s ease, transform .65s ease; }
.rvr { opacity: 0; transform: translateX(28px);  transition: opacity .65s ease, transform .65s ease; }
.rv.v, .rvl.v, .rvr.v { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; } .d6 { transition-delay: .6s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: center; }
.av-wrap { position: relative; max-width: 320px; }
.av-card {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border2); background: var(--bg3);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
}
.av-inner {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--bg3), var(--bg4));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.av-emoji { font-size: 80px; }
.av-ntag {
  padding: 6px 16px; border-radius: 8px;
  background: rgba(var(--ar),.12); border: 1px solid rgba(var(--ar),.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--accent); font-weight: 600;
}
.av-frame {
  position: absolute; top: -10px; right: -10px; bottom: 10px; left: 10px;
  border-radius: 22px; border: 2px solid rgba(var(--ar),.18); z-index: -1;
}
.av-exp {
  position: absolute; bottom: -16px; right: -16px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--accent); color: #fff; text-align: center;
  box-shadow: 0 8px 24px rgba(var(--ar),.38);
}
.exp-n { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 800; }
.exp-l { font-size: 11px; font-weight: 600; opacity: .9; margin-top: 2px; }
.about-body { display: flex; flex-direction: column; gap: 24px; }
.about-p { font-size: 16px; line-height: 1.85; color: var(--text2); }
.about-p strong { color: var(--text1); font-weight: 700; }
.hi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hi {
  padding: 18px; border-radius: 14px;
  border: 1px solid var(--border2); background: var(--card); transition: all .3s;
}
.hi:hover { border-color: rgba(var(--ar),.35); transform: translateY(-2px); }
.hi-ic { font-size: 20px; margin-bottom: 8px; }
.hi-v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--text1);
}
.hi-l { font-size: 12.5px; color: var(--text3); margin-top: 3px; font-weight: 500; }

/* ============================================================
   SKILLS
   ============================================================ */
.sk-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.sk-col-t {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text1);
  margin-bottom: 26px; display: flex; align-items: center; gap: 10px;
}
.sk-col-t::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.sk-item { margin-bottom: 20px; }
.sk-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.sk-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text2); }
.sk-pct { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text3); font-weight: 500; }
.sk-bar { height: 5px; border-radius: 99px; background: var(--bg4); overflow: hidden; }
.sk-fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.5s cubic-bezier(.16,1,.3,1); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 7px 14px; border-radius: 9px;
  border: 1px solid var(--border2); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--text2);
  font-family: 'JetBrains Mono', monospace; transition: all .2s; cursor: default;
}
.chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); background: rgba(var(--ar),.07);
}
.soft-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.soft-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(var(--ar),.12); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.soft-inf { flex: 1; }
.soft-n { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.soft-bar { height: 4px; border-radius: 99px; background: var(--bg4); overflow: hidden; }
.soft-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0; transition: width 1.5s cubic-bezier(.16,1,.3,1);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.pg { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pc {
  border-radius: 20px; border: 1px solid var(--border2);
  background: var(--bg2); overflow: hidden; cursor: pointer;
  transition: all .3s; display: flex; flex-direction: column;
}
.pc:hover {
  transform: translateY(-7px);
  border-color: rgba(var(--ar),.35);
  box-shadow: 0 24px 48px rgba(0,0,0,.2), 0 0 0 1px rgba(var(--ar),.12);
}
.pc-bar { height: 3px; width: 100%; }
.pc-vis {
  padding: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; min-height: 180px;
  background-size: cover; background-position: center;
}
.pc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.5));
  border-radius: 20px 20px 0 0;
}
.pc-cat {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.pc-body { padding: 18px; padding-top: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text1); transition: color .2s;
}
.pc:hover .pc-title { color: var(--accent); }
.pc-desc { font-size: 13px; line-height: 1.65; color: var(--text3); font-weight: 500; }
.pc-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.stag {
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  background: var(--bg4); color: var(--text3);
  border: 1px solid var(--border); font-weight: 500;
}
.pc-foot {
  padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px;
}
.pbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 7px;
  font-size: 12.5px; font-weight: 700; transition: all .2s;
  font-family: 'Outfit', sans-serif; border: none; cursor: pointer;
}
.pbtn-p { background: var(--accent); color: #fff; }
.pbtn-p:hover { background: var(--accent2); transform: translateY(-1px); }
.pbtn-g { background: var(--bg4); color: var(--text2); border: 1px solid var(--border2); }
.pbtn-g:hover { color: var(--text1); transform: translateY(-1px); }

/* ============================================================
   GITHUB
   ============================================================ */
.gh-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 32px; }
.gh-c {
  padding: 22px; border-radius: 16px;
  border: 1px solid var(--border2); background: var(--card);
  text-align: center; transition: all .3s;
}
.gh-c:hover { border-color: rgba(var(--ar),.35); transform: translateY(-3px); }
.gh-ic { font-size: 22px; margin-bottom: 10px; }
.gh-v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px; font-weight: 800; color: var(--text1);
}
.gh-l { font-size: 12px; color: var(--text3); margin-top: 3px; font-weight: 500; }
.gh-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.gh-img, .gh-contrib {
  padding: 18px; border-radius: 16px;
  border: 1px solid var(--border2); background: var(--card);
}
.gh-iml {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 13px; font-weight: 600;
}
.gh-img img, .gh-contrib img { width: 100%; border-radius: 7px; }

/* =======================================================
   CONTACT
   ============================================================ */
.ct-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.ct-intro { font-size: 16px; line-height: 1.85; color: var(--text2); margin-bottom: 28px; }
.ct-links { display: flex; flex-direction: column; gap: 14px; }
.ct-link {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: 13px;
  border: 1px solid var(--border2); background: var(--card); transition: all .25s;
}
.ct-link:hover {
  border-color: rgba(var(--ar),.35); transform: translateX(4px);
  background: rgba(var(--ar),.05);
}
.ct-ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(var(--ar),.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: .2s;
}
.ct-link:hover .ct-ic { background: rgba(var(--ar),.2); }
.ct-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--text3); margin-bottom: 3px; font-weight: 600;
}
.ct-val { font-size: 14px; font-weight: 600; color: var(--text2); }

/* Form */
.cform { display: flex; flex-direction: column; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.flbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text3);
}
.finp, .ftxt {
  padding: 13px 15px; border-radius: 11px;
  border: 1.5px solid var(--border2); background: var(--card);
  color: var(--text1); font-size: 14.5px;
  font-family: 'Outfit', sans-serif; outline: none;
  transition: all .2s; resize: none;
}
.finp::placeholder, .ftxt::placeholder { color: var(--text3); }
.finp:focus, .ftxt:focus {
  border-color: var(--accent); background: rgba(var(--ar),.05);
  box-shadow: 0 0 0 3px rgba(var(--ar),.12);
}
.finp.err, .ftxt.err { border-color: #f87171; background: rgba(248,113,113,.06); }
.ferr { font-size: 12px; color: #ef4444; display: none; align-items: center; gap: 4px; font-weight: 600; }
.ferr.show { display: flex; }
.fsub {
  padding: 14px; border-radius: 11px; border: none; cursor: pointer; width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 15px; font-weight: 700;
  font-family: 'Outfit', sans-serif; transition: all .25s; letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(var(--ar),.28);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.fsub:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(var(--ar),.4); }
.fsub:disabled { opacity: .55; cursor: not-allowed; }
.fsub.ok { background: linear-gradient(135deg,#059669,#34d399); box-shadow: 0 6px 20px rgba(5,150,105,.28); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border2);
  padding: 56px 5% 28px;
}
.ft-in { max-width: 1240px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.ft-desc { font-size: 14px; line-height: 1.8; color: var(--text3); margin-top: 13px; max-width: 260px; }
.ft-ct { font-size: 13px; font-weight: 700; color: var(--text1); margin-bottom: 14px; }
.ft-links { display: flex; flex-direction: column; gap: 9px; }
.ft-links a { font-size: 14px; color: var(--text3); transition: color .2s; font-weight: 500; }
.ft-links a:hover { color: var(--accent); }
.ft-socs { display: flex; gap: 9px; margin-top: 2px; }
.ft-div { height: 1px; background: var(--border2); margin-bottom: 22px; }
.ft-bot { display: flex; align-items: center; justify-content: space-between; }
.ft-cp { font-size: 13px; color: var(--text3); font-weight: 500; }
.ft-cp span { color: var(--accent); font-weight: 700; }
.btop {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 9px;
  border: 1px solid var(--border2); background: var(--card);
  color: var(--text3); font-size: 13px; cursor: pointer;
  transition: all .2s; font-family: 'Outfit', sans-serif; font-weight: 600;
}
.btop:hover { color: var(--accent); border-color: rgba(var(--ar),.4); transform: translateY(-2px); }

/* ============================================================
   CMD PALETTE
   ============================================================ */
.cmd-trig {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 11px;
  border: 1px solid var(--border2); background: var(--nav-bg);
  backdrop-filter: blur(16px); color: var(--text3);
  font-size: 12.5px; font-family: 'JetBrains Mono', monospace;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.cmd-trig:hover { color: var(--text1); border-color: var(--accent); }
.cmd-kbd {
  padding: 2px 7px; border-radius: 4px; font-size: 11px;
  background: var(--bg4); color: var(--text3); border: 1px solid var(--border2);
}
.cmd-ov {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.65); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 96px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cmd-ov.open { opacity: 1; pointer-events: all; }
.cmd-panel {
  width: 100%; max-width: 560px; border-radius: 18px;
  border: 1px solid var(--border2); background: var(--bg2);
  overflow: hidden;
  transform: scale(.96) translateY(-12px);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.cmd-ov.open .cmd-panel { transform: scale(1) translateY(0); }
.cmd-sr {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 17px; border-bottom: 1px solid var(--border2);
}
.cmd-in {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 15px; font-family: 'Outfit', sans-serif; color: var(--text1); font-weight: 500;
}
.cmd-in::placeholder { color: var(--text3); }
.cmd-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 17px; line-height: 1; transition: color .2s;
}
.cmd-close-btn:hover { color: var(--text1); }
.cmd-list { max-height: 360px; overflow-y: auto; padding: 8px 0; }
.cmd-glbl {
  padding: 9px 17px 5px;
  font-size: 10.5px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text3); font-weight: 600;
}
.cmd-it {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 17px; cursor: pointer; transition: all .12s;
  border-left: 2px solid transparent;
}
.cmd-it:hover, .cmd-it.sel {
  background: rgba(var(--ar),.08); border-left-color: var(--accent);
}
.cmd-it-ic { font-size: 15px; width: 20px; text-align: center; }
.cmd-it-l { flex: 1; font-size: 14px; font-family: 'Outfit', sans-serif; color: var(--text2); font-weight: 500; }
.cmd-it:hover .cmd-it-l, .cmd-it.sel .cmd-it-l { color: var(--accent); font-weight: 600; }
.cmd-it-h { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text3); }
.cmd-ft {
  display: flex; gap: 18px; padding: 11px 17px;
  border-top: 1px solid var(--border2);
  font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text3);
}

/* ============================================================
   MODAL
   ============================================================ */
.m-ov {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.72); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.m-ov.open { opacity: 1; pointer-events: all; }
.modal {
  width: 100%; max-width: 660px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px; border: 1px solid var(--border2);
  background: var(--bg2); box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transform: scale(.95) translateY(16px);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.m-ov.open .modal { transform: scale(1) translateY(0); }
.m-top { height: 3px; border-radius: 22px 22px 0 0; }
.m-hdr { padding: 22px 22px 0; position: relative; }
.m-close {
  position: absolute; top: 14px; right: 14px;
  width: 31px; height: 31px; border-radius: 8px;
  border: 1px solid var(--border2); background: var(--bg4);
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .2s;
}
.m-close:hover { color: var(--text1); border-color: var(--accent); }
.m-hw { display: flex; align-items: center; gap: 13px; margin-bottom: 4px; }
.m-em { font-size: 38px; }
.m-ti {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 23px; font-weight: 800; color: var(--text1);
}
.m-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text3); margin-top: 4px; font-weight: 500;
}
.m-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.m-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 7px; font-weight: 600;
}
.m-desc { font-size: 14px; line-height: 1.75; color: var(--text2); }
.m-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.m-box {
  padding: 15px; border-radius: 12px;
  background: var(--bg3); border: 1px solid var(--border2);
}
.m-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-feat { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text2); font-weight: 500; }
.m-ck {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(var(--ar),.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 10px; flex-shrink: 0; font-weight: 700;
}
.m-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.m-chip {
  padding: 4px 11px; border-radius: 7px;
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text3); font-weight: 500;
}
.m-acts { display: flex; gap: 9px; flex-wrap: wrap; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp  { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

/* ============================================================
   LIGHT MODE OVERRIDES — extra boost for readability
   ============================================================ */
[data-theme="light"] .av-code {
  background: rgba(91,79,232,0.06);
  border-color: rgba(91,79,232,0.18);
  color: #2a2a4a;
}
[data-theme="light"] .h-name .n1 { color: #5a5a80; }
[data-theme="light"] .pc-desc { color: #4a4a72; }
[data-theme="light"] .stag { background: #e3e3ef; color: #4a4a72; border-color: rgba(80,70,160,.15); }
[data-theme="light"] .m-chip { background: #e3e3ef; color: #4a4a72; border-color: rgba(80,70,160,.15); }
[data-theme="light"] .chip { color: #2a2a4a; background: rgba(255,255,255,.8); }
[data-theme="light"] .gh-iml { color: #5a5a80; }
[data-theme="light"] .gh-l  { color: #5a5a80; }
[data-theme="light"] .hcs-lbl { color: #5a5a80; }
[data-theme="light"] .exp-l { opacity: 1; }
[data-theme="light"] .finp,
[data-theme="light"] .ftxt {
  background: #fff;
  border-color: rgba(80,70,160,.25);
  color: #0d0d1f;
}
[data-theme="light"] .finp::placeholder,
[data-theme="light"] .ftxt::placeholder { color: #8888a8; }
[data-theme="light"] .cmd-panel { background: #f0f0f8; }
[data-theme="light"] .modal    { background: #f0f0f8; }
[data-theme="light"] .m-box    { background: #e3e3ef; }
[data-theme="light"] .pbtn-g   { background: #d6d6e8; color: #2a2a4a; border-color: rgba(80,70,160,.2); }
[data-theme="light"] .pc-cat   { background: #d6d6e8; color: #4a4a72; border-color: rgba(80,70,160,.18); }
[data-theme="light"] .hcard-url { color: #5a5a80; }
[data-theme="light"] .cmd-ft  { color: #5a5a80; }
[data-theme="light"] .cmd-glbl { color: #5a5a80; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero-left  { align-items: center; }
  .h-badge    { margin: 0 auto; }
  .h-desc     { text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .av-wrap    { margin: 0 auto; }
  .sk-wrap    { grid-template-columns: 1fr; }
  .pg         { grid-template-columns: 1fr 1fr; }
  .gh-cards   { grid-template-columns: 1fr 1fr; }
  .ct-grid    { grid-template-columns: 1fr; }
  .ft-top     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .hire-btn { display: none; }
  .mob-toggle { display: flex; }
  .mob-menu   { display: block; }
  .nav-inner  { padding: 0 20px; }
  section     { padding: 80px 5%; }
  .pg         { grid-template-columns: 1fr; }
  .gh-imgs    { grid-template-columns: 1fr; }
  .frow       { grid-template-columns: 1fr; }
  .ft-top     { grid-template-columns: 1fr; }
  .ft-bot     { flex-direction: column; gap: 14px; text-align: center; }
  .m-2        { grid-template-columns: 1fr; }
  .m-feats    { grid-template-columns: 1fr; }
  .hi-grid    { grid-template-columns: 1fr 1fr; }
}