:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #146FF4;
  --accent-hover: #0f5ac9;
  --border: #cbd5e1;
  --blue-light: #e0f0ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(240, 244, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 2rem;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-full {
  /* shown on desktop */
}

.nav-initials {
  display: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: white;
  padding: 0.18rem 0.42rem;
  border-radius: 5px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(20, 111, 244, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding-top: 4rem;
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(240, 244, 248, 0.15) 0%,
    rgba(240, 244, 248, 0.38) 26%,
    rgba(240, 244, 248, 0.62) 46%,
    rgba(240, 244, 248, 0.42) 66%,
    rgba(240, 244, 248, 0.18) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 2.1rem 2.4rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 
    0 25px 50px -12px rgba(30, 41, 59, 0.1),
    0 10px 20px -4px rgba(30, 41, 59, 0.06);
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 0.65rem;
}

.hero-role {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mendix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-meta a:hover {
  color: var(--accent);
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.hero-social a {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.hero-social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-social svg {
  width: 22px;
  height: 22px;
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 1.15rem;
  max-width: 720px;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cert-card {
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--accent);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-body {
  color: #334155;
  font-size: 0.975rem;
  line-height: 1.65;
}

.view-cert {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.impact {
  font-size: 1.1rem;
  max-width: 680px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.languages {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang .level {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact {
  font-size: 1.1rem;
  max-width: 620px;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: center;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-links svg,
.contact .mail-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.footer {
  padding: 3rem 0 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.nav-name:hover .nav-full {
  color: var(--accent);
}

.nav-name:hover .nav-initials {
  background: var(--accent-hover);
}

.nav-name:active .nav-initials {
  transform: scale(0.96);
}


/* Modal for certificate */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.modal-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Responsive: Phones & Tablets ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav {
    padding: 0.875rem 1rem;
  }

  .nav-name {
    font-size: 1rem;
  }

  .nav-full {
    display: none;
  }

  .nav-initials {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .section-title {
    padding-left: 1.25rem;
  }

  .about-text,
  .section h2,
  .languages,
  .impact,
  .contact {
    padding-left: 1.25rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 4.5rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.65rem 1.65rem;
    border-radius: 14px;
  }

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

  .mendix-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .hero-meta {
    font-size: 0.9rem;
    gap: 0.6rem;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .hero-meta .meta-sep {
    display: none;
  }

  .hero-social svg {
    width: 20px;
    height: 20px;
  }

  .section {
    padding: 3rem 0;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .about-text {
    font-size: 1.05rem;
  }

  .card {
    padding: 1.25rem;
  }

  .impact {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .contact {
    font-size: 1rem;
  }

  .contact-links {
    gap: 1rem;
  }

  .footer {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.7rem 0.75rem;
  }

  .nav-full {
    display: none;
  }

  .nav-initials {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 0.65rem;
    font-size: 0.78rem;
  }

  .section-title {
    padding-left: 1rem;
  }

  .about-text,
  .section h2,
  .languages,
  .impact,
  .contact {
    padding-left: 1rem;
  }

  .hero {
    padding-top: 4rem;
    min-height: 82vh;
  }

  .hero-content {
    padding: 1.35rem 1.35rem;
    border-radius: 12px;
  }

  .hero-name {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-meta {
    font-size: 0.85rem;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .hero-meta .meta-sep {
    display: none;
  }

  .hero-social {
    margin-top: 0.9rem;
    gap: 0.85rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .grid {
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .lang {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  .impact {
    border-left-width: 3px;
    padding: 1.25rem;
  }

  .contact {
    font-size: 0.95rem;
  }

  .contact-links {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
  }
}

/* Explicit stack on small screens */
@media (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
  }
}