/* --- Configurações Globais e Reset --- */
:root {
    --cor-fundo-1: #0b0c10;
    --cor-fundo-2: #1f2833;
    --cor-primaria: #66fcf1;
    --cor-secundaria: #45a29e;
    --cor-texto: #c5c6c7;
    --cor-branca: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Fundo Animado e Corpo da Página --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--cor-texto);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, var(--cor-fundo-1), var(--cor-fundo-2), var(--cor-secundaria));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden; /* Garante que não haverá rolagem horizontal */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Container Principal --- */
.portal-container {
    text-align: center;
    padding: 2rem;
    width: 100%;
}

/* --- Título --- */
.titulo-principal {
    font-size: 4rem;
    font-weight: 600;
    color: var(--cor-branca);
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.5), 0 0 5px rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

/* --- Container dos Botões --- */
.botoes-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap; 
}

/* --- Estilo dos Botões (Glassmorphism) --- */
.botao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--cor-branca);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: var(--delay);
}

.botao:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(102, 252, 241, 0.3);
}

.botao i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--cor-primaria);
    transition: color 0.3s ease;
}

.botao:hover i {
    color: var(--cor-branca);
}

.botao span {
    letter-spacing: 1px;
}

/* --- Animações --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
 ======================================================
            CSS RESPONSIVO FINAL
 ======================================================
*/
@media (max-width: 768px) {
    .portal-container {
        padding: 1rem;
    }

    .titulo-principal {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .botoes-container {
        flex-direction: column;
        align-items: center; 
        gap: 1.5rem;
    }

    .botao {
        width: 90%;
        max-width: 350px;
        height: 100px;
        flex-direction: row;

        /* --- ESTA É A ALTERAÇÃO --- */
        /* ANTES: justify-content: flex-start; */
        /* AGORA: Centraliza o conteúdo (ícone + texto) no meio do botão */
        justify-content: center;
        
        /* Remove o padding lateral que não é mais necessário com a centralização */
        padding: 0;
    }

    .botao i {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}