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

body {
    background-color: #111111;
    color: #ffffff;
    font-size: 16px;
    padding-top: 100px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    width: 80vw;
    margin: 0 auto;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 600px;
    gap: 10%;
    padding: 20px 0;
}

header img {
    width: 250px;
    max-width: 100%;
    height: auto;
}

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

/* Estilos do Carrossel */
section.container {
    background-image: radial-gradient(#7f3d9e, #6d00d9);
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

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

section .list .item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: translateX(50px);
}

section .list .item.active {
    opacity: 1;
    transform: translateX(0);
}

section .list .item.prev {
    transform: translateX(-50px);
}

section .list .item .car-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
}

section .list .item .car-img img {
    width: 100%;
    transform: rotate(-30deg);
    max-width: 100%;
    height: auto;
}

section .list .item .car-img::before {
    content: '';
    position: absolute;
    background-color: #111111;
    width: 100%;
    height: 100px;
    top: 150%;
    left: 50px;
    border: 50%;
    filter: blur(50px);
}

section .list .item .content {
    position: absolute;
    right: 10%;
    width: 80%;  /* Ajuste para garantir que o texto caiba dentro da área */
    max-width: 400px;  /* Limita a largura para que o texto não ultrapasse */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 20px;
    overflow: hidden;
}

section .list .item .content .car-information {
    font-weight: bold;
}

section .list .item .content h2 {
    font-size: 8em;
    line-height: 1em;
    font-family: "League Gothic", sans-serif;
}

section .list .item .content .description {
    color: #d9d9d9;
    font-size: 12px;
    text-align: right;
    max-width: 400px;
    position: relative; /* Ajuste para o controle do texto dentro da área */
    overflow: hidden;
    word-wrap: break-word;
    margin-top: 180px; /* Ajuste para mover o texto para baixo, mas ainda com mais proximidade do botão */
}

section .list .item .content .information {
    margin-top: 15px;  /* Ajustando o espaçamento para os elementos ficarem mais próximos */
    border-radius: 30px;
    height: 35px;
    width: 120px;
    text-transform: uppercase;
    border: 2px solid #791fd3;
    background-color: #beff1b;
    color: #000000;
    cursor: pointer;
    font-weight: bold;
    font-family: "League Gothic", sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .list .item .content .information:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #beff1b99;
}

section .list::before {
    content: '';
    position: absolute;
    height: 200px;
    width: 100%;
    top: 50%;
    border-top: 1px solid #ffffff;
}

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

section .arrows button:nth-child(1) img {
    transform: scale(-1);
}

section .arrows button {
    top: 60%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

section .arrows button img {
    width: 30px;
    margin-top: 4px;
    cursor: pointer;
}

section .arrows button:hover {
    background-color: #beff1b;
}

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

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

section .indicators ul {
    display: flex;
    gap: 10px;
}

section .indicators ul li {
    width: 50px;
    height: 5px;
    background-color: #beff1b;
    border-radius: 5px;
    transition: 0.5s;
    cursor: pointer;
}

section .indicators ul li.active {
    background-color: #ffffff;
    width: 80px;
}

/* Estilos da seção Carros */
.carros-section {
    background: #111;
    color: #fff;
    padding: 100px 10vw;
    text-align: center;
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.carros-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.carros-section h2 {
    font-size: 3em;
    margin-bottom: 40px;
    font-family: "League Gothic", sans-serif;
}

.carros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.car-card {
    background: #222;
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.carros-grid.animate .car-card {
    opacity: 1;
    transform: translateY(0);
}

.carros-grid.animate .car-card:nth-child(1) {
    transition-delay: 0.2s;
}
.carros-grid.animate .car-card:nth-child(2) {
    transition-delay: 0.4s;
}
.carros-grid.animate .car-card:nth-child(3) {
    transition-delay: 0.6s;
}

.car-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #beff1b88;
}

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

.car-card h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.car-card .information {
    border-radius: 30px;
    height: 35px;
    width: 120px;
    text-transform: uppercase;
    border: 2px solid #791fd3;
    background-color: #beff1b;
    color: #000000;
    cursor: pointer;
    font-weight: bold;
    font-family: "League Gothic", sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
    min-height: 44px;
    min-width: 44px;
}

.car-card .information:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #beff1b99;
}

/* Estilos do Footer */
footer#fale-conosco {
    background: linear-gradient(to right, #0e0e0e, #1a1a1a);
    color: #ffffff;
    padding: 80px 10vw 40px;
    font-family: "Poppins", sans-serif;
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

footer#fale-conosco.animate {
    opacity: 1;
    transform: translateY(0);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-text {
    text-align: center;
    max-width: 600px;
    margin-bottom: 40px;
}

.footer-text h2 {
    font-family: "League Gothic", sans-serif;
    font-size: 3em;
    color: #beff1b;
    margin-bottom: 20px;
}

.footer-text p {
    font-size: 1.1em;
    color: #cccccc;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    resize: none;
    transition: border 0.3s ease;
}

.contato-form input:focus,
.contato-form textarea:focus {
    border-color: #beff1b;
    outline: none;
}

.contato-form button {
    background-color: #beff1b;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    min-height: 44px;
}

.contato-form button:hover {
    background-color: #aadd00;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 0.9em;
    color: #888;
    text-align: center;
}

/* Estilos do Menu */
.nav-item {
    position: relative;
    padding: 20px 0;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: #beff1b;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-item:hover a {
    color: #beff1b;
}

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #beff1b;
    transition: all 0.3s ease;
}

/* Responsividade */
@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }

    .header-container {
        width: 90vw;
        padding: 15px 0;
    }

    header img {
        width: 200px;
    }

    section.container {
        height: 80vh;
    }

    section .list .item .content h2 {
        font-size: 4em;
    }   

    .carros-section, footer#fale-conosco {
        padding: 80px 5vw;
    }
}


@media (max-width: 768px) {
    section .list .item .content .description {
        margin-top: 150px; /* Reduzido o espaço superior para o texto no mobile */
    }

    section .list .item .content .information {
        margin-top: -1px; /* Diminui a margem superior do botão para maior proximidade */
    }

    body {
        padding-top: 70px;
    }
    
    .header-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
    }
    
    header nav ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    section.container {
        height: 70vh;
    }
    
    section .list {
        width: 90vw;
    }
    
    section .list .item .content {
        right: 30px;
        width: 60%;
        align-items: flex-end;
    }
    
    section .list .item .content h2 {
        font-size: 2.5em;
    }
    
    section .list .item .content .description {
        font-size: 10px;
        max-width: 200px;
    }
    
    section .arrows {
        width: 90vw;
    }
    
    .carros-grid {
        grid-template-columns: 1fr;
    }
    
    /* Menu Mobile */
    .mobile-menu-btn {
        display: flex;
    }
    
    header nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    header nav.active {
        left: 0;
    }
    
    header nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-item {
        padding: 15px 0;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 60px;
        font-size: 14px;
    }
    
    header img {
        width: 150px;
    }
    
    .nav-item a {
        font-size: 1em;
    }
    
    section.container {
        height: 60vh;
    }
    
    section .list .item .content {
        right: 20px;
        width: 55%;
        gap: 10px;
    }
    
    section .list .item .content h2 {
        font-size: 2em;
    }
    
    section .list .item .car-img {
        width: 80%;
    }
    
    section .indicators .number {
        font-size: 3em;
    }
    
    section .indicators ul li {
        width: 30px;
        height: 3px;
    }
    
    section .indicators ul li.active {
        width: 50px;
    }
    
    .carros-section h2, .footer-text h2 {
        font-size: 2em;
    }
    
    .contato-form {
        width: 100%;
    }
    
    .footer-content {
        gap: 20px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    section.container {
        height: 100vh;
    }
    
    section .list .item .content h2 {
        font-size: 2em;
    }
    
    section .list .item .content {
        gap: 5px;
    }
    
    .information {
        height: 25px;
        width: 100px;
        font-size: 0.8em;
    }
}

/* Ajustes para touch */
button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

img {
    max-width: 100%;
    height: auto;
}
