
/* -------------------- -------------------------- */
#aboutMe {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    gap: 3em;
    margin:5em 4em;
    width: 85%;
    place-self: center;
}

.about-left,
.about-center,
.about-right {
    flex: 1;
}

.about-left{
    display: flex;
    flex-direction: column-reverse; /* draait de volgorde om */
    gap: 2rem;
    width: 100%;
    place-self: end;
    h2 {
        margin: 0;
        text-align: end;
    }
    p{
        font-size: 1.1em;
    }
}

.about-center{
    position: relative;
    height:20em;
    z-index: 0;
    display: flex;
    align-items: center;   /* verticaal centreren */
    justify-content: center;
    svg{
        position: absolute;
        top: -1em;
        left: 45%;
        height:4em;
    }
    img{
        width: auto;
        height: 100%;
        object-fit: contain;
        border: 1em double var(--light-dark-red);
        border-top-left-radius: 100% 50%;
        border-top-right-radius: 100% 50%;
        border-bottom-left-radius: 1em 1em;
        border-bottom-right-radius: 1em 1em;
        z-index: -1;
    }
}

.about-right{
    place-self: center start;
    display: flex;
    flex-direction: column;
    gap: 2em;
    h3 {
        font-size: 2em;
    }
    ul{
        display: flex;
        flex-direction: column; /* li's onder elkaar */
        gap: 1em; /* ruimte tussen de li's */
        list-style: none; /* bullet behouden */
        padding: 0;
        margin: 0;
        font-family: 'DM sans';
        font-size: 1.1em;
    }
    li{
        position: relative;
        font-size: 1rem;
        animation: slideIn 1.5s ease-out forwards;
        opacity: 0;                 
        transform: translateX(100vw);
        animation-fill-mode: both;
    }
    ul:nth-of-type(1){
        display: flex;
        flex-direction: column;
        gap: 0.75rem; 
        width: 100%;
        li:nth-of-type(1){
            padding-left:1.5em;
            animation-delay: 0s;
        }
        >li:nth-of-type(1)::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0em;             
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); 
            border-radius: 2px;
        }
        li:nth-of-type(2){
            padding-left:3em ;
            animation-delay: .2s;
        }
        >li:nth-of-type(2)::before{
            content: "";
            position: absolute;
            left: 1.5em;
            top: 0em;    
            bottom: 0;         /* verticaal uitlijnen */
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); /* donkerrood (zelfde als in jouw design) */
            border-radius: 2px;
        }
        >li:nth-of-type(3){
            padding-left: 4.5em;
            animation-delay: .4s;
        }
        >li:nth-of-type(3)::before{
            content: "";
            position: absolute;
            left:3em;
            top: 0em;    
            bottom: 0;         /* verticaal uitlijnen */
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); /* donkerrood (zelfde als in jouw design) */
            border-radius: 2px;
        }
    }
    ul:nth-of-type(2){
        display: flex;
        flex-direction: column;
        place-content: end;
        gap: 0.75rem; 
        width: 100%;
        >li:nth-of-type(1){
            padding-left:11em ;
            animation-delay: .6s;
        }
        >li:nth-of-type(1)::before {
            content: "";
            position: absolute;
            left: 9.5em;
            top: 0em;             
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); 
            border-radius: 2px;
        }
        >li:nth-of-type(2){
            padding-left:12.5em ;
            animation-delay: .8s;
        }
        >li:nth-of-type(2)::before {
            content: "";
            position: absolute;
            left: 11em;
            top: 0em;             
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); 
            border-radius: 2px;
        }
        >li:nth-of-type(3){
            padding-left:14em ;
            animation-delay: 1s;
        }
        >li:nth-of-type(3)::before {
            content: "";
            position: absolute;
            left: 12.5em;
            top: 0em;             
            width: 0.3rem;
            height: 100%;
            background-color: var(--light-dark-red); 
            border-radius: 2px;
        }
    }
    
}

@keyframes slideIn {
  from {
    transform: translateX(100vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


main>div:nth-of-type(2){
    display: flex;
    place-self: center;
    flex-direction:  row;
    width: 85%;
    padding: 3em 0 ;
    div:nth-of-type(1){
        width: 66%;
        font-size:1.1em ;
        p{
            margin-top: 1em;
        }
    }
    div:nth-of-type(2){
        display: flex;
        justify-content: end;
        width: 33%;
    }
    svg{
        align-self: center;
    }
}

/* ----------------ervaringen-----------------? */
main>div:nth-of-type(4){
    width: 85%;
    display: flex;
    flex-direction: column;
    place-self: center;
}


#ervaringen {
    display: grid;
    grid-template-columns: repeat(2, 49%);
    justify-content: space-between; /* ruimte tussen de kolommen */
    gap: 2em;
    width: min(100%, 1200px);
    margin: 3em auto;
}

.ervaring {
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid; 
    grid-row: span 3;
    row-gap: .5em;
    padding:1.7em;
    border-radius: 1.5em;
}

.ervaring-header {
    display: flex;
    gap: 2em;
    grid-row: 1/2;
    grid-column:1/3;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    h3 {
        margin: 0;
        font-size: 2em;
        color: var(--color-main);
        a{
            color: var(--color-main);
            position: relative;
            text-decoration: none;
        }
        a:visited{
            color: var(--color-main);
        }
        a:hover{
           color: var(--light-dark-red);
            
        }
        a:focus-visible{
            color: var(--light-dark-red);
            outline: .1em solid var(--color-main);
            padding-right: 1em;
        }
        a:focus-visible::after{
            transform: rotate(-135deg); 
        }
        a::after{
            position: absolute;
            content: '☇';
            transform: rotate(-80deg);
            margin-left: .2em;
        }
        a:hover::after{
            transform: rotate(-135deg);
            transition: transform .3s ease;
        }
    }
    span {
        justify-self: end;
        font-style: italic;
        color: var(--light-dark-red);
        font-family: 'DM sans';
        font-weight: 500;
        cursor: default;
    }
}

.ervaring-periode {
    font-weight: 300;
    color: var(--dark-grey);
    margin: 0;
    grid-row: 2/3;
    grid-column:1/3;
}

.ervaring-beschrijving {
    margin-top: 3.5em ;
    line-height: 1.6;
    color: var(--color-main);
    grid-row: 2/3;
    grid-column:1/3;
    font-size: 1em;
}

@media (max-width: 70em) { /* 2 x 27em */
    #ervaringen {
        grid-template-columns: 100%;
  }
}



/* Media query voor schermen kleiner dan 800px */
@media (max-width: 920px) {
    #aboutMe {
        flex-direction: column; /* standaard kolom voor kleinere schermen */
        gap: 2em;
    }

    .about-left,
    .about-center {
        flex: 0 0 45%; /* 50% breedte */
        display: inline-block;
    }
    .about-left{
        width: 65%;
    }
    .about-center {
        width: 35%;
        img{
            width: 15em;
            object-fit: cover;
        }
    }

    .about-right {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 2em;
        flex-direction: row;
        h3{
          width: 33%; 
        }
    }

    #aboutMe {
        flex-wrap: wrap; /* zodat left en center naast elkaar komen */
        flex-direction: row; /* left + center naast elkaar */
    }
    .about-center{
        display: flex;
        align-items: center;   /* verticaal centreren */
        justify-content: center;
    }

}

/* Media query voor telefoon schermen (320px - 460px) */
@media (min-width: 320px) and (max-width: 640px) {
    #aboutMe {
        flex-direction: column;
        gap: 4em;
        margin: 1em;
        width: 80%;
    }
     .about-left{
        display: flex;
        flex-direction: column;
        gap: 2em;
        h2{
            text-align: start;
        }
     }

    .about-left,
    .about-center,
    .about-right {
        width: 100%;
        flex: 1 1 100%;
    }
    .about-center{
        display: flex;
        align-items: center;   /* verticaal centreren */
        justify-content: center;
        /* img{
            width: 20em;
        } */
    }
    .about-right{
        flex-direction: column;
        width: 100%;
        gap: 1em;
        margin-top: 0;
        h3{
            margin: 0;
            padding: 0;
        }
        ul:nth-of-type(2){
            display: flex;
            align-items: end;
            justify-content: end;
        }
    }

    main>div:nth-of-type(2){
        flex-direction:  column;
        width: 90%;
        margin: 0 auto;
        div:nth-of-type(1){
            width: 100%;
        }
        div:nth-of-type(2){
            width: 100%;
            justify-content: center;
        }
        svg{
            place-self: center;
            transform: rotate(20deg);
        }
    }
   main>div:nth-of-type(4){
        width: 90%;
        margin: 0 auto;
    }
}