:root {
  --bg:        #1a1a2e;
  --bg2:       #16213e;
  --surface:   #1e1e2e;
  --surface2:  #252540;
  --accent:    #4d9eff;
  --accent2:   #2d7dd2;
  --text:      #abb2bf;
  --text-hi:   #e6eaf0;
  --green:     #98c379;
  --orange:    #e5c07b;
  --purple:    #c678dd;
  --cyan:      #56b6c2;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: 'Segoe UI', system-ui, sans-serif;
  --radius:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px; /* hoogte navbar + kleine marge */
}
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.7; overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

/* PARTICLES & PROGRESS */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent2), var(--purple)); z-index: 200; transition: width .1s linear; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 100px;
  background: rgba(26,26,46,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(77,158,255,0.12); transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.4); }
.nav-logo img { height: 60px; transition: transform .3s; }
.nav-logo img:hover { transform: scale(1.06); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .93rem; position: relative; padding-bottom: 2px; transition: color .25s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width .3s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1.1rem;
  line-height: 36px;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: .88; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text-hi); border-radius: 2px; }

/* HERO */
#hero {
  position: relative; min-height: 100vh; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 2rem 4rem; text-align: center;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(45,125,210,.18) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(198,120,221,.08) 0%, transparent 50%),
    transparent;
}
.hero-inner {
  max-width: 840px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(77,158,255,.1); border: 1px solid rgba(77,158,255,.3);
  color: var(--accent); font-size: .8rem; letter-spacing: .08em;
  padding: .35rem 1rem; border-radius: 20px; margin-bottom: 1.8rem;
  text-transform: uppercase; font-family: var(--font-mono);
  animation: fadeDown .8s ease both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero-logo {
  height: 100px;
  margin: 0 auto 1.5rem;
  display: block;
  animation: fadeDown .8s ease both;
}

h1 { font-size: clamp(2.4rem,6vw,3.8rem); font-weight: 800; line-height: 1.15; color: var(--text-hi); margin-bottom: 1.2rem; animation: fadeUp .9s .2s ease both; }
h1 .accent { color: var(--accent); }
.typed-wrapper { display: inline-block; min-width: 220px; }
.cursor { display: inline-block; width: 3px; height: .9em; background: var(--accent); margin-left: 2px; animation: blink 1s infinite; vertical-align: middle; }

.hero-sub { font-size: 1.1rem; color: var(--text); max-width: 560px; margin: 0 auto 2.4rem; animation: fadeUp .9s .4s ease both; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp .9s .6s ease both; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff;
  padding: .78rem 2rem; border-radius: var(--radius); text-decoration: none;
  font-weight: 700; border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(77,158,255,.3); transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(77,158,255,.45); }
.btn-outline {
  border: 1px solid rgba(77,158,255,.5); color: var(--accent);
  padding: .78rem 2rem; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 1rem; transition: background .25s, transform .2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(77,158,255,.1); transform: translateY(-3px); }

/* CODE BLOCK */
.code-block {
  margin: 3rem auto 0; max-width: 520px; background: var(--surface);
  border: 1px solid rgba(77,158,255,.18); border-radius: 12px; padding: 1.4rem 1.8rem;
  text-align: left; font-family: var(--font-mono); font-size: .86rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.5); animation: fadeUp .9s .8s ease both;
  position: relative; overflow: hidden;
}
.code-block::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent2), var(--purple), var(--cyan)); }
.win-dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.win-dots span { width: 12px; height: 12px; border-radius: 50%; }
.wd-r { background: #e06c75; } .wd-y { background: #e5c07b; } .wd-g { background: #98c379; }
.code-line { margin: .25rem 0; }
.kw  { color: var(--purple); }
.fn  { color: var(--accent); }
.str { color: var(--green); }
.cm  { color: #5c6370; }
.nr  { color: var(--orange); }
.op  { color: var(--cyan); }

/* SECTIONS */
section { position: relative; z-index: 1; padding: 6rem 2rem; background: transparent; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-tag { font-family: var(--font-mono); font-size: .76rem; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
h2 { font-size: clamp(1.7rem,4vw,2.5rem); font-weight: 800; color: var(--text-hi); margin-bottom: .8rem; }
.section-lead { max-width: 580px; color: var(--text); margin-bottom: 3rem; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* STATS */
#stats { background: var(--bg2); padding: 3.5rem 2rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.stat-card {
  flex: 1; min-width: 160px; background: var(--surface);
  border: 1px solid rgba(77,158,255,.12); border-radius: 12px;
  padding: 1.4rem 1.6rem; text-align: center; transition: border-color .3s, transform .25s;
}
.stat-card:hover { border-color: rgba(77,158,255,.4); transform: translateY(-4px); }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }
.stat-label { font-size: .85rem; color: var(--text); margin-top: .2rem; }

/* SERVICES */
#diensten { background: rgba(22, 33, 62, 0.5); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card {
  background: var(--surface); border: 1px solid rgba(77,158,255,.1);
  border-radius: 12px; padding: 1.8rem; transition: border-color .3s, transform .25s, box-shadow .3s;
}
.service-card:hover { border-color: rgba(77,158,255,.45); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(77,158,255,.08); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(77,158,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; transition: background .3s, transform .3s; }
.service-card:hover .card-icon { background: rgba(77,158,255,.2); transform: scale(1.1) rotate(-5deg); }
.service-card h3 { color: var(--text-hi); margin-bottom: .5rem; font-size: 1.05rem; }

/* APPS */
#apps     { background: rgba(26, 26, 46, 0.5); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 2rem; }
.app-card {
  background: var(--surface); border: 1px solid rgba(77,158,255,.1);
  border-radius: 14px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.app-card:hover { transform: translateY(-6px) scale(1.01); border-color: rgba(77,158,255,.4); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.app-media {
  width: 100%; aspect-ratio: 3/4; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.app-media::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,125,210,.15), rgba(198,120,221,.1), rgba(86,182,194,.1));
  background-size: 300% 300%; animation: gradShift 6s ease infinite;
}
.app-media-placeholder { display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 1; }
.app-media-placeholder .icon { font-size: 2.8rem; filter: drop-shadow(0 0 12px rgba(77,158,255,.5)); }
.app-media-placeholder span { font-size: .75rem; font-family: var(--font-mono); color: var(--accent); opacity: .7; }
.app-media img, .app-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* ← was center, nu top */
  position: absolute;
  top: 0; left: 0;
}
.badge-soon { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: rgba(198,120,221,.15); border: 1px solid var(--purple); color: var(--purple); font-size: .68rem; padding: .22rem .6rem; border-radius: 20px; font-family: var(--font-mono); }
.app-info { padding: 1.5rem; }
.app-info h3 { color: var(--text-hi); margin-bottom: .45rem; font-size: 1.1rem; }
.app-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.tag { background: rgba(77,158,255,.08); border: 1px solid rgba(77,158,255,.18); color: var(--accent); font-size: .7rem; padding: .18rem .55rem; border-radius: 5px; font-family: var(--font-mono); transition: background .2s; }
.tag:hover { background: rgba(77,158,255,.2); }

/* STACK */
#stack    { background: rgba(22, 33, 62, 0.5); }
.stack-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.stack-pill {
  display: flex; align-items: center; gap: .65rem; background: var(--surface);
  border: 1px solid rgba(77,158,255,.12); border-radius: 30px; padding: .55rem 1.3rem;
  font-family: var(--font-mono); font-size: .88rem; color: var(--text-hi);
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.stack-pill:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(77,158,255,.15); }
.stack-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* WHY */
#waarom   { background: rgba(26, 26, 46, 0.5); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: stretch;
}

.why-item {
  padding: 1.6rem;
  border-left: 3px solid var(--accent2);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  transition: border-color .3s, transform .25s;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.why-item:hover { border-color: var(--accent); transform: translateX(4px); }
.why-item h4 { color: var(--text-hi); margin-bottom: .4rem; }

/* CONTACT */
#contact  { background: rgba(22, 33, 62, 0.5); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-info h3 { color: var(--text-hi); margin-bottom: 1rem; font-size: 1.3rem; }
.contact-item { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.ci-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(77,158,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: background .3s; }
.contact-item:hover .ci-icon { background: rgba(77,158,255,.22); }
.ci-label { color: var(--text-hi); font-weight: 600; }

form { display: flex; flex-direction: column; gap: 1rem; }
input, textarea, select {
  background: var(--surface); border: 1px solid rgba(77,158,255,.15);
  color: var(--text-hi); padding: .78rem 1rem; border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font-sans); transition: border-color .25s, box-shadow .25s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,158,255,.1); }
textarea { resize: vertical; min-height: 130px; }
select option { background: var(--surface2); }
input::placeholder, textarea::placeholder { color: #5c6370; }

/* FOOTER */
footer    { position: relative; z-index: 1; background: rgba(26, 26, 46, 0.5); border-top: 1px solid rgba(77,158,255,.1); padding: 2.2rem; text-align: center; font-size: .85rem; color: #5c6370; }
footer a { color: var(--accent2); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--accent); }
.footer-logo { height: 100px; margin-bottom: .8rem; opacity: .7; }
.footer-brand { color: var(--accent2); }

/* KEYFRAMES */
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:none} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(24px)}  to{opacity:1;transform:none} }
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes gradShift{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.stack-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(22,22,46,.98); padding: 1.5rem 2rem; border-bottom: 1px solid rgba(77,158,255,.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-row { justify-content: center; }
  .stack-groups { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

.code-card {
  background: var(--surface);
  border: 1px solid rgba(77,158,255,.18);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  font-family: var(--font-mono);
  font-size: .84rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .25s, box-shadow .3s;
}
.code-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--purple), var(--cyan));
}
.code-card:hover {
  border-color: rgba(77,158,255,.5);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(77,158,255,.1);
}
.code-card .win-dots { margin-bottom: .9rem; }
.card-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s infinite;
  margin-left: 1px;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.card-desc {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
}

.code-card .win-dots { display: none; }

.stack-group-label {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.stack-group {
  width: 100%;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#thankyou {
  display: none;
}

#back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(77,158,255,.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(77,158,255,.5);
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(77,158,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  transition: background .3s, transform .3s;
}
.why-item:hover .why-icon {
  background: rgba(77,158,255,.22);
  transform: scale(1.1);
}
.why-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.8;
}

.ci-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 1.8;
}