/* --- VARIÁVEIS DE TEMA --- */
:root {
    /* Tema Dark (Padrão) */
    --bg-color: #0a0a0a;
    --card-bg: #171717;
    --card-hover: #262626;
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --border: #333;
    --btn-bg: rgba(255,255,255,0.05);
    --btn-hover: rgba(255,255,255,0.1);
}

/* Tema Light (Ativado via JS) */
[data-theme="light"] {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --card-hover: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --border: #e0e0e0;
    --btn-bg: rgba(0,0,0,0.05);
    --btn-hover: rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- BOTÃO THEME TOGGLE --- */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--text-secondary);
}

/* Lógica de Ícones: Mostra um e esconde o outro */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }


/* --- LAYOUT BENTO GRID --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

/* --- ESTILOS DOS CARDS --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.8s forwards;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-secondary);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* Classes utilitárias */
.col-span-2 { grid-column: span 2; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* --- TIPOGRAFIA --- */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    /* Gradiente dinâmico no texto */
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 1rem; }
p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; }

/* Avatar */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-bottom: 1.5rem;
    background-image: url('images/Pessoal.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--bg-color); /* Borda para destaque */
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--btn-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--btn-hover);
    border-color: var(--text-secondary);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color); 
}
.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Tech Pills */
.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-pill {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .grid-container { grid-template-columns: 1fr; gap: 1rem; }
    .col-span-2, .col-span-4, .row-span-2 { grid-column: span 1; grid-row: span 1; }
    h1 { font-size: 2rem; }
    .theme-toggle { top: 15px; right: 15px; width: 40px; height: 40px; }
}

/* --- ANIMAÇÕES --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.glow-point {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    top: -100px; right: -100px; pointer-events: none; opacity: 0.5;
}

/* --- ESTILOS DA LISTA DE FORMAÇÃO --- */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: center;
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03); 
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.edu-item:hover {
    background-color: var(--card-hover);
    border-color: var(--text-secondary);
    transform: translateX(5px); 
}

.edu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.edu-content {
    flex: 1; 
}

.edu-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.edu-content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.edu-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent);
}

.edu-item:hover .edu-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Ajuste Responsivo para a lista */
@media (max-width: 900px) {
    .edu-item {
        padding: 10px;
    }
    .edu-content h4 {
        font-size: 0.9rem;
    }
}

/* --- ESTILOS DO CARD DE ATUAÇÃO (JOB) --- */
.job-card {
    text-decoration: none; /* Remove sublinhado padrão de links */
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    justify-content: flex-start; /* Alinha conteúdo ao topo */
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    width: 100%;
}

.job-icon {
    background-color: var(--card-hover);
    padding: 10px;
    border-radius: 12px;
    color: var(--text-primary);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efeito Hover no Ícone */
.job-card:hover .job-icon {
    background-color: var(--accent);
    color: #fff;
}

/* Badge "Atualmente" */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(34, 197, 94, 0.1); /* Fundo verde bem claro */
    color: #22c55e; /* Texto verde vibrante */
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Animação do Ponto Verde */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Conteúdo e Link */
.job-content {
    margin-bottom: 1rem;
}

.job-arrow {
    margin-top: auto; /* Empurra para o fundo se sobrar espaço */
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
    display: inline-block;
}

.job-card:hover .job-arrow {
    opacity: 1;
    transform: translateX(5px); /* Setinha move para a direita */
}

/* --- UI/UX MELHORADO PARA STACK E SOCIAL --- */

/* Subtítulos mais elegantes */
.card-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: -15px; /* Puxa para perto do título H3 */
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Grid para os botões sociais */
.social-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
}

/* Estilo específico para botões sociais */
.btn-social {
    flex: 1; /* Faz todos terem o mesmo tamanho e preencherem o espaço */
    min-width: 140px; /* Garante que não fiquem muito pequenos no mobile */
    justify-content: center;
    gap: 10px; /* Espaço entre ícone e texto */
    padding: 14px 20px;
    background-color: var(--btn-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-social:hover {
    background-color: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-2px); /* Elevação sutil ao passar o mouse */
}

/* Ajuste fino na Tech Stack para ocupar melhor o espaço largo */
.card.col-span-2 .tech-stack {
    gap: 12px;
}

.tech-pill {
    padding: 8px 16px; /* Pills um pouco maiores para facilitar leitura */
    font-size: 0.85rem;
    background: rgba(59, 130, 246, 0.08); /* Fundo mais sutil */
    transition: 0.3s;
    cursor: default;
}

.tech-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
}