/* =========================================================
   Lorenzo Bombello — technisch portfolio
   Visuele richting: industriële / schakelpaneel-esthetiek.
   Kleur = indicatielampen (amber = actief, groen = status-ok).
   Typografie = IBM Plex, ontworpen voor technische documentatie.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* paneelkleuren */
  --bg: #0f1418;
  --panel: #161d24;
  --panel-2: #1c242c;
  --steel: #2b343c;
  --line: rgba(238, 241, 238, 0.10);
  --line-strong: rgba(238, 241, 238, 0.20);

  /* tekst */
  --paper: #eef1ee;
  --muted: #9aa7ac;
  --muted-2: #6f7b80;

  /* indicatielampen */
  --amber: #f5a623;
  --amber-dim: #c9860f;
  --green: #33d17a;

  --font-display: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(15, 20, 24, 0.86);
  --mobile-nav-bg: rgba(15, 20, 24, 0.98);
  --surface-translucent: rgba(22, 29, 36, 0.7);
  --surface-strong: rgba(22, 29, 36, 0.82);
  --surface: rgba(22, 29, 36, 0.7);
  --switch-bg: rgba(16, 22, 28, 0.72);
  --motivation-gradient: linear-gradient(155deg, rgba(28, 36, 44, 0.94), rgba(22, 29, 36, 0.9));
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(238, 241, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 238, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 6%, rgba(245, 166, 35, 0.09), transparent 32%),
    radial-gradient(circle at 8% 24%, rgba(51, 209, 122, 0.06), transparent 28%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

body,
p,
a,
h1,
h2,
h3,
li,
button,
.button,
.tag,
.card,
.cv-card,
.certificate-content,
.project-table th,
.project-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

img,
video,
svg,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection { background: var(--amber); color: #10151a; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* focus zichtbaar houden voor toetsenbordgebruik */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: #10151a;
  font-weight: 600;
  transition: top 0.18s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

/* -------------------- header / nav -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: normal;
  line-height: 1.25;
}

.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.brand-icon-light { display: none; }

html[data-theme="light"] .brand-icon-dark { display: none; }
html[data-theme="light"] .brand-icon-light { display: block; }

.brand span { color: var(--amber); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a { padding: 4px 0; border-bottom: 1px solid transparent; }

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--paper); border-color: var(--amber); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* -------------------- eyebrow / "netwerk"-labels -------------------- */
/* Verwijst naar de Network-nummering in TIA Portal ladderlogica:
   elke sectie is een "netwerk" in het programma dat deze pagina is. */

.network-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.network-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--amber-dim);
}

/* -------------------- hero -------------------- */

.hero { padding: 78px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--amber);
  letter-spacing: -0.005em;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button.primary { background: var(--amber); color: #1a1204; border-color: transparent; }
.button.primary:hover { transform: translateY(-2px); background: #ffb84a; }

.button.secondary { background: rgba(238, 241, 238, 0.03); }
.button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.button.small { min-height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* -------------------- nameplate (kenplaat) -------------------- */
/* Vormgegeven als het typeplaatje op industriële motoren en kasten:
   vaste velden, klinknagels in de hoeken, monospace waarden. */

.nameplate {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(165deg, rgba(238, 241, 238, 0.05), rgba(238, 241, 238, 0) 45%),
    linear-gradient(155deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(155deg, #3a444d, #10151a);
  box-shadow: inset 0 1px 1px rgba(238, 241, 238, 0.25), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.rivet.tl { top: 12px; left: 12px; }
.rivet.tr { top: 12px; right: 12px; }
.rivet.bl { bottom: 12px; left: 12px; }
.rivet.br { bottom: 12px; right: 12px; }

.nameplate-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line-strong);
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}

.nameplate-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nameplate-title strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--paper);
}

.nameplate-fields {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nameplate-fields li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.92rem;
}

.nameplate-fields .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nameplate-fields .value { color: var(--paper); }

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 209, 122, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(51, 209, 122, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-led { animation: none; }
}
/* Basis LED */
.status-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* Fase 1 - Groen */
.status-green {
    background: #33d17a;
    animation: pulseGreen 2s infinite;
}

/* Fase 2 - Amber */
.status-amber {
    background: #f5a623;
    animation: pulseAmber 2s infinite;
}

/* Fase 3 - Blauw */
.status-blue {
    background: #3b82f6;
    animation: pulseBlue 2s infinite;
}
@keyframes pulseGreen {
    0%,100% {
        transform: scale(1);
        box-shadow: 0 0 6px #33d17a;
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 18px #33d17a;
    }
}

@keyframes pulseAmber {
    0%,100% {
        transform: scale(1);
        box-shadow: 0 0 6px #f5a623;
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 18px #f5a623;
    }
}

@keyframes pulseBlue {
    0%,100% {
        transform: scale(1);
        box-shadow: 0 0 6px #3b82f6;
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 18px #3b82f6;
    }
}

/* -------------------- terminal-strip (signatuur-divider) -------------------- */
/* Verwijst naar een rij schroefklemmen op een PLC-aansluitstrip. */

.terminal-strip {
  height: 14px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--steel) 0,
    var(--steel) 7px,
    transparent 7px,
    transparent 26px
  );
  background-position: center;
  opacity: 0.55;
}

/* -------------------- generieke secties -------------------- */

.section { padding: 68px 0; }

.section-header { max-width: 680px; margin-bottom: 34px; }

.section-header h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-header p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-translucent);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.card h3 { margin-bottom: 10px; font-size: 1.06rem; }

.card p { margin-bottom: 0; color: var(--muted); }

/* -------------------- expertise tags -------------------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

/* -------------------- cv-downloads -------------------- */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cv-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-translucent);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cv-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.cv-card .lang {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.cv-card .name { font-weight: 600; }

/* -------------------- certificaten (overzichtspagina) -------------------- */

.certificates-page { padding: 118px 0 60px; }

.certificates-header { max-width: 720px; margin: 0 auto 44px; text-align: center; }

.certificates-header h1 { margin-bottom: 12px; }

.certificates-header p { max-width: 640px; margin: 0 auto; color: var(--muted); }

.back-link { display: inline-block; margin-bottom: 26px; }

.certificate-section { margin-bottom: 54px; }

.certificate-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.certificate-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-translucent);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.certificate-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

.certificate-content { padding: 20px; }

.certificate-content h3 { margin-bottom: 6px; font-size: 1.02rem; }

.certificate-content p { margin-bottom: 18px; color: var(--muted); font-size: 0.92rem; }

.certificate-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------- contact -------------------- */

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.10), rgba(51, 209, 122, 0.05));
}

.contact-box p { margin-bottom: 0; color: var(--muted); }

/* -------------------- footer -------------------- */

footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  footer { padding-bottom: 32px; }
}

@media (max-width: 560px) {
  footer { padding-bottom: 24px; }
}

/* -------------------- responsief -------------------- */

@media (max-width: 900px) {
  .hero-grid, .grid, .cv-grid { grid-template-columns: 1fr; }
  .nameplate { max-width: 480px; }
}

@media (max-width: 720px) {
  .nav {
    align-items: center;
    row-gap: 10px;
  }

  .brand {
    max-width: calc(100% - 64px);
    font-size: 0.95rem;
  }

  .nav-links {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .language-switch {
    margin-left: 0;
    margin-right: 0.35rem;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links a { width: 100%; padding: 10px 0; }

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

  .nav-toggle { display: inline-flex; }

  .contact-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(1120px, calc(100% - 28px)); }

  .section { padding: 52px 0; }

  .hero-actions,
  .certificate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button.small {
    width: 100%;
    justify-content: center;
  }

  .brand {
    max-width: calc(100% - 56px);
    font-size: 0.9rem;
  }

  .hero-grid,
  .nameplate,
  .card,
  .cv-card,
  .certificate-card,
  .contact-box,
  .motivation-section,
  .motivation-panel {
    max-width: 100%;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .language-switch {
    padding-inline: 0.42rem;
  }

  .theme-switch {
    padding-inline: 0.24rem;
  }

  .hero { padding: 30px 0 44px; }

  .nameplate-fields li { grid-template-columns: 1fr; gap: 2px; }

  .certificate-card img { height: 240px; }
}

.hero-banner{
    width:100%;
    max-width:1120px;      /* zelfde breedte als .container */
   margin: 25px auto 5px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =========================================================
   Projecten (portfolio) — hergebruikt bestaande tokens,
   .card, .grid, .tag-list en .certificates-header/.certificate-section.
   ========================================================= */

/* projecten.html: kaart bovenop de bestaande .card-stijl */
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.project-card .tag-list { margin: 4px 0 20px; }

.project-card p { margin-bottom: 16px; }

.project-card .button { align-self: flex-start; margin-top: auto; }
.project-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.project-card:hover h3,
.project-card:hover p,
.project-card:hover .tag {
  color: var(--paper);
}

/* project-detail: informatie-tabel (software / hardware / doelstellingen / skills) */
.project-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  margin: 22px 0 6px;
}

.project-table th,
.project-table td {
  text-align: left;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.project-table th {
  width: 220px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.project-table td { color: var(--paper); }

/* project-detail: responsieve video-embed (16:9) */
.video-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* project-detail: screenshots (placeholder tot echte beelden zijn toegevoegd) */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(238, 241, 238, 0.02);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
  padding: 16px;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (max-width: 720px) {
  .project-table th { width: 150px; }
  .video-embed-grid, .screenshot-grid { grid-template-columns: 1fr; }
}
/* PROJECT 1 - DRIE SCREENSHOTS */

.project-gallery-intro {
    max-width: 850px;
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-image {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.project-image:hover {
    transform: translateY(-3px);
    border-color: var(--amber);
    box-shadow: 0 14px 34px rgba(245, 166, 35, 0.12);
}

.project-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef1ee;
}

.project-image img {
    display: block;
    width: 100%;
    height: 300px;
    padding: 12px;
    object-fit: contain;
}

.project-image figcaption {
    display: grid;
    gap: 8px;
    padding: 18px 20px 20px;
}

.project-image figcaption strong {
    color: var(--paper);
    font-size: 1rem;
}

.project-image figcaption span {
    color: var(--muted);
    line-height: 1.6;
}

/* Derde kaart gecentreerd onder de eerste twee */
.project-center {
    grid-column: 1 / 3;
    width: calc(50% - 14px);
    justify-self: center;
}

@media (max-width: 760px) {

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

    .project-center {
        grid-column: auto;
        width: 100%;
    }

    .project-image img {
        height: auto;
        max-height: 420px;
    }
}
/* Project 2: vier screenshots in een gelijk 2 x 2 raster */
.project-grid-four .project-center {
    grid-column: auto;
    width: 100%;
}

/* -------------------- motivatiepagina -------------------- */

.motivation-link {
  display: flex;
  flex-direction: column;
}

.motivation-link .project-cta { margin-top: auto; }

.motivation-link:hover {
  border-color: var(--amber);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.18);
}

.motivation-page { padding: 92px 0 80px; }

.motivation-header {
  max-width: 860px;
  margin-bottom: 42px;
}

.motivation-header .back-link { margin-bottom: 28px; }

.motivation-header h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
}

.motivation-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.motivation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.motivation-content { display: grid; gap: 20px; }

.motivation-section,
.motivation-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--motivation-gradient);
}

.motivation-section { padding: 28px 30px; }

.motivation-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.motivation-section p:last-child { margin-bottom: 0; }

.motivation-section p { color: var(--muted); }

.motivation-panel {
  position: sticky;
  top: 98px;
  padding: 28px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.motivation-panel-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.motivation-panel h2 { margin-bottom: 24px; }

.motivation-facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.motivation-facts li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.motivation-facts span {
  font-family: var(--font-mono);
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motivation-facts strong {
  color: var(--paper);
  font-size: 0.94rem;
}

.motivation-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .motivation-layout { grid-template-columns: 1fr; }
  .motivation-panel { position: static; }
}

@media (max-width: 600px) {
  .motivation-page { padding: 72px 0 60px; }
  .motivation-section, .motivation-panel { padding: 22px; }
}



/* Language switch: lightweight, build-free NL/EN/FR selector */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--switch-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
}
.language-button {
  appearance: none;
  border: 0;
  padding: 0.25rem 0.15rem;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.language-button:hover, .language-button:focus-visible { color: var(--paper); }
.language-button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.language-button.active { color: var(--amber); text-shadow: 0 0 10px rgba(255, 184, 77, 0.35); }
@media (max-width: 860px) {
  .language-switch { margin-left: auto; margin-right: 0.45rem; }
}


/* -------------------- theme selector (Dark / Light / Auto) -------------------- */
html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f7;
  --panel: #ffffff;
  --panel-2: #e8edf0;
  --steel: #c7d0d5;
  --line: rgba(24, 34, 40, 0.13);
  --line-strong: rgba(24, 34, 40, 0.24);
  --paper: #172027;
  --muted: #53636b;
  --muted-2: #6b7b83;
  --amber: #a96000;
  --amber-dim: #d78a17;
  --green: #08783d;
  --shadow: 0 18px 44px rgba(36, 49, 57, 0.16);
  --header-bg: rgba(244, 246, 247, 0.90);
  --mobile-nav-bg: rgba(244, 246, 247, 0.98);
  --surface-translucent: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.82);
  --switch-bg: rgba(255, 255, 255, 0.80);
  --motivation-gradient: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(232, 237, 240, 0.92));
}
html[data-theme="light"] .certificate-viewer-stage {
  background-color: #dfe3e6;
  background-image:
    linear-gradient(rgba(24, 34, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 40, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}
html[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(24, 34, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 40, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 88% 6%, rgba(169, 96, 0, 0.05), transparent 32%),
    radial-gradient(circle at 8% 24%, rgba(8, 120, 61, 0.04), transparent 28%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
html[data-theme="light"] .button.primary { color: #ffffff; }
html[data-theme="light"] .button.primary:hover { background: #bd7205; }
html[data-theme="light"] .button.secondary { background: rgba(23, 32, 39, 0.035); }
html[data-theme="light"] .nameplate {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%),
    linear-gradient(155deg, var(--panel-2), var(--panel));
}
html[data-theme="light"] .rivet {
  background: linear-gradient(155deg, #dce3e7, #87959d);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(31, 42, 49, 0.35);
}
html[data-theme="light"] .terminal-strip { opacity: 0.52; }
html[data-theme="light"] .project-video { background: #111; }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--switch-bg);
}
.theme-button {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-button:hover { color: var(--paper); transform: translateY(-1px); }
.theme-button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.theme-button.active { color: var(--amber); background: rgba(245, 166, 35, 0.13); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 860px) {
  .theme-switch { margin-right: 0.35rem; }
}
@media (max-width: 520px) {
  .theme-button { width: 1.65rem; height: 1.65rem; font-size: 0.82rem; }
  .language-switch { padding-inline: 0.42rem; }
}

/* Subtiele overgang bij wisselen van taal of thema */
.hero-banner img {
  opacity: 1;
  transition: opacity 250ms ease-in-out;
}

.hero-banner img.is-switching {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner img {
    transition: none;
  }
}


/* Virtual Automation Experience */
.experience-section {
  padding-top: 14px;
  padding-bottom: 72px;
}

.experience-header {
  max-width: 790px;
  margin: 0 0 30px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.experience-header h2 {
  margin: 8px 0 12px;
}

.experience-header > p:last-child {
  margin: 0;
  color: var(--muted);
}

.experience-grid { align-items: stretch; }

.experience-card {
  position: relative;
  overflow: hidden;
}

.experience-visual {
  position: relative;
  height: 156px;
  margin: -2px -2px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(rgba(245,166,35,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.055) 1px, transparent 1px),
    var(--panel);
  background-size: 20px 20px;
}

.visual-label {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--muted);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.experience-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7d8790;
  box-shadow: 0 0 0 4px rgba(125,135,144,.12);
}

.available .status-dot {
  background: #47c878;
  box-shadow: 0 0 0 4px rgba(71,200,120,.14), 0 0 12px rgba(71,200,120,.45);
}

.disabled-button {
  cursor: default;
  opacity: .58;
  pointer-events: none;
}

/* Mini conveyor illustration */
.mini-conveyor {
  position: absolute;
  left: 25px;
  right: 66px;
  bottom: 34px;
  height: 27px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(245,166,35,.22) 21px 23px);
}
.mini-conveyor::before, .mini-conveyor::after { content: ''; position: absolute; bottom: -13px; width: 8px; height: 13px; background: var(--line); }
.mini-conveyor::before { left: 18px; } .mini-conveyor::after { right: 18px; }
.mini-box { position: absolute; left: 42%; bottom: 4px; width: 28px; height: 28px; display:grid; place-items:center; border: 2px solid var(--amber); background: rgba(245,166,35,.15); color: var(--paper); font: 700 9px ui-monospace, monospace; }
.mini-stack { position:absolute; right:18px; top:23px; display:grid; gap:3px; padding:5px; border:1px solid var(--line); border-radius:5px; }
.mini-stack i { width:10px; height:10px; border-radius:50%; background:#38414a; }
.mini-stack i:last-child { background:#47c878; box-shadow:0 0 8px rgba(71,200,120,.7); }
.mini-robot { position:absolute; right:28px; bottom:31px; width:35px; height:55px; border-bottom:8px solid var(--line); }
.mini-robot i { position:absolute; left:14px; bottom:7px; width:8px; height:38px; border-radius:5px; background:var(--amber); transform:rotate(25deg); transform-origin:bottom; }
.mini-robot b { position:absolute; left:22px; top:4px; width:24px; height:7px; border-radius:5px; background:var(--amber); transform:rotate(-20deg); }

/* Mini robot illustration */
.robot-base-mini { position:absolute; left:38px; bottom:25px; width:55px; height:15px; border:2px solid var(--line); border-radius:5px 5px 2px 2px; }
.robot-arm-mini { position:absolute; left:62px; bottom:38px; width:145px; height:90px; }
.robot-arm-mini i, .robot-arm-mini b { position:absolute; display:block; height:13px; border-radius:8px; background:var(--amber); transform-origin:left center; }
.robot-arm-mini i { left:0; bottom:0; width:76px; transform:rotate(-58deg); }
.robot-arm-mini b { left:40px; bottom:64px; width:76px; transform:rotate(22deg); }
.robot-arm-mini em { position:absolute; left:108px; bottom:35px; width:16px; height:28px; border:3px solid var(--paper); border-top:0; }
.pick-product { position:absolute; right:32px; bottom:29px; width:34px; height:34px; display:grid; place-items:center; border:2px solid var(--amber); color:var(--paper); font:700 9px ui-monospace, monospace; }

/* Mini pneumatics illustration */
.mini-cylinder { position:absolute; left:32px; right:40px; top:57px; height:38px; border:2px solid var(--line); border-radius:5px; }
.mini-cylinder span { position:absolute; left:48%; top:0; bottom:0; width:4px; background:var(--amber); }
.mini-cylinder i { position:absolute; left:50%; top:14px; width:76px; height:7px; background:var(--paper); }
.mini-valve { position:absolute; left:45px; bottom:17px; display:flex; border:1px solid var(--line); }
.mini-valve b { padding:4px 8px; border-right:1px solid var(--line); color:var(--muted); font:700 9px ui-monospace, monospace; }
.mini-valve b:last-child { border-right:0; }
.air-lines { position:absolute; left:78px; bottom:42px; width:115px; height:18px; border-left:2px solid var(--amber); border-bottom:2px solid var(--amber); opacity:.7; }

html[data-theme="light"] .experience-header > p:last-child,
html[data-theme="light"] .experience-status { color: var(--muted); }

@media (max-width: 760px) {
  .experience-section { padding-bottom: 54px; }
  .experience-visual { height: 145px; }
}


/* -------------------- aparte Virtual Automation Experience -------------------- */
.automation-experience-page .experience-section {
  padding-top: 0;
}
.automation-experience-page .certificates-header {
  max-width: 850px;
}

/* -------------------- certificaatviewer: volledig document passend in scherm -------------------- */
/* De viewer heeft geen websiteheader. Daarom gebruikt hij de volledige viewport,
   zonder vaste bovenmarge. De expliciete grid-tracks zorgen ervoor dat max-height
   van de afbeelding altijd tegen een echte beschikbare hoogte wordt berekend. */
.certificate-viewer-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.certificate-viewer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px clamp(12px, 2vw, 28px) 18px;
  gap: 12px;
  box-sizing: border-box;
}
.certificate-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.certificate-viewer-stage {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.22);
  padding: clamp(8px, 1.6vw, 18px);
  box-sizing: border-box;
}
html[data-theme="light"] .certificate-viewer-stage {
  background-color: #dfe3e6;
  background-image:
    linear-gradient(rgba(24, 34, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 40, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}
#certificateViewerImage {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  background: #fff;
}
.certificate-viewer-error {
  margin: 0;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 640px) {
  .certificate-viewer-shell {
    padding: 10px 12px 14px;
    gap: 8px;
  }
}

/* -------------------- projectafbeeldingviewer -------------------- */
/* Zelfde veilige schermopbouw als de certificaatviewer. */

.project-image-viewer-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.project-image-viewer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px clamp(12px, 2vw, 28px) 18px;
  gap: 12px;
  box-sizing: border-box;
}

.project-image-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-viewer-stage {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  padding: clamp(8px, 1.6vw, 18px);
  box-sizing: border-box;
}

#projectViewerImage {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.project-image-viewer-error {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* Lichte versie: hetzelfde fijne technische raster. */
html[data-theme="light"] .project-image-viewer-stage {
  background-color: #dfe3e6;
  background-image:
    linear-gradient(rgba(24, 34, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 40, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

@media (max-width: 640px) {
  .project-image-viewer-shell {
    padding: 10px 12px 14px;
    gap: 8px;
  }
}


