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

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: 100px;
    z-index: 2;


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

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* HOVER */
header nav ul li a:hover {
    color: #beff1b;
}

section{
    background-image: radial-gradient(#470964,#791fd3);
    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(-30deg)
                }

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

                }
            }

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


                & .car-information{
                    font-weight: bold;
                }
                & h2{
                    font-size: 8em;
                    line-height: 1em;
                    font-family: "League Gothic", sans-serif;

                }

                & .description{
                    color: #d9d9d9;
                    font-size: 12px;
                    text-align: right;
                    max-width: 400px;
                }
                 
                & .information{
                    border:  2px solid #791fd3;
                    border-radius: 30px;
                    height: 35px;
                    width: 120px;
                    text-transform: uppercase;
                    background-color: #beff1b;
                    color: #000;
                    cursor: pointer;
                    font-weight: bold;
                    font-family: "League Gothic", sans-serif;

                }
            }
        }
        &::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: 30px;
                margin-top: 4px;
                cursor: pointer;
                }
            

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

    .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;
                border-radius: 5px;
                transition: 0.5s;
                background-color: #fff;

            }

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

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;
                }
            }

            & .content{

                & .car-information, h2, .description, .information{
                    transform: translateX(calc(200px * var(--calculation)));
                    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;
                }

            }
        }
    }
}


section {
    padding: 80px 8%;
    color: #fff;
}

.section-title {
    font-family: 'League Gothic', sans-serif;
    font-size: 48px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* ===== CARROS ===== */
.carros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 70px;
}

.car-card {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-card img {
    max-width: 100%;
    margin-bottom: 15px;
}

.car-card h3 {
    font-size: 30px;
    margin-bottom: 10px;
}

.car-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.car-card button {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}

/* ===== CONTATO ===== */
.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    resize: none;
    height: 120px;
}

.contact-form button {
    border:  2px solid #791fd3;
    border-radius: 30px;
    background: #beff1b;
    color: #000;
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}
