:root {
  /*Max Width*/
  --max-width: 1000px;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;

}

body {
  background-color: #eef1f5;
}

.pcb-bottom{
  padding: 5%;
}

.nav-wrap {
  background: #eef1f5;
  font-family: 'Rajdhani', sans-serif;
  color: #23304a;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(16, 26, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.nav-silkscreen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #101a2e;
  letter-spacing: 0.03em;
}

.nav-brand-ref {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2c3b58;
  border: 0.5px solid rgba(16, 26, 46, 0.25);
  background: rgba(16, 26, 46, 0.05);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(16, 26, 46, 0.12);
  border-color: rgba(16, 26, 46, 0.5);
  color: #101a2e;
}

.nav-link .pin {
  width: 5px;
  height: 4px;
  border: 0.5px solid rgba(16, 26, 46, 0.5);
  background: rgba(16, 26, 46, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

.nav-link:hover .pin {
  background: rgba(16, 26, 46, 0.5);
}

.logo {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #101a2e;
  line-height: 1.3;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600&family=Fira+Code:wght@300;400;500&display=swap');

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

.pcb {
  background: #eef1f5;
  font-family: 'Rajdhani', sans-serif;
  color: #23304a;
  overflow: hidden;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pcb-silk {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.z1 {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'Fira Code', monospace;
}

.ref {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dim {
  color: #3c4d6e;
}

.bright {
  color: #101a2e;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 0.5px solid rgba(16, 26, 46, 0.15);
}

.topbar-nav {
  display: flex;
  gap: 1px;
}

.nav-tab {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  padding: 4px 12px;
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  color: #3c4d6e;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-tab.active {
  background: rgba(16, 26, 46, 0.12);
  color: #101a2e;
  border-color: rgba(16, 26, 46, 0.5);
}

.body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 560px;
}

.sidebar {
  border-right: 0.5px solid rgba(16, 26, 46, 0.12);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar-pkg {
  background: rgba(16, 26, 46, 0.05);
  border: 1px solid rgba(16, 26, 46, 0.25);
  padding: 1rem;
  position: relative;
}

.avatar-pkg::before {
  content: 'U1';
  position: absolute;
  top: 5px;
  left: 7px;
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
}

.avatar-pkg::after {
  content: '1';
  position: absolute;
  top: 5px;
  right: 7px;
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 26, 46, 0.1);
  border: 1px solid rgba(16, 26, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.avatar-initials {
  font-size: 24px;
  font-weight: 600;
  color: #101a2e;
  letter-spacing: 0.05em;
}

.avatar-pins {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.pin-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pin-row.right {
  align-items: flex-end;
}

.pin {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pin-rect {
  width: 10px;
  height: 5px;
  background: rgba(16, 26, 46, 0.2);
  border: 0.5px solid rgba(16, 26, 46, 0.5);
  flex-shrink: 0;
}

.pin-lbl {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
}

.module {
  background: rgba(16, 26, 46, 0.03);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
  padding: 0.75rem;
}

.module-hdr {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f8a3c;
  display: inline-block;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 5px 0;
}

.stat-key {
  font-size: 11px;
  color: #2c3b58;
}

.stat-val {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #101a2e;
}

.main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
}

.section-hdr {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 0.5px solid rgba(16, 26, 46, 0.12);
  display: flex;
  justify-content: space-between;
}

.datasheet-block {
  background: rgba(16, 26, 46, 0.04);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
  padding: 1rem 1.25rem;
}

.bio-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #23304a;
  text-align: justify;
}

.bio-text strong {
  font-weight: 500;
  color: #101a2e;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(16, 26, 46, 0.1);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
  margin-top: 0;
}

.spec-cell {
  background: #eef1f5;
  padding: 0.6rem 0.8rem;
}

.spec-cell-label {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.spec-cell-val {
  font-size: 13px;
  color: #101a2e;
  font-weight: 400;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 37px;
  top: 18px;
  bottom: -12px;
  width: 0.5px;
  background: rgba(16, 26, 46, 0.15);
}

.tl-item:last-child::before {
  display: none;
}

.tl-year {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: #3c4d6e;
  width: 36px;
  flex-shrink: 0;
  padding-top: 2px;
}

.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  flex-shrink: 0;
}

.tl-dot {
  width: 7px;
  height: 7px;
  border: 0.5px solid rgba(16, 26, 46, 0.5);
  background: rgba(16, 26, 46, 0.2);
  flex-shrink: 0;
}

.tl-dot.filled {
  background: rgba(16, 26, 46, 0.5);
}

.tl-text {
  padding-bottom: 12px;
}

.tl-title {
  font-size: 13px;
  font-weight: 500;
  color: #101a2e;
}

.tl-sub {
  font-size: 11px;
  color: #3c4d6e;
  font-family: 'Fira Code', monospace;
  margin-top: 1px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(16, 26, 46, 0.1);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
}

.int-cell {
  background: #eef1f5;
  padding: 0.75rem;
}

.int-icon {
  font-size: 18px;
  color: #3c4d6e;
  margin-bottom: 4px;
}

.int-label {
  font-size: 12px;
  color: #101a2e;
  font-weight: 500;
}

.int-sub {
  font-size: 10px;
  color: #3c4d6e;
  font-family: 'Fira Code', monospace;
  margin-top: 2px;
}

.footer {
  padding: 0.6rem 1.5rem;
  border-top: 0.5px solid rgba(16, 26, 46, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: #3c4d6e;
}

.cta-btn {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  border: 0.5px solid rgba(16, 26, 46, 0.35);
  background: rgba(16, 26, 46, 0.08);
  color: #2c3b58;
  padding: 5px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pcb-bottom {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid rgba(16, 26, 46, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcb-bottom-meta {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: #3c4d6e;
  line-height: 1.7;
}

/* =========================================================
   MOBILE RESPONSIVE STYLES
   Everything below only applies at narrow widths.
   Desktop layout/behaviour above is untouched.
   ========================================================= */
@media (max-width: 720px) {

  /* --- Nav bar: stack brand above a wrapping row of links --- */
  .nav-wrap {
    padding: 0 0.75rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 0;
    gap: 0.6rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }

  .nav-link {
    padding: 6px 10px;
    flex: 1 1 auto;
    justify-content: center;
  }

  /* --- Sidebar + main content stack instead of sitting side by side --- */
  .body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sidebar {
    border-right: none;
    border-bottom: 0.5px solid rgba(16, 26, 46, 0.12);
    padding: 1rem;
  }

  .main {
    padding: 1rem;
    
  }

  /* --- Education spec grid: one column instead of two --- */
  .spec-grid {
    grid-template-columns: 1fr;
  }

  /* --- Interests grid: two columns instead of three --- */
  .interests-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Timeline: tighten left offset so text has more room --- */
  .tl-item::before {
    left: 30px;
  }

  .tl-year {
    width: 30px;
  }
}

@media (max-width: 420px) {

  /* --- Extra-narrow phones: interests grid drops to one column --- */
  .interests-grid {
    grid-template-columns: 1fr;
  }
}