/* —— CSS variables —— */
:root {
  --bg: #080810;
  --bg-2: #0d0d1a;
  --bg-3: #12122a;
  --accent: #00ff9d;
  --accent-2: #7b61ff;
  --accent-3: #ff3c6e;
  --text: #e8e8f0;
  --text-muted: #6b6b8a;
  --border: rgba(0, 255, 157, 0.15);
  --grid: rgba(255, 255, 255, 0.03);
  --glow: 0 0 20px rgba(0, 255, 157, 0.3);
  --font-mono: "JetBrains Mono", monospace;
  --font-display: "Syne", sans-serif;
  --header-h: 64px;
  /* Syntax highlighting (IDE-stijl) */
  --token-keyword: #ff79c6;
  --token-string: #f1fa8c;
  --token-number: #bd93f9;
  --token-comment: #6272a4;
  --token-operator: #ff79c6;
  --token-function: #50fa7b;
  --token-variable: #8be9fd;
  --ps-bg: #012456;
  --ps-border: rgba(0, 120, 215, 0.4);
  --ps-titlebar: #1e1e2e;
  --ps-blue: rgba(0, 120, 215, 0.3);
}

.token-keyword {
  color: var(--token-keyword);
}
.token-string {
  color: var(--token-string);
}
.token-number {
  color: var(--token-number);
}
.token-comment {
  color: var(--token-comment);
}
.token-operator {
  color: var(--token-operator);
}
.token-function {
  color: var(--token-function);
}
.token-variable {
  color: var(--token-variable);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.no-custom-cursor) * {
    cursor: none;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Page boot overlay */
.page-boot {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

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

/* Dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 255, 157, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

body.grid-visible::before {
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100px;
  }
}

/* Cursor */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
  opacity: 0;
}

body.cursor-ready .cursor {
  opacity: 1;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.5;
}

body.cursor-ready .cursor-ring {
  opacity: 0.5;
}

.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  border-color: var(--accent-2);
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.25rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 8, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  display: flex;
  align-items: baseline;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo .logo-full,
.nav-logo .logo-short {
  display: flex;
  align-items: baseline;
}

.nav-logo .logo-short {
  display: none;
}

@media (max-width: 479px) {
  .nav-logo .logo-full {
    display: none !important;
  }

  .nav-logo .logo-short {
    display: flex !important;
  }
}

.logo-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: lowercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--accent);
  padding: 8px 20px;
  color: var(--accent);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent);
  color: #000;
}

/* Main content above backgrounds */
main {
  position: relative;
  z-index: 2;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-label-block {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-align: left;
  margin-bottom: 1.5rem;
  min-height: 4.5em;
}

.hero-line {
  margin: 0;
  min-height: 1.35em;
}

.hero-line .token-comment,
.hero-line .token-function {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--text);
  position: relative;
}

.glitch-title {
  position: relative;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-glitch-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  white-space: pre-line;
  text-align: center;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  mix-blend-mode: screen;
}

.glitch-title.is-glitching::before {
  animation: glitch 0.1s linear;
  color: var(--accent-3);
  opacity: 0.9;
  z-index: 2;
}

.glitch-title.is-glitching::after {
  animation: glitch 0.1s linear 0.02s;
  color: var(--accent-2);
  opacity: 0.9;
  z-index: 3;
}

@keyframes glitch {
  0% {
    clip-path: inset(0 0 95% 0);
    transform: translate(-3px, 0);
  }
  20% {
    clip-path: inset(40% 0 50% 0);
    transform: translate(3px, 0);
    color: var(--accent-3);
  }
  40% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-3px, 0);
  }
  60% {
    clip-path: inset(20% 0 70% 0);
    transform: translate(0, 0);
  }
  80% {
    clip-path: inset(60% 0 30% 0);
    transform: translate(3px, 0);
    color: var(--accent-2);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

.hero-title-inner {
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title-line {
  display: block;
  text-align: center;
}

/* Waterval inspringing — gecentreerd uitlijnen met oplopende padding */
.hero-title-line--2 {
  padding-left: clamp(20px, 4vw, 56px);
}

.hero-title-line--3 {
  padding-left: clamp(36px, 7vw, 90px);
}



.hero-sub {
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
}

.hero-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 14px 24px;
  border: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 255, 157, 0.08);
}

.hero-scroll-hint {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
}

.hero-scroll-hint.is-visible {
  opacity: 1;
  transition: opacity 0.8s ease 0.2s;
}

/* Sections */
.section {
  position: relative;
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head--left {
  text-align: left;
}

.section-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
  min-height: 1.25em;
}

.section-cmd .token-operator,
.section-cmd .token-function,
.section-cmd .token-string {
  font-family: inherit;
  font-size: inherit;
}

html.js .section-has-reveal .section-title--reveal {
  opacity: 0;
  transform: translateY(30px);
}

html.js .section-has-reveal .stagger-item {
  opacity: 0;
  transform: translateY(24px);
}

html.js .section-has-reveal .stagger-item--slide {
  transform: translateX(60px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.js .section-has-reveal .section-title--reveal,
  html.js .section-has-reveal .stagger-item,
  html.js .section-has-reveal .stagger-item--slide {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  color: var(--text);
}

/* Diensten */
.diensten {
  background: var(--bg);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards .card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards .card:nth-child(3) {
    grid-column: auto;
  }
}

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 32px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.card-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.icon-svg {
  width: 48px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .icon-svg {
  transform: rotate(5deg) scale(1.1);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 0;
}

/* Werkwijze */
.werkwijze {
  background: var(--bg-2);
}

.timeline {
  position: relative;
}

.timeline-track-wrap {
  display: none;
}

@media (min-width: 768px) {
  .timeline-track-wrap {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
  }

  .timeline-track {
    height: 100%;
    background: rgba(0, 255, 157, 0.15);
    position: relative;
    margin: 0 8%;
  }

  .timeline-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--accent);
    opacity: 0.35;
  }
}

.timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .timeline-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 4rem;
  }
}

.timeline-step {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(0, 255, 157, 0.25);
}

@media (min-width: 768px) {
  .timeline-step {
    padding-left: 0;
    border-left: none;
    text-align: left;
  }
}

.step-bg {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.step-free {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.step-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Over */
.over {
  background: var(--bg);
}

.over-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .over-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.over-body {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 2px;
}

.inline-code:not(.token-variable) {
  color: var(--accent);
}

.fact-pills {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fact-pills li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
}

/* Windows PowerShell-venster */
.ps-window {
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.ps-window:hover {
  box-shadow: 0 0 28px rgba(0, 120, 215, 0.2);
}

.ps-window:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ps-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ps-titlebar);
  border-bottom: 1px solid var(--ps-blue);
}

.ps-titlebar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.ps-controls {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  user-select: none;
}

.ps-body {
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}

.ps-row {
  margin-bottom: 0.35rem;
  min-height: 1.3em;
}

.ps-prompt {
  color: var(--accent);
  font-weight: 500;
}

.ps-command {
  color: var(--text);
}

.ps-out {
  color: var(--token-string);
}

.ps-out--status {
  color: var(--token-function);
}

.ps-bar-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ps-bar-fill {
  color: var(--accent);
}

.ps-bar-empty {
  color: var(--text-muted);
  opacity: 0.25;
}

.ps-bar-label {
  color: var(--token-variable);
  font-size: 12px;
}

.ps-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.ps-prompt-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.profile-photo {
  width: 100%;
  margin-top: 1.5rem;
  filter: grayscale(20%) contrast(1.1);
  border: 1px solid var(--border);
}

/* Contact */
.contact {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.contact-stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.stat-tag {
  display: inline-block;
  color: var(--accent);
  margin-right: 0.35rem;
}

.stat-tag::before {
  content: "[";
  color: var(--text-muted);
}

.stat-tag::after {
  content: "]";
  color: var(--text-muted);
}

.contact-form .form-field {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  border-radius: 0;
  resize: vertical;
  min-height: 2.25rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #000;
  margin-top: 0.5rem;
  overflow: hidden;
}

.btn-submit-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow-anim {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-submit:hover .btn-arrow-anim {
  transform: translateX(6px);
}

.form-success {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.footer-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-logo {
  color: var(--text);
}

.footer-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    z-index: 150;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  body::after {
    animation: none;
  }
}
