:root{
  color-scheme: light dark;
  --bg: #0b0c10;
  --panel: #11131a;
  --text: #e8e8ee;
  --muted: #a8acb8;
  --stroke: rgba(255,255,255,0.12);
  --accent: #7c5cff;

  --bg2: #f6f7fb;
  --panel2: #ffffff;
  --text2: #13151a;
  --muted2: #4e5566;
  --stroke2: rgba(0,0,0,0.12);

  --radius: 16px;
  --max: 1100px;
  --shadow: 0 10px 30px rgba(0,0,0,0.22);
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body[data-theme="light"]{
  background: var(--bg2);
  color: var(--text2);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.skip-link{
  position:absolute; left:-999px; top:10px;
  background: #fff; color:#000; padding:10px 12px; border-radius: 10px;
}
.skip-link:focus{ left: 10px; z-index: 9999; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 80px;
}

.site-header{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--stroke);
  z-index: 50;
}
body[data-theme="light"] .site-header{
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--stroke2);
}

.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand{ display:flex; align-items:center; gap: 10px; }
.brand-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,92,255,0.15);
}
.brand-link{ font-weight: 650; letter-spacing: 0.2px; }

.nav-links{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.nav-links a{ padding: 6px 8px; border-radius: 10px; }
.nav-links a:hover{ background: rgba(255,255,255,0.06); text-decoration:none; }
body[data-theme="light"] .nav-links a:hover{ background: rgba(0,0,0,0.06); }

.hero{ padding: 64px 0 18px; }
.hero-content{
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 6px);
  padding: 34px;
  box-shadow: var(--shadow);
}
body[data-theme="light"] .hero-content{
  background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(0,0,0,0.02));
  border: 1px solid var(--stroke2);
}

.eyebrow{ color: var(--muted); margin: 0 0 10px; font-weight: 600; }
h1{ margin: 0 0 10px; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing:-0.02em; }
.subhead{ margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }

.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }

.btn{
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 650;
  cursor: pointer;
  text-decoration:none !important;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-ghost{
  background: transparent;
}
body[data-theme="light"] .btn{
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,0.04);
}

.hero-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}
.metric{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.20);
}
body[data-theme="light"] .metric{
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,0.70);
}
.metric-value{ font-size: 18px; font-weight: 750; }
.metric-label{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.section{ padding: 56px 0 0; }
.section-head h2{
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing:-0.01em;
}
.section-head p{ margin: 0; color: var(--muted); }

.filters{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 16px;
}
.chip{
  border: 1px solid var(--stroke);
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 650;
}
.chip[aria-pressed="true"]{
  background: rgba(124,92,255,0.20);
  border-color: rgba(124,92,255,0.45);
}
body[data-theme="light"] .chip{ border: 1px solid var(--stroke2); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 14px;
}
.card{

  grid-column: span 6;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 25px rgba(0,0,0,0.14);
}
body[data-theme="light"] .card{
  border: 1px solid var(--stroke2);
  background: var(--panel2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.project-card[data-href] { cursor: pointer; }
.project-card:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

.card h3{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 0 0 12px; color: var(--muted); }

.tags{ display:flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tag{
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}
body[data-theme="light"] .tag{ border: 1px solid var(--stroke2); }

.card-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.muted{ color: var(--muted); }

.footer{
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0px);
}

@media (max-width: 860px){
  .card{ grid-column: span 12; }
  .two-col{ grid-template-columns: 1fr; }
  .hero-metrics{ grid-template-columns: 1fr; }
}

.shot {
  margin: 16px 0 28px;
}

.shot img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shot figcaption {
  margin-top: 8px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.steps-gallery figure { margin: 0 0 18px; }
.steps-gallery img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.steps-gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }



/* ====== Hitesh / Mohit / Binyam-inspired add-ons ====== */
.cmd{
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
}
body[data-theme="light"] .sec-num{ border: 1px solid var(--stroke2); color: var(--muted2); }

.section-head h2{
  display:flex;
  align-items:center;
  gap: 8px;
}

/* KPI strip */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.kpi{
  grid-column: span 4;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 14px 14px 12px;
}
body[data-theme="light"] .kpi{
  border: 1px solid var(--stroke2);
  background: var(--panel2);
}
.kpi .kpi-top{
  display:flex;
  align-items:baseline;
  justify-content: space-between;
  gap: 10px;
}
.kpi .kpi-label{
  font-weight: 750;
  letter-spacing: -0.02em;
}
.kpi .kpi-value{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
body[data-theme="light"] .kpi .kpi-value{ color: var(--text2); }
.kpi .kpi-note{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Capabilities grid */
.cap-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.cap{
  grid-column: span 4;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}
body[data-theme="light"] .cap{
  border: 1px solid var(--stroke2);
  background: var(--panel2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.cap .cap-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
body[data-theme="light"] .cap .cap-pill{ border: 1px solid var(--stroke2); }
.cap h3{ margin: 0 0 6px; }
.cap p{ margin: 0 0 10px; color: var(--muted); }
.cap ul{ margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.cap .chips{ display:flex; flex-wrap:wrap; gap: 6px; }

/* Skills tree */
.skills-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.skill-group{
  grid-column: span 6;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.03);
}
body[data-theme="light"] .skill-group{ border: 1px solid var(--stroke2); background: var(--panel2); }
.skill-group h3{ margin: 0 0 10px; }
.skill{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
body[data-theme="light"] .skill{ border-top: 1px solid rgba(0,0,0,0.06); }
.skill:first-of-type{ border-top: none; }
.skill .skill-name{ font-weight: 650; }
.skill .skill-level{ color: var(--muted); font-size: 12px; }
.bar{
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}
body[data-theme="light"] .bar{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
}
.bar > span{
  display:block;
  height: 100%;
  width: 0%;
  background: rgba(124,92,255,0.55);
}

/* Experience timeline */
.timeline{
  display:grid;
  gap: 12px;
}
.timeline-item{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.03);
}
body[data-theme="light"] .timeline-item{
  border: 1px solid var(--stroke2);
  background: var(--panel2);
}
.timeline-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline-title{ margin: 0; font-size: 18px; }
.timeline-meta{ color: var(--muted); font-size: 13px; }
.tools-line{ margin-top: 10px; display:flex; flex-wrap:wrap; gap: 6px; }

/* Certifications */
.cert-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.cert{
  grid-column: span 4;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.03);
}
body[data-theme="light"] .cert{ border: 1px solid var(--stroke2); background: var(--panel2); }
.cert .cert-top{ display:flex; align-items:flex-start; justify-content: space-between; gap: 10px; }
.cert .cert-name{ margin: 0; font-size: 16px; }
.cert .cert-meta{ color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Health panel */
.health-panel{
  margin-top: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.18);
}
body[data-theme="light"] .health-panel{
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,0.04);
}
.health-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
body[data-theme="light"] .health-row{ border-top: 1px solid rgba(0,0,0,0.06); }
.health-row:first-child{ border-top: none; }
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
body[data-theme="light"] .badge{ border: 1px solid var(--stroke2); color: var(--muted2); }
.badge.ok{ border-color: rgba(46, 204, 113, 0.55); }
.badge.warn{ border-color: rgba(241, 196, 15, 0.55); }
.badge.off{ border-color: rgba(231, 76, 60, 0.55); }

/* Modal (Herve-style “Details”) */
.modal{ position: fixed; inset: 0; display:none; z-index: 999; }
.modal[aria-hidden="false"]{ display:block; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.62); }
.modal-card{
  position: relative;
  max-width: 860px;
  margin: 7vh auto;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}
body[data-theme="light"] .modal-card{
  border: 1px solid var(--stroke2);
  background: var(--panel2);
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body[data-theme="light"] .modal-head{ border-bottom: 1px solid rgba(0,0,0,0.08); }
.modal-body{ padding-top: 12px; color: var(--muted); }
.modal-body h4{ margin: 0 0 8px; color: inherit; }
.modal-body ul{ margin: 0 0 14px; padding-left: 18px; }
.modal-body .tags{ margin-top: 8px; }

@media (max-width: 980px){
  .kpi{ grid-column: span 6; }
  .cap{ grid-column: span 6; }
  .cert{ grid-column: span 6; }
}
@media (max-width: 620px){
  .kpi{ grid-column: span 12; }
  .cap{ grid-column: span 12; }
  .cert{ grid-column: span 12; }
  .skill-group{ grid-column: span 12; }
  .modal-card{ margin: 4vh 14px; }
}


/* ===== Requested adjustments ===== */
.site-header.is-sticky{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* About keyword highlights */
.hl{
  display: inline-block;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 700;
}
body[data-theme="light"] .hl{
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,0.04);
  color: var(--text2);
}

/* Social buttons with icons */
.btn-icon{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-icon svg{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.hero-actions{ flex-wrap: wrap; }
.hero-keywords{
  margin-top: 16px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-badges{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note{
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
body[data-theme="light"] .note{ border: 1px solid var(--stroke2); background: var(--panel2); color: var(--muted2); }

/* Blog cards */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.blog-card{
  grid-column: span 4;
  cursor: pointer;
}
.blog-card .blog-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.blog-card .blog-date{
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.blog-card h3{ margin: 0 0 8px; }
.blog-card p{ margin: 0 0 10px; color: var(--muted); }
@media (max-width: 980px){
  .blog-card{ grid-column: span 6; }
}
@media (max-width: 620px){
  .blog-card{ grid-column: span 12; }
}
