/* -------------------------------------------------------
   PopUpElectroniX — base
------------------------------------------------------- */
:root{
  --bg: #08090c;
  --bg-alt: #0c0e13;
  --surface: #12151b;
  --surface-2: #171b23;
  --border: #232833;

  --text: #eef1f5;
  --text-dim: #9aa4b3;
  --text-faint: #626b7a;

  --accent: #37e6c4;
  --accent-2: #7c8cff;
  --copper: #ffb15c;

  --radius: 16px;
  --radius-sm: 10px;

  --ff-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3{
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2{ font-size: clamp(1.9rem, 4vw, 3rem); }
h3{ font-size: 1.15rem; margin-bottom: .35em; }

p{ margin: 0 0 1em; color: var(--text-dim); }

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.grad-text{
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* subtle film grain overlay for premium feel */
.grain{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------
   Header
------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8,9,12,.65);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled{ border-bottom-color: var(--border); }

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-mark{ color: var(--accent); display:flex; filter: drop-shadow(0 0 6px rgba(55,230,196,.55)); }
.brand-name{ font-family: var(--ff-head); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name em{ font-style: normal; color: var(--accent); }
.brand-name.small{ font-size: .95rem; }

.main-nav{ display: flex; align-items: center; gap: 34px; }
.main-nav a{
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--text); }
.nav-cta{
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 0 0 rgba(55,230,196,0);
  transition: box-shadow .25s ease, transform .2s ease;
}
.nav-cta:hover{ box-shadow: 0 0 22px rgba(55,230,196,.45); transform: translateY(-1px); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span{
  width: 20px; height: 1.5px; background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--accent);
  color: #05100d;
  box-shadow: 0 0 26px rgba(55,230,196,.25);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 6px 34px rgba(55,230,196,.45); }
.btn-ghost{
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg{ padding: 16px 34px; font-size: 1.02rem; }

/* -------------------------------------------------------
   Hero
------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 76px;
}

.hero-bg{ position: absolute; inset: 0; z-index: 0; }

.pcb-lines{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
}
.pcb-lines path{
  fill: none;
  stroke: url(#none);
  stroke: var(--border);
  stroke-width: 1.4;
}
.pcb-lines circle{ fill: var(--accent); opacity: .8; }

.glow{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-1{
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -180px; left: -120px;
}
.glow-2{
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -200px; right: -100px;
  animation-delay: -6s;
}
@keyframes drift{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(30px,-20px) scale(1.08); }
}

.hero-inner{ position: relative; z-index: 1; max-width: 760px; }

.eyebrow{
  font-family: var(--ff-head);
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

.hero-lede{
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text-dim);
}

.hero-actions{ display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

.scroll-hint{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  z-index: 1;
}
.scroll-hint span{
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity: 1; transform: translateY(0); }
  70%{ opacity: 0; transform: translateY(16px); }
  100%{ opacity: 0; }
}

/* -------------------------------------------------------
   Sections (generic)
------------------------------------------------------- */
.section{ padding: 130px 0; position: relative; }
.section-alt{ background: var(--bg-alt); }

.kicker{
  color: var(--accent);
  font-family: var(--ff-head);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-lede{
  max-width: 560px;
  font-size: 1.05rem;
}

/* -------------------------------------------------------
   Grid + cards ("Wat we doen")
------------------------------------------------------- */
.grid{ display: grid; gap: 22px; margin-top: 56px; }
.grid-5{ grid-template-columns: repeat(5, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(55,230,196,.4);
  background: var(--surface-2);
}
.card-icon{
  width: 44px; height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(55,230,196,.35));
}
.card-icon svg{ width: 100%; height: 100%; }
.card p{ font-size: .92rem; margin-bottom: 0; }

/* -------------------------------------------------------
   Projects
------------------------------------------------------- */
.project-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover{ transform: translateY(-4px); border-color: rgba(124,140,255,.4); }

.project-visual{
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(55,230,196,.16), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(124,140,255,.16), transparent 55%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.project-card[data-hue="2"] .project-visual{
  background:
    radial-gradient(circle at 70% 25%, rgba(255,177,92,.18), transparent 55%),
    radial-gradient(circle at 25% 75%, rgba(255,107,94,.14), transparent 55%),
    var(--surface-2);
}
.project-card[data-hue="4"] .project-visual,
.project-card[data-hue="5"] .project-visual{
  background:
    radial-gradient(circle at 30% 75%, rgba(124,140,255,.18), transparent 55%),
    radial-gradient(circle at 75% 25%, rgba(55,230,196,.14), transparent 55%),
    var(--surface-2);
}
.pv-dot{
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 26px 6px rgba(55,230,196,.55);
  animation: pulse 2.4s ease-in-out infinite;
}
.project-card[data-hue="2"] .pv-dot{ background: var(--copper); box-shadow: 0 0 26px 6px rgba(255,177,92,.5); }
.project-card[data-hue="4"] .pv-dot,
.project-card[data-hue="5"] .pv-dot{ background: var(--accent-2); box-shadow: 0 0 26px 6px rgba(124,140,255,.5); }
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.35); opacity: .7; }
}

.project-body{ padding: 22px 24px 26px; }
.project-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.project-top h3{ margin: 0; }
.project-body p{ font-size: .92rem; margin-bottom: 0; }

.tag{
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag-concept{ color: var(--accent-2); border-color: rgba(124,140,255,.35); background: rgba(124,140,255,.08); }
.tag-prototype{ color: var(--accent); border-color: rgba(55,230,196,.35); background: rgba(55,230,196,.08); }
.tag-dev{ color: var(--copper); border-color: rgba(255,177,92,.35); background: rgba(255,177,92,.08); }
.tag-product{ color: #b9f7ea; border-color: rgba(55,230,196,.5); background: rgba(55,230,196,.16); }

/* -------------------------------------------------------
   Werkwijze / process
------------------------------------------------------- */
.process{
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  gap: 24px 0;
}
.process::before{
  content: "";
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 0;
}
.process li{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  min-width: 120px;
}
.process-dot{
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(55,230,196,.5);
}
.process li:nth-child(2) .process-dot{ border-color: var(--accent-2); box-shadow: 0 0 16px rgba(124,140,255,.5); }
.process li:nth-child(4) .process-dot{ border-color: var(--copper); box-shadow: 0 0 16px rgba(255,177,92,.5); }
.process-label{
  font-family: var(--ff-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* -------------------------------------------------------
   Philosophy
------------------------------------------------------- */
.philosophy{ text-align: center; }
.philosophy .wrap{ max-width: 720px; }
.philosophy-lede{
  font-family: var(--ff-head);
  font-size: 1.35rem;
  color: var(--text);
}
.philosophy-body{ font-size: 1.05rem; }

/* -------------------------------------------------------
   CTA
------------------------------------------------------- */
.cta{
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 150px 0 130px;
}
.cta-bg{ opacity: .8; }
.cta-bg .glow-1{
  top: auto; bottom: -260px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
}
.cta-inner{ position: relative; z-index: 1; max-width: 620px; }
.cta-inner p{ font-size: 1.05rem; }
.tagline{ margin-top: 34px; color: var(--text-faint); font-size: .95rem; }

/* Contact form */
.contact-form{
  text-align: left;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cf-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.cf-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field{ display: flex; flex-direction: column; gap: 6px; }
.cf-field label{
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
}
.cf-field input,
.cf-field textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cf-field textarea{ resize: vertical; min-height: 100px; }
.cf-field input:focus,
.cf-field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55,230,196,.15);
}
.contact-form .btn{ align-self: flex-start; margin-top: 4px; }
.form-status{
  margin: 0;
  font-size: .88rem;
  min-height: 1.2em;
  color: var(--text-faint);
}
.form-status.success{ color: var(--accent); }
.form-status.error{ color: var(--copper); }

@media (max-width: 560px){
  .cf-row{ grid-template-columns: 1fr; }
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: .85rem;
}
.footer-tagline{ font-style: italic; }

/* -------------------------------------------------------
   Reveal-on-scroll
------------------------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 900px){
  .grid-5{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .process{ flex-direction: column; align-items: flex-start; gap: 26px; }
  .process::before{ top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--border) 10%, var(--border) 90%, transparent); }
  .process li{ flex-direction: row; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    isolation: isolate;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 28px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  }
  .main-nav.open{
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear 0s;
  }
  .main-nav a{ padding: 10px 0; width: 100%; }
  .nav-cta{ margin-top: 8px; text-align: center; }
  .nav-toggle{ display: flex; }

  .grid-5{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }

  .section{ padding: 90px 0; }
  .hero{ min-height: auto; padding: 150px 0 100px; }

  .footer-inner{ flex-direction: column; align-items: flex-start; }
}
