/* =============================================================================
   SHIVAM THAKUR // AI & SOFTWARE ENGINEER PORTFOLIO
   Clean, Modern Editorial Design System with Light/Dark Theme Switcher
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   THEME TOKENS: LIGHT (DEFAULT) & DARK
   -------------------------------------------------------------------------- */
:root, [data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --bg-surface-hover: #F1F5F9;
  --bg-pill: #F1F5F9;
  
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-focus: #94A3B8;

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --accent-primary: #2563EB;
  --accent-primary-subtle: #EFF6FF;
  --accent-primary-border: #BFDBFE;

  --accent-amber: #D97706;
  --accent-amber-subtle: #FFFBEB;
  --accent-amber-border: #FDE68A;

  --status-ongoing-bg: #EFF6FF;
  --status-ongoing-text: #1D4ED8;
  --status-ongoing-border: #BFDBFE;

  --status-completed-bg: #F0FDF4;
  --status-completed-text: #15803D;
  --status-completed-border: #BBF7D0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 6px -1px rgba(15, 23, 42, 0.04), 0 1px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 16px 32px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  --header-bg: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] {
  --bg-page: #0B0F17;
  --bg-subtle: #111827;
  --bg-surface: #141C2B;
  --bg-surface-elevated: #1B263B;
  --bg-surface-hover: #22304A;
  --bg-pill: #1B263B;
  
  --border-subtle: #202D42;
  --border-card: #202D42;
  --border-hover: #334666;
  --border-focus: #475569;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;

  --accent-primary: #38BDF8;
  --accent-primary-subtle: rgba(56, 189, 248, 0.1);
  --accent-primary-border: rgba(56, 189, 248, 0.25);

  --accent-amber: #F59E0B;
  --accent-amber-subtle: rgba(245, 158, 11, 0.1);
  --accent-amber-border: rgba(245, 158, 11, 0.25);

  --status-ongoing-bg: rgba(56, 189, 248, 0.12);
  --status-ongoing-text: #38BDF8;
  --status-ongoing-border: rgba(56, 189, 248, 0.3);

  --status-completed-bg: rgba(34, 197, 94, 0.12);
  --status-completed-text: #4ADE80;
  --status-completed-border: rgba(34, 197, 94, 0.3);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5);

  --header-bg: rgba(11, 15, 23, 0.88);
}

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
  --max-width: 1080px;
}

/* --------------------------------------------------------------------------
   BASE & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  transition: background-color 0.25s ease, color 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

/* Minimalist Browser Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-hover);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   1. NAVIGATION HEADER (MODERN FROSTED GLASS BAR)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

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

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.header-icon-btn:active {
  transform: scale(0.94);
}

.header-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background-color: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.header-resume-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.header-resume-btn:active {
  transform: scale(0.96);
}

/* Hide mobile-specific header and drawer on desktop */
.mobile-header-actions {
  display: none;
}

.mobile-nav-drawer {
  display: none;
}

/* Theme Toggle Button (Sleek Minimalist SVG) */
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: scale(1.06);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

.theme-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .theme-icon.sun-icon {
  display: none;
}
[data-theme="light"] .theme-icon.moon-icon {
  display: block;
}

[data-theme="dark"] .theme-icon.sun-icon {
  display: block;
}
[data-theme="dark"] .theme-icon.moon-icon {
  display: none;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION (ORGANIC PROFILE INTRO)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 64px 0 52px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.avatar-container {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background-color: var(--bg-surface);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.02);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.avatar-container:hover .profile-avatar {
  transform: scale(1.06);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.hero-intro-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-primary);
}

.hero-heading {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 820px;
}

.hero-bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 800px;
}

.hero-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-pill:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.role-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--accent-primary-subtle);
  border: 1px solid var(--accent-primary-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   3. SECTION HEADER & DYNAMIC FILTER BAR
   -------------------------------------------------------------------------- */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Filter Toolbar (Placed naturally right under the Projects header) */
.filter-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-pill:active {
  transform: scale(0.97);
}

.filter-pill.active {
  background-color: var(--text-primary);
  color: var(--bg-page);
  border-color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.filter-pill .count {
  font-size: 11.5px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   4. PROJECTS: EXPANSIVE & CLEAN SHOWCASES
   -------------------------------------------------------------------------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

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

/* Card Top Metadata */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-timeline {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-badge.publication {
  background-color: var(--accent-amber-subtle);
  color: var(--accent-amber);
  border-color: var(--accent-amber-border);
}

.project-badge.highlight {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border-color: var(--accent-primary-border);
}

/* Project Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.status-pill.ongoing {
  background-color: var(--status-ongoing-bg);
  color: var(--status-ongoing-text);
  border-color: var(--status-ongoing-border);
}

.status-pill.completed {
  background-color: var(--status-completed-bg);
  color: var(--status-completed-text);
  border-color: var(--status-completed-border);
}

/* Title & Summary */
.card-heading-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.card-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Key Metrics Tiles */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
}

.metric-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   PROJECT SCREENSHOT SHOWCASE (GENEROUS SIZING & LIGHTBOX READY)
   -------------------------------------------------------------------------- */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.gallery-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.gallery-link {
  display: block;
  overflow: hidden;
  background-color: var(--bg-subtle);
  cursor: zoom-in;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

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

.gallery-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Card Bottom Actions */
.card-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stack-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

.project-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background-color: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 600;
  width: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.project-link-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.project-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  width: auto;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.project-link-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

/* Minimalist Inline Expand Trigger & Collapsible Details */
.minimal-expand-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  width: fit-content;
  background: none;
  border: none;
  padding: 2px 0;
  margin-top: -4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.minimal-expand-trigger:hover {
  color: var(--accent-primary);
}

.minimal-expand-trigger.active {
  color: var(--text-primary);
}

.minimal-expand-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-expand-trigger.active .minimal-expand-chevron {
  transform: rotate(180deg);
}

.card-expandable {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: -16px;
  transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, margin-top 0.22s ease;
}

.card-expandable.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
}

.card-expandable-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Bullet Points */
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.spec-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.spec-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. PRODUCTION EXPERIENCE
   -------------------------------------------------------------------------- */
.experience-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.company-header-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.company-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.company-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.company-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.company-role {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.company-period {
  font-size: 13.5px;
  color: var(--text-muted);
}

.company-overview-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.company-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}

.lead-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-metric-val {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.lead-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Featured Flagship Deep Dive */
.exp-flagship-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 4 Enterprise Production Cards */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.exp-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.exp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

.exp-card-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: var(--accent-primary-subtle);
  border: 1px solid var(--accent-primary-border);
  padding: 3px 10px;
  border-radius: 5px;
  width: fit-content;
}

.exp-card-bullets {
  list-style: disc;
  padding-left: 18px;
  margin: 2px 0 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-card-bullets li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.exp-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   6. TECHNICAL TOOLKIT (SKILLS MATRIX)
   -------------------------------------------------------------------------- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.toolkit-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.toolkit-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
}

.toolkit-items {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Education & Credentials Strip (Side-by-Side 3-Column Row) */
.edu-credentials-block {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.edu-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-school {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-period {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edu-degree {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.edu-degree strong {
  color: var(--text-primary);
  font-weight: 600;
}

.edu-highlight {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.edu-highlight strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cert-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--status-completed-bg);
  border: 1px solid var(--status-completed-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--status-completed-text);
  letter-spacing: 0.02em;
}

.cert-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6.5. HOBBIES & PERSONAL INTERESTS
   -------------------------------------------------------------------------- */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hobby-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hobby-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.hobby-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-bottom: 2px;
}

.hobby-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hobby-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.hobby-desc {
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.hobby-desc strong {
  color: var(--text-primary);
}

.hobby-tag-group {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.hobby-tag-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hobby-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hobby-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hobby-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.hobby-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   TOPIC NAVIGATOR RAIL (SMOOTH SCROLLBAR / TOPIC JUMPER)
   -------------------------------------------------------------------------- */
.topic-nav-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  user-select: none;
}

.topic-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.topic-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--text-muted);
  opacity: 0.4;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-nav-item:hover .topic-nav-dot {
  opacity: 1;
  background-color: var(--text-primary);
  transform: scale(1.4);
}

.topic-nav-item.active .topic-nav-dot {
  opacity: 1;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

.topic-nav-label {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.topic-nav-item:hover .topic-nav-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1240px) {
  .topic-nav-rail {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. REACH OUT SECTION: "FEEL FREE TO REACH OUT!"
   -------------------------------------------------------------------------- */
.reach-out-section {
  padding: 64px 0 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.reach-out-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.reach-out-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.reach-out-subtitle {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 760px;
}

.reach-out-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding-top: 8px;
}

.reach-channel-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.reach-channel-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.reach-channel-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reach-channel-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reach-channel-sub {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 48px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   8. LIGHTBOX OVERLAY (CLICK TO ENLARGE SCREENSHOTS)
   -------------------------------------------------------------------------- */
.lightbox-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
  animation: zoomSpring 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomSpring {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   9. RESUME MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Mid-tier Tablet/Small Laptop Header Adjustments */
@media (max-width: 1024px) and (min-width: 861px) {
  .header-nav-wrap {
    gap: 10px;
  }
  .header-nav {
    gap: 2px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE MOBILE UI/UX DESIGN SYSTEM (<= 860px & <= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Layout & Root Adjustments */
  :root {
    --max-width: 100%;
  }

  html {
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 48px 0;
  }

  /* 1. Header & Navigation */
  .header-inner {
    height: 58px;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .mobile-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .mobile-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border-radius: 6px;
    background-color: var(--text-primary);
    color: var(--bg-page);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    min-height: 36px;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .mobile-resume-btn:active {
    transform: scale(0.96);
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-menu-btn:active {
    transform: scale(0.95);
  }

  .mobile-menu-btn.open .menu-icon-burger {
    display: none;
  }

  .mobile-menu-btn.open .menu-icon-close {
    display: block !important;
  }

  .mobile-menu-btn .menu-icon-close {
    display: none;
  }

  /* Mobile Drawer Dropdown */
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 58px);
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-drawer.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 18px 40px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  }

  .mobile-nav-item:active {
    background-color: var(--bg-surface-hover);
    transform: scale(0.98);
  }

  .mobile-nav-svg {
    color: var(--accent-primary);
    flex-shrink: 0;
  }

  .mobile-nav-ext-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-ext-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 8px;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-height: 44px;
    transition: all 0.15s ease;
  }

  .mobile-ext-chip:active {
    background-color: var(--bg-surface-hover);
    transform: scale(0.97);
  }

  /* 2. Hero Section */
  .hero-section {
    padding: 36px 0 32px 0;
  }

  .profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .avatar-container {
    width: 88px;
    height: 88px;
    border-width: 2.5px;
  }

  .hero-name {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .hero-role {
    font-size: 15px;
  }

  .hero-heading {
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .hero-bio {
    font-size: 14.5px;
    line-height: 1.62;
  }

  .hero-contact-row {
    gap: 8px;
    padding-top: 2px;
  }

  .contact-pill, .role-availability-badge {
    font-size: 12.5px;
    padding: 6px 12px;
    min-height: 36px;
  }

  /* 3. Section Titles & Swipeable Filter Toolbar */
  .section-header-block {
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 21px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .filter-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 2px 18px 8px 18px;
    gap: 8px;
  }

  .filter-container::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 15px;
    font-size: 12.5px;
    min-height: 38px;
  }

  /* 4. Projects Showcase */
  .projects-list {
    gap: 24px;
  }

  .project-card {
    padding: 22px 18px;
    border-radius: 12px;
    gap: 18px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-top-left {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .card-tag {
    font-size: 11px;
  }

  .card-timeline {
    font-size: 11.5px;
  }

  .status-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .card-title {
    font-size: 19px;
    line-height: 1.32;
  }

  .card-summary {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Compact Metrics Grid */
  .metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .exp-flagship-card .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-box {
    padding: 10px 10px;
    border-radius: 8px;
    gap: 2px;
    min-width: 0;
  }

  .metric-label {
    font-size: 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .metric-val {
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .metric-sub {
    font-size: 10.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-img {
    height: 190px;
  }

  .gallery-caption {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.48;
  }

  .spec-list {
    font-size: 13.5px;
    line-height: 1.58;
    gap: 8px;
    padding-left: 18px;
  }

  .card-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 14px;
  }

  .stack-tags {
    gap: 5px;
  }

  .stack-pill {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  .project-links {
    width: auto;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-link-btn, .project-link-secondary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    font-size: 13px;
    box-sizing: border-box;
  }

  /* 5. Professional Experience */
  .experience-block {
    padding: 22px 18px;
    border-radius: 12px;
    gap: 22px;
  }

  .company-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .company-title {
    font-size: 20px;
  }

  .company-badge {
    font-size: 11.5px;
  }

  .company-role {
    font-size: 14px;
  }

  .company-period {
    font-size: 12.5px;
  }

  .company-overview-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }

  /* 2x2 Clean Dashboard Grid for Lead Metrics */
  .company-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 14px;
  }

  .lead-metric {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    gap: 2px;
  }

  .lead-metric-val {
    font-size: 15px;
  }

  .lead-metric-lbl {
    font-size: 11px;
    line-height: 1.35;
  }

  .exp-flagship-card {
    padding: 18px 14px;
    border-radius: 10px;
    gap: 16px;
  }

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .exp-card {
    padding: 18px 16px;
    border-radius: 10px;
    gap: 10px;
  }

  .exp-card-title {
    font-size: 15.5px;
    line-height: 1.35;
  }

  .exp-card-bullets {
    font-size: 13px;
    line-height: 1.55;
    gap: 6px;
    padding-left: 16px;
  }

  .exp-card-stack {
    padding-top: 8px;
    gap: 5px;
  }

  /* 6. Technical Skills */
  .toolkit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .toolkit-group {
    padding: 18px 16px;
    border-radius: 10px;
    gap: 8px;
  }

  .toolkit-group[style*="grid-column"] {
    grid-column: span 1 !important;
  }

  .toolkit-title {
    font-size: 11px;
  }

  .toolkit-items {
    font-size: 13.5px;
    line-height: 1.62;
  }

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edu-card {
    padding: 16px;
  }

  /* 7. Beyond Tech / Hobbies */
  .hobbies-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hobby-card {
    padding: 22px 18px;
    border-radius: 12px;
    gap: 14px;
  }

  .hobby-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .hobby-title {
    font-size: 16.5px;
  }

  .hobby-desc {
    font-size: 13.5px;
    line-height: 1.62;
  }

  .hobby-tag-group {
    padding-top: 10px;
    gap: 6px;
  }

  .hobby-pills-row {
    gap: 5px;
  }

  .hobby-pill {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  /* 8. Reach Out Section */
  .reach-out-card {
    padding: 24px 18px;
    border-radius: 12px;
    gap: 16px;
  }

  .reach-out-title {
    font-size: 23px;
  }

  .reach-out-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .reach-out-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reach-channel-card {
    padding: 14px 16px;
    border-radius: 8px;
    min-height: 48px;
  }

  .reach-channel-value {
    font-size: 14px;
  }

  /* 9. Lightbox & Modal */
  .lightbox-backdrop {
    padding: 12px;
  }

  .lightbox-img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 6px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-window {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-body {
    padding: 18px 16px;
    gap: 18px;
  }

  /* 10. Footer */
  .site-footer {
    padding: 36px 0 28px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 12.5px;
  }
}

/* Narrow mobile viewports (<= 600px) */
@media (max-width: 600px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small mobile phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 40px 0;
  }

  .filter-container {
    margin: 0 -14px;
    padding: 2px 14px 8px 14px;
  }

  .avatar-container {
    width: 76px;
    height: 76px;
  }

  .hero-name {
    font-size: 24px;
  }

  .hero-heading {
    font-size: 17px;
  }

  .project-card {
    padding: 18px 14px;
  }

  .card-title {
    font-size: 17.5px;
  }

  .metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .metric-box {
    padding: 8px 6px;
  }

  .metric-label {
    font-size: 9px;
  }

  .metric-val {
    font-size: 13px;
  }

  .metric-sub {
    font-size: 9.5px;
  }

  .gallery-img {
    height: 165px;
  }

  .reach-out-title {
    font-size: 21px;
  }
}
