/*hero-banner*/
.hero{
    height: 100vh;
    display: grid
}
.hero > div{
    width: 80%;
    align-self: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

h1{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

h1 .row{
    column-gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
h1 .row .row{
    column-gap: 0;
}

.small-cards{
    width: 80px;
    height: 80px;
    padding: 16px;
    background-color: rgba(10,10, 10, 0.8);
    display: grid;
    border-radius: 8px;
    transform-origin: center;
    transform: rotateZ(4deg);
    backdrop-filter: blur(16px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.small-cards::after{
    content: '';
    display: block;
    inset: -1px;
    background: var(--glass-corps-light);
    position: absolute;
    border-radius: 8px;
    z-index: -1;
}
.small-card-item{
    width: 100%;
    align-self: center;
    justify-self: center;
}

/*Projects*/
#work h2{
    text-align: center;
    margin-bottom: 80px;
}
#work .frame{
    aspect-ratio: 4/3;
    position: relative;
}
#work .showcase-row{
    margin-bottom: 160px;
}
.showcase-row > div{
    width: 48%;
}
.showcase-row > div:first-child{
    display: flex;
    flex-wrap: wrap;
}
#work .showcase-row:nth-child(2) .frame img{
    width: 140%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}
#work .showcase-row:last-child .frame img{
    width: 88%;
}
.showcase-row h3{
    margin: 24px 0;
}
.showcase-row > div > p{
    margin-bottom: 40px;
}

/*Lab*/
#lab {
    margin-top: 360px;
}
#lab h2{
    margin-bottom: 16px;
}
#lab .row{
    column-gap: 64px;
}
#lab .row > div{
    width: 48%;
}
#lab .row > div:first-child{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}
#lab .row > div:first-child div:first-child{
    margin-bottom: 40px;
}
#lab .row .counts{
    column-gap: 20px;
}

.counter{
    width: 40px;
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--yellow);
}

.carousel-card{
    width: 440px;
    background: rgba(10,10, 10, 0.8);
    border-radius: 8px;
    position: absolute;
    backdrop-filter: blur(16px);
    list-style: none;
    border: 1px solid inset rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.carousel-card::after{
    content: '';
    display: block;
    inset: -1px;
    background: var(--glass-corps-light);
    position: absolute;
    border-radius: 8px;
    z-index: -1;    
}
.carousel-card .space{
    width: 360px;
    aspect-ratio: 1/1;
}
.carousel-card a > div:nth-child(2){
    background-color: var(--glass-corps-light);
    padding: 20px 40px;
    background: rgba(10,10, 10, 0.64);
    position: relative;
    backdrop-filter: blur(4px);
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.carousel-card a > div:nth-child(2)::after{
    content: '';
    display: block;
    inset: -1px;
    background: var(--glass-corps-light);
    position: absolute;
    border-radius: 8px;
    z-index: -1;

}
.filles{
    background: url('../img/webp/hope-mockup.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.pensees{
    background: url('../img/webp/liberty-mockup.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.keytronic{
    background: url('../img/webp/keytronic-cover.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.carousel-card h4{
    margin-bottom: 16px;
}

.active {
    transform: translateX(0);
    transition: all .6s ease-in-out;
}
.next-slide{
    transform: translateX(120%);
    transition: all .6s ease-in-out;
    z-index: 1;
}
.prev-slide{
    transform-origin: center;
    transform: translateX(240%) scale(0.4);
    opacity: 0;
    z-index: -1;
    transition: 
        transform .8s ease-in-out,
        opacity .4s;
}

/*About*/
#about{
    margin-top: 160px;
}
#about .row:first-child{
    justify-content: space-between;
}
#about .row:first-child > div{
    width: 46%;
}
#about .row:first-child > div img{
    transform: translateY(80px) translateX(-80px);
}
#about h2{
    margin-bottom: 24px;
}
#about > .row:first-child div p:nth-child(2) {
    margin-bottom: 8px;
}
#about > .row > div:last-child .row{
    margin-top: 40px;
    column-gap: 20px;
}
#about > .row > div:last-child .row .CTA-primary{
    margin: 0;
}
#about > .row > div:last-child .row .CTA-secondary{
    color: var(--yellow);
}

.separator .row{
    column-gap: 20px;
    transform: translateY(-40px);
}
.separator article h4, .separator article p{
    text-align: center;
}
.separator article h4{
    margin-bottom: 16px;
}
#about .separator .card-frame{
    position: relative;

}
#about .separator .card-frame img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#about .separator .card:nth-child(2) .card-frame img{
    height: 60%;
}

/*Responsive*/

@media screen and (max-width: 800px) {
   /*Hero*/
    h1{
        width: 100%;
    }
    .small-cards{
        width: 64px;
        height: 64px;
    }

    #work .showcase-row{
        flex-wrap: wrap-reverse;
    }
    #work .showcase-row > div{
        width: 100%;
    }
    #work .tag-row{
        width: 100%;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    #work .frame{
        width: 100%;
        margin-bottom: 24px;
    }
    #work .frame img{
        width: 120%;
        transform: translate(-50%, -50%);
        
    }
    #work .showcase-row:last-child .frame img{
        width: 72%;
        transform: translate(-50%, -60%);
    }

    /*Lab*/
    #lab{
        margin-top: 240px;
    }
    #lab > .row{
        flex-wrap: wrap;
    }
    #lab > .row > div{
        width: 100%;
    }
    .carousel{
        height: 389px;
    }
    .carousel-card{
        width: 320px;
    }
    .carousel-card .space{
        width: 240px;
    }

    /*About*/
    #about > .row > div:first-child{
        width: 0;
    }
    #about > .row > div:first-child img{
        display: none;
    }
    #about > .row:first-child > div:last-child {
        width: 100%;
    }

    #about .separator{
        padding: 0;
        margin-top: 80px;
    }
    #about .card{
        flex-grow: 0;
        width: auto;
    }
    #about .separator .row{
        transform: translateY(-20px);
        justify-content: center;
    }
    #about .separator .card-frame{
        width: 48px;
        height: 48px;
        position: relative;
        margin: 0;
    }
    #about .separator .card-frame img{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #about .separator .card h4, #about .separator .card p{
        display: none;
    }
    #about > .row:first-child .row{
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        row-gap: 8px;
    }
}


