*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Poppins", sans-serif;
}

body{
    background-color: rgb(2, 30, 82);
    color: rgb(255, 254, 253);
    font-size: 16px;
    overflow-x: hidden;
}

header{
    position: fixed;
    top: 20px;
    width: 80vw;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 600px;
    gap: 100px;
    z-index: 10; /* Aumentado para garantir que fique acima de tudo */

    & img{
        width: 300px;
    }

    & nav{
        & ul{
            display: grid;
            grid-template-columns: repeat(3,200px);
        }
    }
}

section{
    background-image: radial-gradient(#0429cc, #03026d);
    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: 60%;

                & img{
                    width: 100%;
                    transform: rotate(-0deg);
                }
            }

            & .content{
                position: absolute;
                right: 100px;
                width: 70%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content:center;
                align-items: flex-end;
                gap: 20px;

                & .car-information{
                    font-weight: bold;
                }

                & h2{
                    font-size: 8em;
                    line-height: 1em;
                    font-family: "League Gothic",  sans-serif;
                    color: #ffffff;
                    text-shadow: 3px 3px 0px #818080;
                    padding-bottom: 30px;
                }

                & .description{
                    color:#d9d9d9;
                    font-size: 14px;
                    text-align: right;
                    max-width: 500px;
                    padding-bottom: 4px;
                }

                & .information{
                    border-radius: 30px;
                    height: 50px;
                    width: 160px;
                    text-transform: uppercase;
                    border: 2px solid #ffffff;
                    background-color: #046630;
                    color: rgb(255, 253, 253);
                    cursor: pointer;
                    font-weight:600;
                    font-family:"League Gothic", sans-serif;
                }
            }
        }

        &::before{
           content:'';
           position:absolute;
           height: 200px;
           width: 100%;
           top: 50%;
           border-top: 1px solid #d9d9d9;
        }
    }

    .arrows{
        width:70vw;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -20px);
        display: flex;
        justify-content: space-between;
        z-index: 5;

        & button:nth-child(1){
            & img{
                transform: scale(-1);
            }
        }
        & button{
            width: 30px;
            height: 30px;
            border-radius: 20%;
            border: none;
            cursor: pointer;

            & img{
                width: 20px;
                margin-top: 4px;
                cursor:pointer;
            }

            &:hover{
                background-color: #beff1d;
            }
        }
    }

    .indicators{
        position:absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        height: 200px;
        width: 90vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 15px;
        
        & .number{
            font-size: 0%;
            font-family: "League Gothic",  sans-serif;
        }

        & ul{
            display: flex;
            gap: 10px;

            & li{
                width: 50px;
                height: 5px;
                background-color: #beff1d;
                border-radius: 5px;
                transition: 0.5s;
            }

            & .active{
                background-color: white;
            }
        }
    }
}

/* Animações e Estados do Carrossel */
section .list .item {
    transform: translateX(100vw);
    transition: 0.5s;
    opacity: 0;

    & .car-img img {
        transition: 0.5s;
        transition-delay: 0.3s;
    }

    & .content {
        & .car-information, h2, .description, .information {
            transform: translateX(200px);
            transition: 0.7s;
            transition-delay: 0.3s;
            opacity: 0;
        }
        & h2 { transition-delay: 0.5s; }
        & .description { transition-delay: 0.7s; }
        & .information { transition-delay: 0.9s; }
    }
}

section .list .item.active {
    transform: translateX(0);
    opacity: 1;

    & .car-img img {
        transform: rotate(-0deg);
    }
    & .content {
        & .car-information, h2, .description, .information {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Base do Footer */
.footer-engenharia {
    background-color: #11161b;
    color: #f5f6fa;
    padding: 60px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 240px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #a4b0be;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #ffffff;
}

.footer-col ul li {
    margin-bottom: 15px;
    font-size: 14px;
    color: #a4b0be;
    display: flex;
    align-items: center;
}

.footer-col ul li a {
    color: #a4b0be;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-col.contato ul li i {
    color: #ffffff;
    margin-right: 12px;
    font-size: 14px;
    width: 16px;
}

.redes-sociais {
    display: flex;
    gap: 10px;
}

.redes-sociais a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #1e272e;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.redes-sociais a:hover {
    background-color: #ffffff;
    color: #11161b;
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid #212e3c;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #718093;
}

/* CSS Whatsapp */
.item-whatsapp a {
    background-color: #25D366;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.item-whatsapp a:hover {
    background-color: #128C7E;
}
/* NOTEBOOKS / MONITORES MENORES */
@media screen and (max-width:1200px){
    header{
        width:95%;
        gap:30px;
        grid-template-columns: 1fr 1fr;
    }
    header nav ul {
        grid-template-columns: repeat(3, 1fr);
    }
    section .list{
        width:90%;
    }
    section .list .item .content h2{
        font-size:6rem;
    }
    section .list .item .content{
        width:60%;
        right:20px;
    }
}

/* TABLETS */
@media screen and (max-width:991px){
    header{
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:20px;
        position: absolute; /* Evita cobrir conteúdo estático no tablet */
    }

    header nav ul{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    section{
        min-height:100vh;
    }

    section .list{
        width:95%;
    }

    section .list .item .car-img{
        width:50%;
    }

    section .list .item .content{
        width:50%;
        right:0;
    }

    section .list .item .content h2{
        font-size:4rem;
    }

    section .list .item .content .description{
        max-width:350px;
    }
}

/* SMARTPHONES (MOBILE geral) */
@media screen and (max-width:768px){
    header {
        position: absolute;
        top: 10px;
    }
    header img {
        width: 200px;
    }

    section{
        height: auto;
        min-height: 100vh;
        padding-top: 160px;
        padding-bottom: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    section .list::before{
        display:none;
    }

    section .list {
        height: auto;
        width: 90vw;
    }

    /* Correção crucial: Itens agora se comportam de forma relativa para não sumirem */
    section .list .item{
        position: relative;
        transform: none !important; /* Desativa a transição horizontal que quebrava o mobile */
        opacity: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    section .list .item.active {
        display: flex;
        opacity: 1;
    }

    section .list .item .car-img{
        position: relative;
        width: 100%;
        top: auto;
        transform: none !important;
        margin-bottom: 20px;
    }

    section .list .item .car-img img{
        max-width: 100%;
        height: auto;
        margin: auto;
        display: block;
    }

    section .list .item .content{
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        align-items: center;
        text-align: center;
        padding: 0;
        transform: none !important;
    }

    section .list .item .content .car-information, 
    section .list .item .content h2, 
    section .list .item .content .description, 
    section .list .item .content .information {
        transform: none !important;
        text-align: center;
    }

    section .list .item .content h2{
        font-size: 3.5rem;
        text-align: center;
        padding-bottom: 15px;
    }

    section .list .item .content .description{
        text-align: center;
        max-width: 100%;
        font-size: 14px;
    }

    .arrows{
        width: 100% !important;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
        padding: 0 20px;
    }

    .indicators{
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        height: auto;
        width: 100%;
        align-items: center;
        margin-top: 20px;
    }
    
    .indicators ul {
        justify-content: center;
    }

    .footer-container{
        flex-direction: column;
        text-align: center;
    }

    .footer-col{
        width: 100%;
    }

    .footer-col p{
        max-width: 100%;
        margin: 0 auto 20px auto;
    }

    .footer-col h4::after{
        left: 50%;
        transform: translateX(-50%);
    }

    .redes-sociais{
        justify-content: center;
    }
}

/* SMARTPHONES PEQUENOS */
@media screen and (max-width:480px){
    header img{
        width: 150px;
    }

    section .list .item .content h2{
        font-size: 2.5rem;
    }

    section .list .item .content .car-information{
        font-size: 12px;
    }

    section .list .item .content .description{
        font-size: 13px;
        line-height: 1.5;
    }

    .arrows button{
        width: 40px;
        height: 40px;
    }

    .arrows button img{
        width: 15px;
    }

    .footer-logo img{
        max-width: 180px;
        margin: 0 auto 20px auto;
    }

    .footer-bottom p{
        font-size: 11px;
        padding: 0 10px;
    }
}
  /* css watsapp */
.item-whatsapp a {
  background-color: #25D366; /* Verde oficial do WhatsApp */
  color: #ffffff !important; /* Cor do texto branca */
  padding: 8px 16px;         /* Espaçamento interno para dar tamanho de botão */
  border-radius: 5px;        /* Deixa os cantos arredondados */
  font-weight: bold;         /* Deixa o texto em negrito */
  text-decoration: none;     /* Remove o sublinhado padrão de links */
  display: inline-block;     /* Garante que o padding funcione perfeitamente */
  transition: background 0.3s ease; /* Efeito suave ao passar o mouse */
  align-items: center;
  position: fixed;
  bottom: 20px;       /* Distância do fundo da tela */
  right: 20px;        /* Distância do canto direito da tela */
  z-index: 9999;
 
}

/* Efeito quando o usuário passa o mouse por cima */
.item-whatsapp a:hover {
  background-color: #128C7E; /* Verde mais escuro */
}




