body {
    background-color: #0C0C0C;
}


nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0; /* Adicionado para garantir que o menu fixo funcione bem */
    background-color: #0C0C0C; /* Adicionado para evitar que o conteúdo passe por trás */
    z-index: 10; /* Garante que o menu fique sobre o conteúdo */
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.nav-container .links a {
    position: relative;
    font-size: 1.6rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #00ff00;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.link.ativo a {
    color: #00ff00;
}

.link.ativo a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00ff00;
}

.linha {
    width: 100%;
    height: 1px;
    background-color: #1f232a; 
    margin: 0;
    padding: 0;
}

/* --- AJUSTES DE POSICIONAMENTO AQUI 👇 --- */
.segundaDiv {
    display: flex;
    justify-content: center; /* Mantém os cards centralizados horizontalmente */
    flex-wrap: wrap; /* Permite que os cards quebrem a linha em telas menores */
    
    /* CORRIGIDO: Removido 'height: 100vh' para um fluxo mais natural */
    
    /* CORRIGIDO: Trocado 'gap' em % por um valor fixo mais estável */
    gap: 50px;

    /* ADICIONADO: Espaçamento no topo e em baixo para um layout mais limpo */
    padding: 5rem 2rem;
}


@-webkit-keyframes slide-bottom {
    0% {
        -webkit-transform: translateY(-100px);
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-bottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.card {
    animation: slide-bottom 1.0s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
    width: 500px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative; /* ADICIONADO: Essencial para o posicionamento do GIF e do overlay */
}

.overlay {
    height: 0;
    width: 100%; /* CORRIGIDO: usa 100% para se adaptar ao card */
    position: absolute;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(transparent, #1e1d1d 75%);
    text-align: center;
    transition: height 0.5s;
}

.overlay h3 {
    color: #ffffff;
    margin-top: 50%;
    margin-bottom: 5px;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 2px;
}

.card img {
    width: 100%; /* CORRIGIDO: usa 100% para ser mais flexível */
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    display: block;
    border-radius: 10px;
    transition: transform 0.5s;
}

a {
    text-decoration: none;
}

.card:hover .overlay {
    height: 95%;
}

.card .ImagemGif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que o GIF também cubra o espaço */
    opacity: 0;
    transition: opacity 0.5s ease;
}


.card:hover .ImagemGif{
    opacity: 1;
}