/* ========================
   Design Tokens
======================== */
:root {
    --bg: #0F172A;
    --surface: #111827;
    --card: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #CBD5E1;
    --accent: #38BDF8;
    --accent-2: #F59E0B;
    --border: #334155;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container: 1120px;
    --header-h: 78px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ========================
   Base / Reset
======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #0f172a 0%, #0b1224 100%);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #7dd3fc;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--muted {
    background: rgba(17, 24, 39, 0.42);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__heading {
    margin-bottom: 2.25rem;
}

.section__heading h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.section__heading p {
    max-width: 62ch;
}

.section__note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 999;
    background: var(--accent);
    color: #0b1224;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
}

/* ========================
   Header / Navigation
======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    max-width: 70%;
}

.brand__title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.brand__subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    display: inline-block;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.16);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.45rem;
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.2s ease;
}

/* ========================
   Hero
======================== */
.hero {
    padding-top: 5.4rem;
}

.hero__layout {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.hero__profile {
    margin: 0;
    width: min(220px, 50vw);
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(31, 41, 55, 0.9), rgba(23, 33, 49, 0.92));
    padding: 0.35rem;
    box-shadow: var(--shadow-soft);
}

.hero__profile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.hero__badge {
    display: inline-block;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.44);
    color: #bae6fd;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.hero__identity {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.35rem);
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero__subtitle {
    max-width: 60ch;
    font-size: 1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.hero__credibility {
    font-size: 0.94rem;
    color: #94a3b8;
    margin-bottom: 0.7rem;
}

/* ========================
   Components
======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.68rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--accent);
    color: #0a1224;
}

.btn--primary:hover {
    background: #67d1fa;
    color: #071022;
}

.btn--secondary {
    border-color: var(--border);
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.65);
}

.btn--secondary:hover {
    background: rgba(56, 189, 248, 0.12);
}

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

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

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

.card {
    background: linear-gradient(160deg, rgba(31, 41, 55, 0.95), rgba(23, 33, 49, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.list {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.list li {
    margin-bottom: 0.35rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.42);
    background: rgba(56, 189, 248, 0.12);
    padding: 0.2rem 0.55rem;
    font-size: 0.76rem;
    color: #bae6fd;
}

.tag--accent2 {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.timeline {
    display: grid;
    gap: 0.85rem;
}

.timeline__stage {
    margin: 0 0 0.45rem;
    color: #7dd3fc;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

.timeline__item {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.05rem 1.05rem 1.05rem 1.2rem;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, var(--accent), #0ea5e9);
}

.about-card p:last-child {
    margin-bottom: 0;
}

.section--cta .cta {
    text-align: center;
}

.cta__conversation {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.contact-links {
    margin: 1.2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.contact-links a {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.62);
}

.contact-links a:hover {
    border-color: rgba(56, 189, 248, 0.62);
}

.cta__closing {
    margin-bottom: 0;
    color: #94a3b8;
}

.results-grid {
    gap: 1rem;
}

.metric-card__value {
    margin: 0 0 0.45rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.55rem;
    line-height: 1.1;
    color: #7dd3fc;
    font-weight: 800;
}

.metric-card h3 {
    margin-bottom: 0.55rem;
}

.metric-card__context {
    margin-bottom: 0;
    color: #94a3b8;
    font-size: 0.92rem;
}

.artifact {
    margin-top: 1rem;
}

.flow {
    display: grid;
    gap: 0.6rem;
}

.flow p {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.55);
}

.flow strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.flow span {
    color: var(--text-secondary);
}

.scroll-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 35;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.75);
    padding: 1.2rem 0;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: #94a3b8;
}

/* ========================
   Reveal Helpers
======================== */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   Responsive
======================== */
@media (min-width: 700px) {
    .grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5.75rem 0;
    }

    .hero__layout {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        gap: 2rem;
    }

    .hero__profile {
        width: 100%;
    }

    .grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid--skills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card {
        padding: 1.45rem;
    }

    .results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .results-grid .metric-card:nth-child(5) {
        grid-column: span 2;
    }

    .flow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        background: rgba(17, 24, 39, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 0.35rem 1rem 1rem;
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav a {
        width: 100%;
    }

    .brand__subtitle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================
   CTA section polish
======================== */
.section--cta {
    background: rgba(56, 189, 248, 0.04);
    border-top: 1px solid var(--border);
}

/* ========================
   Availability card tweaks
======================== */
.availability {
    margin-top: 1.1rem;
}

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

/* ========================
   Contact Form
======================== */
.contact-form {
    margin-top: 1.2rem;
    text-align: left;
    max-width: 720px;
    margin-inline: auto;
    display: grid;
    gap: 0.65rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-primary);
    padding: 0.75rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.contact-form button {
    margin-top: 0.6rem;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* ========================
   Footer disclaimer
======================== */
.footer-disclaimer {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

/* ========================
   Timeline meta line
======================== */
.timeline__meta {
    margin: -0.25rem 0 0.75rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

/* ========================
   Section intro + photo cards
======================== */
.section__intro {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.section__intro .section__heading {
  margin-bottom: 0;
}

.photo-card {
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(31, 41, 55, 0.9), rgba(23, 33, 49, 0.92));
  padding: 0.35rem;
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.photo-card--wide {
  width: min(560px, 100%);
  justify-self: end;
}

.photo-card--about {
  width: min(340px, 100%);
  justify-self: end;
}

@media (min-width: 1024px) {
  .section__intro {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }
}

/* ========================
   Language switch (NL | EN)
======================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switch__link:hover {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12);
}

.lang-switch__link.is-active {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
}

.lang-switch__sep {
  color: #94a3b8;
  user-select: none;
}

/* On smaller screens: keep header readable */
@media (max-width: 900px) {
  .brand {
    max-width: 58%;
  }

  .lang-switch {
    margin-left: 0;
  }
}

/* On very small screens: prevent header crowding */
@media (max-width: 420px) {
  .brand {
    max-width: 52%;
  }

  .lang-switch__link {
    padding: 0.4rem 0.5rem;
  }
}