@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins" sans-serif;
    list-style: none;
}

body {
    background-color: black;
    color: #fff;
    font-size: 16px;
    overflow: hidden;
}

header {
    position: fixed;
    width: 80vw;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 600px;
    gap: 100px;
    z-index: 2;
}

header img {
    width: 250px;
}

header nav ul {
    display: grid;
    grid-template-columns: repeat(3, 200px);
}


section {
    background-image: radial-gradient(#470964, #791fd3);
    height: 100vh;
    position: relative;
}



.list {
    width: 70vw;
    height: 100%;
    margin: auto;
    position: relative;
}

.list .item {
    position: absolute;
    /*Já que vou colocar na posição que eu quero eu uso o position : absolute*/
    inset: 0;
}

.list .item::before {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    top: 50%;
    border-top: 1px solid #fff;
}

.item .car-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70%;
}

.item .car-img img {
    width: 100%;
    transform: rotate(-30deg);
}

.item .content {
    position: absolute;
    right: 100px;
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 20px;
}

.content .car-information {
    font-weight: bold;
}

.content h2 {
    font-size: 10em;
    line-height: 1em;
    font-family: "League Gothic", sans-serif;


}

.content .description {
    color: #d9d9d9;
    font-size: 18px;
    text-align: right;
    max-width: 400px;
}

.content .information {
    border-radius: 30px;
    height: 35px;
    width: 120px;
    text-transform: uppercase;
    border: 2px solid #791fd3;
    background-color: #beff1b;
    color: black;
    cursor: pointer;
    font-weight: bold;
    font-family: "League Gothic", sans-serif;


}

.indicators {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 200px;
    width: 90vw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 15px;
}

.indicators .number {
    font-size: 5em;
    font-family: "League Gothic", sans-serif;


}

.indicators ul {
    display: flex;
    gap: 10px;
}

.indicators ul li {
    width: 50px;
    height: 5px;
    background-color: #beff1b;
    border-radius: 5px;
    transition: 0.5s;
}

.indicators .active {
    background-color: #fff;
}

.arrows {
    width: 70vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -25px);
    display: flex;
    justify-content: space-between;

}

.arrows button img {
    width: 30px;
    margin-top: 4px;
    cursor: pointer;
}

.arrows button {
    top: 60%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.arrows button:hover {
    background-color: #beff1b;
}

.arrows button:nth-child(1) img {
    transform: scaleX(-1);
}

section {
    & .list {
        & .item {
            transform: translateX(100vw);
            transition: 0.5s;
            opacity: 0;

            & .car-img img {
                transform: rotate(0);
                transition: 0.5s;
                transition-delay: 0.3s;
            }

            & .content {

                & .car-information,
                h2,
                .description,
                .information {
                    transform: translateX(200px);
                    transition: 0.7s;
                    transition-delay: 0.3s;
                    opacity: 0;
                }

                & h2 {
                    transition-delay: 0.5s;
                }

                & .description {
                    transition-delay: 0.7s;
                }

                & .information {
                    transition-delay: 0.9s;
                }
            }
        }

        & .active {
            transform: translateX(0);
            transition: 0.5s;
            opacity: 1;

            & .car-img img {
                transform: rotate(-20deg);
            }

            & .content {

                & .car-information,
                h2,
                .description,
                .information {
                    transform: translateX(0);
                    opacity: 1;
                }
            }
        }
    }
}
