/* ========================================
   DASHBOARD HORIZONTAL - THEME SYSTEM
   Principal AI Engineer Portfolio
   Light/Dark Mode + Bento Grid Layout
   ======================================== */

/* ========================================
   1. TIPOGRAFÍA MATEMÁTICA (Zero CLS)
   ======================================== */

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter-Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ========================================
   2. DESIGN TOKENS - LIGHT MODE (Default)
   ======================================== */

:root {
  /* Light Theme Colors */
  --bg-surface: #ffffff;
  --bg-card: #f8f9fa;
  --bg-card-hover: #f1f3f5;
  --bg-elevated: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-subtle: rgba(37, 99, 235, 0.1);
  --accent-blue-glow: rgba(37, 99, 235, 0.2);

  --border-subtle: #e2e8f0;
  --border-default: #cbd5e0;
  --border-strong: #a0aec0;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px var(--accent-blue-glow);

  /* Typography */
  --font-primary: 'Inter', 'Inter-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --text-6xl: 5rem;

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ========================================
   3. DARK THEME OVERRIDE
   ======================================== */

[data-theme="dark"] {
  --bg-surface: #000000;
  --bg-card: #1a1a1a;
  --bg-card-hover: #242424;
  --bg-elevated: #2a2a2a;

  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-tertiary: #808080;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  --accent-blue-subtle: rgba(59, 130, 246, 0.2);
  --accent-blue-glow: rgba(59, 130, 246, 0.3);

  --border-subtle: #333333;
  --border-default: #444444;
  --border-strong: #555555;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.8);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.9), 0 2px 4px -1px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.9), 0 4px 6px -2px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.95), 0 10px 10px -5px rgba(0, 0, 0, 0.9);
}

/* ========================================
   4. RESET & BASE
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-base), color var(--transition-base);
}

::selection {
  background-color: var(--accent-blue);
  color: white;
}

/* ========================================
   5. LANGUAGE TOGGLE (MANTENER)
   ======================================== */

.lang-es { display: inline; }
.lang-en { display: none; }

[data-lang="en"] .lang-es { display: none; }
[data-lang="en"] .lang-en { display: inline; }

.hidden { display: none !important; }
[data-lang="en"] .lang-es.hidden { display: none !important; }
[data-lang="en"] .lang-en.hidden { display: block !important; }

/* ========================================
   6. SIDEBAR - FIXED LEFT NAVIGATION
   ======================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border-right: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);

  display: flex;
  flex-direction: column;
  padding: var(--space-xl) 0;

  transition: all var(--transition-slow);
}

[data-theme="dark"] .sidebar {
  background: rgba(10, 10, 10, 0.95);
  border-right-color: var(--border-default);
}

/* Profile Link */
.sidebar-profile {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-xl);
}

.profile-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-link:hover {
  background: var(--accent-blue-subtle);
  transform: translateX(4px);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
}

.profile-name {
  color: var(--text-primary);
  font-weight: 600;
/*  font-size: var(--text-base);*/
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0 var(--space-md);
  overflow-y: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-blue);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  transform: translateX(4px);
}

.nav-link:hover::before {
  height: 70%;
}

/* Sidebar Controls */
.sidebar-controls {
  padding: 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  margin-top: var(--space-md);
}

.control-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.control-btn {
  padding: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Social Share */
.social-share {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
}

.share-btn {
  flex: 1;
  padding: var(--space-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue);
  transform: translateY(-2px) scale(1.05);
}

/* Icon sizing */
.icon-sun,
.icon-moon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ========================================
   7. MAIN CONTAINER - WITH SIDEBAR OFFSET
   ======================================== */

.main-content {
  margin-left: 280px;
  max-width: calc(100vw - 280px);
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  min-height: 100vh;
}

.cv-article {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2xl);
}

/* Increased Base Typography */
body {
  font-size: 1.1rem;
  line-height: 1.7;
}

p {
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
    max-width: 100vw;
    padding: var(--space-xl) var(--space-md);
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

/* ========================================
   9. HERO - HORIZONTAL CARD LAYOUT
   ======================================== */

.cv-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .cv-header {
    grid-template-columns: 400px 1fr;
    align-items: center;
  }
}

.hero-figure {
  position: relative;
}

.hero-image {
  width: 60%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: block;    /* 1. Comportamiento de bloque */
  margin: 0 auto;    /* 2. Márgenes laterales automáticos (Centrado) */
 /*  aspect-ratio: 1200 / 630;*/
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-caption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.name-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 1024px) {
  .name-title {
    font-size: var(--text-5xl);
  }
}

.job-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

.job-title strong {
  color: var(--accent-blue);
}

.tagline {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.contact-address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.contact-address a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-address a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  transition: all var(--transition-base);
}

.social-links a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--accent-blue-subtle);
  transform: translateY(-2px);
}

/* ========================================
   10. SECTIONS - GRID LAYOUTS
   ======================================== */

.cv-section {
  display: grid;
  gap: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* ========================================
   GOLDEN RULE: Section Titles Span Full Width
   ======================================== */
.cv-section .section-title {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* ========================================
   11. RESUMEN - FULL WIDTH CARD
   ======================================== */

#executive-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

#executive-summary p,
#executive-summary ul {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

#executive-summary ul {
  list-style: none;
  padding-left: var(--space-md);
}

#executive-summary li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

#executive-summary li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* ========================================
   12. EXPERIENCIA - 1 COLUMN (FULL WIDTH)
   ======================================== */

.work-role {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-role::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-blue) 0%, transparent 100%);
  opacity: 0.5;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-role:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.work-role:hover::before {
  opacity: 1;
}

.work-header {
  margin-bottom: var(--space-md);
}

.role-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.company-info {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: var(--space-xs);
}

.date-location {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.work-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.work-achievements {
  list-style: none;
  flex-grow: 1;
}

.work-achievements li {
  position: relative;
  padding-left: var(--space-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.work-achievements li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.additional-experience {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--text-base);
  color: var(--text-tertiary);
  grid-column: 1 / -1;
}

/* ========================================
   13. HITOS - 2 COLUMNS (50% / 50%)
   ======================================== */

@media (min-width: 1024px) {
  #milestones-ia {
    grid-template-columns: 1fr 1fr;
  }
}

.milestone-article,
.opensource-projects {
  height: 100%;
}

.milestone-article {
  background: linear-gradient(135deg, var(--accent-blue-subtle) 0%, var(--bg-card) 100%);
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone-article:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px var(--accent-blue-glow), 0 0 40px var(--accent-blue-glow);
}

.milestone-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.milestone-date {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.milestone-project {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.milestone-project a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-base);
}

.milestone-project a:hover {
  border-bottom-color: var(--accent-blue);
}

.milestone-details dt {
  font-weight: 700;
  color: var(--accent-blue);
  font-size: var(--text-base);
  margin-top: var(--space-md);
}

.milestone-details dd {
  margin-left: var(--space-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.opensource-projects {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.opensource-projects:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.subsection-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.projects-list {
  list-style: none;
  display: grid;
  gap: var(--space-md);
}

.projects-list li {
  padding: var(--space-md);
  border-left: 3px solid var(--accent-blue);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.projects-list li:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.projects-list li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ========================================
   14. COMPETENCIAS - 4 COLUMNS GRID
   ======================================== */

@media (min-width: 768px) {
  #skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #skills {
    grid-template-columns: repeat(2, 1fr);
  }

  #skills .section-title {
    grid-column: 1 / -1;
  }
}

.competence-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  height: 100%;
}

.competence-category:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-blue);
}

.competence-list dt {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-top: var(--space-sm);
}

.competence-list dd {
  margin-left: var(--space-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ========================================
   15. EDUCATION - 3 COLUMNS GRID (Degree | Kaggle | Certs)
   ======================================== */

@media (min-width: 768px) {
  #qualifications {
    grid-template-columns: 1fr 1.5fr;
  }
}

@media (min-width: 1024px) {
  #qualifications {
    grid-template-columns: 1fr 1.5fr;
  }
}

.education-item,
.certifications-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item {
  border-left: 4px solid var(--accent-blue);
}

.education-item:hover,
.certifications-compact:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Kaggle Winner Featured Card */
.kaggle-featured {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 3px solid #DAA520;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -5px rgba(255, 215, 0, 0.3);
  text-align: center;
}

.kaggle-featured::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.kaggle-featured:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px -10px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.3);
}

.featured-badge {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.featured-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #8B4513;
  margin-bottom: var(--space-sm);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.featured-desc {
  font-size: var(--text-base);
  font-weight: 600;
  color: #654321;
  margin-bottom: var(--space-xs);
}

.featured-highlight {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #8B4513;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.education-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.institution {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.cert-list,
.lang-list {
  list-style: none;
}

.cert-list li,
.lang-list li {
  position: relative;
  padding-left: var(--space-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.cert-list li::before,
.lang-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.cert-list ul {
  margin-top: var(--space-xs);
  margin-left: var(--space-md);
  list-style: circle;
}

.cert-list ul li::before {
  content: none;
}

/* Compact Lists */
.cert-list-compact,
.lang-list-compact {
  list-style: none;
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.cert-list-compact li,
.lang-list-compact li {
  position: relative;
  padding-left: var(--space-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.cert-list-compact li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.lang-list-compact li::before {
  content: none;
}

/* ========================================
   16. CONTACT - CENTERED CARD
   ======================================== */

.contact-info {
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  justify-content: center;
/*  margin-top: var(--space-lg);*/
}

.contact-list a {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--accent-blue);
  border-radius: 100px;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.contact-list a:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========================================
   17. FOOTER
   ======================================== */

.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.site-footer p {
  margin-bottom: var(--space-sm);
}

/* ========================================
   18. SEMANTIC TAGS
   ======================================== */

dfn {
  font-style: normal;
  font-weight: 600;
  color: inherit;
  border-bottom: 1px dotted var(--text-tertiary);
  cursor: help;
  transition: all var(--transition-base);
}

dfn:hover {
  background-color: var(--accent-blue-subtle);
  border-bottom-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ========================================
   19. LINKS & INTERACTIVE
   ======================================== */

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-blue-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   19.5. ACCORDION SYSTEM
   ======================================== */

.accordion-toggle {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: var(--space-xl);
  transition: all var(--transition-base);
}

.accordion-toggle:hover {
  color: var(--accent-blue);
}

.accordion-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-blue);
}

.accordion-toggle.collapsed .accordion-icon {
  transform: translateY(-50%) rotate(-90deg);
}

.accordion-content {
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  margin-top: var(--space-md);
}

.accordion-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

/* Accordion SVG icons for social share */
.share-btn svg,
.control-btn svg {
  display: block;
  transition: all var(--transition-base);
}

.share-btn:hover svg,
.control-btn:hover svg {
  transform: scale(1.1);
}

/* ========================================
   20. ACCESSIBILITY
   ======================================== */

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   21. SCROLL ENHANCEMENTS
   ======================================== */

html {
  scroll-padding-top: 80px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* ========================================
   22. PRINT STYLES (PDF EXPORT OPTIMIZED)
   ======================================== */

@media print {
  /* Hide interactive elements */
  .sidebar,
  .site-footer {
    display: none !important;
  }

  /* Reset main content margin */
  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 1rem !important;
  }

  /* Force clean print appearance */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: white !important;
    color: black !important;
    font-size: 10pt;
    line-height: 1.4;
  }

  /* Single column layout for paper */
  .cv-article {
    display: block;
  }

  .cv-header {
    display: block !important;
    page-break-after: avoid;
  }

  .cv-section {
    display: block !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  /* Remove shadows and backgrounds to save ink */
  .cv-header,
  .cv-section,
  .work-role,
  .milestone-article,
  .opensource-projects,
  .competence-category,
  .education-item,
  .certifications,
  .languages,
  .contact-info {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  /* Simplify typography */
  .name-title {
    font-size: 24pt !important;
    color: black !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
  }

  .section-title {
    font-size: 16pt !important;
    color: black !important;
    border-bottom: 2px solid black;
    padding-bottom: 0.25rem;
    margin-top: 1rem;
  }

  /* Ensure links are visible */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }

  /* Optimize spacing */
  .hero-image {
    max-width: 200px;
    float: right;
    margin: 0 0 1rem 1rem;
  }
}
