:root{
  --bg:#070A12;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.085);
  --border: rgba(255,255,255,.12);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.70);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  --accent:#7C3AED;
  --accent2:#22D3EE;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 12px 35px rgba(0,0,0,.35);

  --radius: 22px;
}

/* Light theme */
html[data-theme="light"]{
  --bg:#F7F8FC;
  --surface: rgba(0,0,0,.05);
  --surface2: rgba(0,0,0,.07);
  --border: rgba(0,0,0,.12);
  --text:#0A1020;
  --muted: rgba(10,16,32,.65);
  --shadow: 0 18px 60px rgba(0,0,0,.18);
  --shadow-soft: 0 12px 35px rgba(0,0,0,.12);
}

/* Accent switcher */
html[data-accent="violet"]{ --accent:#7C3AED; --accent2:#22D3EE; }
html[data-accent="cyan"]{ --accent:#06B6D4; --accent2:#A78BFA; }
html[data-accent="emerald"]{ --accent:#10B981; --accent2:#60A5FA; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(124,58,237,.14), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(34,211,238,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--sans);
  line-height:1.65;
  letter-spacing: -0.1px;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

.mono{ font-family:var(--mono); }
.subtle{ color:var(--muted); }

section{
  scroll-margin-top: 120px;
}

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  border:1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* background helpers */
.bg-orb{
  position:fixed;
  width:420px;
  height:420px;
  border-radius:50%;
  filter: blur(70px);
  opacity:.35;
  z-index:-2;
}
.orb-1{ top:-140px; left:-160px; background:rgba(124,58,237,.40); }
.orb-2{ bottom:-180px; right:-180px; background:rgba(34,211,238,.30); }

.grid-noise{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .06;
  pointer-events:none;
  z-index:-1;
}

/* Topbar */
.topbar{
  position:sticky;
  top:14px;
  z-index:50;
  margin:14px auto 0;
  border-radius: 999px;
  transition: box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}
.topbar.scrolled{
  box-shadow: 0 18px 60px rgba(0,0,0,.65);
  background: rgba(10,12,20,.72);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
  flex: 0 0 auto;
}
.brand-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 24px rgba(124,58,237,.35);
}
.brand-name{
  font-weight:900;
  letter-spacing:.2px;
  text-transform:lowercase;
}
.brand-role{
  color:var(--muted);
  font-size:.82rem;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display:none; }

.nav a{
  white-space: nowrap;
  color:var(--muted);
  font-size:.92rem;
  padding:8px 10px;
  border-radius:999px;
  transition:all .18s ease;
  border:1px solid transparent;
  flex: 0 0 auto;
}
.nav a:hover{
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}

.topbar-actions{
  display:flex;
  gap:10px;
  min-width:260px;
  justify-content:flex-end;
  align-items:center;
  flex: 0 0 auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-weight:700;
  transition:transform .18s ease, background .18s ease, border .18s ease;
  cursor:pointer;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#071018;
  border: none;
}
.btn-ghost{
  background: rgba(255,255,255,.04);
}
.btn-icon{
  padding: 10px 12px;
}

/* Accent switch dots */
.accent-switch{
  display:flex;
  gap:8px;
  align-items:center;
}
.accent-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
  transition: transform .18s ease;
}
.accent-dot:hover{ transform: translateY(-1px); }
.accent-violet{ background: linear-gradient(135deg, #7C3AED, #22D3EE); }
.accent-cyan{ background: linear-gradient(135deg, #06B6D4, #A78BFA); }
.accent-emerald{ background: linear-gradient(135deg, #10B981, #60A5FA); }

/* Hamburger */
.hamburger{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display:none;
  cursor:pointer;
  position:relative;
}
.hamburger span{
  position:absolute;
  left:12px;
  right:12px;
  height:2px;
  background: rgba(234,240,255,.9);
  border-radius:999px;
}
.hamburger span:nth-child(1){ top:14px; }
.hamburger span:nth-child(2){ top:20px; opacity:.8; }
.hamburger span:nth-child(3){ top:26px; }

/* Mobile Drawer */
.mobile-drawer{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  z-index:60;
}
.mobile-drawer.open{ display:block; }
.mobile-drawer-inner{
  width:min(420px, 92vw);
  margin:18px auto 0;
  padding:16px;
}
.mobile-drawer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}
.drawer-close{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  color:rgba(234,240,255,.85);
}
.mobile-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.mnav{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.85);
}
.mnav:hover{ background: rgba(255,255,255,.06); }
.mobile-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

body.no-scroll{
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Main */
main{ padding:22px 0 70px; }

/* Hero */
.hero{
  margin-top:18px;
  padding:34px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
}
.hero h1{
  font-size:2.55rem;
  line-height:1.12;
  margin:0 0 10px;
  letter-spacing:-0.8px;
}
.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.subtitle{
  color:var(--muted);
  font-weight:700;
  margin-bottom:14px;
}
.positioning-statement{
  border-left:3px solid rgba(124,58,237,.65);
  padding:12px 14px;
  background:rgba(255,255,255,.035);
  border-radius:16px;
  color:rgba(234,240,255,.88);
  margin: 12px 0 14px;
}
.lead{
  margin:0 0 18px;
  color:rgba(234,240,255,.86);
  font-size: 1.02rem;
}
.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.pill{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  padding:8px 10px;
  border-radius:999px;
  font-size:.9rem;
  color:rgba(234,240,255,.84);
}

/* KPI */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:14px 0 16px;
}
.kpi-card{
  padding:14px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
}
.kpi-value{
  font-weight:900;
  font-size:1.1rem;
  margin-bottom:6px;
}
.kpi-label{
  color:rgba(234,240,255,.70);
  font-size:.92rem;
}

.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

/* Hero Right */
.hero-right{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  justify-content:center;
}
.hero-gif{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.hero-card{
  width:100%;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.10);
}
.hero-card-title{
  font-weight:800;
  margin-bottom:10px;
  color:rgba(234,240,255,.9);
}
.hero-card-body{
  color:rgba(234,240,255,.78);
  font-size:.92rem;
}

/* Profile Card */
.profile-card{
  width:100%;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  gap:12px;
}
.hero-photo{
  width:64px;
  height:64px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
}
.profile-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.profile-name{
  font-weight:900;
  letter-spacing:-0.2px;
}
.profile-role{
  color:rgba(234,240,255,.70);
  font-size:.9rem;
}

.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.75);
  margin-bottom:12px;
  width: fit-content;
}
.hero-tag .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(124,58,237,.45);
}

/* Sections */
.section{
  margin-top:18px;
  padding:28px;
}
.section h2{
  margin:0 0 12px;
  font-size:1.6rem;
  letter-spacing:-0.35px;
}
.section p{
  color:rgba(234,240,255,.86);
  max-width: 78ch;
}

/* Grid */
.grid{
  display:grid;
  gap:14px;
}
.grid.two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards */
.card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  background:rgba(255,255,255,.05);
}
.card h3{
  margin:0 0 8px;
  font-size:1.05rem;
}
.card p, .card li{
  color:rgba(234,240,255,.82);
  font-size:.95rem;
}
.card ul{
  margin:10px 0 0;
  padding-left:18px;
}

.hint{
  margin-top:10px;
  color:rgba(234,240,255,.62);
  font-size:.92rem;
}
.hint a{
  color: rgba(34,211,238,.95);
  text-decoration: underline;
}

/* ARCHITECTURE */
.arch-full{
  padding:16px;
  border-radius:18px;
  margin-top:14px;
}
.arch-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom: 12px;
}
.arch-title{
  font-weight: 900;
  font-size: 1.05rem;
}
.arch-sub{
  margin-top: 6px;
}
.arch-pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  font-weight: 800;
  color: rgba(234,240,255,.85);
}
.arch-image-wrap{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
}
.arch-image{
  width:100%;
  height:auto;
  display:block;
}
.arch-foot{
  margin-top: 10px;
}
.arch-explain{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.arch-explain-title{
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}
.arch-explain-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.arch-explain-card{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.arch-explain-head{
  font-weight: 900;
  margin-bottom: 8px;
  color: rgba(234,240,255,.92);
}
.arch-explain-card ul{
  margin: 0;
  padding-left: 18px;
}
.arch-explain-card li{
  margin-bottom: 8px;
  color: rgba(234,240,255,.82);
}

/* EXPERIENCE */
.timeline{
  margin-top: 14px;
}
.timeline-item{
  padding: 18px;
  border-radius: 18px;
}
.timeline-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap: wrap;
}
.timeline-title{
  font-weight: 900;
  font-size: 1.05rem;
}
.timeline-sub{
  margin-top: 6px;
  color: rgba(234,240,255,.70);
}
.timeline-badges{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  font-weight: 800;
  color: rgba(234,240,255,.85);
  font-size: .86rem;
}
.scope-scale{
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.xp-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.xp-block{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 14px;
}
.xp-block summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-bottom: 6px;
}
.xp-block summary::-webkit-details-marker{ display:none; }
.xp-title{
  font-weight: 900;
}
.xp-block[open]{
  background: rgba(255,255,255,.035);
}
.xp-block ul{
  margin: 12px 0 0;
  padding-left: 18px;
}
.xp-block li{
  margin-bottom: 10px;
  line-height: 1.55;
  color: rgba(234,240,255,.82);
}

/* Education */
.edu-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top: 12px;
}
.edu-block{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.edu-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.edu-title{
  font-weight: 900;
  font-size: 1.05rem;
}
.edu-link{
  text-decoration: underline;
}
.edu-sub{
  margin-top: 6px;
  color: rgba(234,240,255,.70);
}
.edu-badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  font-weight: 800;
  color: rgba(234,240,255,.85);
}
.edu-desc{
  margin-top: 10px;
}
.edu-tags{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.tag{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-weight: 800;
  color: rgba(234,240,255,.78);
  font-size: .86rem;
}

/* Certifications */
.cert-grid-v2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.cert-card-v2{
  display:flex;
  gap:14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: transform .18s ease, background .18s ease;
}
.cert-card-v2:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
}
.cert-logo{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.cert-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-body{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.cert-name{
  font-weight: 900;
  font-size: 1.05rem;
}
.cert-desc{
  color: rgba(234,240,255,.75);
}
.cert-meta{
  margin-top: 6px;
}

/* Connect */
.connect-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.connect-card{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease;
}
.connect-card:hover{
  transform: translateY(-2px);
  background:rgba(255,255,255,.05);
}
.connect-title{
  font-weight:900;
  margin-bottom:6px;
}
.connect-value{
  color:rgba(234,240,255,.72);
  font-size:.92rem;
}

/* Footer */
.footer{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:10px;
  padding:20px 0 0;
  color:rgba(234,240,255,.52);
}
.footer .dot{ opacity:.6; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  color: rgba(234,240,255,.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 200;
}
.toast.show{ opacity: 1; }

/* CMDK Modal */
.cmdk-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  z-index: 9999;
}
.cmdk-overlay.open{
  display: grid;
  place-items: center;
}
.cmdk-modal{
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(10,12,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.cmdk-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.cmdk-title{
  font-weight: 900;
  font-size: 1.1rem;
}
.cmdk-sub{
  margin-top: 4px;
}
.cmdk-close{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  color: rgba(234,240,255,.85);
}
.cmdk-input{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.9);
  outline: none;
}
.cmdk-results{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cmdk-item{
  width: 100%;
  text-align:left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.cmdk-item:hover{
  background: rgba(255,255,255,.06);
}
.cmdk-hint{
  opacity: .7;
}
.cmdk-tip{
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .hamburger{ display:inline-flex; }
  .topbar{ border-radius: 22px; }
  .cert-grid-v2{ grid-template-columns: 1fr; }
  .xp-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .hero{
    grid-template-columns: 1fr;
    padding:22px;
  }
  .grid.two{
    grid-template-columns: 1fr;
  }
  .connect-grid{
    grid-template-columns: 1fr;
  }
  .kpi-grid{
    grid-template-columns: 1fr;
  }
}
