:root {
    --zwart: #1a1a1a;
    --donkerzwart: #000000;
    --rood: #c41e3a;
    --lichtgrijs: #f8f9fa;
    --wit: #ffffff;
}

body { font-family: Arial, sans-serif; margin: 0; padding: 0; color: #333; line-height: 1.6; background: var(--wit); }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; }

header { background: var(--zwart); color: var(--wit); padding: 20px 0; text-align: center; }
.header-logo img { height: 70px; }
nav ul { list-style: none; padding: 0; margin: 20px 0 0; }
nav ul li { display: inline; margin: 0 20px; }
nav ul li a { color: var(--wit); font-weight: bold; font-size: 18px; transition: color 0.3s; }
nav ul li a:hover { color: var(--rood); }

/* Hero met foto-slider als achtergrond */
.hero {
    position: relative;
    color: var(--wit);
    text-align: center;
    padding: 150px 20px 120px;
    overflow: hidden;
}
.slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    animation: fade 32s infinite; /* 8s per foto bij 4 slides */
    background-size: cover;
    background-position: center;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zorgt dat de foto mooi vult zonder vervorming */
}
/* Fade animatie */
@keyframes fade {
    0% { opacity: 0; }
    6.25% { opacity: 1; }   /* 1/16 van de tijd zichtbaar */
    25% { opacity: 1; }
    31.25% { opacity: 0; }
    100% { opacity: 0; }
}
/* Delay voor elke slide */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }
.slide:nth-child(4) { animation-delay: 24s; } /* Voeg dit toe als je een 4e foto hebt */

/* Donkere overlay voor leesbaarheid tekst */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.85));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }
.hero h2 { font-size: 48px; margin: 0 0 20px; text-shadow: 2px 2px 6px rgba(0,0,0,0.9); }
.hero p { font-size: 24px; margin: 0 0 40px; text-shadow: 1px 1px 4px rgba(0,0,0,0.9); }

.btn {
    display: inline-block;
    background: var(--rood);
    color: var(--wit);
    padding: 15px 30px;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 18px;
    transition: background 0.3s;
}
.btn:hover { background: #a1162c; }
.btn.secondary { background: #333; }
.btn.secondary:hover { background: #555; }

.section { padding: 80px 0; text-align: center; }
.section:nth-child(even) { background: var(--lichtgrijs); }

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.dienst {
    background: var(--wit);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dienst h3 { color: var(--rood); }

footer { background: var(--donkerzwart); color: var(--rood); text-align: center; padding: 40px; }

@media (max-width: 768px) {
    .hero { padding: 120px 20px 100px; }
    .hero h2 { font-size: 36px; }
    .hero p { font-size: 20px; }
    nav ul li { display: block; margin: 10px 0; }
    .btn { display: block; margin: 15px auto; width: 80%; max-width: 300px; }
}
/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(256px, 256px));
    gap: 10px;
}

.hero-portfolio {
    background: var(--rood);
    padding: 40px 20px;
}

.hero-portfolio h2 {
    color: var(--wit);
    margin: 0;
}

/* Project card */
.project {
    background: var(--rood);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Afbeeldingen kleiner maken */
.project img {
    width: 100%;
    height: 256px;        /* 👈 hier bepaal je hoe groot ze zijn */
    object-fit: cover;     /* snijdt netjes bij zonder vervorming */
    display: block;
}