/**

Welkom bij naamkaart css, dit is de css die gebruikt wordt voor het soort visite
kaartje dat je ziet onder elke pagina.

*/

/*------------------------------------------------------------- Algemene stijl */
.section-4 {
    background-color: #e1bb80;
    color: white;
    padding: 5%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 90%;
    max-width: 100vw;
    margin-bottom: -5%;
}

/*------------------------------------------------------------- Stijl afbeelding */
.imgProfiel {
    width: 20%;
    height: 20%;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/*------------------------------------------------------------- Container text links */
.text-links {
    position: absolute;
    left: 25%;
    padding-bottom: 5%;
    font-weight: bold;
}

/*------------------------------------------------------------- Container text rechts */
.text-rechts {
    max-width: 40%;
    margin-right: 0%;
    text-align: justify;
    font-style: italic;
}

/*------------------------------------------------------------- Text algemeen */
.textOpmaakGeneral {
    font-size: 1em;
    line-height: 1.5;
}

/*------------------------------------------------------------- Animatie */
.section-4 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.section-4.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------ MOBILE-FRIENDLY STYLES ------------------------------ */

/* Als het scherm kleiner is dan 768px (tablet/telefoon) */
@media (max-width: 768px) {

    .section-4 {
        flex-direction: column;
        text-align: center; 
        padding: 8%;
        margin-bottom: 0%;
    }

    .imgProfiel {
        width: 40%;
        height: 40%;
        margin-right: 0;
        margin-bottom: 15px; 
    }

    .text-links {
        position: static;
        padding-bottom: 2%;
        font-size: 1.2em;
    }

    .text-rechts {
        max-width: 100%;
        margin-right: 0;
        text-align: center;
        font-size: 1em; 
    }
}

/* Als het scherm kleiner is dan 480px (mobiel) */
@media (max-width: 480px) {

    .section-4 {
        padding: 10%;
    }

    .imgProfiel {
        width: 50%;
        height: 50%;
    }

    .text-links {
        font-size: 1em;
        padding-bottom: 1%;
    }

    .text-rechts {
        font-size: 0.9em;
    }
}
