/* ─── KDMN PROJECTEN — SHARED STYLES ─── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --blue: #0077CC;
  --blue-light: #1a8fe0;
  --blue-dim: rgba(0, 119, 204, 0.15);
  --blue-glow: rgba(0, 119, 204, 0.3);
  --black: #000000;
  --dark: #0a0a0a;
  --dark2: #111111;
  --gray: #1c1c1e;
  --gray2: #2c2c2e;
  --text-muted: #6e6e73;
  --text-secondary: #a1a1a6;
  --white: #ffffff;
  --off-white: #f5f5f7;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-pill: 980px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-text { font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: 0.3px; }
.nav-logo-text span { color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links .nav-cta {
  background: var(--blue); color: var(--white) !important;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--blue-light);
  transform: scale(1.04);
  box-shadow: 0 0 20px var(--blue-glow);
}

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border: none; background: none;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white);
  padding: 15px 32px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: scale(1.03);
  box-shadow: 0 0 40px var(--blue-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); padding: 15px 32px;
  border-radius: var(--radius-pill); font-size: 16px;
  font-weight: 500; text-decoration: none;
  border: 1px solid rgba(0,119,204,0.35);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  background: none; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(0,119,204,0.08);
  transform: scale(1.03);
}

/* ─── SECTION BASE ─── */
.section-wrap { padding: 140px 48px; max-width: 1040px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; font-weight: 600; color: var(--blue);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.02;
}
.section-body {
  font-size: 18px; font-weight: 300;
  color: var(--text-secondary); line-height: 1.75;
  max-width: 580px; margin-top: 22px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Title reveal — big text slides up from below */
.title-reveal {
  overflow: hidden;
  display: block;
}
.title-reveal-inner {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease;
}
.title-reveal.visible .title-reveal-inner {
  transform: translateY(0);
  opacity: 1;
}
.title-reveal.visible .title-reveal-inner:nth-child(2) { transition-delay: 0.1s; }
.title-reveal.visible .title-reveal-inner:nth-child(3) { transition-delay: 0.2s; }

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 48px;
}
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--text-muted); font-weight: 400; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

footer a {
  color: var(--text-muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--white);
  text-decoration: none;
}
footer a:visited {
  color: var(--text-muted);
}

a[href^="mailto:"],
a[href^="tel:"],
a[href="/privacy"] {
  color: inherit;
  text-decoration: none;
}
a[href^="mailto:"]:hover,
a[href^="tel:"]:hover,
a[href="/privacy"]:hover {
  color: var(--white);
  text-decoration: none;
}
a[href^="mailto:"]:visited,
a[href^="tel:"]:visited,
a[href="/privacy"]:visited {
  color: inherit;
}

/* ─── FORM ELEMENTS ─── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px; color: var(--white);
  font-family: 'Outfit', sans-serif; font-weight: 300;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--blue);
  background: rgba(0,119,204,0.04);
  box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
}
textarea.form-input { resize: vertical; min-height: 130px; }

/* ─── CURSOR TRAIL ─── */
#cursorCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 9999; pointer-events: none;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    transform: translateY(-100%); opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-sm); }

  .section-wrap { padding: 80px 24px; }
  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
}
