/* Configurações Globais e Variáveis de Cor */
:root {
    --bg-dark: #0a0e17;       /* Fundo principal super escuro */
    --bg-card: #131a28;       /* Fundo dos cards e header */
    --text-main: #e2e8f0;     /* Texto claro padrão */
    --text-muted: #8b9eb5;    /* Texto secundário/apagado */
    --neon-green: #00ff66;    /* Cor de destaque cyberpunk */
    --neon-green-dim: rgba(0, 255, 102, 0.15); /* Fundo sutil para tags */
    --border-color: #1f2937;  /* Bordas escuras */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Aplicando a fonte de programação */
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Header e Navegação */
header {
    background-color: var(--bg-card);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

/* Seções Principais */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--neon-green);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}

/* Seção Sobre */
.section-sobre {
    text-align: center;
    padding-top: 2rem;
}
.subtitulo {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.descricao-sobre {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
}

/* Seção Projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.projeto-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-5px);
    /* Efeito de brilho neon na borda */
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.projeto-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
}

.descricao-projeto {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1; 
    margin-bottom: 1.5rem;
}

.tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background-color: var(--neon-green-dim);
    color: var(--neon-green);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 102, 0.2);
}

/* Botões base */
.btn-github, .btn-contato {
    text-decoration: none;
    background-color: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-github:hover, .btn-contato:hover {
    background-color: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

/* Seção Contato */
#contato {
    text-align: center;
}

#contato p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.links-contato {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn-contato {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}