/* ==========================================================================
   ACADEMIC CV & PORTFOLIO STYLESHEET
   Author: Nikhil Srivastav (PMRF Fellow, BHU)
   Topic: Renewable Energy, DSSC, Nanomaterials, Interface Engineering
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand & Theme Colors (Light Mode) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Primary Accent: Deep Academic Cobalt/Navy */
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  /* Secondary Accent: Solar Gold / Amber (representing solar energy & PMRF) */
  --solar-amber: #d97706;
  --solar-amber-light: #fef3c7;
  --solar-amber-border: #fde68a;
  --solar-amber-dark: #b45309;

  /* Teal / Green Accent: Sustainable materials & clean energy */
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #3b82f6;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --header-height-mobile: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-secondary: #172033;
  --bg-tertiary: #1f2a44;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-border: rgba(59, 130, 246, 0.3);

  --solar-amber: #f59e0b;
  --solar-amber-light: rgba(245, 158, 11, 0.15);
  --solar-amber-border: rgba(245, 158, 11, 0.3);
  --solar-amber-dark: #fbbf24;

  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --border-subtle: #1e293b;
  --border-strong: #334155;
  --border-focus: #60a5fa;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   3. Navigation Bar & Mobile Drawer
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: background-color var(--transition-base), border-color var(--transition-base), height var(--transition-base);
}

[data-theme="dark"] .navbar {
  background-color: rgba(9, 13, 22, 0.92);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  min-width: 0;
}

.nav-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.nav-brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-brand-title .brand-name {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05rem;
}

.nav-brand-title .brand-tagline {
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

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

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-border);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-overlay {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

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

.btn-amber {
  background-color: var(--solar-amber);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-amber:hover {
  background-color: var(--solar-amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.785rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-pmrf {
  background-color: var(--solar-amber-light);
  color: var(--solar-amber-dark);
  border: 1px solid var(--solar-amber-border);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-emerald {
  background-color: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-neutral {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 0 3.25rem;
  background: radial-gradient(circle at 10% 20%, var(--primary-light) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, var(--solar-amber-light) 0%, transparent 35%);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 35%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-avatar-wrapper {
  position: relative;
  text-align: center;
}

.hero-avatar-frame {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-smooth);
}

.hero-avatar-img:hover {
  transform: scale(1.02);
}

.hero-avatar-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--bg-surface);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--solar-amber-border);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--solar-amber-dark);
}

.hero-avatar-badge svg {
  width: 15px;
  height: 15px;
  color: var(--solar-amber);
}

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

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.hero-designation {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero-affiliation {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-affiliation svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-muted);
}

.hero-summary {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  word-break: break-all;
}

.contact-chip:hover {
  color: var(--primary);
}

.contact-chip svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}

.social-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Highlights & Quick Stats Banner
   -------------------------------------------------------------------------- */
.stats-banner {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border-subtle);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.amber {
  background: var(--solar-amber-light);
  color: var(--solar-amber-dark);
}

.stat-icon.emerald {
  background: var(--emerald-light);
  color: var(--emerald);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Sections & Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-header {
  margin-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-tag {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   8. Research & Objective Card
   -------------------------------------------------------------------------- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.research-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--solar-amber));
}

.research-card.highlight {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--primary-light) 100%);
  border-color: var(--primary-border);
}

.research-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
}

.research-card-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.research-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.keyword-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.keyword-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.objective-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--solar-amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.objective-box strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. Academic Credentials & Education Timeline
   -------------------------------------------------------------------------- */
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.education-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 20px;
  width: 2px;
  background: var(--border-strong);
}

.edu-card {
  position: relative;
  margin-left: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.edu-node {
  position: absolute;
  left: -48px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  z-index: 2;
}

.edu-node svg {
  width: 18px;
  height: 18px;
}

.edu-node.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.edu-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-institution {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.edu-institution svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.edu-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.edu-score-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.edu-details {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.edu-supervisor {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-supervisor svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Publications Section
   -------------------------------------------------------------------------- */
.pub-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
}

.pub-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.pub-search-wrapper {
  position: relative;
  min-width: 260px;
}

.pub-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.25rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.pub-search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface);
}

.pub-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

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

.pub-index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-subtle);
  min-width: 28px;
  line-height: 1.3;
}

.pub-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.pub-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.pub-authors {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pub-authors .author-highlight {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-journal {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

.pub-journal strong {
  font-style: normal;
  color: var(--text-secondary);
}

.pub-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.pub-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pub-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   11. Skills & Lab Expertise
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon-box.amber {
  background: var(--solar-amber-light);
  color: var(--solar-amber-dark);
}

.skill-icon-box.emerald {
  background: var(--emerald-light);
  color: var(--emerald);
}

.skill-icon-box svg {
  width: 22px;
  height: 22px;
}

.skill-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.skill-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Conferences, Seminars & Workshops
   -------------------------------------------------------------------------- */
.conf-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conf-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.conf-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.conf-badge-year {
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.conf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.conf-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.conf-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.conf-authors {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-style: italic;
}

.conf-organizer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--solar-amber-dark);
  margin-top: 0.25rem;
}

.conf-organizer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. Awards & Honors Section
   -------------------------------------------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.award-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.award-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--solar-amber-border);
}

.award-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--solar-amber-light);
  color: var(--solar-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.award-icon-box svg {
  width: 24px;
  height: 24px;
}

.award-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.award-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.award-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.award-year {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--solar-amber-dark);
}

/* --------------------------------------------------------------------------
   14. Referees Section
   -------------------------------------------------------------------------- */
.referees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ref-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

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

.ref-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ref-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ref-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.ref-affiliation {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.ref-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.ref-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ref-contact-item a {
  color: var(--text-secondary);
  word-break: break-all;
}

.ref-contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.ref-contact-item svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. Contact & Lab Location
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-info-label {
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.quick-message-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-message-box h4 {
  font-size: 1.1rem;
}

.quick-message-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   17. Toast & Modal (Citation Copy)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
  z-index: 1000;
  max-width: calc(100vw - 32px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

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

.citation-code {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   18. Back to Top Floating Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-fast);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS (Mobile & Tablet Refinements)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet Landscape & Medium Screens (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }
  .hero-avatar-frame {
    width: 210px;
    height: 210px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .referees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Portrait (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    height: var(--header-height-mobile);
  }

  .nav-avatar-mini {
    width: 34px;
    height: 34px;
  }

  .nav-brand-title .brand-name {
    font-size: 0.95rem;
  }

  .nav-brand-title .brand-tagline {
    font-size: 0.68rem;
  }

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

  .mobile-toggle {
    display: flex;
  }

  /* Slide-down mobile drawer */
  .nav-menu {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height-mobile));
    overflow-y: auto;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem 2rem;
    gap: 0.35rem;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 95;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-subtle);
  }

  .mobile-nav-cta .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  /* Overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-height-mobile);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2.5rem 0 2.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-avatar-frame {
    width: 190px;
    height: 190px;
  }

  .hero-badges-row,
  .hero-designation,
  .hero-affiliation,
  .hero-contacts-row,
  .hero-social-links {
    justify-content: center;
  }

  .hero-affiliation {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-contacts-row {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0.75rem auto 0;
    gap: 0.6rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Stats Grid 2x2 on Tablet/Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .stat-card {
    border-right: none;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: var(--shadow-xs);
  }

  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Grids Stack */
  .research-grid,
  .skills-grid,
  .awards-grid,
  .referees-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Publications Mobile */
  .pub-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .pub-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 0.35rem;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .pub-search-wrapper {
    width: 100%;
    min-width: unset;
  }

  .pub-card {
    padding: 1.35rem 1.15rem;
  }

  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Phones (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Education Timeline on Small Phones */
  .education-timeline::before {
    left: 12px;
  }

  .edu-card {
    margin-left: 28px;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .edu-node {
    left: -28px;
    top: 20px;
    width: 24px;
    height: 24px;
  }

  .edu-node svg {
    width: 12px;
    height: 12px;
  }

  .edu-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .edu-title-group h3 {
    font-size: 1.05rem;
  }

  .edu-institution {
    font-size: 0.85rem;
  }

  .edu-meta {
    gap: 0.35rem;
  }

  .edu-year, .edu-score-pill {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .edu-supervisor {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
  }

  /* Publication Card on Small Phones */
  .pub-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .pub-index {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    width: fit-content;
  }

  .pub-title {
    font-size: 1rem;
  }

  .pub-authors {
    font-size: 0.85rem;
  }

  .pub-journal {
    font-size: 0.825rem;
  }

  .pub-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .pub-tags {
    gap: 0.35rem;
  }

  .pub-tags .badge {
    font-size: 0.725rem;
    padding: 0.2rem 0.5rem;
  }

  .pub-actions {
    width: 100%;
  }

  .pub-actions .btn-cite {
    width: 100%;
  }

  /* Conference Timeline Mobile */
  .conf-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }

  .conf-badge-year {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
  }

  .conf-title {
    font-size: 0.94rem;
  }

  .conf-desc {
    font-size: 0.825rem;
  }

  .conf-organizer {
    font-size: 0.78rem;
  }

  /* Award Card Mobile */
  .award-card {
    padding: 1.15rem 1rem;
    gap: 0.85rem;
    border-radius: var(--radius-md);
  }

  .award-icon-box {
    width: 40px;
    height: 40px;
  }

  .award-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .award-title {
    font-size: 0.98rem;
  }

  .award-subtitle {
    font-size: 0.825rem;
  }

  /* Referees & Contact Mobile */
  .ref-card, .contact-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .ref-name {
    font-size: 1.05rem;
  }

  .quick-message-box {
    padding: 1.15rem;
  }

  .quick-message-box .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Extra Narrow Screens (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .hero-name {
    font-size: 1.75rem;
  }
  
  .hero-avatar-frame {
    width: 160px;
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-card:last-child {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   20. Print Stylesheet
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .navbar, .theme-toggle-btn, .mobile-toggle, .nav-overlay, .hero-cta-group, .pub-controls, .pub-actions, .back-to-top, .footer, .toast, .modal-backdrop {
    display: none !important;
  }
  .hero-section {
    background: none !important;
    padding: 1rem 0 !important;
    border-bottom: 2px solid #000000 !important;
  }
  .hero-grid {
    grid-template-columns: 140px 1fr !important;
    gap: 1.5rem !important;
    text-align: left !important;
  }
  .hero-avatar-frame {
    width: 120px !important;
    height: 120px !important;
  }
  .hero-name {
    font-size: 20pt !important;
  }
  .section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }
  .card, .edu-card, .pub-card, .award-card, .ref-card, .research-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
}
