/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #57bf93;
    --primary-dark: #45a07a;
    --primary-light: #e8f5ef;
    --text: #2d3748;
    --text-light: #5a6578;
    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--text);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-logo:hover {
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links .nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Hero === */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(170deg, var(--bg) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 540px;
    position: relative;
    z-index: 2;
    animation: hero-enter 0.8s ease both;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
    animation: hero-enter 0.8s ease 0.15s both;
}

.hero .btn {
    animation: hero-enter 0.8s ease 0.3s both;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating logos */
.hero-floats {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-float {
    position: absolute;
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.35;
    border-radius: 10px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    animation: hero-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(2deg); }
    75% { transform: translateY(8px) rotate(-1.5deg); }
}

/* === Diensten === */
.diensten {
    padding: 100px 0;
    background: var(--bg);
}

.diensten h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dienst-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.dienst-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}

.dienst-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.dienst-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.dienst-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dienst-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Samenwerking === */
.samenwerking {
    padding: 100px 0;
    background: var(--bg-alt);
}

.samenwerking h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* === Koppelingen === */
.koppelingen {
    padding: 100px 0;
    background: var(--bg);
}

.koppelingen h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

/* === Over ons === */
.over-ons {
    padding: 100px 0;
    background: var(--bg);
}

.over-ons-header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.over-ons-logo {
    width: 120px;
    height: 120px;
    opacity: 0.08;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.over-ons h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.over-ons-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.over-ons-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-waarde {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.over-ons-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.over-ons-intro {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 500;
}

.over-ons-tekst p {
    color: var(--text-light);
    line-height: 1.8;
}

.expertise h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.expertise-groep h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.expertise-groep ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-groep li {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: border-color var(--transition), color var(--transition);
}

.expertise-groep li:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* === Contact === */
.contact {
    padding: 100px 0;
    background: var(--bg-alt);
}

.contact h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-groep {
    margin-bottom: 20px;
}

.form-groep label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-groep input,
.form-groep textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-groep input:focus,
.form-groep textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.form-groep textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.4em;
}

.form-status.success {
    color: var(--primary-dark);
}

.form-status.error {
    color: #e53e3e;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-light);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-dark);
}

.contact-item a {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-portret {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
}

.contact-portret-foto {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.contact-portret-foto::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 2.5px solid var(--bg);
}

.contact-portret-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    object-position: center 30%;
}

.contact-portret-tekst {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-portret-tekst strong {
    color: var(--text);
    font-size: 0.95rem;
}

.contact-portret-tekst span {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* === Koppelingen grid === */
.koppelingen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.koppeling-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
    transition: transform var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.koppeling-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.koppeling-item:hover {
    transform: translateY(-3px);
}

.koppeling-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.koppeling-item:hover .koppeling-logo {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.koppeling-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.koppeling-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* === Partner cards === */

a.partner-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--partner-color, var(--primary));
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(24px);
}

a.partner-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}

a.partner-card:hover {
    border-color: var(--partner-color, var(--primary));
    border-left-color: var(--partner-color, var(--primary));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partner-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    flex-shrink: 0;
}

.partner-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.partner-card-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.partner-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-light);
    opacity: 0;
    transition: all var(--transition);
}

a.partner-card:hover .partner-card-arrow {
    opacity: 1;
    color: var(--partner-color, var(--primary));
}

/* === AI sectie === */
.ai-sectie {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
}

.ai-header {
    margin-bottom: 56px;
}

.ai-sectie h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
}

.ai-subtitle {
    color: #94a3b8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ai-principes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.ai-principe {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.ai-principe.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, background var(--transition), border-color var(--transition);
}

.ai-principe:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ai-principe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.ai-principe h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.ai-principe p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
}

.ai-modellen {
    text-align: center;
}

.ai-modellen-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 24px;
}

.ai-modellen-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ai-model {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    opacity: 0.5;
    transition: opacity var(--transition);
    filter: brightness(0) invert(1);
}

.ai-model:hover {
    opacity: 0.85;
}

.ai-model img {
    height: 100%;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* === Klanten === */
.klanten {
    padding: 100px 0 80px;
    background: var(--bg-alt);
    overflow: hidden;
}

.klanten-header {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
}

.klanten-shield {
    width: 120px;
    height: 120px;
    color: var(--primary);
    opacity: 0.08;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.klanten .container {
    text-align: center;
}

.klanten h2 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.marquee-wrapper {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    padding-right: 16px;
    animation: marquee 90s linear infinite;
    flex-shrink: 0;
}

.marquee-reverse .marquee-track {
    animation: marquee-reverse 90s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.klant-naam {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

/* === Footer === */
.footer {
    padding: 48px 0 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .nav-logo {
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-bottom .footer-legal {
    margin-top: 4px;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
    .hero-float { animation: none; }
    .hero-content,
    .hero-subtitle,
    .hero .btn {
        animation: none;
    }
    .dienst-card, .koppeling-item, a.partner-card, .ai-principe {
        opacity: 1;
        transform: none;
    }
    .marquee-track {
        animation-duration: 0s;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        padding: 130px 0 72px;
    }

    .hero-floats {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .diensten-grid {
        grid-template-columns: 1fr;
    }

    .over-ons-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .over-ons-stats {
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-cta {
        text-align: center;
    }

    .section-subtitle {
        margin-bottom: 32px;
    }

    .diensten,
    .samenwerking,
    .koppelingen,
    .ai-sectie,
    .over-ons,
    .contact,
    .klanten {
        padding: 72px 0;
    }

    .ai-principes {
        grid-template-columns: 1fr;
    }

    .ai-modellen-grid {
        gap: 32px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .koppelingen-grid {
        gap: 16px;
    }

    .koppeling-item {
        width: 90px;
    }

    .koppeling-logo {
        width: 56px;
        height: 56px;
        padding: 10px;
    }

    .marquee-track {
        animation-duration: 60s;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 16px;
    }

    .dienst-card,
    .ai-principe {
        padding: 24px;
    }

    .koppeling-item {
        width: 75px;
    }

    .koppeling-logo {
        width: 48px;
        height: 48px;
        padding: 8px;
    }
}
