* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "poppins", sans-serif;
}

body {
    background-color: black;
    color: #fff;
    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: 10px;
    z-index: 2;




    & img {
        width: 280px;

    }

    & nav {
        & ul {
            display: grid;
            grid-template-columns: repeat(3, 200px);

        }
    }
}

section {
    background-image: radial-gradient(#472557, #6d00d9);
    height: 100vh;
    position: relative;

    & .list {
        width: 70vw;
        height: 100%;
        position: relative;
        margin: auto;

        & .item {
            position: absolute;
            inset: 0;

            & .car-img {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 70%;

                & img {
                    width: 100%;
                    transform: rotate(-20deg);

                }

                &::before {
                    content: '';
                    position: absolute;
                    background-color: #000;
                    width: 100%;
                    height: 100px;
                    top: 150%;
                    left: 50px;
                    border: 50%;
                    
                }
            }

            & .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-radius: 30px;
                    height: 35px;
                    width: 120px;
                    text-transform: uppercase;
                    border: 2px solid #791fd3;
                    background-color: #beff1b;
                    color: #000;
                    cursor: pointer;
                    font-weight: bold;
                }


            }
        }

        &::before {
            content: '';
            position: absolute;
            height: 200px;
            width: 100%;
            top: 50%;
            border-top: 1px solid #fff;
        }
    }



    .arrow {
        width: 70vw;
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        transform: translate(-50%, -25px);
        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;
                cursor: pointer;
            }

            &:hover {
                background-color: #beff1b;
            }
        }
    }


}




.indicators {
    position: absolute;
    top: 70%;
    left: 50%;
    height: 200px;
    width: 90vw;
    transform: translateX(-50%);
    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: #beff1b;
            border-radius: 5px;
            transition: 1s;
        }

        & .active {
            background-color: #fff;
        }

    }
}

section {
    & .list {
        --calculation: 1;


        & .item {
            transform: translateX(calc(100vw * var(--calculation)));
            transition: 1s;
            opacity: 0;


            & .car-img {
                & img {
                    transform: rotate(0);
                    transition: 1s;
                    transition-delay: 0.5s;

                }

            }

            & .content {

                & .car-information,
                h2,
                .description,
                .information {
                    transform: translateX(calc(200px * var(--calculation)));
                    transition: 1.2s;
                    transition-delay: 0.5s;
                    opacity: 0;
                }

                & h2 {
                    transition-delay: 0.7s;
                }

                & .description {
                    transition-delay: 0.9s;
                }

                & .information {
                    transition-delay: 1s;
                }
            }

        }

        & .active {
            transform: translateX(0);
            transition: 1s;
            opacity: 1;

            & .car-img {
                & img {
                    transform: rotate(-20deg);
                }
            }

            & .content {

                & .car-information,
                h2,
                .description,
                .information {
                    transform: translateX(0);
                    opacity: 1;


                }
            }
        }
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    background: #090909;
    padding: 30px;
    border-radius: 24px;
    width: min(500px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.modal-content p {
    color: #d9d9d9;
    line-height: 1.7;
    white-space: pre-wrap;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #beff1b;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
}


@media screen and (max-width: 768px) {

    .container {
        display: block;
        background-color: none;

    }

    .container_imagem {
        width: 100%;
    }

    .container_caixa {
        margin: 2em 2em;
    }
}

/* ===== RESPONSIVIDADE COMPLETA ===== */

/* Tablet (768px a 1024px) */
@media (max-width: 1024px) {
    header {
        width: 95vw;
        grid-template-columns: 1fr 350px;
        gap: 15px;
        padding: 15px 10px;
    }

    header img {
        width: 180px;
    }

    header nav ul {
        grid-template-columns: repeat(3, 100px);
        font-size: 13px;
    }

    section .list {
        width: 85vw;
    }

    section .list .item .content {
        right: 40px;
        width: 55%;
    }

    section .list .item .content h2 {
        font-size: 5em;
    }

    section .list .item .content .description {
        font-size: 11px;
        max-width: 300px;
    }

    .indicators {
        width: 95vw;
    }

    .indicators .number {
        font-size: 3.5em;
    }

    .arrow {
        width: 85vw;
    }

    .arrow button {
        width: 45px;
        height: 45px;
    }
}

/* Mobile Grande (481px a 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    body {
        font-size: 14px;
        overflow: auto;
    }

    header {
        position: fixed;
        width: 100%;
        left: 0;
        transform: none;
        grid-template-columns: 1fr;
        padding: 15px;
        top: 0;
        justify-items: center;
        background-color: rgba(0, 0, 0, 0.8);
        height: auto;
    }

    header img {
        width: 130px;
        margin-bottom: 10px;
    }

    header nav ul {
        grid-template-columns: repeat(3, 80px);
        gap: 8px;
        font-size: 11px;
        justify-content: center;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding-top: 130px;
        padding-bottom: 40px;
    }

    section .list {
        width: 95vw;
        height: auto;
    }

    section .list .item {
        position: relative !important;
        display: none !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 15px;
        inset: auto !important;
        transform: translateX(0) !important;
        opacity: 0 !important;
        pointer-events: none;
        margin-bottom: 30px;
    }

    section .list .item.active {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    section .list .item .car-img {
        position: relative;
        width: 80%;
        top: auto !important;
        transform: none !important;
        margin-bottom: 20px;
    }

    section .list .item .car-img img {
        width: 100%;
        transform: rotate(-15deg) scale(0.75) !important;
    }

    section .list .item .content {
        position: relative !important;
        right: auto !important;
        width: 100%;
        height: auto;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }

    section .list .item .content .car-information,
    section .list .item .content h2,
    section .list .item .content .description,
    section .list .item .content .information {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    section .list .item .content h2 {
        font-size: 2.5em;
        line-height: 1em;
    }

    section .list .item .content .description {
        text-align: center;
        max-width: 100%;
        font-size: 12px;
    }

    section .list .item .content .information {
        width: 100px;
        height: 35px;
        font-size: 12px;
    }

    section .list::before {
        display: none;
    }

    .indicators {
        position: relative;
        width: 100%;
        top: auto;
        height: auto;
        transform: none;
        padding: 30px 15px 20px;
        justify-content: center;
        gap: 10px;
    }

    .indicators .number {
        font-size: 2em;
        text-align: center;
    }

    .indicators ul {
        justify-content: center;
        gap: 8px;
    }

    .indicators ul li {
        width: 40px;
        height: 4px;
    }

    .arrow {
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translateY(-50%);
        display: flex !important;
        justify-content: space-between;
        padding: 0 15px;
        position: absolute;
    }

    .arrow button {
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .arrow button img {
        width: 14px;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    body {
        font-size: 12px;
        overflow: auto;
    }

    header {
        position: fixed;
        width: 100%;
        left: 0;
        transform: none;
        grid-template-columns: 1fr;
        padding: 10px;
        top: 0;
        justify-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        height: auto;
        z-index: 10;
    }

    header img {
        width: 100px;
        margin-bottom: 8px;
    }

    header nav ul {
        grid-template-columns: repeat(3, 60px);
        font-size: 9px;
        gap: 5px;
        justify-content: center;
    }

    section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 30px;
    }

    section .list {
        width: 100%;
        height: auto;
        margin: 0;
    }

    section .list .item {
        position: relative !important;
        display: none !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 10px;
        inset: auto !important;
        transform: translateX(0) !important;
        opacity: 0 !important;
        pointer-events: none;
        margin-bottom: 20px;
    }

    section .list .item.active {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

    section .list .item .car-img {
        position: relative;
        width: 90%;
        top: auto !important;
        transform: none !important;
        margin-bottom: 15px;
    }

    section .list .item .car-img img {
        width: 100%;
        transform: rotate(-12deg) scale(0.6) !important;
    }

    section .list .item .content {
        position: relative !important;
        right: auto !important;
        width: 100%;
        height: auto;
        align-items: center;
        text-align: center;
        padding: 10px;
        gap: 10px;
    }

    section .list .item .content .car-information {
        font-size: 11px;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    section .list .item .content h2 {
        font-size: 1.8em;
        line-height: 1em;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    section .list .item .content .description {
        font-size: 10px;
        max-width: 100%;
        text-align: center;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    section .list .item .content .information {
        width: 80px;
        height: 30px;
        font-size: 10px;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    section .list::before {
        display: none;
    }

    .indicators {
        position: relative;
        width: 100%;
        top: auto;
        height: auto;
        transform: none;
        padding: 20px 10px 15px;
        justify-content: center;
        gap: 8px;
    }

    .indicators .number {
        font-size: 1.2em;
        text-align: center;
    }

    .indicators ul {
        justify-content: center;
        gap: 6px;
    }

    .indicators ul li {
        width: 30px;
        height: 3px;
    }

    .arrow {
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translateY(-50%);
        display: flex !important;
        justify-content: space-between;
        padding: 0 10px;
        position: absolute;
    }

    .arrow button {
        width: 35px;
        height: 35px;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .arrow button img {
        width: 12px;
    }

    /* Modal Responsivo */
    .modal-content {
        width: 90vw;
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .modal-content p {
        font-size: 12px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}