/* Importação da Fonte e Variáveis Globais */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Encontre este bloco */
:root {
    --bg-color: #0d1117;
    --primary-color: #161b22;
    --secondary-color: #1f2328;
    --accent-color: #2f81f7; /* <<-- A linha que vamos mudar */
    --text-color: #c9d1d9;
    --text-color-light: #8b949e;
    --border-color: #30363d;
}

/* Estilos Gerais e Layout Principal */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* --- Sidebar Fixa na Esquerda --- */
.sidebar {
    flex: 0 0 380px;
    background-color: var(--primary-color);
    height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}
.sidebar-header { text-align: center; margin-bottom: 2.5rem; padding-top: 3rem; position: relative; }
.sidebar-header h2 { color: var(--text-color); margin-bottom: 0.25rem; }
.sidebar-subtitle { color: var(--text-color-light); font-weight: 300; }
.sidebar-education { color: var(--text-color-light); font-size: 0.9rem; margin-top: 0.75rem; }
.sidebar-education i { margin-right: 8px; color: var(--accent-color); }
.sidebar-content h3 { color: var(--accent-color); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.sidebar-content ul { list-style: none; }
.sidebar-content li { background: var(--secondary-color); padding: 1rem; border-radius: 5px; margin-bottom: 1rem; position: relative; overflow: hidden; transition: transform 0.3s ease; }
.sidebar-content li::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent); transition: left 0.6s ease; transform: skewX(-25deg); }
.sidebar-content li:hover { transform: translateY(-3px); }
.sidebar-content li:hover::before { left: 150%; }
.sidebar-content h4 { color: var(--text-color); }
.sidebar-content p { color: var(--text-color-light); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.sidebar-content a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.sidebar-content a:hover { text-decoration: underline; }
.sidebar-footer { margin-top: auto; text-align: center; padding-top: 1rem; }
.sidebar-footer .social-links a { color: var(--text-color-light); font-size: 1.8rem; margin: 0 0.75rem; transition: color 0.3s ease; }
.sidebar-footer .social-links a:hover { color: var(--accent-color); }

/* Botões de controle da Sidebar (escondidos no desktop) */
.open-sidebar-btn, .close-sidebar-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Overlay (fundo escurecido) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* --- Conteúdo Principal na Direita --- */
.main-content { flex: 1; height: 100vh; overflow-y: auto; }
header { background-color: rgba(22, 27, 34, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 1rem 5%; position: sticky; top: 0; z-index: 999; }
header nav { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; }
header nav ul { list-style: none; display: flex; gap: 2.5rem; }
header nav a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s ease; }
header nav a:hover { color: var(--accent-color); }
section { padding: 6rem 5%; max-width: 1100px; margin: 0 auto; }

/* (O resto dos seus estilos de seções continuam aqui) */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--accent-color); }
.about-text { max-width: 800px; margin: 0 auto; text-align: center; line-height: 1.8; color: var(--text-color-light); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.skill-category { background-color: var(--secondary-color); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); }
.skill-category h3 { color: var(--accent-color); margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.skill-category ul { list-style: none; }
.skill-category li { background-color: var(--primary-color); margin: 0.5rem 0; padding: 0.5rem 1rem; border-radius: 5px; transition: transform 0.2s ease, background-color 0.2s ease; }
.skill-category li:hover { transform: translateX(5px); background-color: var(--accent-color); color: var(--bg-color); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card { background-color: var(--secondary-color); border: 1px solid var(--border-color); border-radius: 8px; display: flex; flex-direction: column; padding: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.project-card h3 { color: var(--text-color); margin-bottom: 0.5rem; }
.project-card p { color: var(--text-color-light); flex-grow: 1; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.project-tech span { background-color: var(--primary-color); font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 15px; border: 1px solid var(--border-color); }
.btn-github { text-decoration: none; background-color: var(--primary-color); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 6px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.btn-github:hover { background-color: var(--accent-color); color: #fff; }
.btn-github i { margin-right: 0.5rem; }
#contato { text-align: center; }
.contact-text { max-width: 600px; margin: 0 auto 2rem; color: var(--text-color-light); }
.btn-primary { text-decoration: none; padding: 0.8rem 2rem; border-radius: 6px; transition: all 0.3s ease; font-weight: 600; background-color: var(--accent-color); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
footer { text-align: center; padding: 3rem 5%; margin-top: 3rem; border-top: 1px solid var(--border-color); color: var(--text-color-light); }


/* --- RESPONSIVIDADE PARA TELAS MENORES --- */
@media (max-width: 1024px) {
    body {
        display: block; /* Remove o flex do desktop */
        height: auto;
        overflow: auto;
    }

    .sidebar {
        position: fixed; /* Fica por cima do conteúdo */
        left: 0;
        top: 0;
        transform: translateX(-100%); /* Começa escondida à esquerda */
        width: 300px; /* Largura da sidebar no mobile */
    }

    .sidebar.show {
        transform: translateX(0); /* Mostra a sidebar */
    }

    .sidebar-overlay.show {
        display: block; /* Mostra o fundo escuro */
    }

    .main-content {
        height: auto;
        overflow: visible;
    }

    header nav {
        justify-content: space-between; /* Espaça o menu e os links */
    }

    .open-sidebar-btn {
        display: block; /* Mostra o botão de abrir */
    }
    
    .close-sidebar-btn {
        display: block; /* Mostra o botão de fechar */
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    header nav ul {
        display: none; /* Esconde os links do menu do topo no mobile */
    }
}