/* ==========================================================================
   Yuanhao Ma (马源浩) - Professional Resume Website Stylesheet
   Style: High-Impact Executive, Two-Tier Clean Navigation, Intro Highlight Showcase & Fluid Responsiveness
   ========================================================================== */

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-hero-glow: radial-gradient(circle at 50% 8%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%);

  --text-primary: #090e17;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  --accent-primary: #1d4ed8;
  --accent-primary-hover: #1e40af;
  --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #0d9488 100%);
  --accent-light: #eff6ff;
  --accent-border: #bfdbfe;

  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  --accent-teal-border: #99f6e4;

  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-purple: #7c3aed;
  --accent-purple-light: #f5f3ff;
  --accent-purple-border: #ddd6fe;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.08), 0 3px 6px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 30px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 45px -8px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: #070b12;
  --bg-secondary: #0d131f;
  --bg-tertiary: #162032;
  --bg-card: #0f172a;
  --bg-glass: rgba(13, 19, 31, 0.92);
  --bg-hero-glow: radial-gradient(circle at 50% 8%, rgba(59, 130, 246, 0.18) 0%, rgba(7, 11, 18, 0) 75%);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #070b12;

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

  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #2dd4bf 100%);
  --accent-light: rgba(59, 130, 246, 0.16);
  --accent-border: rgba(59, 130, 246, 0.35);

  --accent-teal: #14b8a6;
  --accent-teal-light: rgba(20, 184, 166, 0.16);
  --accent-teal-border: rgba(20, 184, 166, 0.35);

  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.16);
  --accent-amber-border: rgba(245, 158, 11, 0.35);

  --accent-purple: #a855f7;
  --accent-purple-light: rgba(168, 85, 247, 0.16);
  --accent-purple-border: rgba(168, 85, 247, 0.35);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: var(--bg-hero-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  font-size: 1.05rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast), transform 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;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2.5rem);
}

/* ==========================================================================
   Page Entrance Highlight Showcase Overlay (进入页面特效)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.intro-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  animation: introPopIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes introPopIn {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-gradient);
}

.intro-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.intro-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.intro-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md), 0 0 15px rgba(255, 255, 255, 0.25);
}

.intro-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 2px;
}

.intro-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.intro-name {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.intro-name-native {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.intro-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.intro-showcase-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.intro-sparkle {
  color: #f59e0b;
}

/* 4 Staggered Animated Highlight Badges */
.intro-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.intro-badge-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  animation: badgeSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
  transition: all var(--transition-fast);
}

.intro-badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  background: var(--bg-card);
}

@keyframes badgeSlideIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intro-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.intro-badge-icon.blue { background: var(--accent-light); color: var(--accent-primary); }
.intro-badge-icon.teal { background: var(--accent-teal-light); color: var(--accent-teal); }
.intro-badge-icon.amber { background: var(--accent-amber-light); color: var(--accent-amber); }
.intro-badge-icon.purple { background: var(--accent-purple-light); color: var(--accent-purple); }

.intro-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.intro-badge-text p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.2rem;
}

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

.btn-enter-resume {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-enter-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

.intro-timer-hint {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.intro-progress-bar {
  width: 140px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.intro-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  animation: countdownProgress 3.6s linear forwards;
}

@keyframes countdownProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ==========================================================================
   Two-Tier Clean Header & Dedicated Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

/* Tier 1: Brand & Control Toolbar (Logo, Name, Tools Together) */
.header-top-bar {
  border-bottom: 1px solid var(--border-subtle);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .brand-logo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-badge {
  font-size: 0.775rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-primary);
  font-weight: 700;
  border: 1px solid var(--accent-border);
}

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

.btn-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-control:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-highlight-tour {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border-color: var(--accent-amber-border);
}

.btn-highlight-tour:hover {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
}

.btn-download {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

.btn-download:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.contact-pill.highlight-pill {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-border);
  font-weight: 700;
}

.contact-pill.highlight-pill:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.contact-pill.highlight-pill:hover .contact-icon {
  color: #ffffff;
}

.btn-print {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-print:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
}

/* Tier 2: Dedicated Navigation Row (具体的导航放在一起 - 宽敞大气) */
.header-nav-bar {
  background: var(--bg-card);
}

.nav-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.main-navigation {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.8vw, 1.5rem);
  list-style: none;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

/* ==========================================================================
   Hero Profile Section
   ========================================================================== */
.hero-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-gradient);
}

.hero-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-halo {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.25); }
  100% { box-shadow: 0 0 35px rgba(13, 148, 136, 0.45); }
}

.hero-avatar {
  width: clamp(180px, 20vw, 240px);
  height: clamp(220px, 25vw, 300px);
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
  transition: transform var(--transition-normal);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--accent-teal-light);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal-border);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-name-row {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-name-native {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-muted);
}

.hero-title-box {
  display: inline-block;
}

.hero-title {
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero-summary {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.contact-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-pill.actionable {
  cursor: pointer;
}

.contact-icon {
  width: 19px;
  height: 19px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.copy-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
  font-weight: 500;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.stat-num {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Section Headers & Components
   ========================================================================== */
.section-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-head {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1rem;
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 90px;
  height: 2px;
  background: var(--accent-gradient);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.section-icon {
  width: 26px;
  height: 26px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.925rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem;
}

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

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  background: var(--accent-gradient);
  transition: opacity var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-focus);
}

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

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.pillar-icon-box.blue { background: var(--accent-light); color: var(--accent-primary); }
.pillar-icon-box.teal { background: var(--accent-teal-light); color: var(--accent-teal); }
.pillar-icon-box.amber { background: var(--accent-amber-light); color: var(--accent-amber); }
.pillar-icon-box.purple { background: var(--accent-purple-light); color: var(--accent-purple); }

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

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

/* ==========================================================================
   Experience Filters & Timeline
   ========================================================================== */
.experience-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
  transform: translateY(-2px);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 24px;
  width: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.timeline-item.hidden {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 14px;
  top: 26px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 0 5px var(--bg-primary);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  background: var(--accent-primary);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

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

.timeline-card.highlight-card {
  border-left: 5px solid var(--accent-primary);
}

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

.timeline-role-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-role-title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.timeline-company a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.timeline-date {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-border);
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.leadership-banner {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--accent-amber-light);
  border: 1px solid var(--accent-amber-border);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.leadership-banner-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.leadership-banner-text {
  font-size: 0.975rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.leadership-banner-text strong {
  color: #92400e;
  display: block;
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

[data-theme="dark"] .leadership-banner-text strong {
  color: #fbbf24;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-bullets li::before {
  content: "→";
  position: absolute;
  left: 0.2rem;
  color: var(--accent-primary);
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.timeline-bullets li:hover::before {
  transform: translateX(3px);
}

.timeline-bullets strong {
  color: var(--text-primary);
  font-weight: 700;
}

.timeline-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--border-subtle);
}

/* ==========================================================================
   Projects Grid
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
}

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

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

.project-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}

.project-badge.media { background: var(--accent-purple-light); color: var(--accent-purple); border-color: var(--accent-purple-border); }

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Skills Matrix
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.75rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all var(--transition-normal);
}

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

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.skill-category-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.skill-category-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-chip {
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

/* ==========================================================================
   Certifications, Education & Honors
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.credential-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

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

.cred-icon-wrap.gold {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.cred-icon-wrap.teal {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

.cred-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.cred-issuer {
  font-size: 0.925rem;
  color: var(--text-secondary);
  font-weight: 600;
}

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

/* ==========================================================================
   Contact CTA Section (No Phone)
   ========================================================================== */
.contact-cta-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.contact-cta-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

.contact-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-gradient);
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.cta-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  text-align: center;
  font-size: 0.925rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Scroll-Triggered Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification & Back to Top */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Multi-Device Responsive Breakpoints & Mobile Drawer Architecture
   (保证手机端全屏内容与操作根据屏幕比例100%自适应且绝不拥挤)
   ========================================================================== */

/* Mobile Drawer Overlay Styles */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: relative;
  z-index: 2;
  width: min(85vw, 360px);
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

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

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.mobile-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-section-title {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--accent-light);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
}

.mobile-action-card:hover {
  background: var(--bg-card);
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.mobile-action-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.mobile-action-card p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Responsive Rules for Tablet & Mobile (<= 880px) */
@media (max-width: 880px) {
  /* In top toolbar: hide bulky buttons to keep header completely uncrowded */
  .header-top-bar .btn-highlight-tour,
  .header-top-bar .btn-download,
  .header-top-bar .btn-print {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.35rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
  }

  .nav-actions {
    gap: 0.45rem;
  }

  /* Horizontal Swipeable Capsule Nav Ribbon (保证所有板块手机端随时可见且可左右滑动) */
  .header-nav-bar {
    display: block !important;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem 0;
  }

  .header-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .nav-bar-container {
    padding: 0 0.5rem;
    justify-content: flex-start;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0 0.25rem;
  }

  .nav-link {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
  }

  .nav-link.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
  }

  /* Hero Section scaling */
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.25rem 1.5rem;
    gap: 2rem;
  }

  .hero-avatar-wrap {
    margin: 0 auto;
  }

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

  .contact-grid {
    justify-content: center;
  }

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

/* Smartphone Breakpoint (<= 600px) */
@media (max-width: 600px) {
  /* Make theme & lang buttons icon-only to eliminate any crowding */
  #langToggleBtn .lang-text,
  #themeToggleBtn .theme-text {
    display: none;
  }

  .btn-control {
    padding: 0.45rem 0.65rem;
    min-width: 38px;
    height: 38px;
    justify-content: center;
  }

  .top-bar-container {
    height: 54px;
    padding: 0 0.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-marker {
    left: 3px;
  }

  .timeline-item {
    padding-left: 42px;
  }

  .timeline-card {
    padding: 1.35rem;
  }

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

  .timeline-meta {
    align-items: flex-start;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions a {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .intro-card {
    padding: 1.5rem 1.25rem;
  }

  .intro-highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra Compact Phones (<= 440px e.g. iPhone SE) */
@media (max-width: 440px) {
  .brand-badge {
    display: none;
  }

  .brand {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .hero-name {
    font-size: 1.85rem;
  }

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

  .pillar-card {
    padding: 1.35rem;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (@media print)
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #111827 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    font-size: 10pt;
    line-height: 1.4;
    background: #ffffff !important;
    color: #111827 !important;
  }

  .intro-overlay,
  .site-header,
  .nav-actions,
  .mobile-menu-toggle,
  .experience-filters,
  .contact-cta-section,
  .site-footer,
  .toast,
  .back-to-top,
  .copy-hint,
  .status-badge {
    display: none !important;
  }

  .hero-section {
    padding: 0.25in 0 0.15in !important;
  }

  .hero-card {
    border: none !important;
    padding: 0 !important;
    grid-template-columns: 120px 1fr !important;
    gap: 1.25in !important;
  }

  .hero-avatar {
    width: 110px !important;
    height: 135px !important;
    border: 1px solid #cbd5e1 !important;
  }

  .hero-name {
    font-size: 18pt !important;
    color: #0f172a !important;
  }

  .hero-title {
    font-size: 11pt !important;
    color: #1e3a8a !important;
    -webkit-text-fill-color: initial !important;
  }

  .hero-summary {
    font-size: 9pt !important;
  }

  .hero-stats {
    display: none !important;
  }

  .section-block {
    padding: 0.15in 0 !important;
  }

  .timeline::before,
  .timeline-marker {
    display: none !important;
  }

  .timeline-item {
    padding-left: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 0.12in !important;
  }

  .timeline-card {
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 0 0.1in 0 !important;
  }

  .project-card,
  .skill-category-card,
  .cred-card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
