:root {
  --bg-main: #020406;
  --bg-alt: #11293d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text-main: #f5f7fb;
  --text-soft: rgba(245, 247, 251, 0.72);
  --accent: #88002B;
  --accent-hover: #b31349;
  --accent-alt: #3389cc;
  --accent-alt-hover: #62b0eb;
  --project-title: #286b9f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 16px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#projects,
#contact {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #000000 0%, #000000 30%, #11293d 100%);
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000000;
  z-index: 30;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader img {
  width: 116px;
  height: auto;
  opacity: 0;
  transform: translateY(6px);
  animation: loaderLogoIn 0.55s ease forwards;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.cursor-glow {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(136, 0, 43, 0.18) 0%, rgba(51, 137, 204, 0.1) 35%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
  transform: translate(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%));
  z-index: 1;
  mix-blend-mode: screen;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo,
.site-nav a,
.header-contact,
.eyebrow,
.timeline-item h3,
.project-label,
.project-content a,
.contact-links a,
.contact-mail,
.site-footer p,
.footer-links a,
.hero-rotator {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 92px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.language-toggle,
.header-contact {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.language-toggle {
  justify-content: center;
  min-width: 56px;
  cursor: pointer;
}

.language-toggle,
.language-toggle-label {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

.language-toggle {
  color: var(--text-main);
}

.language-toggle::before,
.header-contact::before,
.contact-links a::before,
.contact-mail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0) 44%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.language-toggle:hover::before,
.header-contact:hover::before,
.contact-links a:hover::before,
.contact-mail:hover::before {
  opacity: 1;
}

.language-toggle > span,
.header-contact > span {
  position: relative;
  z-index: 1;
}

.header-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.header-contact-icon img {
  width: 15px;
  height: 15px;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-top:hover {
  color: var(--accent-alt-hover);
}

.header-contact:hover,
.project-content a:hover {
  color: #fff;
}

.page-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 92px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  min-height: 70vh;
}

.hero-copy {
  position: relative;
}

.hero-accent {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-accent-one {
  width: 180px;
  height: 180px;
  left: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(136, 0, 43, 0.34), rgba(136, 0, 43, 0));
  animation: floatAccentOne 8s ease-in-out infinite;
}

.hero-accent-two {
  width: 240px;
  height: 240px;
  right: 60px;
  top: 80px;
  background: radial-gradient(circle, rgba(51, 137, 204, 0.2), rgba(51, 137, 204, 0));
  animation: floatAccentTwo 10s ease-in-out infinite;
}

@keyframes floatAccentOne {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(24px, 14px); }
}

@keyframes floatAccentTwo {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-alt);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-rotator {
  position: relative;
  margin: 0;
  height: clamp(3.8rem, 9vw, 6.8rem);
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-typed {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}

.hero-typed::after {
  content: "";
  width: 0.09em;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--text-main);
  animation: blinkCaret 0.9s step-end infinite;
}

@keyframes blinkCaret {
  0%, 48% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.intro {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
}

.button {
  min-width: 182px;
  padding: 16px 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--text-main);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border: 2px solid var(--accent-alt);
  color: var(--accent-alt);
}

.button-secondary:hover {
  border-color: var(--accent-alt-hover);
  color: var(--accent-alt-hover);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.portrait-card {
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.section-heading h2,
.project-category-copy h2,
.contact-heading h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
}

.timeline-copy {
  display: flex;
  flex-direction: column;
}

.timeline-item h3,
.project-content h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 700;
}

.timeline-item p,
.project-content p,
.contact-copy,
.project-category-copy p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.timeline-item span {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.cert-item {
  overflow: visible;
}

.cert-badge {
  --mouse-x: 78%;
  --mouse-y: 50%;
  position: absolute;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 300px;
  height: 300px;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 0.18s ease, transform 0.18s ease;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.48));
  pointer-events: none;
  z-index: 2;
}

.cert-item:hover .cert-badge,
.cert-item:focus-within .cert-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.intake-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(136, 0, 43, 0.18), transparent 24%),
    rgba(255, 255, 255, 0.03);
}

.intake-callout-copy h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.intake-callout-copy p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.intake-callout-link {
  min-width: 182px;
  padding: 16px 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-main);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.intake-callout-link:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

.project-category {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.project-category-copy {
  position: sticky;
  top: 112px;
  padding-top: 12px;
}

.project-category-copy h2 {
  max-width: 420px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
}

.project-category-copy p {
  max-width: 390px;
  line-height: 1.8;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

.project-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(7px);
  transform: scale(1.06);
  transition: filter 0.3s ease, transform 0.3s ease;
  z-index: -2;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.project-image:hover::before,
.project-image:focus-visible::before {
  filter: blur(0);
  transform: scale(1);
}

.project-image:hover::after,
.project-image:focus-visible::after {
  opacity: 0.04;
}

.project-image-title {
  max-width: 82%;
  text-align: center;
  color: var(--text-main);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-image:hover .project-image-title,
.project-image:focus-visible .project-image-title {
  opacity: 0;
  transform: translateY(10px);
}

.project-nolie::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(149,97,120,.58), rgba(17,41,61,.72)); }
.project-cece::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(145,69,38,.58), rgba(17,41,61,.72)); }
.project-mocktail::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(136,0,43,.52), rgba(17,41,61,.68)); }
.project-digitaal::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(51,137,204,.48), rgba(17,41,61,.72)); }
.project-energie::before { background-image: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.52)), url("images/energiedokter.png"); }
.project-bushra::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(78,54,78,.52), rgba(17,41,61,.76)); }
.project-achieve::before { background-image: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.52)), url("images/achieve.png"); }
.project-mini-masters::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(136,0,43,.48), rgba(51,137,204,.38)); }
.project-mijn-site::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(29,79,115,.62), rgba(17,41,61,.82)); }
.project-empty::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(108,108,108,.38), rgba(17,41,61,.64)); }
.project-empty-alt::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(76,97,121,.42), rgba(17,41,61,.72)); }
.project-david::before { background-image: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.6)), linear-gradient(145deg, rgba(67,95,130,.56), rgba(17,41,61,.72)); }

.project-content {
  display: flex;
  flex-direction: column;
}

.project-label {
  margin: 0 0 14px;
  color: var(--accent-alt);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.project-content a {
  margin-top: 22px;
  color: var(--accent-alt);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-content a:hover {
  color: var(--accent-alt-hover);
}

.contact-section {
  padding: 88px 32px 44px;
  text-align: center;
}

.contact-heading {
  margin-bottom: 40px;
}

.contact-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.contact-copy {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.15rem;
}

.contact-mail {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  display: inline-block;
  margin-top: 24px;
  color: var(--text-main);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-links a {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-links a:hover,
.contact-mail:hover {
  border-color: rgba(98, 176, 235, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

.site-footer {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 38px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: rgba(221, 215, 215, 0.86);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(221, 215, 215, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.footer-links a img {
  width: 16px;
  height: 16px;
}

.footer-links a + a {
  position: relative;
  padding-left: 22px;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
}

.footer-top {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
}

.footer-top img {
  width: 24px;
  height: 24px;
}

@media (max-width: 980px) {
  .hero,
  .intake-callout,
  .project-category,
  .project-category-grid,
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header,
  .timeline-item,
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    align-self: flex-start;
  }

  .timeline-copy,
  .timeline-item span {
    width: 100%;
    text-align: center;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .header-actions {
    width: 100%;
    justify-self: start;
    justify-content: space-between;
  }

  .project-category-copy {
    position: static;
    padding-top: 0;
  }

  .timeline-meta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    gap: 42px;
  }

  .intro {
    max-width: none;
    font-size: 1.08rem;
  }

  .intake-callout-link,
  .contact-mail {
    width: 100%;
  }

  .contact-mail {
    text-align: center;
    overflow-wrap: anywhere;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 20px;
  }

  .logo img {
    width: 84px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a,
  .header-contact,
  .language-toggle {
    font-size: 0.92rem;
  }

  .page-shell,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .page-shell {
    padding-top: 56px;
    gap: 88px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intake-callout {
    padding: 22px;
  }

  .intake-callout-link {
    width: 100%;
  }

  .project-card,
  .timeline-item {
    padding: 20px;
  }

  .hero-rotator {
    height: 4.6rem;
  }

  .cert-badge {
    width: 210px;
    height: 210px;
  }

  .project-category-copy h2,
  .project-category-copy p {
    max-width: none;
  }

  .contact-section {
    padding: 72px 0 36px;
  }

  .footer-links a + a {
    padding-left: 0;
  }

  .footer-links a + a::before {
    display: none;
  }
}
