/* Importa uma fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- Reset Básico e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #1a1a2e, #16213e, #0f3460);
    color: #e4e3e3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- O Contêiner Principal (efeito "Glassmorphism") --- */
.container {
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Transparência */
    backdrop-filter: blur(10px); /* Efeito de vidro */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* Animação de entrada */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Cabeçalho (Foto e Títulos) --- */
header .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 60%;
    border: 3px solid #e4e3e3;
    object-fit: cover;
    margin-bottom: 15px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

header p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* --- Links Principais (Botões) --- */
main {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os botões */
}

.link-box {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    
    color: #e4e3e3;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    
    transition: all 0.3s ease;
}

.link-box .icon {
    margin-right: 15px;
    width: 20px; /* Alinha os textos */
    text-align: center;
}

/* Efeito "hover" profissional */
.link-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.03); /* Leve aumento */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Rodapé (Ícones Sociais) --- */
footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #e4e3e3;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
}
/* --- Estilos para Títulos de Categoria --- */
.category-title {
    font-size: 1rem; /* Tamanho pequeno, como um subtítulo */
    font-weight: 300; /* Fonte leve */
    color: #ffffff;
    text-align: left; /* Alinha à esquerda */
    margin-top: 25px; /* Espaço acima do título */
    margin-bottom: 10px; /* Espaço abaixo do título */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Linha sutil */
    padding-bottom: 5px;
}

/* Define o primeiro título sem margem no topo */
main .category-title:first-of-type {
    margin-top: 0;
}
/* --- Estilos para a Página 'links-todos.html' --- */

/* Formata as listas de links */
.link-list {
    list-style: none; /* Remove as bolinhas */
    padding: 0;
    margin-bottom: 20px; /* Espaço abaixo de cada lista */
    text-align: left; /* Alinha o texto à esquerda */
}

.link-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-list li a {
    display: block; /* Faz o link ocupar o 'li' inteiro */
    padding: 12px 15px;
    color: #e4e3e3;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.link-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 20px; /* Efeito sutil ao passar o mouse */
}

/* Formata o botão 'Voltar' */
.back-link {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05); /* Mais sutil */
    text-align: center; /* Centraliza o texto e ícone */
}

.back-link:hover {
    background: rgba(46, 43, 80, 0.61); /* Um pouco mais de destaque */
}
/* --- Estilos para a Página 'projetos.html' --- */

.project-card {
    background: rgba(255, 255, 255, 0.07); /* Um pouco mais claro que o .link-list */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.5; /* Melhor legibilidade */
}

/* Links dentro do card (Ex: "Ver Site", "Ver Código") */
.card-links {
    display: flex;
    gap: 15px; /* Espaço entre os links */
}

.card-links a {
    color: #a7d1ff; /* Cor de link (azul claro) */
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.card-links a i {
    margin-left: 4px; /* Ícone um pouco separado do texto */
}
/* --- Estilos para a Página 'contato.html' --- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os campos */
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #e4e3e3;
}

/* Estilo dos campos de texto e email */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    
    font-family: 'Poppins', sans-serif; /* Garante a mesma fonte */
    font-size: 1rem;
    color: #ffffff; /* Cor do texto que o usuário digita */
    
    transition: all 0.3s ease;
}

/* Remove o contorno azul ao focar */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical; /* Permite redimensionar apenas na vertical */
    min-height: 120px;
}

/* Botão de Enviar */
.submit-btn {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #ffffff; /* Cor sólida para destaque */
    color: #1a1a2e; /* Cor escura do fundo */
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #dcdcdc; /* Um cinza claro no hover */
    transform: scale(1.02);
}

/* Contato alternativo (mailto) */
.alt-contact {
    margin-top: 20px;
    margin-bottom: 20px;
}
.alt-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}