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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    font-size: 16px; 
    overflow: hidden;
}

header {
    position: fixed;
    width: 80vw;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 10%;
    z-index: 2;
    padding: 20px 0;

    & img {
        width: 250px;
        transition: transform 0.3s ease;
        
        &:hover {
            transform: scale(1.05);
        }
    }

    & nav {
        & ul {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            
            & li {
                transition: transform 0.3s ease;
                
                &:hover {
                    transform: translateY(-3px);
                    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
                }
            }
        }
    }   
}

section {   
   
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    height: 100vh;
    position: relative;
    overflow: hidden;
    
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        z-index: 0;
    }
    
    /* Efeito de luzes neon */
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 30%, 
                      rgba(138, 43, 226, 0.4) 0%, 
                      transparent 30%),
                  radial-gradient(circle at 80% 70%, 
                      rgba(0, 191, 255, 0.4) 0%, 
                      transparent 30%),
                  radial-gradient(circle at 50% 20%, 
                      rgba(255, 0, 255, 0.3) 0%, 
                      transparent 25%);
        animation: pulse 15s infinite alternate;
        z-index: 0;
    }
}


@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 20px #ff00de,
                     0 0 30px #ff00de,
                     0 0 40px #ff00de;
    }
    50% {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #00d9ff,
                     0 0 30px #00d9ff,
                     0 0 40px #00d9ff,
                     0 0 50px #00d9ff;
    }
}

/* Efeito neon para o título */
section .list .item .content h2 {
   
    animation: neon-glow 3s ease-in-out infinite alternate;
    color: #fff !important;
}

/* Efeitos adicionais para os botões */
.arrows button {
    
    box-shadow: 0 0 10px rgba(154, 205, 50, 0.8),
                0 0 20px rgba(154, 205, 50, 0.6),
                0 0 30px rgba(154, 205, 50, 0.4);
    transition: all 0.3s ease, box-shadow 0.3s ease;
    
    &:hover {
        box-shadow: 0 0 15px rgba(154, 205, 50, 0.9),
                    0 0 25px rgba(154, 205, 50, 0.7),
                    0 0 35px rgba(154, 205, 50, 0.5);
    }
}

/* Efeito de borda neon para o carro */
section .list .item.active .car-img img {
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.7))
            drop-shadow(0 0 15px rgba(0, 191, 255, 0.5))
            drop-shadow(0 0 25px rgba(255, 0, 255, 0.3));
}

/* Partículas atualizadas com cores neon */
.particle {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
                0 0 20px rgba(0, 255, 255, 0.6);
}

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

        & .item {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            opacity: 0;
            transition: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform: translateX(100vw);

            &.active {
                opacity: 1;
                transform: translateX(0);
                z-index: 1;
            }

            & .car-img {
                position: relative;
                top: auto;
                transform: none;
                width: 100%;
                flex-shrink: 0;
                margin-left: -60%;
                perspective: 1000px;
                
                & img {
                    width: 100%;
                    transform: rotate(0deg);
                    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
                    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                                filter 0.5s ease;
                    transform-style: preserve-3d;
                    will-change: transform;
                }
            }

            &.active .car-img img {
                transform: rotate(-30deg) translateY(20px);
                filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
            }

            & .content {
                position: relative;
                right: auto;
                width: 50%;
                height: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: flex-end;
                gap: 20px;
                text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
                transition: transform 0.5s ease;
                padding-right: 20px; /* Adicionado para afastar do centro */

                & .car-information {
                    font-weight: bold;
                    margin-right: 30px;
                    font-size: 1.2em;
                    opacity: 0;
                    transform: translateX(20px);
                    transition: all 0.8s ease 0.2s;
                }

                & h2 {
                    font-size: 6em;
                    line-height: 1em;
                    margin-top: 50px;
                    margin-left: 80px;
                    font-family: "League Gothic", sans-serif;
                    color: rgba(255, 255, 255, 0.9);
                    text-transform: uppercase;
                    opacity: 0;
                    transform: translateX(30px);
                    transition: all 0.8s ease 0.3s;
                    letter-spacing: 2px;
                    position: relative;
                    right: -40px; /* Ajuste para mover para a direita */
                }

                & .description {
                    color: #dbdada;
                    font-size: 14px;
                    text-align: right;
                    max-width: 400px;
                    margin-top: 60px;
                    line-height: 1.5;
                    opacity: 0; 
                    transform: translateX(20px);
                    transition: all 0.8s ease 0.4s;
                }

                & .btn-information {
                    border-radius: 30px;
                    height: 45px;
                    width: 150px;
                    text-transform: uppercase;
                    border: 2px solid #7f3d9e;
                    background-color: yellowgreen;
                    color: #000;
                    font-weight: bold;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    font-size: 14px;
                    opacity: 0;
                    transform: translateY(20px);
                    transition: all 0.8s ease 0.5s;
                    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

                    &:hover {
                        background-color: #9acd32;
                        transform: translateY(-2px) scale(1.05);
                        box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
                    }
                }
            }
        }
        
        & .item.active .content .car-information,
        & .item.active .content h2,
        & .item.active .content .description,
        & .item.active .content .btn-information {
            opacity: 1;
            transform: translateX(0);
        }
        
        &::before {
            content: '';
            position: absolute;
            height: 200px;
            width: 200%; 
            top: 50%;
            margin-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            left: 50%; 
            transform: translateX(-50%); 
        }
    }

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

        & button {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            background-color: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

            &:first-child {
                & img {
                    transform: scaleX(-1);
                }
            }

            & img {
                width: 30px;
                filter: brightness(0) invert(1);
                transition: transform 0.3s ease;
            }
            
            &:hover {
                background-color: yellowgreen;
                transform: scale(1.1);
                
                & img {
                    filter: none;
                    transform: scale(1.1);
                }
            }
        }
    }

    .indicators {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        height: 200px;
        width: 90vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 10px;
        font-family: "League Gothic", sans-serif;
        z-index: 2;

        & .number {
            font-size: 5em;
            opacity: 0.7;
            transition: all 0.5s ease;
        }

        & ul { 
            display: flex;
            gap: 15px;
        }

        & li {
            width: 50px;
            height: 5px;
            background-color: rgba(154, 205, 50, 0.5);
            border-radius: 5px;
            transition: all 0.5s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;

            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
                transition: all 0.5s ease;
            }

            &:hover {
                background-color: rgba(154, 205, 50, 0.8);
                
                &::after {
                    left: 100%;
                }
            }
        }

        & .active {
            background-color: #fff;
            transform: scaleX(1.2);
        }
    }
}

.light-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: move-spot 15s infinite alternate ease-in-out;
    z-index: 0;
    filter: blur(10px);
}

@keyframes move-spot {
    0% {
        transform: translate(-50%, -50%);
        top: 30%;
        left: 30%;
    }
    50% {
        transform: translate(-30%, -30%);
        top: 50%;
        left: 50%;
    }
    100% {
        transform: translate(-70%, -70%);
        top: 70%;
        left: 70%;
    }
}

/* Efeito de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    header {
        grid-template-columns: 1fr 400px;
        
        & nav ul {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    section .list .item .content h2 {
        font-size: 8em;
        right: -30px;
    }
}

@media (max-width: 768px) {
    section .list .item .content h2 {
        font-size: 5em;
        right: -20px;
    }
    
    section .list .item .car-img {
        margin-left: -60%;
    }
}