/* --- Importando uma fonte profissional do Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Variáveis de Cor --- */
:root {
    --cor-fundo-escuro: #121212;
    --cor-fundo-secundario: rgba(30, 30, 30, 0.9); /* Fundo dos cards com transparência */
    --cor-texto-principal: #E0E0E0;
    --cor-texto-secundario: #A0A0A0;
    --cor-destaque: #007BFF;
    --cor-destaque-hover: #0056b3;
}

/* --- Estilos Gerais e Fundo --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--cor-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url(background.jpeg);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Efeito Parallax */
}

/* --- MOLDURA FADE --- */
.frame-effect {
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.7);
}


/* --- Novas Animações de Rolagem --- */
.animated-section {
    opacity: 0;
    transform: translateX(-50px); /* Começa fora da tela, à esquerda */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.visible {
    opacity: 1;
    transform: translateX(0); /* Entra na tela para a posição original */
}


/* --- Estilos da Página Principal (index.html) --- */
.container-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.banner-principal {
    width: 100%;
    max-width: 500px; /* Ajuste o tamanho máximo do banner */
    margin-bottom: 3rem;
}

.placas-navegacao {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* --- CAIXAS PROPORCIONAIS --- */
}

.placa {
    background-color: var(--cor-fundo-secundario);
    padding: 2rem 3rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--cor-texto-principal);
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Adicionado para centralizar conteúdo verticalmente */
    flex-direction: column; /* Adicionado para centralizar conteúdo verticalmente */
    justify-content: center; /* Adicionado para centralizar conteúdo verticalmente */
}

.placa:hover {
    transform: translateY(-10px);
    border-color: var(--cor-destaque);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
}

.placa h2 { color: var(--cor-texto-principal); margin-bottom: 0.5rem; }
.placa p { color: var(--cor-texto-secundario); }

/* --- Estilos da Página de Portfólio (portfolio.html) --- */
.portfolio-container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.portfolio-header { text-align: center; margin-bottom: 4rem; padding: 4rem 1rem; background-size: cover; background-position: center; border-radius: 10px; }
.portfolio-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.portfolio-header a { color: var(--cor-destaque); text-decoration: none; transition: color 0.3s ease; }
.portfolio-header a:hover { color: var(--cor-texto-principal); }

section { margin-bottom: 4rem; background-color: var(--cor-fundo-secundario); padding: 2rem; border-radius: 10px; border: 1px solid #333; }
#bio { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
#bio img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cor-destaque); }
#bio div { flex: 1; min-width: 300px; }
#habilidades ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; }
#habilidades li { background-color: #121212; padding: 0.5rem 1rem; border-radius: 5px; font-weight: 600; }

/* --- SEÇÃO DE CONTATO ATUALIZADA --- */
#contato .links-contato {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Espaçamento entre os botões */
    align-items: center;
}

.contact-button-wrapper {
    position: relative; /* Necessário para posicionar o mascote */
}

/* --- AJUSTE FINO NO MASCOTE PARA REALISMO --- */
.contact-button-wrapper .mascote {
    position: absolute;
    bottom: -30px; /* Começa mais para baixo, totalmente escondido */
    left: 50%;
    width: 80px;
    transform: translateX(-50%);
    z-index: 2; /* Garante que as mãos do mascote fiquem NA FRENTE do botão */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.contact-button-wrapper:hover .mascote {
    opacity: 1;
    bottom: 25px; /* Posição final, com as mãos sobre a borda do botão */
}

/* --- BOTÕES COM ÍCONES --- */
#contato a {
    background-color: var(--cor-destaque);
    color: var(--cor-texto-principal);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    
    /* Novo: Alinha o ícone e o texto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
}

#contato a:hover {
    background-color: var(--cor-destaque-hover);
    transform: scale(1.05);
}

#contato a .icon {
    height: 20px; /* Define um tamanho padrão para todos os ícones */
    width: auto;
}

footer { text-align: center; padding: 2rem; margin-top: 4rem; color: var(--cor-texto-secundario); }

