/* ==========================================================================
   José Manuel Heredia Reyes — Interactive CV & Executive Portfolio
   Ultra-modern Executive Dark Theme with Full Print Optimization
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(31, 41, 55, 0.95);
  --border-subtle: rgba(56, 189, 248, 0.14);
  --border-accent: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(56, 189, 248, 0.6);

  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;

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

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.18);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #07090f;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #07090f;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

/* Background Dynamic Canvas & Ambient Glow */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, rgba(37, 99, 235, 0.2) 50%, transparent 75%);
  top: -80px;
  left: -80px;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 75%);
  bottom: -100px;
  right: -80px;
  animation: floatOrb2 24s ease-in-out infinite alternate;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 75%);
  top: 35%;
  left: 25%;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(200px, 130px, 0) scale(1.18); }
  100% { transform: translate3d(80px, 260px, 0) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-170px, -150px, 0) scale(1.15); }
  100% { transform: translate3d(-250px, -60px, 0) scale(0.94); }
}

@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(0.92); }
  50% { transform: translate3d(-130px, 80px, 0) scale(1.22); }
  100% { transform: translate3d(110px, -100px, 0) scale(1); }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

/* Page Content Layering */
.hero, main, .footer {
  position: relative;
  z-index: 2;
}

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

a:hover {
  color: #7dd3fc;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.88);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-badge {
  display: none;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

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

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(31, 41, 55, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}

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

.lang-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff !important;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(31, 41, 55, 0.7);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(55, 65, 81, 0.9);
  border-color: var(--border-accent);
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
}

.btn-linkedin {
  background: linear-gradient(135deg, #0a66c2, #0077b5);
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
}

.btn-linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #005885);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.55);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-avatar-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.35);
}

.status-indicator {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: #064e3b;
  border: 1px solid #059669;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #a7f3d0;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

/* About / Executive Summary */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.summary-card p {
  margin-bottom: 1.25rem;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.metric-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.metric-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  word-break: normal;
}

.metric-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

/* Experience Filters */
.filter-tabs,
.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-cyan);
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 54px;
}

.timeline-marker {
  position: absolute;
  top: 1.25rem;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateX(4px);
}

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

.timeline-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.badge-primary {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-accent {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-secondary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-ai {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(56, 189, 248, 0.22));
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.timeline-role,
.role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.timeline-company,
.company-name {
  color: var(--accent-cyan);
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-desc,
.role-bullets {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.timeline-desc li,
.role-bullets li {
  margin-bottom: 0.45rem;
}

.tag-list,
.tech-tags,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag,
.tech-tag {
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tag:hover,
.tech-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

.tag-highlight {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  font-weight: 600;
}

.tech-tag-ai {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  color: #e9d5ff !important;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

.hero-pill-ai {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  color: #d8b4fe !important;
}

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

.skill-category {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-accent);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-category-title,
.skill-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
}

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

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

.edu-certs-wrapper {
  margin-top: 2.25rem;
}

.edu-certs-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-grid-certs {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .edu-grid-certs {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 0.6rem;
}

.edu-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.edu-institution {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.edu-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Portfolio & Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.project-subtitle {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.project-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.15rem;
  }
  .nav-container {
    height: 60px;
  }
  .brand {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero {
    padding: 2.25rem 0 2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.75rem;
  }
  .hero-avatar-wrapper {
    width: 160px;
    height: 160px;
  }
  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-pills {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
  .nav-menu {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skills-grid,
  .edu-grid,
  .edu-grid-degrees,
  .edu-grid-certs,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    padding-left: 32px;
  }
  .timeline-marker {
    left: 0;
    width: 18px;
    height: 18px;
  }
  .timeline-card {
    padding: 1.25rem 1rem;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .timeline-date {
    align-self: flex-start;
  }
  .summary-card {
    padding: 1.35rem 1rem;
    font-size: 1rem;
  }
  .project-card,
  .edu-card,
  .skill-category {
    padding: 1.35rem 1rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    flex: 1 1 100%;
  }
  .brand {
    font-size: 0.92rem;
  }
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Print Optimization (@media print)
   Generates a flawless, high-contrast, clean corporate PDF when printing
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt;
    line-height: 1.4;
  }
  .header, .nav-cta, .hero-actions, .filter-tabs, .timeline-filters, .footer, .btn, .status-indicator, #bg-canvas, .ambient-glow-wrapper {
    display: none !important;
  }
  .hero {
    padding: 1rem 0 !important;
    border-bottom: 2px solid #0284c7 !important;
  }
  .hero-title {
    color: #0f172a !important;
    font-size: 20pt !important;
  }
  .hero-subtitle {
    color: #0284c7 !important;
    font-size: 12pt !important;
  }
  .hero-pills .hero-pill {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
  }
  .section {
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    page-break-inside: avoid;
  }
  .section-title {
    color: #0f172a !important;
    font-size: 14pt !important;
  }
  .timeline::before {
    display: none !important;
  }
  .timeline-item {
    padding-left: 0 !important;
    margin-bottom: 1rem !important;
  }
  .timeline-marker {
    display: none !important;
  }
  .timeline-card, .skill-category, .edu-card, .summary-card, .metric-card, .project-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    color: #334155 !important;
    padding: 1rem !important;
  }
  .timeline-role, .role-title, .skill-category-title, .skill-cat-title, .edu-title, .project-title {
    color: #0f172a !important;
  }
  .timeline-company, .company-name, .edu-institution, .project-subtitle {
    color: #0284c7 !important;
  }
  .tag, .tech-tag {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
  }
  .timeline-badge {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    background: #f1f5f9 !important;
  }
  a {
    color: #0284c7 !important;
    text-decoration: none !important;
  }
}
