/* ===================================================================
   Michael Vanuzzo - Personal Portfolio & Academic Website
   Design: Modern Tech-Minimalist
   =================================================================== */

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

:root {
  /* Colors - Light Theme (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-focus: #2563eb;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-primary-subtle: rgba(37, 99, 235, 0.08);
  
  --badge-emerald-bg: rgba(16, 185, 129, 0.12);
  --badge-emerald-text: #047857;
  --badge-emerald-border: rgba(16, 185, 129, 0.25);
  
  --badge-blue-bg: rgba(37, 99, 235, 0.1);
  --badge-blue-text: #1d4ed8;
  --badge-blue-border: rgba(37, 99, 235, 0.22);
  
  --badge-amber-bg: rgba(245, 158, 11, 0.12);
  --badge-amber-text: #b45309;
  --badge-amber-border: rgba(245, 158, 11, 0.3);
  
  --badge-purple-bg: rgba(139, 92, 246, 0.12);
  --badge-purple-text: #6d28d9;
  --badge-purple-border: rgba(139, 92, 246, 0.25);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #111827;
  --bg-card-subtle: #172136;
  --bg-card-hover: #162032;
  --bg-glass: rgba(15, 23, 42, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #3b82f6;

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

  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-primary-subtle: rgba(59, 130, 246, 0.15);

  --badge-emerald-bg: rgba(16, 185, 129, 0.16);
  --badge-emerald-text: #34d399;
  --badge-emerald-border: rgba(16, 185, 129, 0.3);

  --badge-blue-bg: rgba(59, 130, 246, 0.16);
  --badge-blue-text: #60a5fa;
  --badge-blue-border: rgba(59, 130, 246, 0.3);

  --badge-amber-bg: rgba(245, 158, 11, 0.18);
  --badge-amber-text: #fbbf24;
  --badge-amber-border: rgba(245, 158, 11, 0.35);

  --badge-purple-bg: rgba(167, 139, 250, 0.18);
  --badge-purple-text: #c4b5fd;
  --badge-purple-border: rgba(167, 139, 250, 0.3);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Container */
.container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  line-height: 1.2;
}

.brand-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--accent-primary-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  background: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.mobile-menu-toggle {
  display: none;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: center;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  width: fit-content;
  border-radius: var(--radius-full);
  background: var(--badge-emerald-bg);
  color: var(--badge-emerald-text);
  border: 1px solid var(--badge-emerald-border);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background-color: #10b981;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

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

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  background: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  transition: all var(--transition-fast);
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

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

/* Hero Key Metric Badges */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1.15;
}

.hero-stat-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Split Columns (Education & Awards Side-by-Side to cut scroll length) */
.split-academic-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.split-col-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-subtle);
}

.split-col-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Full-Width Advanced Training Grid */
.advanced-training-section {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.training-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all var(--transition-fast);
}

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

.training-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.training-location {
  font-size: 0.775rem;
  color: var(--text-light);
}

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

.training-organizer {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.training-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: auto;
}

/* Floating Back-to-Top Button */
.floating-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.floating-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* Avatar Styling */
.hero-avatar-wrapper {
  position: relative;
}

.avatar-container {
  width: 210px;
  height: 210px;
  border-radius: var(--radius-full);
  padding: 5px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #06b6d4 50%, #10b981 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-card);
  border: 3px solid var(--bg-primary);
}

/* Section Common */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 650px;
}

/* Research Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), #06b6d4);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pillar-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Filter Controls (Tabs) */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

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

.tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  color: var(--text-muted);
}

.tab-btn.active .tab-count {
  background: var(--accent-primary-subtle);
  color: var(--accent-primary);
}

/* Publications List */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.pub-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.badge-journal {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  border: 1px solid var(--badge-blue-border);
}

.badge-conference {
  background: var(--badge-purple-bg);
  color: var(--badge-purple-text);
  border: 1px solid var(--badge-purple-border);
}

.badge-award {
  background: var(--badge-amber-bg);
  color: var(--badge-amber-text);
  border: 1px solid var(--badge-amber-border);
  font-weight: 700;
}

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

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.pub-title a {
  color: var(--text-primary);
}

.pub-title a:hover {
  color: var(--accent-primary);
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

.pub-award-callout {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--badge-amber-bg);
  border: 1px solid var(--badge-amber-border);
  border-radius: var(--radius-sm);
  color: var(--badge-amber-text);
  font-size: 0.825rem;
  font-weight: 600;
}

.pub-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  background: var(--bg-card-subtle);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent-primary-subtle);
  transition: all var(--transition-fast);
}

.pub-link-btn:hover {
  background: var(--accent-primary);
  color: #ffffff !important;
}

.scholar-cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.scholar-cta-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.exp-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

.exp-role-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-position {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.exp-company {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.exp-company a {
  color: var(--text-secondary);
}

.exp-company a:hover {
  color: var(--accent-primary);
}

.exp-meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.exp-location {
  font-size: 0.8rem;
  color: var(--text-light);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.exp-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.exp-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exp-highlights-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-highlights-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.exp-highlights-list li strong {
  color: var(--text-primary);
}

.exp-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.exp-accordion-toggle:hover {
  background: var(--accent-primary-subtle);
}

.exp-accordion-toggle svg {
  transition: transform var(--transition-fast);
}

.exp-accordion-toggle.expanded svg {
  transform: rotate(180deg);
}

/* Education Cards */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

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

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.edu-inst {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-body strong {
  color: var(--text-primary);
}

.edu-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Awards & Honors */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.award-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.award-item.highlight {
  border-left: 4px solid var(--accent-amber);
}

.award-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.award-year {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.award-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.award-awarder {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.award-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.award-location {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Skills Grid */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.skill-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-pill {
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-primary-subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

/* Back to Top */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-primary);
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-avatar-wrapper {
    order: -1;
    margin: 0 auto;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta-row {
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .split-academic-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .training-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .floating-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .award-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .award-location {
    display: none;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-meta-group {
    align-items: flex-start;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}
