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

a {
    text-decoration: none;
    color: #fff;
}

body {
    background-color: #000;
    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: 35%;
    z-index: 2;

    img {
        width: 250px;
    }

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

.container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1565932887479-b18108f07ffd?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

section {
    height: 100vh;

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

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

        .item {
            position: absolute;
            inset: 0;
            transform: translateX(calc(100vw * var(--calculation)));
            transition: 0.5s;
            opacity: 0;

            &.active {
                transform: translateX(0);
                opacity: 1;

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

                .content {

                    .car-information,
                    h2,
                    .description,
                    .information {
                        transform: translateX(0);
                    }
                }
            }

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

                img {
                    width: 100%;
                    transform: rotate(-30deg);
                    transition: 0.5s;
                    transition-delay: 0.3s;
                }

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

            .content {
                position: absolute;
                right: 60px;
                width: 70%;
                height: 120%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: end;
                gap: 30px;

                .car-information,
                h2,
                .description,
                .information {
                    transform: translateX(calc(200px * var(--calculation)));
                    transition: 0.7s;
                    transition-delay: 0.3s;
                }

                h2 {
                    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
                    border-radius: 10px;
                    padding: 0.30em 0.1em;
                    font-size: 5em;
                    line-height: 2rem;
                    font-family: "League Gothic", sans-serif;
                    transition-delay: 0.5s;
                }

                .description {
                    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
                    border-radius: 20px;
                    color: #d9d9d9;
                    font-size: 13px;
                    line-height: 1.5rem;
                    text-align: right;
                    max-width: 400px;
                    transition-delay: 0.7s;
                }

                .information {
                    border-radius: 30px;
                    height: 35px;
                    width: 120px;
                    text-transform: uppercase;
                    border: 2px solid #791fd3;
                    background-color: #1bcaff;
                    color: #000;
                    cursor: pointer;
                    font-weight: bold;
                    font-family: "League Gothic", sans-serif;
                    transition-delay: 0.9s;
                }
            }
        }
    }

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

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

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

            &:hover {
                background: #1bcaff;
            }

            img {
                width: 30px;
                margin-top: 4px;
                cursor: pointer;
            }
        }
    }

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

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

        ul {
            display: flex;
            gap: 10px;

            li {
                width: 50px;
                height: 5px;
                background-color: #1bcaff;
                border-radius: 5px;
                transition: 0.5s;

                &.active {
                    background-color: #fff;
                }
            }
        }
    }
}