/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --text-color: #4A5C2E;
    --background-color: #faf7f4;
    --border-color: #cccccc;
    --light-beige: #fdfaf7;
    --accent-color: #99cd85;
    --accent-glow: rgba(153, 205, 133, 0.6);
    --shadow-color-light: #a9b888;
    --shadow-color-bright: #b7c59c;
    --font-family: 'Raleway', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-y: auto; /* Permite rolagem vertical */
    overflow-x: hidden; /* Esconde rolagem horizontal */
    position: relative;
}

/* --- EFEITO CURSOR GLOW --- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    z-index: 9999;
}

body:hover .cursor-glow {
    width: 100px;
    height: 100px;
}

/* --- ELEMENTOS ANIMADOS DE FUNDO --- */
#background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden; /* Isso já protege contra scrollbars das animações */
}

.elemento {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.5s ease;
    filter: drop-shadow(0 0 4px var(--shadow-color-light));
    animation: brilho 2s ease-in-out infinite alternate, 
                 float 20s linear infinite alternate;
    z-index: -1; /* Coloca os elementos atrás do container principal */
}

/* Formas dos elementos */
.elemento.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid var(--accent-color);
    background-color: transparent !important;
}
.elemento.square {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
}
.elemento.circle {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Animação de flutuar */
@keyframes float {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-100px) rotate(180deg);
    }
}

/* Brilho suave pulsante */
@keyframes brilho {
    0% { filter: drop-shadow(0 0 2px var(--shadow-color-light)) brightness(1); }
    50% { filter: drop-shadow(0 0 8px var(--shadow-color-bright)) brightness(1.3); }
    100% { filter: drop-shadow(0 0 2px var(--shadow-color-light)) brightness(1); }
}

/* Efeito de explosão */
.explode {
    animation: pop 0.4s ease forwards;
}

@keyframes pop {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(45deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(90deg); opacity: 0; }
}


/* --- LAYOUT PRINCIPAL E NAVEGAÇÃO --- */
.container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2rem 3rem;
    background-color: var(--light-beige);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    min-height: 80vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

header nav a:hover,
header nav a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.language-switcher button {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.language-switcher button:hover {
    color: var(--accent-color);
}

.language-switcher span {
    color: var(--border-color);
    margin: 0 0.25rem;
}

/* --- GERENCIAMENTO DE TELAS E TRANSIÇÕES --- */
.screen {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    height: auto; /* Permite que o conteúdo defina a altura */
    overflow: visible;
}

/* --- SEÇÃO INÍCIO (SOBRE) --- */
#inicio {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding-top: 1rem; /* Adicionado padding aqui para compensar a remoção do .screen */
}

.profile-column {
    text-align: center;
}

.profile-pic {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--light-beige);
    box-shadow: 0 0 10px var(--border-color), 0 0 20px var(--accent-glow);
    margin-bottom: 1.5rem;
}

.profile-column h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-column .title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
}

.profile-column .institution {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.info-column h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.info-column h2:first-child {
    margin-top: 0;
}

.info-column p {
    margin-bottom: 1rem;
}

.info-column ul {
    list-style-type: square;
    margin-left: 1.5rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    #inicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .profile-column {
        border-right: none;
        padding-right: 0;
    }
    .container {
        margin: 2rem auto;
        padding: 1.5rem;
        min-height: 90vh;
    }
}

@media (max-width: 600px) {
    body {
        overflow: auto; /* Garante rolagem em telas pequenas */
    }
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    header {
        flex-direction: column;
        gap: 1rem;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .cursor-glow {
        display: none; /* Esconde o glow em telas pequenas */
    }
    /* Estilos de contato responsivos */
    .contact-form .form-group-inline {
        flex-direction: column;
        gap: 1.5rem;
    }
    .contact-form .form-field {
        width: 100%; /* Ocupa largura total em telas pequenas */
    }
}

/* --- ESTILOS DA SEÇÃO DE PUBLICAÇÕES/PROJETOS (reutilizado) --- */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.publication-item h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.publication-item h3 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.publication-item p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.presented-at {
    margin-top: 1rem;
}

.presented-at ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.presented-at ul li a {
    text-decoration: none;
    color: var(--text-color);
}
.presented-at ul li a:hover {
    color: var(--accent-color);
}


/* --- NOVOS ESTILOS PARA A SEÇÃO DE CONTATO --- */
#contato {
    padding-top: 3rem; /* Espaçamento superior para o cabeçalho do contato */
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinha o texto do parágrafo à base do h1 */
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
}

.contact-header h1 {
    font-size: 3rem; /* Tamanho maior para "Say Hello." */
    font-weight: 500; /* Mais leve, como no exemplo */
    color: var(--text-color);
    margin: 0;
    line-height: 1; /* Para controle preciso do espaçamento */
}

.contact-header .contact-info {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    max-width: 250px; /* Limita largura para ficar ao lado */
    margin-left: 2rem; /* Espaçamento entre o título e o texto */
    line-height: 1.4;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .contact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .contact-header h1 {
        font-size: 2.5rem;
    }
    .contact-header .contact-info {
        text-align: left;
        margin-left: 0;
        max-width: 100%;
    }
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaçamento entre os grupos de campos */
}

.form-group-inline {
    display: flex;
    gap: 2rem; /* Espaçamento entre campos na mesma linha */
}

.form-field {
    flex: 1; /* Permite que os campos ocupem o espaço disponível */
    display: flex;
    flex-direction: column;
    position: relative; /* Para posicionar o label */
}

.form-field label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.4rem; /* Pequeno espaço entre label e input */
    pointer-events: none; /* Garante que o clique passe para o input */
    transition: all 0.2s ease;
    transform-origin: left;
}

.form-field input,
.form-field textarea {
    background-color: transparent; /* Fundo transparente */
    border: none;
    border-bottom: 1px solid var(--border-color); /* Linha inferior */
    padding: 0.5rem 0.2rem;
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: var(--text-color);
    outline: none; /* Remove a borda de foco padrão */
    transition: border-color 0.3s;
    resize: vertical; /* Permite redimensionar verticalmente o textarea */
    min-height: 2.5rem; /* Altura mínima para inputs */
}

.form-field textarea {
    min-height: 80px; /* Altura mínima para o campo de mensagem */
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--accent-color); /* Cor da linha ao focar */
}

/* Efeito de label flutuante */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-20px) scale(0.85); /* Move e diminui o label */
    color: var(--accent-color);
    opacity: 1;
}

/* Esconder o label por padrão, se o input tiver um placeholder */
.form-field input:placeholder-shown + label,
.form-field textarea:placeholder-shown + label {
    /* Não faz nada, o label já está na posição normal */
}
/* No seu caso, como não estamos usando placeholders, o label ficará sempre acima */


.send-button {
    background-color: var(--text-color); /* Cor escura como no exemplo */
    color: var(--light-beige);
    border: none;
    border-radius: 25px; /* Bordas arredondadas */
    padding: 0.8rem 2.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start; /* Alinha o botão à esquerda */
    margin-top: 2rem;
    transition: background-color 0.3s, transform 0.3s;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.send-button:hover {
    background-color: var(--accent-color); /* Cor de destaque ao passar o mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}