/* =========================================================
   Internet Fabriek - Frontend styles
   Donker, modern, technisch, premium met blauwe accenten.
   ========================================================= */

:root {
    --dark-primary: #111923;
    --dark-secondary: #172433;
    --dark-3: #1d2c3d;
    --blue: #5aa8d8;
    --blue-strong: #7cc0ea;
    --white: #ffffff;
    --muted: #9aa8b7;
    --muted-2: #6f7e8d;
    --light-bg: #f4f7fb;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-blue: 0 0 50px -10px rgba(90, 168, 216, 0.45);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--dark-primary);
    color: var(--white);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--muted); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; position: relative; }
.section-tight { padding: 70px 0; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), #4a92c2);
    color: #06121c;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px -8px rgba(90, 168, 216, 0.6); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--white);
}
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(17, 25, 35, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.brand .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 14px var(--blue);
}
.brand img { height: 80px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 130px 0 110px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
    background: linear-gradient(120deg, var(--blue-strong), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .hero-sub { font-size: 1.18rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual: abstracte cirkel + glow + grid */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-orb {
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(90,168,216,0.55), rgba(90,168,216,0.05) 60%, transparent 70%);
    filter: blur(6px);
    animation: float 8s ease-in-out infinite;
}
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(90, 168, 216, 0.25);
}
.hero-ring.r1 { width: 92%; aspect-ratio: 1; }
.hero-ring.r2 { width: 66%; aspect-ratio: 1; border-color: rgba(90,168,216,0.4); }
.hero-ring.r3 { width: 40%; aspect-ratio: 1; border-color: rgba(124,192,234,0.55); }
.hero-core {
    position: relative;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-strong), #3d7ba8);
    box-shadow: 0 0 80px rgba(90,168,216,0.6);
    z-index: 2;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(90,168,216,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90,168,216,0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(90,168,216,0.16), transparent 60%);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ---------- Intro / stats ---------- */
.intro-text { max-width: 760px; }
.intro-text h2 { margin-bottom: 18px; }

/* ---------- Card grids ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: linear-gradient(160deg, var(--dark-secondary), var(--dark-primary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 168, 216, 0.45);
    box-shadow: var(--shadow), 0 0 40px -18px rgba(90,168,216,0.6);
}
.card .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(90, 168, 216, 0.12);
    color: var(--blue);
    margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

.section-head { margin-bottom: 50px; max-width: 680px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Portfolio cards ---------- */
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }

.pf-card {
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    display: flex;
    flex-direction: column;
}
.pf-card:hover {
    transform: translateY(-8px);
    border-color: rgba(90,168,216,0.5);
    box-shadow: var(--shadow), 0 0 50px -20px rgba(90,168,216,0.7);
}
.pf-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--dark-3), var(--dark-secondary));
    position: relative;
    overflow: hidden;
}
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-thumb .placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-2);
    font-size: 0.9rem;
    background-image:
        linear-gradient(rgba(90,168,216,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90,168,216,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.pf-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pf-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(90,168,216,0.12);
    color: var(--blue-strong);
    font-weight: 600;
}
.badge.muted { background: rgba(255,255,255,0.05); color: var(--muted); }
.pf-body h3 { margin-bottom: 8px; font-size: 1.2rem; }
.pf-body p { font-size: 0.94rem; margin-bottom: 16px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pf-tags span { font-size: 0.78rem; color: var(--muted); }
.pf-cta {
    margin-top: 18px;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}
.pf-card:hover .pf-cta { opacity: 1; transform: translateY(0); }

.card.step.reveal.visible {
    padding-left: 20px;
}
/* ---------- Filters / search ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all .2s;
}
.chip:hover { color: var(--white); border-color: var(--blue); }
.chip.active { background: var(--blue); color: #06121c; border-color: var(--blue); }
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    min-width: 240px;
}
.search-box input {
    background: none; border: 0; outline: none; color: var(--white);
    width: 100%; font-size: 0.95rem; font-family: inherit;
}
.search-box svg { width: 18px; height: 18px; color: var(--muted); }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ---------- Werkwijze (steps) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(90,168,216,0.35);
    margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(90,168,216,0.18), transparent 60%);
}
.cta-band > * { position: relative; }

/* ---------- Portfolio detail ---------- */
.detail-hero { padding: 60px 0 0; }
.back-link { color: var(--muted); font-size: 0.92rem; display: inline-flex; gap: 6px; margin-bottom: 26px; }
.back-link:hover { color: var(--blue); }
.detail-figure {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 36px 0;
    background: var(--dark-secondary);
}
.detail-figure img { width: 100%; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.detail-content h2 { font-size: 1.6rem; margin-top: 34px; }
.detail-content p { color: #c4d0db; }
.detail-aside {
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.detail-aside h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 8px; }
.detail-aside .block { margin-bottom: 22px; }
.detail-aside .block:last-child { margin-bottom: 0; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list span { background: rgba(90,168,216,0.1); color: var(--blue-strong); padding: 5px 12px; border-radius: 8px; font-size: 0.82rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.gallery-grid img { border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-field textarea { min-height: 150px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-info .info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .info-row .ico { color: var(--blue); margin-top: 3px; }

/* ---------- Flash messages ---------- */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
}
.flash-success { background: rgba(60, 180, 120, 0.12); border-color: rgba(60,180,120,0.4); color: #8be0b4; }
.flash-error { background: rgba(220, 80, 90, 0.12); border-color: rgba(220,80,90,0.4); color: #f1a7ad; }
.flash-info { background: rgba(90,168,216,0.12); border-color: rgba(90,168,216,0.4); color: var(--blue-strong); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    background: var(--dark-secondary);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-grid p { max-width: 320px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { color: var(--muted-2); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 24px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 380px; margin: 0 auto; }
    .grid-3, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links {
        position: fixed;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        background: var(--dark-secondary);
        padding: 20px 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .3s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: block; }
}
@media (max-width: 600px) {
    .section { padding: 70px 0; }
    .grid-3, .grid-2, .portfolio-grid, .gallery-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 44px 24px; }
}
