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

:root {
  --red: #D60F3C;
  --orange: #EC6608;
  --yellow: #FFCD1C;
  --text: #2d2d3a;
  --text-light: #6b6b7b;
  --bg: #fafafa;
  --white: #ffffff;
  --radius: 16px;
  --serif: 'Playfair Display', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Floating background ── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.06;
}
.backdrop span {
  position: absolute;
  display: block;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateX(0); opacity: 0.7; }
  50%  { opacity: 1; }
  100% { transform: translateX(110vw); opacity: 0; }
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
nav .logo { height: 50px; }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
nav a:hover { color: var(--orange); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}
.hero-content { max-width: 800px; }
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 4px solid var(--red);
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--orange);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero .code-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.hero .code-line span { color: var(--orange); }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.2rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-hint span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  opacity: 0.4;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Sections ── */
.section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
}

/* ── Specialisaties ── */
.services { background: var(--white); position: relative; overflow: hidden; }

/* ── Falling blocks ── */
.falling-block {
  position: absolute;
  height: 50px;
  z-index: 0;
  pointer-events: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-header { position: relative; z-index: 1; }
.card {
  position: relative;
  background: rgba(250, 250, 250, 0.85);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card:nth-child(1)::before { background: var(--orange); }
.card:nth-child(2)::before { background: var(--red); }
.card:nth-child(3)::before { background: var(--yellow); }
.card .icon {
  font-family: var(--mono);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.card:nth-child(1) .icon { background: rgba(236,102,8,0.1); color: var(--orange); }
.card:nth-child(2) .icon { background: rgba(214,15,60,0.1); color: var(--red); }
.card:nth-child(3) .icon { background: rgba(255,205,28,0.15); color: #c59a00; }
.card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.card .tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.card .tech span {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  color: var(--text-light);
}

/* ── Tech stack ── */
.stack { background: var(--bg); }
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  background: var(--white);
  border-radius: 10px;
  border: 2px solid #e8e8ee;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}
.stack-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Werkwijze ── */
.process { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.step {
  text-align: center;
  position: relative;
}
.step::after {
  content: '→';
  position: absolute;
  right: -1.3rem;
  top: 2.5rem;
  font-size: 1.5rem;
  color: #ddd;
}
.step:last-child::after { display: none; }
.step .num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 0 rgba(236, 102, 8, 0);
  transition: box-shadow 0.4s ease;
}
.step .num.glow {
  animation: numGlow 2.4s ease-out;
}
@keyframes numGlow {
  0%   { box-shadow: 0 0 0 0 rgba(236, 102, 8, 0.7); }
  50%  { box-shadow: 0 0 24px 10px rgba(236, 102, 8, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(236, 102, 8, 0); }
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ── CTA ── */
.cta-section {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 280px;
}
.community-mascot,
.community-mascot-right {
  pointer-events: none;
  margin-bottom: -10px;
}
.community-mascot {
  position: absolute;
  bottom: 0;
  left: 1%;
  width: 240px;
}
.community-mascot-right {
  position: absolute;
  bottom: 0;
  right: 1%;
  width: 240px;
  transform: scaleX(-1);
}
.cta-section p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-links a {
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.cta-links a:hover { opacity: 0.85; }
.cta-links .primary { background: var(--orange); color: white; }
.cta-links .secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: #e8e8ee;
  color: #666;
  font-size: 0.85rem;
}
footer .footer-logo { height: 40px; margin-bottom: 1rem; opacity: 0.7; }
footer .color-bar { display: flex; height: 3px; margin-bottom: 2rem; }
footer .color-bar span:nth-child(1) { flex: 1; background: var(--red); }
footer .color-bar span:nth-child(2) { flex: 1; background: var(--orange); }
footer .color-bar span:nth-child(3) { flex: 1; background: var(--yellow); }
footer a { color: inherit; text-decoration: underline; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 500px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .section { padding: 4rem 1.5rem; }
  .community-mascot,
  .community-mascot-right {
    position: static;
    display: inline-block;
    width: 120px;
    margin: 0;
  }
  .community-mascots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    overflow: hidden;
  }
  .community-mascot { transform: none; }
  .community-mascot-right { transform: scaleX(-1); }
  .cta-section {
    padding-bottom: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
