/* =========================
   CSS VARIABLES
========================= */
:root {
  --bg: #2a0f23;
  --panel: #111827;
  --card: #1d0316;
  --border: #dedede;

  --text: #e5e7eb;
  --muted: #9ca3af;

  --primary: #ffffff;
  --primary-ink: #ffffff;
  --accent: #a78bfa;
}


/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);

  /* Zwart met paarse gradient */
  background: linear-gradient(
    180deg,
    #0f0c1d,          /* heel donker paars/zwart */
    #1a0f3d 60%,      /* subtiel paars */
    #0f0c1d           /* terug naar donker */
  );

  min-height: 100vh;  /* zorgt dat het hele scherm bedekt is */
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}


/* =========================
   STICKY HEADER
========================= */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
}

.sticky-header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
}

.profile-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #0b1220;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.4);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    right: 1.2rem;
    top: 70px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0;
    display: none;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 0.6rem 1rem;
    width: 100%;
    text-align: left;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}


/* =========================
   SECTIONS
========================= */
.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(
    180deg,
    rgba(100, 36, 75, 0.02),
    rgba(61, 10, 60, 0)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.section-sub:last-child {
  margin-bottom: 0;
}


/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at top,
      rgba(183, 50, 163, 0.12),
      transparent 45%
    ),
    radial-gradient(
      ellipse at center,
      rgba(59, 17, 47, 0.1),
      transparent 55%
    );
  margin-top: 60px;
}

.hero-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;

  pointer-events: none;
  touch-action: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
  margin-top: 0;
  animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub {
  color: var(--muted);
  margin: 0 0 1.2rem;
  align-self: center;
  max-width: 520px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-self: end;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: var(--primary);
  color: #0b1220;
  border-color: transparent;
  font-weight: 500;
}

.btn.primary:hover {
  filter: saturate(115%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.btn.outline {
  background: transparent;
}

.btn.outline:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.ghost:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.btn.small {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}


/* =========================
   SKILLS
========================= */
.skills {
  margin: 0.8rem 0 0;
  line-height: 1.3;
}


/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects-status {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.repo-card {
  min-height: 100%;
}

.repo-card .card-media {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 120px;
  padding: 1rem;
  color: #0b1220;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 40%),
    linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(34, 197, 94, 0.75));
  opacity: 1;
}

.repo-card .repo-language {
  background: rgba(11, 18, 32, 0.18);
  color: #0b1220;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.repo-card .repo-updated {
  margin: 0;
  color: rgba(11, 18, 32, 0.82);
  font-size: 0.85rem;
}

.repo-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.repo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.repo-card .card-actions {
  margin-top: auto;
}

.repo-card .btn.small {
  padding-inline: 0.8rem;
}

.projects-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================
   CV PREVIEW
========================= */
.cv-preview {
  display: grid;
  gap: 1rem;
}

/* =========================
   CV MODAL
========================= */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cv-modal.open {
  display: flex;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(6px);
}

.cv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cv-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.cv-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cv-modal-image {
  width: 100%;
  height: auto;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover::before {
  left: 100%;
}

.card-media {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.2;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem;
}

.card h3 {
  margin: 0 0 0.3rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--accent);
}

.card p {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.card:hover p {
  color: var(--text);
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.tags span {
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(57, 6, 52, 0.12);
  border: 1px dashed rgba(238, 34, 177, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.card:hover .tags span {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}


/* =========================
   CONTACT
========================= */
.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
}

.contact-list li {
  margin: 0.3rem 0;
  transition: all 0.3s ease;
}

.contact-list li:hover {
  padding-left: 0.5rem;
  color: var(--accent);
}

.contact-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(11, 18, 32, 0.22);
}

.contact-panel-soft {
  background: rgba(167, 139, 250, 0.07);
}

.contact-panel h3 {
  margin: 0 0 0.5rem;
}

.contact-panel p,
.contact-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
}


/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
  opacity: 0;
}

.back-to-top.show {
  display: inline-flex;
  opacity: 1;
}

.back-to-top:hover {
  background: var(--accent);
  color: #0b1220;
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}


/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: rgba(17, 24, 39, 0.6);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}




.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  touch-action: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;

  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.hero h1 {
  margin-top: 0;
}

.sub {
  align-self: center;
  max-width: 520px;
}

.actions {
  align-self: end;
}

