/* =======================================================
1. IMPORTAÇÃO DE FONTES (DEVE SER A PRIMEIRA REGRA!)
   - Importando Playfair Display (para títulos) e Roboto (para corpo)
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500&display=swap');

/* =======================================================
2. RESET E ESTILOS GERAIS
========================================================== */
* {
    box-sizing: border-box; /* Garante que padding e border não aumentem o tamanho do elemento */
}

body {
    /* Fundo Escuro Profissional */
    background-color: #121212; 
    color: #e0e0e0; /* Texto claro */
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Texto leve para leitura */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Centraliza e limita a largura do conteúdo principal */
main {
    max-width: 1100px; 
    margin: 0 auto; /* Centraliza horizontalmente */
    padding: 20px;
}

/* =======================================================
3. TIPOGRAFIA E TÍTULOS
========================================================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #66ccff; /* Cor de destaque para títulos */
    margin-top: 0;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

/* =======================================================
4. HEADER E NAVEGAÇÃO
========================================================== */
header {
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 1em 0;
}

nav {
    display: flex;
    justify-content: space-between; /* Distribui o nome e os links */
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

nav h1 {
    font-size: 1.5em;
    margin: 0;
    line-height: 1;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: #66ccff; /* Efeito ao passar o mouse */
}

/* =======================================================
5. SEÇÕES E CONTEÚDO
========================================================== */
section {
    padding: 80px 20px; /* Espaçamento vertical generoso */
    border-bottom: 1px solid #333; /* Linha divisória sutil */
}

/* Estilo para a seção de herói/introdução */
#hero {
    text-align: center;
    min-height: 40vh; /* Garante uma altura mínima */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('caminho/para/imagem-fundo.jpg') no-repeat center center/cover; /* OPCIONAL: Se quiser uma imagem de fundo, insira o caminho aqui */
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 0.1em;
}

#hero p {
    font-size: 1.2em;
    font-weight: 500;
    color: #999;
}

/* Estilo para cards de projeto (seção de portfólio) */
.project-card {
    background-color: #1f1f1f;
    border: 1px solid #333;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px); /* Efeito de elevação */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* =======================================================
6. RODAPÉ
========================================================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1f1f1f;
    font-size: 0.8em;
    color: #999;
}