/* --- Variáveis Globais e Reset --- */
:root {
    --primary-color: #0a84ff; /* Azul vibrante */
    --background-color: #1c1c1e; /* Cinza escuro (quase preto) */
    --surface-color: #2c2c2e; /* Cinza um pouco mais claro para cards/seções */
    --text-color: #f2f2f7; /* Branco suave */
    --secondary-text-color: #8e8e93; /* Cinza para textos secundários */
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Container e Utilitários --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

/* --- Cabeçalho e Navegação --- */
header {
    background-color: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* --- Seção Home --- */
#home {
    padding-top: 10rem; /* Espaço para o header fixo */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.home-text p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin-bottom: 2rem;
}

.home-avatar img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

/* --- Seção Sobre --- */
.about-text {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    color: var(--text-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-badge {
    background-color: var(--surface-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

/* --- Seção Contato --- */
#contact {
    text-align: center;
}

.contact-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Botão --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #0060df;
    transform: translateY(-3px);
}

/* --- Rodapé --- */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--surface-color);
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-avatar img {
        width: 200px;
        height: 200px;
    }
}