/* ==========================================================================
   Vincenzo Forciniti - Personal & Professional Website
   Modern Vanilla CSS3 - Responsive, Fast, Zero External Dependencies
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Light Theme Variables */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-header: rgba(248, 250, 252, 0.85);
  --border-color: #e2e8f0;
  --border-focus: #0284c7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.15);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --success: #10b981;
  --badge-bg: #e0f2fe;
  --badge-text: #0369a1;
  --tag-bg: #f1f5f9;
  --tag-text: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   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-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px var(--primary-glow);
  flex-shrink: 0;
}

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

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--badge-bg);
  font-weight: 600;
}

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

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.35rem;
  border-radius: 0.55rem;
  gap: 0.15rem;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
  line-height: 1;
}

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

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px var(--primary-glow);
}

.lang-divider {
  font-size: 0.75rem;
  color: var(--text-light);
  user-select: none;
}

.mobile-menu-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--border-color);
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-header);
  gap: 0.5rem;
}

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

.mobile-nav .nav-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 48rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.btn-outline {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* ==========================================================================
   CV & Timeline
   ========================================================================== */
.cv-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cv-tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.cv-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.6rem;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px var(--bg-body);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.timeline-body {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.timeline-body a {
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Separate CV Subsections: Work, Education, Certifications
   ========================================================================== */
.cv-subblock {
  margin-bottom: 3.5rem;
}

.cv-subblock:last-child {
  margin-bottom: 0;
}

.cv-subblock-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.cv-subblock-title svg {
  color: var(--primary);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

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

.cert-issuer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-date {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.skill-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.skill-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ==========================================================================
   Cards Grid (Manuali & Links)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

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

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

.project-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  text-transform: uppercase;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Categories for Links */
.link-category {
  margin-bottom: 2.5rem;
}

.link-category-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

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

.contact-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-body);
  padding: 0.85rem 1.35rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

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

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

/* Print elements hidden by default on screen */
.print-cv-header,
.print-cv-footer {
  display: none;
}

/* ==========================================================================
   Print Styles (Curriculum Vitae print / PDF export)
   ========================================================================== */
@media print {
  @page {
    size: A4;
    margin: 1.2cm 1.4cm 1.2cm 1.4cm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 9.5pt !important;
    line-height: 1.4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide interactive web elements */
  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .mobile-nav,
  .hero,
  .hero-actions,
  .hero-stats,
  .cv-tabs,
  #manuali,
  #contatti,
  .toast,
  #site-toast,
  .section-header,
  .timeline-marker,
  .timeline::before,
  .card-link,
  .project-footer,
  .skill-icon-wrap,
  .cv-subblock-title svg,
  .link-category-title svg,
  #links .link-category:nth-child(3),
  #links .link-category:nth-child(4) {
    display: none !important;
  }

  .section {
    padding: 0 !important;
    margin: 0 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Executive Print Header */
  .print-cv-header {
    display: block !important;
    margin-bottom: 14pt !important;
    padding-bottom: 10pt !important;
    border-bottom: 2pt solid #0f172a !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .print-cv-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 6pt !important;
  }

  .print-cv-name {
    font-size: 22pt !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    margin: 0 0 2pt 0 !important;
    text-transform: uppercase !important;
  }

  .print-cv-role {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
  }

  .print-cv-contacts {
    font-size: 8.5pt !important;
    color: #374151 !important;
    text-align: right !important;
    line-height: 1.45 !important;
  }

  .print-cv-contacts strong {
    color: #111827 !important;
  }

  .print-cv-summary {
    font-size: 9pt !important;
    line-height: 1.45 !important;
    color: #334155 !important;
    font-style: italic !important;
    border-left: 2pt solid #94a3b8 !important;
    padding-left: 8pt !important;
    margin-top: 4pt !important;
  }

  /* Section Headings */
  .cv-subblock {
    margin-bottom: 14pt !important;
  }

  .cv-subblock-title,
  .link-category-title {
    font-size: 11pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #0f172a !important;
    border-bottom: 1.5pt solid #0f172a !important;
    padding-bottom: 2pt !important;
    margin: 14pt 0 8pt 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    display: block !important;
  }

  /* Work Experience Timeline */
  .timeline {
    padding-left: 0 !important;
  }

  .timeline-item {
    margin-bottom: 11pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .timeline-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .timeline-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 2pt !important;
  }

  .timeline-role {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  .timeline-company {
    font-size: 9.5pt !important;
    font-weight: 600 !important;
    color: #1d4ed8 !important;
    margin-top: 1pt !important;
  }

  .timeline-date {
    font-size: 8.5pt !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  .timeline-body {
    font-size: 9pt !important;
    line-height: 1.4 !important;
    color: #334155 !important;
    margin-top: 2pt !important;
  }

  .tags-list {
    display: block !important;
    margin-top: 3pt !important;
    font-size: 8pt !important;
    color: #64748b !important;
  }

  .tags-list::before {
    content: "Tech: " !important;
    font-weight: 700 !important;
    color: #475569 !important;
  }

  .tags-list .tag-pill {
    display: inline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #64748b !important;
    font-size: 8pt !important;
  }

  .tags-list .tag-pill:not(:last-child)::after {
    content: " • " !important;
    color: #cbd5e1 !important;
  }

  /* Academic Education */
  .education-grid {
    display: block !important;
  }

  .education-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 9pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .education-card .timeline-header {
    margin-bottom: 1pt !important;
  }

  .education-card .timeline-role {
    font-size: 10pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .education-card .timeline-company {
    font-size: 9pt !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
  }

  .education-card .timeline-body {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    color: #334155 !important;
  }

  /* Certifications (2-column compact grid) */
  .certs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3pt 14pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cert-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 2pt 0 !important;
    border-bottom: 0.5pt solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cert-top {
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 4pt !important;
  }

  .cert-issuer {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
  }

  .cert-date {
    font-size: 7.5pt !important;
    color: #64748b !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    padding-left: 6pt !important;
  }

  .cert-title {
    font-size: 8pt !important;
    color: #334155 !important;
    font-weight: 500 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 200pt !important;
  }

  /* Skills Section */
  #skills {
    margin-top: 14pt !important;
    margin-bottom: 14pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .skills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8pt 14pt !important;
  }

  .skill-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .skill-title {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 0.5pt solid #cbd5e1 !important;
    padding-bottom: 2pt !important;
    margin-bottom: 3pt !important;
  }

  .skill-desc {
    font-size: 8pt !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    margin-bottom: 3pt !important;
  }

  .skill-pills {
    display: block !important;
    font-size: 7.5pt !important;
    color: #64748b !important;
  }

  .skill-pills .tag-pill {
    display: inline !important;
    font-size: 7.5pt !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #475569 !important;
  }

  .skill-pills .tag-pill:not(:last-child)::after {
    content: " • " !important;
    color: #cbd5e1 !important;
  }

  /* Publications, Patents & Talks */
  #links {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 10pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #links .link-category {
    margin-bottom: 10pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #links .cards-grid {
    display: block !important;
  }

  #links .project-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 8pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #links .project-badge {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-block !important;
    margin-bottom: 1pt !important;
    background: none !important;
    padding: 0 !important;
  }

  #links .project-title {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 1pt 0 !important;
  }

  #links .project-desc {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    margin: 1pt 0 0 0 !important;
  }

  /* Print GDPR Footer */
  .print-cv-footer {
    display: block !important;
    margin-top: 18pt !important;
    padding-top: 8pt !important;
    border-top: 0.5pt solid #cbd5e1 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-cv-footer p {
    font-size: 7.5pt !important;
    color: #64748b !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: center !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-card {
    padding: 1.75rem;
  }

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

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

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.75rem;
  }

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

  .skills-grid, .cards-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }
}
