* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #ffffff;
    overflow-x: hidden;
}

/* Algemene sectie: Over mij */
.about-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px;
}

.about-me-image img {
    width: 665px;
    height: 417px;
    margin-left: 20px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 50%);
    padding: 80px;
}

.about-me-text {
    flex: 1;
    margin-right: 20px;
}

.about-me-text h1 {
    color: #34679A;
    margin-top: 100px;
    margin-bottom: 20px;
}

.about-me-text p {
    line-height: 1.6;
    max-width: 400px;
}

/* Contact button */
.contact-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #34679A;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #34679A;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.contact-button:hover {
    background-color: #34679A;
    color: white;
}

/* Container 1 */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px;
    background-color: #D9D9D9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Container 2: Mijn geschiedenis */
.container2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin: 20px;
}

.image-container {
    width: 511px;
    height: 365px;
    overflow: hidden;
    margin-right: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.text-container {
    max-width: 600px;
    text-align: left;
}

.text-container h2 {
    margin-top: 0;
    color: #333;
}

.text-container p {
    color: #555;
    line-height: 1.6;
}

.portfolio-button {
    display: inline-block;
    margin-top: 200px;
    padding: 10px 20px;
    background-color: #34679A;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #34679A;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.portfolio-button:hover {
    background-color: white;
    color: blue;
}

/* Container 1: foto verbouw onderhoud installatie badkamers */
.container1 {
    text-align: center;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 600px);
    grid-template-rows: repeat(2, 400px);
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}

.photo-item {
    position: relative;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: calc(100% - 20px);
}

/* Container 3: Footer */
.container3 {
    background-color: #d9d9d9;
    width: 100%;
    height: 268px;
    color: black;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    display: flex;
    align-items: center;
    padding: 20px;
}

.text {
    flex: 1;
    margin-right: 20px;
}

.divider {
    width: 1px;
    background-color: gray;
    height: 100px;
    margin-right: 500px;
}

.logo3 {
    width: 192px;
    height: 115px;
    margin-right: 250px;
}

.contact-button3 {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #34679A;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #34679A;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: absolute;
    left: 20px;
    bottom: 20px;
}

.contact-button3:hover {
    background-color: #34679A;
    color: white;
}

/* ========== RESPONSIVE: TABLET (max-width: 1024px) ========== */
@media screen and (max-width: 1024px) {
    .about-me {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .about-me-image img {
        width: 90%;
        height: auto;
        padding: 0;
        margin: 20px 0;
    }

    .about-me-text {
        margin: 0;
        text-align: center;
    }

    .container2 {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .image-container {
        width: 90%;
        height: auto;
        margin-bottom: 20px;
    }

    .text-container {
        max-width: 90%;
        text-align: center;
    }

    .portfolio-button {
        margin-top: 40px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .container3 {
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content {
        flex-direction: column;
    }

    .divider {
        display: none;
    }

    .logo3 {
        margin: 20px 0;
    }

    .contact-button3 {
        position: static;
        margin: 20px 0;
    }
}

/* ========== RESPONSIVE: MOBIEL (max-width: 768px) ========== */
@media screen and (max-width: 768px) {
    .about-me,
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .about-me-image img,
    .image-container,
    .text-container {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0 auto;
    }

    .portfolio-button {
        margin-top: 20px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .container3 {
        padding: 20px;
    }

    .contact-button3 {
        width: 100%;
        max-width: 300px;
    }
}
