:root {
    --emerald: #10b981;
}

/* Modo Escuro (Padrão) */
body.dark-mode {
    --bg-body: #0a0a0c;
    --bg-card: #14141a;
    --bg-navbar: rgba(10, 10, 12, 0.9);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

/* Modo Claro */
body.light-mode {
    --bg-body: #ffffff;
    --bg-card: #f8fafc;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --text-main: #1a1a1a; 
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.1);
}

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


/* estilos globais */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {     
    background: var(--bg-body); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-dark { background: var(--bg-card); }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Navbar e Botão de Tema */
#navbar { 
    background: var(--bg-navbar); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--emerald); }
.logo span { color: var(--emerald); font-weight: bold; font-size: 1.8rem; }

.btn-theme {
    background: none;
    border: 1px solid var(--emerald);
    color: var(--emerald);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-theme:hover { background: var(--emerald); color: white; }

/* Hero */
.hero { padding: 120px 0; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--text-main); }
.hero-subtitle { color: var(--text-muted); max-width: 700px; margin: 0 auto 30px; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }
.btn-hero { padding: 12px 25px; border-radius: 6px; text-decoration: none; color: var(--text-main); border: 1px solid var(--border); transition: 0.3s; }
.btn-hero.highlight { background: var(--emerald); border-color: var(--emerald); color: white; font-weight: bold; }

/* Objetivo */
.objective-card { background: var(--bg-card); padding: 40px; border-radius: 15px; border: 1px solid var(--border); }
.quote { margin-top: 20px; font-style: italic; color: var(--emerald); border-left: 4px solid var(--emerald); padding-left: 20px; }

/* Formação */
.edu-wrapper { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.edu-item { background: var(--bg-card); padding: 30px; border-radius: 12px; border-left: 6px solid var(--emerald); text-align: center; }
.edu-item h3 { color: var(--emerald); margin-bottom: 10px; }
.edu-item .school { font-weight: bold; color: var(--text-main); }

/* Experiência */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exp-card { background: var(--bg-body); padding: 30px; border-radius: 12px; border: 1px solid var(--border); }
.exp-header h3 { color: var(--emerald); }
.exp-header span { font-size: 0.85rem; color: var(--text-muted); }

/* Habilidades */
.skills-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.skill-box { background: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--border); }
.skill-header { color: var(--emerald); font-weight: bold; margin-bottom: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { background: rgba(16, 185, 129, 0.1); color: var(--emerald); padding: 5px 12px; border-radius: 4px; border: 1px solid rgba(16,185,129,0.3); font-size: 0.85rem; }

/* Projetos */
.projects-grid-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { background: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.projects-grid-layout .project-card:nth-child(-n+4) { grid-column: span 3; }
.projects-grid-layout .project-card:nth-last-child(-n+3) { grid-column: span 4; }

/* Ajuste solicitado: Botão Acessar um pouco maior que a palavra */
.btn-project { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 8px 30px; 
    border: 1px solid var(--emerald); 
    color: var(--emerald); 
    text-decoration: none; 
    border-radius: 5px; 
    transition: 0.3s; 
    font-weight: bold; 
}
.btn-project:hover { background: var(--emerald); color: white; }

/* Rodapé */
#contact { padding: 80px 0; border-top: 1px solid var(--border); }
.contact-btns-wrapper { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.btn-contact { padding: 15px 30px; border-radius: 12px; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 10px; transition: 0.4s; }

.btn-whatsapp { color: #25d366; background: var(--bg-card); border: 2px solid #25d366; }
.btn-whatsapp:hover { background: #25d366; color: white; }

.btn-email { 
    color: #25d366; 
    background: transparent; 
    border: 1px solid #25d366; 
}
.btn-email:hover { 
    background: #25d366; 
    color: #ffffff; 
}

.copyright { color: var(--text-muted); font-size: 0.9rem; }

/* Responsividade */
@media (max-width: 768px) {
    .exp-grid, .skills-grid-2x2 { grid-template-columns: 1fr; }
    .projects-grid-layout .project-card { grid-column: span 12 !important; }
    
    .contact-btns-wrapper { 
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }

    .btn-contact {
        width: fit-content; 
        padding: 10px 20px; 
        font-size: 0.9rem;
    }
}