/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Huisstijl)
═══════════════════════════════════════════ */
:root {
  --primary:      #0D0D8F;
  --primary-dark: #08085E;
  --accent:       #7B7EF5;
  --accent-light: #A5A8FF;
  --light:        #F0F0FF;
  --white:        #FFFFFF;
  --dark:         #1A1A2E;
  --gray:         #6B7280;
  --gray-light:   #E5E7EB;
  --border:       #D1D5DB;

  --font:         'Inter', system-ui, sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(13,13,143,.08);
  --shadow-md:    0 8px 32px rgba(13,13,143,.14);
  --shadow-lg:    0 20px 60px rgba(13,13,143,.20);

  --nav-height:   70px;
  --transition:   0.3s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Toegankelijke focus-ring voor toetsenbordnavigatie */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════ */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}
.container--narrow {
  width: min(760px, 92vw);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,126,245,.40);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.50);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: min(1160px, 92vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  transition: color var(--transition);
}
.nav--scrolled .nav__logo { color: var(--primary); }
.nav__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__link {
  padding: .45rem .9rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.15);
}
.nav--scrolled .nav__link { color: var(--gray); }
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link.active {
  color: var(--primary);
  background: var(--light);
}
.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
}
.nav__link--cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
}
.nav--scrolled .nav__link--cta {
  color: var(--white) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav--scrolled .nav__toggle span { background: var(--primary); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
}

/* Fotobanner — gecontroleerde hoogte op alle schermen */
.hero__photo-wrap {
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 460px);
  overflow: hidden;
  line-height: 0;
}
.hero__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.hero__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,94,.55) 0%,
    rgba(8,8,94,.15) 25%,
    rgba(8,8,94,.05) 45%,
    rgba(8,8,94,.55) 70%,
    rgba(8,8,94,.82) 100%
  );
}
.hero__photo-text {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 1.5rem;
}
.hero__name {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.40);
}
.hero__tagline {
  font-size: clamp(1rem, 2.8vw, 1.8rem);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero__tagline em {
  font-style: normal;
  color: var(--accent-light);
}

/* Donkere balk onder de foto */
.hero__lower {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.70);
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll arrow */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: .25rem;
}
.hero__scroll-line {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   SECTIONS (shared)
═══════════════════════════════════════════ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--white  { background: var(--white); }
.section--light  { background: var(--light); }
.section--dark   { background: var(--dark); }

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section__label--light { color: var(--accent-light); }
.section__title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--primary);
  line-height: 1.15;
}
.section__title--light { color: var(--white); }

/* ═══════════════════════════════════════════
   OVER MIJ
═══════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1rem;
}
.about__text p { color: var(--gray); margin-bottom: 1.25rem; }
.about__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 .75rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.about__photo-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(13,13,143,.20);
}

/* ═══════════════════════════════════════════
   ERVARING & SKILLS
═══════════════════════════════════════════ */
.exp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.exp__subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--light);
}

/* Tijdlijn */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 3.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline__item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.timeline__dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
  margin-top: .2rem;
}
.timeline__content { flex: 1; }
.timeline__period {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: .25rem 0 .1rem;
}
.timeline__org {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray);
}
.timeline__desc {
  font-size: .9rem;
  color: var(--gray);
  margin-top: .4rem;
}

/* ═══════════════════════════════════════════
   SFEERBANNER — smalle visuele overgang
═══════════════════════════════════════════ */
.banner-strip {
  position: relative;
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  background: url('../assets/Headerfoto_Hans.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(8,8,94,.78) 0%,
    rgba(13,13,143,.62) 50%,
    rgba(45,45,184,.78) 100%);
}
.banner-strip__text {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  max-width: 720px;
  padding: 0 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.40);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   PROJECTEN
═══════════════════════════════════════════ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.project-card__icon { font-size: 2rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge--active {
  background: #D1FAE5;
  color: #065F46;
}
.badge--dev {
  background: #FEF3C7;
  color: #92400E;
}

.project-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
}
.project-card__desc {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.project-card__features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.project-card__features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--dark);
}
.icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: .2rem;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: color var(--transition), gap var(--transition);
}
.project-card__link svg { width: 14px; height: 14px; }
.project-card__link:hover { color: var(--accent); gap: .7rem; }
.project-card__link--placeholder {
  color: var(--gray);
  font-style: italic;
  cursor: default;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact__body {
  background: linear-gradient(135deg, var(--light) 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

/* Rond portret bovenaan met paarse glow */
.contact__portrait {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow:
    0 0 0 3px var(--accent),
    0 12px 28px rgba(123,126,245,.30);
  position: relative;
}
.contact__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__intro {
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* Prominente CTA-knop */
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 60px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  box-shadow:
    0 10px 30px rgba(123,126,245,.40),
    0 4px 10px rgba(13,13,143,.15);
  transition: transform .25s ease, box-shadow .25s ease, gap .25s ease;
}
.contact__cta-icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact__cta-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.contact__cta:hover {
  transform: translateY(-3px);
  gap: 1.1rem;
  box-shadow:
    0 14px 38px rgba(123,126,245,.50),
    0 6px 14px rgba(13,13,143,.20);
}
.contact__cta:hover .contact__cta-arrow {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 5px;
}
.footer__copy {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════
   OVER MIJ — BLOKKEN (Toen / Overgang / Nu)
═══════════════════════════════════════════ */
.about-block {
  padding: 1rem 0;
  border-top: 1px solid var(--gray-light);
}
.about-block:first-child {
  border-top: none;
  padding-top: 0;
}
.about-block__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.about-block p {
  color: var(--gray);
  font-size: .975rem;
  line-height: 1.75;
  margin-bottom: .6rem;
}
.about-block p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   TIJDLIJN — INKLAPBAAR (details/summary)
═══════════════════════════════════════════ */
.timeline__details {
  cursor: pointer;
}
.timeline__summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 2.5rem;
  user-select: none;
  transition: color .2s ease;
}
.timeline__summary::-webkit-details-marker { display: none; }

/* Plus/min-knop rechtsboven — duidelijk openen/sluiten signaal */
.timeline__summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  transition: background .25s ease, transform .25s ease;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(123,126,245,.30);
}
.timeline__details[open] .timeline__summary::after {
  content: '−';
  background: var(--primary);
  transform: rotate(180deg);
}
.timeline__summary:hover::after {
  transform: scale(1.1);
}
.timeline__details[open] .timeline__summary:hover::after {
  transform: rotate(180deg) scale(1.1);
}

/* Hover-feedback op de hele samenvatting */
.timeline__summary:hover .timeline__role {
  color: var(--accent);
}
.timeline__role {
  transition: color .2s ease;
}
.timeline__desc {
  margin-top: .6rem;
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.7;
  animation: tlFadeIn .2s ease;
}
@keyframes tlFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Iets compactere verticale ruimte nu items inklapbaar zijn */
.timeline__item { margin-bottom: 1.5rem; }

/* Tekstaanwijzing boven de tijdlijn */
.timeline__hint {
  font-size: .8rem;
  font-style: italic;
  color: var(--gray);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}
.timeline__hint::before {
  content: '👆 ';
  font-style: normal;
  margin-right: .15rem;
}

/* ═══════════════════════════════════════════
   COMPACTE LIJSTEN (Wat ik doe / Waar ik op bouw)
═══════════════════════════════════════════ */
.compact-list {
  margin-bottom: 2rem;
}
.compact-list__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--light);
}
.compact-list__items {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.compact-list__items li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--dark);
  line-height: 1.5;
}
.compact-list__items li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .42rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects__grid  { grid-template-columns: 1fr 1fr; }
  .exp__grid       { grid-template-columns: 1fr; gap: 3rem; }
  .about__grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__photo    { order: -1; max-width: 380px; margin-inline: auto; width: 100%; }
  .contact__body   { padding: 2.5rem; }
}

@media (max-width: 768px) {
  .nav__inner  { gap: 1rem; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__link { color: var(--gray) !important; width: 100%; padding: .75rem 1rem; }
  .nav__link:hover, .nav__link.active { color: var(--primary) !important; background: var(--light) !important; }

  /* CTA op mobiel: paarse knop, witte tekst — onderscheidend in dropdown */
  .nav__link--cta,
  .nav--scrolled .nav__link--cta {
    color: var(--white) !important;
    background: var(--accent) !important;
    text-align: center;
    margin-top: .5rem;
    padding: .85rem 1rem !important;
    border-radius: 8px;
  }
  .nav__link--cta:hover {
    background: var(--accent-light) !important;
    color: var(--white) !important;
  }

  .projects__grid  { grid-template-columns: 1fr; }
  .project-card    { padding: 2rem 1.5rem; }
  .hero__actions   { flex-direction: column; align-items: center; width: 100%; max-width: 300px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__lower     { padding: 2.5rem 1.25rem 3rem; }
  .contact__body   { padding: 2rem 1.5rem; }
  .timeline__item  { gap: 1rem; }
}

@media (max-width: 480px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .nav__logo span { display: none; }
  .chip            { font-size: .85rem; padding: .35rem .85rem; }
  .hero__sub       { font-size: 1rem; }
}
