* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Poppins", sans-serif;
}

body {
    background: #000000;
    color: #ffff;
    font-size: 16px;
    overflow: hidden;
}

header {

    position: fixed;
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 600px;
    gap: 50px;
    z-index: 2;

    & img {
        width: 250px;
    }

    & nav {
        & ul {
            display: grid;
            grid-template-columns: repeat(3, 200px);
        }
    }
}

section {
    background-image: radial-gradient(#7f3d9e, #6d00d9);
    height: 100vh;
    position: relative;

    & .list {
        width: 70vw;
        height: 100%;
        margin: auto;
        position: relative;

        & .item {
            position: absolute;
            inset: 0;

            & .car-img {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 70%;

                & img {
                    width: 100%;
                    transform: rotate(-15deg);
                }

               &::before {
                content: '';
                position: absolute;
                background-color: #000000;
                width: 100%;
                height: 100px;
                top: 150%;
                left: 50px;
                border: 50%;
                filter: blur(50px);
               }


            }

            & .conteudo {
                position: absolute;
                right: 100px;
                width: 70%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: end;
                gap: 20px;

                & .paragrafo-1 {
                    font-weight: bold;
                }

                & h2 {
                    font-size: 6em;
                    line-height: 1em;
                    font-family: "League Gothic", sans-serif;
                }

                & .descricao {
                    color: #d9d9d9;
                    font-size: 12px;
                    text-align: right;
                    max-width: 290px;
                }

                & .informacao {
                    border-radius: 30px;
                    height: 35px;
                    width: 120px;
                    text-transform: uppercase;
                    border: 2px solid #791fd3;
                    background-color: #beff1b;
                    color: #000000;
                    font-weight: bold;
                    font-family: "League Gothic", sans-serif;
                    cursor: pointer;
                    transition: 0.5s;
                }
            }
        }

        &::before {
            content: '';
            position: absolute;
            height: 200px;
            width: 100%;
            top: 50%;
            border-top: 1px solid #fff;
        }


    }

    .arrows {
        width: 70vw;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -25px);
        display: flex;
        justify-content: space-between;

        & button:nth-child(1) {
            & img {
                transform: scale(-1);
            }
        }

        & button {
            top: 60%;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
        

            & img {
                width: 20px;
                margin-top: 4px;
            }

            &:hover {
                background-color: #beff1b;
            }
        }
    }

    .indicator {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        height: 200px;
        width: 90vw;
        display: flex;
        flex-direction: column;
        justify-content: end;
        gap: 15px;

        & .numero {
            font-size: 5em;
            font-family: "League Gothic", sans-serif;
        }

        & ul {
            display: flex;
            gap: 10px;

            & li {
                width: 50px;
                height: 5px;
                background-color: #beff1b;
                border-radius: 5px;
                transition: 0.5s;
            }

            & .ativado {
                background-color: #ffffff;
            }
        }
    }
}

section {
    & .list {
    --calculation: 1;
       
        & .item {
            transform: translateX(calc(100vw * var(--calculation)));
            transition: 0.5s;
            opacity: 0;


            & .car-img {
                & img {
                    transform: rotate(0); 
                    transition: 0.5s;
                    transition-delay: 0.3s;
                }
            }

            & .conteudo { 

                & .paragrafo-1, h2, .descricao, .informacao {
                    transform: translateX(calc(200px * var(--calculation)));
                    transition: 0.7s;
                    transition-delay: 0.3s;
                    opacity: 0;
                }

                & h2 {
                    transition-delay: 0.5s;
                }

                & .descricao {
                    transition-delay: 0.7s;
                }

                & .informacao {
                    transition-delay: 0.9s;                }

            }  
        }
    
        & .ativado {
                transform: translateX(0);
                transition: 0.9s;
                opacity: 1;

                & .car-img {
                    & img {
                        transform: rotate(-20deg);
                    }
                }


                & .conteudo {

                    & .paragrafo-1, h2, .descricao, .informacao {
                        transform: translateX(0);
                        opacity: 1;
                        
                     }
                }
 

            }
    }
}