@import url('theme-apple.css');
/* THEME: to switch, change above to theme-indigo.css */

/* ═══════════════════════════════════════════════════════════════
   PRAMESH KOIRALA — Portfolio CSS
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   BASE RESET & TYPOGRAPHY
   ══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.icon {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24;
  font-size: 20px; line-height: 1;
  display: inline-block; user-select: none; vertical-align: middle;
}
.icon-o  { font-variation-settings: 'FILL' 0,'wght' 300,'GRAD' 0,'opsz' 24; }
.icon-sm { font-size: 17px; }
.icon-xs { font-size: 14px; }

/* ══ TOP NAV ══ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
  z-index: 400;
  transition: box-shadow .2s;
}
.topnav.scrolled { box-shadow: var(--shadow-nav); }

.nav-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-av {
  width: 32px; height: 32px; border-radius: var(--radius-avatar);
  object-fit: cover; border: 2px solid var(--brand-border);
  background: var(--bg-secondary); display: block; flex-shrink: 0;
}
.nav-brand-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); letter-spacing: var(--letter-spacing-tight); }
.nav-brand-role { font-size: 10px; color: var(--text-muted); font-weight: 400; line-height: 1; margin-top: 1px; }

.nav-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; flex-shrink: 0; }

.nav-search { position: relative; }
.nav-search input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 13px 5px 30px;
  font-size: 12px; font-family: var(--font-body);
  outline: none; width: 160px;
  transition: border-color .15s, width .25s, background .15s;
  color: var(--text-primary);
}
.nav-search input:focus { border-color: var(--brand); width: 200px; background: var(--card); }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search .si { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-muted); pointer-events: none; }

.nav-icobtn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); transition: all .15s;
}
.nav-icobtn:hover { background: var(--card); color: var(--brand); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; background: var(--brand); color: var(--brand-text);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, opacity .15s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--brand-dk); }
.nav-cta .icon { font-size: 14px; }

.nav-ham {
  display: none; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-secondary);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; flex-shrink: 0;
}
.nav-ham span { display: block; width: 16px; height: 1.5px; background: var(--text-primary); border-radius: 99px; transition: all .22s; }
.nav-ham.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  bottom: 0;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 10px 14px 32px; z-index: 390;
  flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary); transition: all .15s;
  text-decoration: none;
}
.nav-drawer a .icon { font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
.nav-drawer a:hover,
.nav-drawer a.active { background: var(--bg-secondary); color: var(--text-primary); }
.nav-drawer a:hover .icon,
.nav-drawer a.active .icon { color: var(--brand); }
.nav-drawer a.active { font-weight: 500; }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; flex-shrink: 0; }
.drawer-live-badge {
  font-size: 9px; font-weight: 600;
  background: rgba(52,199,89,.15); color: #1a7a32;
  border: 1px solid rgba(52,199,89,.3);
  padding: 1px 6px; border-radius: 99px; margin-left: 4px; letter-spacing: .04em;
}

.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 380; }
.overlay.open { display: block; }

/* ══ NAV SPECIAL BUTTONS ══ */
.nav-map-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: rgba(52,199,89,.1); border: 1px solid rgba(52,199,89,.28);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: #1a7a32; white-space: nowrap; flex-shrink: 0; transition: all .15s;
}
.nav-map-btn:hover { background: rgba(52,199,89,.18); }
.nav-map-btn .icon { font-size: 15px; color: #1a7a32; }

.nav-forex-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: rgba(255,149,0,.1); border: 1px solid rgba(255,149,0,.3);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: #a05200; white-space: nowrap; flex-shrink: 0; transition: all .15s;
}
.nav-forex-btn:hover { background: rgba(255,149,0,.18); }
.nav-forex-btn .icon { font-size: 15px; color: #a05200; }

.nav-map-active {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(52,199,89,.12); border: 1px solid rgba(52,199,89,.3);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: #1a7a32; white-space: nowrap; flex-shrink: 0;
}
.nav-map-active .icon { font-size: 15px; }

.nav-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: var(--brand); transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.nav-back-btn:hover { background: var(--brand-lt); border-color: var(--brand); }
.nav-back-btn .icon { font-size: 15px; }

.nav-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34c759; animation: live-pulse 1.8s ease-in-out infinite; flex-shrink: 0;
}
@keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* ══ GLOBAL PAGE HERO ══ */
.page-hero {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -60px; left: 30%;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.04) 0%, transparent 65%);
  pointer-events: none;
}
/* Badge */
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-lt); border: 1px solid var(--brand-border);
  border-radius: 99px; padding: 3px 10px;
  font-size: 10px; font-weight: 600; color: var(--brand);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
/* Title & subtitle */
.page-hero-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700; color: var(--text-primary);
  line-height: 1.1; margin-bottom: 6px; letter-spacing: -.5px;
}
.page-hero-sub { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.page-hero-sub a { color: var(--brand); font-weight: 500; }
/* Stats divider row */
.page-hero-stats {
  width: 100%; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid; gap: 0;
}
.page-hero-stat { padding: 0 20px 0 0; border-right: 1px solid var(--border); margin-right: 20px; }
.page-hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.page-hero-stat-val { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -.2px; line-height: 1.3; margin-bottom: 3px; }
.page-hero-stat-lbl { font-size: 9.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ══ 3-COLUMN LAYOUT ══ */
.main { padding-top: var(--nav-h); min-height: 100vh; }

.cols-wrap {
  display: grid;
  grid-template-columns: var(--col-l) 1fr var(--col-r);
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.col {
  padding: 18px 16px 32px;
  overflow-y: auto;
  height: calc(100vh - var(--nav-h));
  position: sticky; top: var(--nav-h);
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.col::-webkit-scrollbar { width: 4px; }
.col::-webkit-scrollbar-track { background: transparent; }
.col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.col-left  { background: var(--bg); border-right: 1px solid var(--border); }
.col-mid   { background: var(--bg); border-right: 1px solid var(--border); }
.col-right { background: var(--bg); }

/* ══ CARDS ══ */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 18px; border: 1px solid var(--border);
  flex-shrink: 0;
  transition: box-shadow .2s;
}
.card-eyebrow {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 3px; }
.chead { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

/* ══ PROFILE CARD ══ */
.profile-card { text-align: center; }
.profile-photo-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-photo {
  width: 88px; height: 88px; border-radius: var(--radius-photo);
  object-fit: cover; border: 2px solid var(--border);
  box-shadow: var(--shadow-md); background: var(--bg-secondary); display: block;
}
.profile-dot { position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; background: #34c759; border-radius: 50%; border: 2px solid var(--card); }
.profile-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-lt); border: 1px solid var(--brand-border);
  border-radius: 99px; padding: 3px 10px;
  font-size: 9.5px; font-weight: 600; color: var(--brand);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: var(--font-weight-display);
  font-style: var(--font-style-display);
  color: var(--text-primary); line-height: 1.1; margin-bottom: 8px;
  letter-spacing: var(--letter-spacing-tight);
}
.profile-bio { font-size: 11.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.profile-cta { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }

.btn-fill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; background: var(--brand); color: var(--brand-text);
  border-radius: var(--radius-btn); font-size: 11.5px; font-weight: 500;
  border: none; cursor: pointer; transition: background .15s, opacity .15s;
}
.btn-fill:hover { background: var(--brand-dk); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; background: var(--card-secondary); color: var(--text-secondary);
  border-radius: var(--radius-btn); font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--border); cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }

/* ══ CONTACT ══ */
.contact-list { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: 11.5px; color: var(--text-secondary); font-weight: 400; transition: background .12s;
}
.contact-row:hover { background: var(--bg-secondary); color: var(--brand); }
.contact-icon {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  background: var(--brand-lt); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand);
}
.contact-val { font-size: 11px; color: var(--text-secondary); }
.contact-row:hover .contact-val { color: var(--brand); }

/* ══ SKILLS ══ */
.skill-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.skill-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.skill-name { font-size: 11.5px; font-weight: 500; color: var(--text-primary); }
.skill-pct  { font-size: 10.5px; font-weight: 600; color: var(--brand); }
.skill-bar  { height: 4px; background: var(--bg-secondary); border-radius: 99px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--brand); border-radius: 99px; }

.comp-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.cbadge {
  font-size: 10px; font-weight: 500;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 99px;
}

/* ══ TIMELINE ══ */
.tli { display: flex; gap: 13px; padding-bottom: 22px; }
.tli:last-child { padding-bottom: 0; }
.tll { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tldot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--brand-lt); margin-top: 3px; }
.tldot.m { background: var(--text-muted); border-color: var(--bg-secondary); }
.tlline { width: 1px; flex: 1; background: var(--border); margin-top: 6px; }
.tli:last-child .tlline { display: none; }
.tlb { flex: 1; min-width: 0; }
.tlperiod {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--brand-lt); color: var(--brand);
  border-radius: 99px; padding: 2px 9px;
  font-size: 10px; font-weight: 600; margin-bottom: 5px;
}
.tlperiod.m { background: var(--bg-secondary); color: var(--text-muted); }
.tlco { font-size: 10.5px; color: var(--text-muted); margin-bottom: 2px; font-weight: 400; }
.tlrole { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.tllist { list-style: none; }
.tllist li { font-size: 11px; color: var(--text-secondary); padding: 4px 0 4px 13px; position: relative; border-bottom: 1px solid var(--border); line-height: 1.6; }
.tllist li:last-child { border-bottom: none; }
.tllist li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }

/* ══ PORTFOLIO ══ */
.pfwrap { overflow: hidden; }
.pftrack { display: flex; transition: transform .44s cubic-bezier(.2,0,0,1); }
.pfslide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; min-height: 220px; background: var(--bg-secondary); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.pfimg { background: var(--text-primary); position: relative; overflow: hidden; }
.pfimg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s; display: block; }
.pfslide:hover .pfimg img { transform: scale(1.04); }
.pfimgf { position: absolute; bottom: 0; left: 0; right: 0; height: 44%; background: linear-gradient(to top, rgba(0,0,0,.5), transparent); }
.pfbody { padding: 14px 13px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pfnum { font-size: 28px; font-weight: 700; color: var(--border); line-height: 1; }
.pfchips { display: flex; flex-wrap: wrap; gap: 4px; }
.pfchip { display: inline-block; padding: 2px 8px; background: var(--brand-lt); color: var(--brand); border-radius: 99px; font-size: 9.5px; font-weight: 600; }
.pftitle { font-size: 12.5px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.pfblurb { font-size: 10.5px; color: var(--text-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pfstats { display: flex; border: 1px solid var(--border); border-radius: var(--radius-xs); overflow: hidden; }
.pfstat { flex: 1; text-align: center; padding: 5px 3px; border-right: 1px solid var(--border); }
.pfstat:last-child { border-right: none; }
.pfstatv { display: block; font-size: 11.5px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 1px; }
.pfstatk { display: block; font-size: 7.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pfactions { display: flex; gap: 6px; }

.btsm { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-xs); font-size: 10.5px; font-weight: 500; cursor: pointer; }
.btsmf { background: var(--brand); color: var(--brand-text); border: none; transition: background .15s; }
.btsmf:hover { background: var(--brand-dk); }
.btsmo { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); transition: all .15s; }
.btsmo:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }

.pfctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border); }
.pfdots { display: flex; gap: 5px; align-items: center; }
.pfdot { height: 5px; border-radius: 4px; border: none; background: var(--border); cursor: pointer; padding: 0; width: 5px; transition: all .25s; }
.pfdot.active { background: var(--brand); width: 16px; }
.ibtn { width: 28px; height: 28px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--brand); transition: all .15s; }
.ibtn:hover { background: var(--brand-lt); border-color: var(--brand); }

/* ══ PROJECTS TABLE ══ */
.prow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; padding: 8px 0; gap: 9px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: var(--radius-xs); transition: background .12s; }
.prow:last-child { border-bottom: none; }
.prow:hover { background: var(--bg-secondary); padding: 8px 8px; margin: 0 -8px; }
.pname { font-size: 11.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 1px; }
.pdate { font-size: 9.5px; color: var(--text-muted); }
.ptype { font-size: 9.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.pact { font-size: 11px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.pact.g { color: #34c759; }
.pact.blue { color: var(--brand); }

/* ══ STATS GRID ══ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc { background: var(--card); border-radius: var(--radius-md); padding: 14px 12px; border: 1px solid var(--border); transition: box-shadow .18s; }
.sc:hover { box-shadow: var(--shadow-sm); }
.sc-lbl { font-size: 9.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.sc-val { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: var(--letter-spacing-tight); line-height: 1; margin-bottom: 4px; }
.sc-sub { font-size: 10px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
.green { color: #34c759; }
.blue  { color: var(--brand); }
.amber { color: #ff9500; }

/* ══ BI IMPACT PANEL ══ */
.revpanel { background: var(--brand) !important; border-color: transparent !important; color: #fff; position: relative; overflow: hidden; }
.revpanel::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.revamt { font-size: 22px; font-weight: 700; letter-spacing: var(--letter-spacing-tight); margin-bottom: 2px; }
.revsub { font-size: 10.5px; color: rgba(255,255,255,.6); font-weight: 400; margin-bottom: 14px; display: flex; align-items: center; gap: 3px; }
.barchart { display: flex; align-items: flex-end; gap: 4px; height: 80px; position: relative; z-index: 1; }
.bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.2); transition: background .15s; cursor: pointer; min-width: 3px; }
.bar:hover { background: rgba(255,255,255,.45); }
.bar.hi { background: rgba(255,255,255,.85); }
.revchips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.revchip { display: inline-block; padding: 2px 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: rgba(255,255,255,.85); font-size: 9.5px; font-weight: 500; }

/* ══ EDUCATION ══ */
.edurow { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.edurow:last-of-type { border-bottom: none; }
.eduyr { width: 42px; height: 42px; border-radius: var(--radius-xs); background: var(--brand-lt); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.edudeg { font-size: 11.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 1px; }
.edusc  { font-size: 10px; color: var(--text-muted); font-weight: 400; }
.certrow { display: flex; align-items: center; gap: 11px; background: var(--brand); border-radius: var(--radius-md); padding: 13px 14px; margin-top: 12px; color: #fff; }
.certic { width: 38px; height: 38px; border-radius: var(--radius-xs); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.certt  { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.certs  { font-size: 10px; opacity: .7; }

/* ══ NEPAL MAP CARD ══ */
.nepal-map-card {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52,199,89,.25) !important;
  padding: 0 !important; cursor: pointer;
  transition: box-shadow .2s, transform .18s; text-decoration: none;
}
.nepal-map-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(52,199,89,.2); }
.nepal-map-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0f3d1f 0%, #1a5c30 50%, #166534 100%); }
.nepal-map-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 14px 16px; }
.nepal-map-icon { width: 36px; height: 36px; border-radius: var(--radius-xs); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nepal-map-icon .icon { color: #86efac; font-size: 18px; }
.nepal-map-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 1px; }
.nepal-map-sub   { font-size: 10px; color: rgba(255,255,255,.6); font-weight: 400; }
.nepal-live-pill {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; font-weight: 600;
  background: rgba(52,199,89,.25); border: 1px solid rgba(52,199,89,.45);
  color: #86efac; padding: 3px 8px; border-radius: 99px;
  letter-spacing: .05em; text-transform: uppercase;
  animation: live-pulse 1.8s ease-in-out infinite;
}

/* ══ FOREX CARD ══ */
.forex-card {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,149,0,.25) !important;
  padding: 0 !important; cursor: pointer;
  transition: box-shadow .2s, transform .18s; text-decoration: none;
}
.forex-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,149,0,.2); }
.forex-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1c1400 0%, #3d2e00 50%, #4a3800 100%); }

/* ══ FOOTER ══ */
.sitefooter {
  text-align: center; padding: 14px;
  font-size: 11px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}
.sitefooter a { color: var(--brand); font-weight: 500; }

/* ══ RESPONSIVE ══ */
/* ══ RESPONSIVE ══ */

/* Tablet — shrink columns */
@media (max-width: 1100px) {
  :root { --col-l: 240px; --col-r: 230px; }
}

/* Mobile landscape / small tablet — stack columns */
@media (max-width: 860px) {
  /* Layout */
  .cols-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }
  .col {
    height: auto;
    position: static;
    overflow-y: visible;
    padding: 12px 14px 6px;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .col-left  { order: 1; }
  .col-mid   { order: 2; }
  .col-right { order: 3; border-bottom: none !important; padding-bottom: 20px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-ham   { display: flex; }
  .nav-icobtn { display: none; }

  /* Stats grid — 4 in a row on tablet */
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  /* Portfolio slider — single column */
  .pfslide { grid-template-columns: 1fr; grid-template-rows: 200px auto; }

  /* Hero */
  .hero { padding: 24px 18px; gap: 18px; }

  /* Profile card — more compact */
  .profile-photo { width: 72px; height: 72px; }

  /* Skills grid */
  .sgrid { grid-template-columns: 1fr 1fr; }

  /* Contact rows */
  .contact-val { font-size: 10.5px; }
}

/* Mobile portrait */
@media (max-width: 580px) {
  /* Col padding */
  .col { padding: 10px 12px 4px; }

  /* Nav — even tighter */
  .nav-search { display: none; }
  .topnav { padding: 0 14px; }
  .nav-brand-role { display: none; }

  /* Stats — 2x2 grid */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Profile card */
  .profile-photo-wrap { margin-bottom: 8px; }
  .profile-photo { width: 64px; height: 64px; }
  .profile-name { font-size: 1.25rem; }
  .profile-bio { font-size: 11px; }

  /* Profile CTA — stack buttons */
  .profile-cta { flex-direction: column; align-items: stretch; }
  .profile-cta .btn-fill,
  .profile-cta .btn-ghost { justify-content: center; }

  /* Skills — single column */
  .sgrid { grid-template-columns: 1fr; }

  /* Portfolio slider */
  .pfstats { display: none; }
  .pfbody { padding: 10px; gap: 5px; }
  .pfblurb { -webkit-line-clamp: 2; }
  .pfactions { flex-wrap: wrap; }
  .pfactions .btsm { flex: 1; justify-content: center; }

  /* Card padding tighter */
  .card { padding: 14px; }

  /* Timeline tighter */
  .tli { gap: 10px; padding-bottom: 16px; }
  .tlrole { font-size: 12.5px; }
  .tllist li { font-size: 10.5px; }
  .tlco { font-size: 10.5px; }

  /* Project table — hide type col */
  .ptype { display: none; }
  .prow { gap: 6px; }

  /* Edu row tighter */
  .eduyr { width: 36px; height: 36px; font-size: 10px; }
  .edudeg { font-size: 11px; }

  /* Cert row */
  .certrow { flex-wrap: wrap; gap: 8px; padding: 11px 12px; }
  .certic { width: 32px; height: 32px; }
  .certt { font-size: 11px; }

  /* Rev panel chart */
  .barchart { height: 60px; }
  .revchips { gap: 4px; }
  .revchip { font-size: 8.5px; padding: 2px 6px; }

  /* Contact card */
  .contact-val { font-size: 10.5px; }
  .contact-icon { width: 28px; height: 28px; }

  /* Nepal map / forex quick-link cards */
  .nepal-map-title, .nepal-map-sub { font-size: 12px; }
  .nepal-map-content { gap: 8px; }
  .nepal-map-icon { width: 32px; height: 32px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sc-val { font-size: 18px; }
  .sc { padding: 10px 8px; }
  .hero { padding: 18px 14px; }
  .card { padding: 12px; border-radius: 14px; }
  .profile-photo { width: 56px; height: 56px; }
  .cols-wrap { gap: 0; }
  .tllist li { font-size: 10px; }
  .pfnum { font-size: 22px; }
  .prow { grid-template-columns: 1fr auto; }
  .pact { font-size: 10px; }
}

/* ══ NAV LINKS (desktop) ══ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s, color .15s;
  white-space: nowrap; text-decoration: none;
}
.nav-link:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); font-weight: 600; background: var(--bg-secondary); }

/* ── Dropdown container ── */
.nav-dropdown { position: relative; }

.nav-dd-trigger { user-select: none; }
.nav-dd-arrow { transition: transform .2s; color: var(--text-muted); margin-left: 1px; }

/* ── Dropdown panel ── */
.nav-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 500;
  animation: dd-in .15s ease;
}
.nav-dd-panel.open { display: block; }
@keyframes dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dropdown items ── */
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dd-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-dd-item.active {
  background: var(--brand); color: var(--brand-text);
  font-weight: 500;
}
.nav-dd-item.active .icon { color: var(--brand-text); }
.nav-dd-item .icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.nav-dd-item.active:hover { background: var(--brand-dk); }

.nav-dd-label { flex: 1; }

.nav-dd-badge {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  border: 1px solid;
  letter-spacing: .04em; text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Drawer section label ── */
.drawer-section-label {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted);
  padding: 10px 12px 4px;
}

/* ── Responsive: hide nav-links on mobile ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ── Dark mode toggle button ── */
.nav-theme-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.nav-theme-btn:hover { background: var(--card); color: var(--text-primary); }
.nav-theme-btn .icon { font-size: 16px; }