@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@500;600;700;800&display=swap');

/* ==========================================================================
   Design System Tokens (Monochrome / Black & White)
   ========================================================================== */
:root {
  --bg: #fafafa;
  --paper: #ffffff;
  --text: #0a0b0e;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --soft: #f4f4f5;
  --accent: #0a0b0e;
  --accent-contrast: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.dark {
  --bg: #090a0d;
  --paper: #121318;
  --text: #f4f4f6;
  --muted: #9ca3af;
  --muted-light: #6b7280;
  --line: #22242c;
  --line-strong: #323542;
  --soft: #191b22;
  --accent: #ffffff;
  --accent-contrast: #090a0d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s ease, color 0.2s ease;
  overflow-x: clip;
}

.desktop-only {
  display: inline;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.dark .topbar {
  background: rgba(9, 10, 13, 0.88);
  border-bottom-color: var(--line);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font: 500 13px "DM Sans", sans-serif;
  padding: 7px 15px;
  border-radius: 20px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--soft);
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--text);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.theme-icon {
  display: inline-block;
  line-height: 1;
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */
.page {
  max-width: 1148px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.layout {
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-column {
  position: -webkit-sticky;
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-column::-webkit-scrollbar {
  display: none;
}

.content-column {
  min-width: 0;
}

/* ==========================================================================
   Profile Card (Sidebar)
   ========================================================================== */
.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.avatar-intro {
  margin-bottom: 14px;
}

.me-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 14px;
  letter-spacing: 0.3px;
  user-select: none;
  transition: all 0.15s ease;
}

.me-label:hover {
  color: var(--text);
  border-color: var(--text);
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: block;
}

body.dark .avatar-img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.profile-card h1 {
  font: 800 28px Manrope, sans-serif;
  letter-spacing: -0.8px;
  margin: 16px 0 4px;
  color: var(--text);
}

.tagline {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.location {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.profile-section {
  margin-top: 0;
  margin-bottom: 34px;
}

#about h2,
#skills h2 {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 0 0 10px;
}

#about p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

body.dark #about p {
  color: #a0a6b5;
}

/* Tags & Badges */
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tags span {
  background: var(--text);
  color: var(--paper);
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: default;
}

.tags span:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ==========================================================================
   Email Card (Sidebar Contact Box)
   ========================================================================== */
.email-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.email-card:hover {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.email-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.email-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.email-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.email-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.email-card:hover .email-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Content Sections & Common Headings
   ========================================================================== */
.content-section {
  margin-bottom: 68px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 18px;
}

.section-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0;
}

.section-heading>span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   Project Grid & Cards
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 42% 1fr;
}

.project-art {
  height: 165px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.featured-banner {
  grid-column: span 2;
  display: flex !important;
  flex-direction: column;
}

.featured-banner .project-art {
  width: 100%;
  height: 240px;
  max-height: 250px;
  border-bottom: 1px solid var(--line);
  border-right: none;
  background: #0e1117;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-banner .project-art-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 14px;
  overflow: hidden;
  position: relative;
  background: #0e1117;
  text-decoration: none;
}

.featured-banner .project-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-banner:hover .project-img {
  transform: scale(1.02);
}

.featured-banner .project-body {
  padding: 22px 24px 20px;
}

/* --- Project Art: Blueprint RAG --- */
.art-rag {
  background: var(--soft);
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 14px 14px;
}

.art-label {
  position: absolute;
  left: 16px;
  top: 14px;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.node {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--text);
  background: var(--paper);
  color: var(--text);
  border-radius: 7px;
  padding: 8px 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.node-a {
  top: 36%;
  left: 10%;
}

.node-b {
  top: 56%;
  left: 42%;
}

.node-c {
  top: 32%;
  right: 10%;
}

.art-line {
  height: 1.5px;
  position: absolute;
  background: var(--text);
  transform-origin: left center;
  opacity: 0.85;
}

.line-one {
  width: 92px;
  left: 25%;
  top: 49%;
  transform: rotate(23deg);
}

.line-two {
  width: 90px;
  left: 59%;
  top: 56%;
  transform: rotate(-28deg);
}

/* --- Project Art: Minimalist Market Chart --- */
.art-market {
  background: var(--soft);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1px;
  color: var(--muted);
}

.chart-bars {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 10px 2px 0;
}

.chart-bars i {
  display: block;
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--text);
  min-width: 5px;
  transition: opacity 0.2s ease;
}

.chart-bars i:nth-child(1) {
  height: 32%;
}

.chart-bars i:nth-child(2) {
  height: 48%;
}

.chart-bars i:nth-child(3) {
  height: 38%;
}

.chart-bars i:nth-child(4) {
  height: 62%;
}

.chart-bars i:nth-child(5) {
  height: 51%;
}

.chart-bars i:nth-child(6) {
  height: 75%;
}

.chart-bars i:nth-child(7) {
  height: 55%;
}

.chart-bars i:nth-child(8) {
  height: 88%;
}

.chart-bars i:nth-child(9) {
  height: 65%;
}

.chart-bars i:nth-child(10) {
  height: 78%;
}

.chart-bars i:nth-child(11) {
  height: 60%;
}

.chart-bars i:nth-child(12) {
  height: 95%;
}

.chart-baseline {
  height: 1px;
  background: var(--line);
}

/* --- Project Art: Wireframe Ticket Triage --- */
.art-ticket {
  background: var(--soft);
  display: grid;
  place-items: center;
  padding: 14px;
}

.ticket-window {
  width: 86%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.ticket-top {
  display: flex;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.ticket-top span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
}

.ticket-row:last-child {
  border-bottom: none;
}

.ticket-row b {
  font-weight: 600;
  color: var(--text);
}

.ticket-row em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 600;
}

/* --- Project Card Body & Meta --- */
.project-body {
  padding: 16px 18px 14px;
}

.featured .project-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.project-body h3 {
  font: 700 16px Manrope, sans-serif;
  letter-spacing: -0.3px;
  margin: 8px 0;
  color: var(--text);
}

.project-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.project-title-link:hover {
  opacity: 0.75;
}

.project-body>p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

body.dark .project-body>p {
  color: #a0a6b5;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tags span {
  background: var(--text);
  color: var(--paper);
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
  color: var(--muted);
  font: 500 11px "DM Sans", sans-serif;
}

.project-footer a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.project-footer a:hover {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
  transform: scale(1.08);
}

/* ==========================================================================
   Experience & Learning (MongoDB Featured Cert Banner)
   ========================================================================== */
.cert-art {
  background: #0a0b0e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid var(--line);
}

.featured .cert-art {
  height: 100%;
  min-height: 240px;
  border-bottom: none;
  border-right: 1px solid var(--line);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  z-index: 2;
  transition: transform 0.3s ease;
}

.project-card:hover .cert-img {
  transform: scale(1.03);
}

.cert-placeholder {
  width: 88%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.project-card:hover .cert-placeholder {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.cert-badge-ribbon {
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1.2px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 9px;
  border-radius: 12px;
}

.cert-symbol-mark {
  font-size: 28px;
  line-height: 1;
}

.cert-placeholder .art-label {
  position: static;
  color: #a1a1aa;
  font-size: 8.5px;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.cert-placeholder h4 {
  font: 800 17px Manrope, sans-serif;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin: 0;
}

.cert-meta-desc {
  font-size: 11px;
  color: #d1d5db;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Education List
   ========================================================================== */
.edu-list {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}

.edu-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.15s ease;
}

.edu-row:last-child {
  border-bottom: none;
}

.edu-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  padding: 5px;
  flex: 0 0 52px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  display: block;
}

.edu-row:hover .edu-logo {
  transform: scale(1.05);
}

.edu-info {
  flex: 1;
  min-width: 0;
}

.edu-info h3 {
  font: 700 15px Manrope, sans-serif;
  letter-spacing: -0.2px;
  margin: 0 0 2px;
  color: var(--text);
}

.edu-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.grade {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 10.5px;
}

.edu-date {
  flex: 0 0 auto;
  font: 500 13px "DM Sans", sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   Certifications Timeline
   ========================================================================== */
.cert-header {
  text-align: center;
  padding: 16px 0 32px;
}

.cert-pill {
  display: inline-block;
  background: var(--text);
  color: var(--paper);
  font: 600 11.5px "DM Sans", sans-serif;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.cert-title {
  font: 800 32px Manrope, sans-serif;
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: var(--text);
}

.cert-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.6;
}

.cert-timeline {
  position: relative;
  padding-left: 42px;
}

.cert-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.cert-card-v2 {
  display: flex;
  gap: 18px;
  padding: 0 0 36px;
  position: relative;
}

.cert-card-v2:last-child {
  padding-bottom: 0;
}

.cert-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  margin-left: -42px;
  border: 3px solid var(--bg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

body.dark .cert-icon {
  background: var(--paper);
}

.cert-icon span {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.cert-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  display: block;
}

.cert-icon--mongo,
.cert-icon--aws,
.cert-icon--stanford,
.cert-icon--google {
  background: #ffffff;
  border: 2px solid var(--line);
}

body.dark .cert-icon--mongo,
body.dark .cert-icon--aws,
body.dark .cert-icon--stanford,
body.dark .cert-icon--google {
  background: var(--paper);
  border-color: var(--line);
}

.cert-icon--stanford span,
.cert-icon--google span,
.cert-icon--aws span {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.5px;
  color: var(--text);
}

.cert-body {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.cert-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 3px;
  letter-spacing: 0.3px;
}

.cert-body h3 {
  font: 700 16px Manrope, sans-serif;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
  color: var(--text);
}

.cert-body>p:not(.cert-date) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

body.dark .cert-body>p:not(.cert-date) {
  color: #a0a6b5;
}

.credential-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text);
  color: var(--paper);
  font: 600 12px "DM Sans", sans-serif;
  padding: 7px 16px;
  border-radius: 7px;
  border: 1px solid var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.credential-btn:hover {
  background: transparent;
  color: var(--text);
  transform: translateY(-1px);
}

.credential-icon {
  font-size: 13px;
}

/* ==========================================================================
   Contact Panel & Primary Button (Editorial B&W, Bespoke Design)
   ========================================================================== */
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 68px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.contact-panel h2 {
  font: 800 24px Manrope, sans-serif;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
  color: var(--text);
}

.contact-panel p:not(.eyebrow) {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Bespoke Black & White Primary Button */
.primary-btn {
  background: var(--text);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--text);
  border-radius: 26px;
  padding: 11px 22px;
  font: 600 13px "DM Sans", sans-serif;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-btn:hover {
  background: transparent;
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

body.dark .primary-btn {
  background: #ffffff;
  color: #090a0d;
  border-color: #ffffff;
}

body.dark .primary-btn:hover {
  background: transparent;
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 2px 0;
  color: var(--muted);
  font: 500 11.5px "DM Sans", sans-serif;
}

/* ==========================================================================
   macOS Left Dock (Monochrome / High Craft)
   ========================================================================== */
.mac-dock {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.dark .mac-dock {
  background: rgba(18, 19, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 7px;
  transform-origin: left center;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.dock-icon {
  width: 26px;
  height: 26px;
  border-radius: 6.5px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #0a0b0e;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s ease, box-shadow 0.15s ease, background 0.2s, color 0.2s;
}

body.dark .dock-icon {
  background: #ffffff;
  color: #0a0b0e;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
}

.dock-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.dock-item:hover .dock-icon {
  filter: brightness(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.dock-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #0a0b0e;
  opacity: 0.55;
  margin-top: 2px;
}

body.dark .dock-dot {
  background: #ffffff;
  opacity: 0.75;
}

.dock-tooltip {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #0a0b0e;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "DM Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

body.dark .dock-tooltip {
  background: #ffffff;
  color: #0a0b0e;
  border-color: rgba(0, 0, 0, 0.1);
}

.dock-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 3.5px;
  border-style: solid;
  border-color: transparent #0a0b0e transparent transparent;
}

body.dark .dock-tooltip::before {
  border-color: transparent #ffffff transparent transparent;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dock-item:active .dock-icon {
  filter: brightness(0.9);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--paper);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .page {
    margin: 0 24px;
  }

  .layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .mac-dock {
    left: 50%;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 4px 6px;
    gap: 8px;
  }

  .dock-item {
    transform-origin: center bottom;
  }

  .dock-tooltip {
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(3px);
  }

  .dock-tooltip::before {
    right: auto;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-color: #0a0b0e transparent transparent transparent;
  }

  body.dark .dock-tooltip::before {
    border-color: #ffffff transparent transparent transparent;
  }

  .dock-item:hover .dock-tooltip {
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Single Column (Tablets & Large Phones) */
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .avatar-intro {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    column-gap: 18px;
    row-gap: 4px;
    align-items: center;
    padding: 22px 20px;
  }

  .avatar-img {
    width: 92px;
    height: 92px;
    grid-row: 2 / span 3;
    grid-column: 1;
  }

  .profile-card h1 {
    grid-column: 2;
    align-self: end;
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
  }

  .profile-card .tagline {
    grid-column: 2;
    font-size: 15px;
    margin: 2px 0 0;
  }

  .profile-card .location {
    grid-column: 2;
    font-size: 13px;
    margin: 2px 0 0;
  }

  .profile-section {
    grid-column: 1 / -1;
    margin-top: 18px;
    margin-bottom: 24px;
  }

  .email-card {
    grid-column: 1 / -1;
  }
}

/* Mobile Phones (iPhone & Android) */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 60px;
  }

  /* Sleek, Single-Row Sticky Header */
  .topbar {
    height: 52px;
    min-height: 52px;
    padding: 0 12px;
    justify-content: space-between;
    gap: 8px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 14px;
  }

  .desktop-only {
    display: none;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  /* Mobile Page & Floating Clearance */
  .page {
    margin: 0 12px;
    padding-top: 14px;
    padding-bottom: 92px;
  }

  /* Compact & Balanced Profile Header */
  .profile-card {
    padding: 18px 16px;
    border-radius: 14px;
    grid-template-columns: 80px 1fr;
    column-gap: 14px;
  }

  .avatar-img {
    width: 80px;
    height: 80px;
  }

  .profile-card h1 {
    font-size: 21px;
    letter-spacing: -0.4px;
  }

  .profile-card .tagline {
    font-size: 14px;
  }

  .profile-card .location {
    font-size: 12px;
  }

  #about h2,
  #skills h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  #about p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .tags {
    gap: 6px;
  }

  .tags span {
    font-size: 11.5px;
    padding: 5px 11px;
  }

  /* Section Spacing & Headings */
  .content-section {
    margin-bottom: 44px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 21px;
    letter-spacing: -0.4px;
  }

  .section-heading > span {
    font-size: 10.5px;
  }

  /* Project Grid & Banner */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    border-radius: 14px;
  }

  .project-card.featured {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .featured-banner .project-art {
    width: 100%;
    height: 200px;
    max-height: 210px;
  }

  .featured-banner .project-art-link {
    padding: 8px 10px;
  }

  .featured-banner .project-body {
    padding: 16px 16px 14px;
  }

  .project-body {
    padding: 14px 15px 12px;
  }

  .project-body h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  .project-body > p {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .project-tags span {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  .project-footer {
    font-size: 10.5px;
    padding-top: 9px;
    margin-top: 12px;
  }

  .project-footer a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Experience Featured Card */
  .featured .cert-art {
    height: 175px;
    min-height: 175px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .cert-placeholder {
    padding: 14px 10px;
    max-width: 270px;
  }

  .cert-placeholder h4 {
    font-size: 15px;
  }

  /* Education List on Mobile */
  .edu-list {
    padding: 2px 14px;
    border-radius: 14px;
  }

  .edu-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
  }

  .edu-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 4px;
    margin-top: 2px;
  }

  .edu-info h3 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 3px;
  }

  .edu-info p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .grade {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .edu-date {
    font-size: 11.5px;
    margin-top: 3px;
  }

  /* Certifications Timeline on Mobile */
  .cert-header {
    padding: 8px 0 24px;
  }

  .cert-title {
    font-size: 22px;
    letter-spacing: -0.6px;
  }

  .cert-subtitle {
    font-size: 13px;
    line-height: 1.55;
  }

  .cert-timeline {
    padding-left: 28px;
  }

  .cert-timeline::before {
    left: 17px;
  }

  .cert-card-v2 {
    gap: 12px;
    padding-bottom: 28px;
  }

  .cert-icon {
    margin-left: -28px;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-width: 2px;
  }

  .cert-icon span {
    font-size: 14px;
  }

  .cert-body {
    padding-top: 0;
  }

  .cert-body h3 {
    font-size: 14.5px;
    line-height: 1.35;
  }

  .cert-body > p:not(.cert-date) {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .credential-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    font-size: 12px;
  }

  /* Contact Section & Mobile CTA */
  .contact-panel {
    padding: 22px 18px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-radius: 14px;
    gap: 16px;
    align-items: stretch;
  }

  .contact-panel h2 {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .contact-panel p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.5;
  }

  .contact-panel .primary-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  /* Mobile Floating Dock (Thumb-friendly & Unobtrusive) */
  .mac-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 6px 10px;
    gap: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  body.dark .mac-dock {
    background: rgba(18, 19, 24, 0.94);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  }

  .dock-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .dock-icon svg {
    width: 16px;
    height: 16px;
  }

  .dock-dot {
    display: none;
  }

  .dock-tooltip {
    display: none !important;
  }

  /* Footer on Mobile */
  footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 11px;
    padding: 20px 0 10px;
  }
}

/* Ultra-Compact Phones (e.g. iPhone SE / < 370px) */
@media (max-width: 370px) {
  .page {
    margin: 0 8px;
  }

  .topbar {
    padding: 0 8px;
  }

  .main-nav a {
    padding: 5px 7px;
    font-size: 11px;
  }

  .profile-card {
    grid-template-columns: 70px 1fr;
    column-gap: 12px;
    padding: 16px 12px;
  }

  .avatar-img {
    width: 70px;
    height: 70px;
  }

  .profile-card h1 {
    font-size: 19px;
  }

  .featured-banner .project-art {
    height: 180px;
  }
}