:root {
  --primary: #1e3a5f;
  --primary-light: #2c4f82;
  --accent: #5b8dee;
  --accent-light: #7aa3f5;
  --bg: #f0f4fb;
  --surface: #ffffff;
  --text: #1a2740;
  --text-muted: #6b7a99;
  --border: #d4dff0;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Nav ─────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 4px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

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

.nav-links a.nav-cta {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Hero ────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 8rem 1.5rem 7rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.hero-subtitle {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  padding: 0.4rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-summary {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.btn-cta {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

/* ── Marquee ─────────────────────────────── */
#marquee {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats ───────────────────────────────── */
#stats {
  background: var(--primary);
  padding: 4rem 1.5rem;
}

.stat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.5rem;
}

.stat-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -2px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.4rem;
}

/* ── Sections ────────────────────────────── */
.section {
  padding: 5.5rem 1.5rem;
}

.section-alt {
  background: var(--bg);
}

.section-dark {
  background: var(--primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

/* ── Experience ──────────────────────────── */
.exp-list {
  list-style: none;
}

.exp-item {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

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

.exp-body .job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.exp-meta {
  text-align: right;
}

.company-logo {
  display: block;
  margin-left: auto;
  margin-bottom: 0.6rem;
  object-fit: contain;
  /* default hidden until classified by onload */
  opacity: 0;
  transition: opacity 0.2s;
}

/* Wide text logos (ING, Cid) — show at full width, cap height */
.company-logo.logo-wide {
  height: auto;
  max-height: 40px;
  max-width: 160px;
  width: auto;
  opacity: 1;
}

/* Square icon logos (Infor, Yondu, Hoppler, Get Hooked) */
.company-logo.logo-icon {
  height: 48px;
  width: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 4px;
  background: #fff;
  opacity: 1;
}

.exp-meta .job-company {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.exp-meta .job-company:hover {
  text-decoration: underline;
}

.exp-meta .job-dates {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.job-bullets {
  list-style: none;
  margin-top: 0.5rem;
}

.job-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.2rem;
}

.job-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ── Skills ──────────────────────────────── */
.skills-rows {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-row-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding-top: 0.3rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.15s, background 0.15s;
}

.skill-tag:hover {
  border-color: var(--accent);
  background: #e8f0fd;
}

.section-alt .skill-tag {
  background: var(--surface);
}

.skill-tag i[class*="devicon"] {
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-icon-img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

/* ── Education / Certs two-column layout ── */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-list li {
  padding: 0;
}

.edu-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.edu-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.edu-body {
  flex: 1;
}

.edu-course {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0.2rem 0 0.15rem;
}

.edu-dates {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.edu-dissertation {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Cert items reuse edu-list style */
.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cert-issuer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin: 0.2rem 0 0.15rem;
}

.cert-issuer:hover {
  text-decoration: underline;
}

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

/* ── Contact ─────────────────────────────── */
.contact-block {
  text-align: center;
  padding: 2rem 0;
}

.contact-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.contact-headline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.75rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────── */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
}

/* ── Scroll fade-in ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .hero-content h1 {
    letter-spacing: -1px;
  }

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

  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .exp-meta {
    text-align: left;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .two-col-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

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

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