/* ==========================================================================
   PHILIPPE VIENNE — PORTFOLIO & CV PROFESSIONNEL
   Design System : Bleu Europe & Confiance Institutionnelle
   ========================================================================== */

:root {
  /* Palette Haute Précision Cloud & Tech */
  --eu-blue: #2563eb;          /* Bleu technologique moderne (Blue 600) */
  --eu-blue-deep: #1d4ed8;     /* Bleu profond (Blue 700) */
  --eu-blue-light: #3b82f6;    /* Bleu vif actif (Blue 500) */
  --eu-gold: #f59e0b;          /* Ambre doré prestigieux */
  --eu-gold-dark: #d97706;     /* Ambre contrasté */

  /* Thème Clair (High Trust & Clarity) */
  --bg-primary: #f8fafc;       /* Slate 50 */
  --bg-secondary: #ffffff;     /* Blanc pur pour cartes */
  --bg-tertiary: #f1f5f9;      /* Slate 100 */
  --text-primary: #0f172a;     /* Slate 900 */
  --text-secondary: #334155;   /* Slate 700 */
  --text-muted: #64748b;       /* Slate 500 */
  --border-subtle: #e2e8f0;    /* Slate 200 */
  --border-focus: #2563eb;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 12px 32px -4px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);

  /* Accents */
  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-text: #2563eb;
  --success-color: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);

  /* Polices */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg-primary: #090d16;       /* Nuit obsidienne / Slate profond */
  --bg-secondary: #0f172a;     /* Slate 900 cartes */
  --bg-tertiary: #1e293b;      /* Slate 800 */
  --text-primary: #f8fafc;     /* Slate 50 */
  --text-secondary: #cbd5e1;   /* Slate 300 */
  --text-muted: #94a3b8;       /* Slate 400 */
  --border-subtle: #334155;    /* Slate 700 */
  --border-focus: #3b82f6;
  --card-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 14px 36px -4px rgba(37, 99, 235, 0.25);

  --badge-bg: rgba(59, 130, 246, 0.16);
  --badge-text: #60a5fa;
  --eu-blue-light: #3b82f6;
}

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

svg {
  max-width: 100%;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

[data-theme="dark"] .navbar {
  background-color: rgba(6, 14, 29, 0.85);
}

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

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

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
}

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

.brand-name {
  font-weight: 800;
  color: var(--eu-blue);
}

[data-theme="dark"] .brand-name {
  color: #60a5fa;
}

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

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--eu-blue);
  border-bottom-color: var(--eu-blue);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

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

@media (max-width: 1100px) {
  .nav-brand {
    gap: 0.6rem;
  }
  .brand-icon {
    width: 2rem;
    height: 2rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-role {
    display: none;
  }
  .nav-links {
    gap: 0.65rem;
  }
  .nav-link {
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 0.35rem 0.15rem;
  }
  .nav-actions {
    gap: 0.45rem;
  }
  .nav-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .lang-switch {
    padding: 0.15rem;
  }
  .lang-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    height: 3.75rem;
  }
  .brand-role {
    display: none;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .nav-brand {
    gap: 0.5rem;
  }
  .brand-icon {
    width: 2rem;
    height: 2rem;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .nav-actions .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
  .lang-switch {
    padding: 0.15rem;
  }
  .lang-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
  }
  .btn-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 440px) {
  .brand-title {
    display: none;
  }
  .btn-text-pdf {
    display: none;
  }
  .nav-actions .nav-pdf-btn {
    padding: 0.4rem 0.6rem;
  }
}

/* Boutons & Contrôles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--eu-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--eu-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .btn-primary {
  background-color: #2563eb;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-focus);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #1e1b4b;
  font-weight: 700;
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Lang Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background-color: var(--bg-secondary);
  color: var(--eu-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

[data-theme="dark"] .lang-btn.active {
  color: #60a5fa;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(248, 250, 252, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 14, 29, 0) 100%);
}

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

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-avatar-wrapper {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 0 auto;
  flex-shrink: 0;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-subtle);
  box-shadow: 0 4px 20px var(--border-subtle);
  transition: all 0.2s ease;
}

.hero-avatar:hover {
  border-color: var(--eu-blue-light);
  transform: scale(1.02);
}

.hero-status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #10b981;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

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

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-badge-row {
    justify-content: center;
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-subtle);
}

.badge-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.badge-mini-logo svg {
  height: 0.95rem;
  width: auto;
  max-width: 3.5rem;
  object-fit: contain;
  display: block;
}

.badge-insa-logo svg {
  max-width: 4.2rem;
}

.pill-badge-gold {
  background: rgba(255, 204, 0, 0.15);
  color: #92400e;
  border-color: rgba(255, 204, 0, 0.4);
}

[data-theme="dark"] .pill-badge-gold {
  background: rgba(255, 204, 0, 0.15);
  color: #fcd34d;
  border-color: rgba(255, 204, 0, 0.3);
}

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

.hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--eu-blue);
  line-height: 1.3;
}

[data-theme="dark"] .hero-title {
  color: #60a5fa;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 48rem;
  line-height: 1.6;
}

.hero-contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero-contact-row {
    justify-content: center;
  }
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.contact-item:hover {
  color: var(--eu-blue);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .hero-cta-row {
    justify-content: center;
  }
}

/* ==========================================================================
   SECTEURS CIBLES / DOMAINES D'INTERVENTION
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eu-blue);
  margin-bottom: 0.5rem;
  display: block;
}

[data-theme="dark"] .section-tag {
  color: #60a5fa;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

@media (max-width: 1100px) {
  .targets-grid {
    gap: 1.15rem;
  }
  .target-card {
    padding: 1.35rem 1.15rem;
  }
}

@media (max-width: 960px) {
  .targets-grid {
    grid-template-columns: 1fr;
  }
}

.target-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.target-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--eu-blue);
}

.target-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--eu-blue-light);
}

.target-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.target-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--eu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.target-icon svg,
.sector-svg-icon {
  width: 1.5rem;
  height: 1.5rem;
}

[data-theme="dark"] .target-icon {
  color: #60a5fa;
}

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

.target-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.target-service-logos {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.target-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.target-service-chip svg {
  height: 0.95rem;
  width: auto;
  max-width: 1.8rem;
  object-fit: contain;
}

.target-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.target-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CERTIFICATIONS GRID
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

.certs-internal-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.certs-internal-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.certs-internal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .certs-internal-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
  position: relative;
}

.cert-card.featured {
  border: 2px solid var(--eu-gold);
  background: linear-gradient(180deg, rgba(255, 204, 0, 0.04) 0%, var(--bg-secondary) 100%);
}

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

.cert-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cert-badge-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.45rem;
}

.cert-badge-icon svg {
  width: 100%;
  height: 100%;
  max-width: 2rem;
  max-height: 2rem;
  object-fit: contain;
}

.cert-badge-aws-pro {
  background: #1a2433;
  color: #ff9900;
  border: 1.5px solid #ff9900;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.25);
}

.cert-badge-aws {
  background: rgba(255, 153, 0, 0.1);
  color: #ff9900;
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.cert-badge-gcp {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.cert-badge-hashicorp {
  background: rgba(132, 79, 186, 0.1);
  color: #844fba;
  border: 1px solid rgba(132, 79, 186, 0.3);
}

.cert-badge-devoteam {
  background: rgba(248, 72, 94, 0.1);
  color: #f8485e;
  border: 1px solid rgba(248, 72, 94, 0.3);
}

.cert-info {
  flex-grow: 1;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: auto;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--success-color);
}

/* ==========================================================================
   TIMELINE / EXPÉRIENCES PROFESSIONNELLES
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--eu-blue-light);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--eu-blue);
  color: #ffffff;
  border-color: var(--eu-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .filter-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
}

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

.exp-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}

.exp-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--eu-blue-light);
}

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

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

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

.exp-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--eu-blue);
}

.exp-company-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.85rem;
  max-width: 3.5rem;
  height: 1.85rem;
  border-radius: 6px;
  background: var(--bg-tertiary);
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.company-logo svg {
  height: 1.25rem;
  width: auto;
  max-width: 3.2rem;
  object-fit: contain;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  width: 0.9rem;
  height: 0.9rem;
}

.partner-logo svg {
  height: 0.95rem;
  width: auto;
  max-width: 1.8rem;
  object-fit: contain;
}

.mission-logo {
  display: inline-flex;
  align-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.35rem;
  vertical-align: -2px;
  flex-shrink: 0;
}

.mission-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.institution-logo {
  display: inline-flex;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.35rem;
  vertical-align: -2px;
  flex-shrink: 0;
}

.institution-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-theme="dark"] .exp-company {
  color: #60a5fa;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .exp-meta {
    align-items: flex-start;
  }
}

.exp-period {
  font-weight: 600;
  color: var(--text-secondary);
}

.exp-missions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--eu-blue-light);
}

.mission-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.mission-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.mission-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.exp-bullet {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.exp-bullet::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--eu-blue);
  font-weight: 900;
}

[data-theme="dark"] .exp-bullet::before {
  color: #60a5fa;
}

.exp-bullet strong {
  color: var(--text-primary);
}

.exp-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.tag-icon,
.tech-icon,
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.35rem;
  flex-shrink: 0;
  vertical-align: -1px;
}

.tag-icon svg,
.tech-icon svg,
.skill-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   SKILLS MATRIX
   ========================================================================== */
.skills-grid-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.skills-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .skills-grid-primary,
  .skills-grid-secondary {
    gap: 1rem;
  }
  .skill-category-card {
    padding: 1.25rem 1rem;
  }
  .skill-category-title {
    font-size: 0.95rem;
    align-items: baseline;
  }
}

@media (max-width: 960px) {
  .skills-grid-primary,
  .skills-grid-secondary {
    grid-template-columns: 1fr;
  }
}

.skill-category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.skill-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.skill-pill:hover {
  border-color: var(--eu-blue);
  color: var(--eu-blue);
  transform: translateY(-1px);
}

[data-theme="dark"] .skill-pill:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ==========================================================================
   EDUCATION & LANGUAGES
   ========================================================================== */
.dual-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-item {
  border-left: 3px solid var(--eu-blue);
  padding-left: 1rem;
}

[data-theme="dark"] .edu-item {
  border-left-color: #60a5fa;
}

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

.edu-school {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eu-blue);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-logo {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  flex-shrink: 0;
}

.edu-logo svg {
  height: 1.2rem;
  width: auto;
  max-width: 4.5rem;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .edu-school {
  color: #60a5fa;
}

.edu-period {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.lang-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.lang-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.lang-badge {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--eu-blue);
  background: var(--badge-bg);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

[data-theme="dark"] .lang-badge {
  color: #60a5fa;
}

.lang-detail {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   MODAL / POPUP (MARKDOWN VIEWER & EXPORT)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 14, 29, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

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

.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.markdown-preview {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--eu-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.25s ease-out;
}

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

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

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

.footer-source-note {
  font-family: var(--font-mono);
  font-size: 0.775rem;
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE OPTIMIZATIONS (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .section {
    padding: 2.75rem 0;
  }

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

  .section-title {
    font-size: 1.65rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-section {
    padding: 2.25rem 0 1.75rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

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

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

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-contact-row {
    gap: 0.6rem;
    font-size: 0.82rem;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-badge-row {
    gap: 0.35rem;
  }

  .pill-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
  }

  /* Target Cards */
  .target-card {
    padding: 1.25rem 1rem;
  }

  .target-title {
    font-size: 1.05rem;
  }

  .target-desc {
    font-size: 0.85rem;
  }

  /* Certifications */
  .cert-card {
    padding: 1rem;
  }

  .cert-name {
    font-size: 0.95rem;
  }

  /* Experience */
  .filter-row {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .filter-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
  }

  .exp-card {
    padding: 1.25rem 1rem;
  }

  .exp-role {
    font-size: 1.15rem;
  }

  .exp-company {
    font-size: 0.95rem;
  }

  .exp-missions {
    padding-left: 0.65rem;
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .mission-block {
    padding: 1rem 0.75rem;
  }

  .mission-title {
    font-size: 0.95rem;
  }

  /* Skills */
  .skill-category-card {
    padding: 1.25rem 1rem;
  }

  .skill-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }

  /* Education */
  .edu-card {
    padding: 1.25rem 1rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Modal */
  .modal-content {
    max-height: 90vh;
    border-radius: 12px;
  }

  .markdown-preview {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
}

@media (max-width: 380px) {
  .hero-name {
    font-size: 1.85rem;
  }
}
