/* ======= GLOBAL STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111;
    color: #fff;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* ======= NAVIGATION ======= */
header {
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;
}

header h1 {
    font-size: 18px;
    letter-spacing: 1px;
}

header h1 img {
    width: 300px;
    margin-left: -20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #999;
}

/* ======= HERO SECTION ======= */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding-top: 120px;
    padding-left: 80px;
    padding-right: 80px;
}

.hero-foto {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    transform: translateY(-50px);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    text-align: left;
    align-items: flex-start;
    /* 👈 DIT IS DE OPLOSSING */
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-text a:hover {
    background: #fff;
    color: #000;
}



/* ======= MY WORK SECTION ======= */
.work {
    padding: 100px 80px;
    background-color: #181818;
}

.work h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s;
}

.project:hover {
    transform: translateY(-5px);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project h3 {
    padding: 20px;
    font-size: 1.2rem;
}

/* ======= CONTACT SECTION ======= */
.contact {
    padding: 100px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* alles links uitlijnen zodat extra foto naar links kan */
    gap: 40px;
}

.contact-foto {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-extra {
    width: 500px;
    height: 500px;
    border-radius: 0 !important;
    /* vierkant maken */
    object-fit: cover;
    position: relative;
    left: 50px;
    /* schuift de foto naar links */
}

/* ======= FOTO ONDER DE ZWARTE BALK ======= */
.foto-onder-balk {
    padding: 5px 80px 10px 80px;
}

.foto-onder-balk img {
    width: 600px;
    height: auto;
    display: block;
}

/* ======= PROJECT PAGE ======= */
.project-page {
    padding: 150px 80px 100px;
    max-width: 900px;
    margin: auto;
}

.project-page img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.project-page h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-page p {
    color: #ccc;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.back-btn:hover {
    background: #fff;
    color: #000;
}


/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        height: 60px;
    }

    header h1 img {
        width: 120px;
        height: auto;
        margin-left: 0;
    }

    nav ul {
        flex-direction: row;
        gap: 15px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        padding: 20px 10px;
        height: auto;
    }

    .hero-foto {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        transform: translateY(0);
        margin-bottom: 20px;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text a {
        padding: 8px 18px;
        font-size: 0.95rem;
    }

    .foto-onder-balk {
        padding: 10px 0;
        width: 100%;
    }

    .foto-onder-balk img {
        width: 100%;
        height: auto;
        display: block;
    }

    .work {
        padding: 40px 10px;
    }

    .work h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project img {
        height: 150px;
    }

    .project h3 {
        font-size: 1rem;
        padding: 10px;
    }

    .contact {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 30px 10px;
    }

    .contact-foto,
    .contact-extra {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
        left: 0;
        /* reset voor mobiel */
    }

    .contact-text {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .hero-foto,
    .contact-foto,
    .contact-extra {
        width: 130px;
        height: 130px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text a {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .projects img {
        height: 120px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }
}