/* loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    
    width: 100vw;
    height: 100vh;
    background-color: var(--theme-cyan);

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.hello {
    width: 200rem;
}

/* projects section */
.projects {
    width: 100%;
    height: 100%;
    padding: var(--p-y) var(--p-x);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 86rem;
}

.project__card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 20rem;
}

.project__card__img {
    width: 100%;
    height: 380rem;
    border-radius: 12rem;
    overflow: hidden;
}

.project__card img {
    width: 100%;
    height: 100%;
    
    object-fit: cover;
    object-position: center;

    transform: scale(1.2);
    transition: 0.2s linear;
}

.project__card__text {
    font-size: 16rem;
    line-height: 18rem;
}

/* promo section */
.promo {
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 40rem;
    
    gap: 40rem;
}

.promo__heading {
    font-size: 36rem;
    line-height: 40rem;
    text-align: center;

    padding: 0 var(--p-x);
}

.promo__cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    gap: 80rem;
    padding: 0;
    
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 var(--p-x);
}

.promo__cards::-webkit-scrollbar {
    display: none;
}

.promo__cards__card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    gap: 20rem;
}

.promo__cards__card__img {
    width: 100%;
    border-radius: 12rem;
    object-position: center;
    object-fit: cover;
    
    pointer-events: none;
    user-select: none;
}

.promo__cards__card__text {
    font-size: 16rem;
    line-height: 20rem;

    pointer-events: none;
    user-select: none;
}

[fade-in] {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000);;
}

.fade-in {
    opacity: 1;
}

/* responsive */

@media screen and (min-width: 768px) {

    .hello {
	width: 500rem;
    }

    .projects {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 40rem;
        row-gap: 242rem;
    }
    
    .project__card {
        width: auto;
    }

    .project__card__img {
        width: 100%;
        height: 520rem;
    }

    .project__card__text {
        font-size: 40rem;
        line-height: 40rem;
    }

    /* promo section */
    .promo {
        padding: 30rem 0;
        height: auto;
        gap: 158rem;
        justify-content: space-between;
    }

    .promo__heading {
        font-size: 80rem;
        line-height: 80rem;
        max-width: 870rem;

        padding: 0;
    }
    
    .promo__cards {
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;

        flex-direction: row;
        column-gap: 40rem;
    }

    .promo__cards__card {
        min-width: 630rem;
        gap: 45rem;
    }

    .promo__cards__card__img {
        width: 630rem;
        height: 520rem;
        border-radius: 32rem;
    }

    .promo__cards__card__text {
        font-size: 36rem;
        line-height: 40rem;
    }
}
