/* ================= RESET BASIS ================= */
body {
    margin: 0;
    font-family: Helvetica, sans-serif;
    background-color: #F3F4F4;
    color: #0B0B0B;
    line-height: 1.5;
}

/* ================= ALGEMEEN ================= */
main {
    padding: 20px;
}

section {
    margin-bottom: 60px;
}

h1, h2, h3 {
    font-weight: 500;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
}

a {
    color: #0B0B0B;
    text-decoration: none;
}

.underline-link {
    text-decoration: underline;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ================= NAV ================= */
.nav-container {
    padding: 20px;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

nav a {
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #0B0B0B;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ================= INTRO ================= */
#intro {
    max-width: 600px;
}

/* ================= PROJECTEN PREVIEW GRID ================= */
.projects-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; /* mobiel = 1 kolom */
}

.project {
    display: flex;
    flex-direction: column; /* standaard mobiel onder elkaar */
    gap: 15px;
}

.project img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.project h3,
.project p,
.project a {
    margin: 0;
}

/* ================= CONTACT ================= */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ================= FOOTER ================= */
footer {
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ================= RESPONSIVE GRID ================= */
/* tablet */
@media (min-width: 500px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .project {
        flex-direction: column;
    }
}

/* desktop */
@media (min-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .project {
        flex-direction: column;
    }
}

/* ================= PROJECTEN PAGINA ================= */
#projecten {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

@media (max-width: 767px) {
    #projecten {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #projecten {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #projecten {
        grid-template-columns: repeat(3, 1fr);
    }
}

#projecten .intro {
    grid-column: span 3;
}

/* project cards */
#projecten .project {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* video container */
#projecten .project-video {
    width: 100%;             /* vult de kolom */
    max-width: 750px;        /* maximale breedte */
    max-height: 500px;       /* maximale hoogte */
    margin: 0 auto;          /* centreert video */
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

/* video styling */
#projecten .project-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* hele video zichtbaar */
    display: block;
}