* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--cor-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 1.2rem;
    color: var(--cor-texto-principal);
}

.menu-btn, .theme-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cor-texto-principal);
}

.theme-btn img {
    width: 24px;
    height: 24px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background-color: var(--cor-menu);
    padding: 60px 1rem 1rem;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.4);
}

.sidebar nav ul li {
    margin: 1rem 0;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cor-texto-principal);
    font-weight: bold;
}

.sidebar nav ul li a:hover {
    color: var(--cor-vermelho);
}

.sidebar img {
    width: 20px;
    height: 20px;
}

.sidebar.ativa {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 998;
}

.overlay.ativo {
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    font-size: 1.2rem;
    border: none;
    color: var(--cor-texto-principal);
    cursor: pointer;
}

main.home {
    padding: 6rem 1rem 2rem;
    max-width: 900px;
    margin: auto;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-vermelho {
    background-color: var(--cor-vermelho);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    transition: background 0.3s;
}

.btn-vermelho:hover {
    background-color: var(--cor-vermelho-escuro);
}

.sobre {
    margin-top: 3rem;
}

.sobre h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sobre p {
    font-size: 1rem;
    color: var(--cor-texto-secundario);
}

.footer {
    background-color: var(--cor-footer);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--cor-texto-secundario);
    margin-top: 2rem;
    position: relative;
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 1rem;
    }

    .intro h2 {
        font-size: 1.6rem;
    }

    .sidebar {
        width: 220px;
    }
}

.sidebar nav ul li a.ativo {
    color: var(--cor-amarelo);
}

.sidebar-separador {
    border: none;
    border-top: 3px solid var(--cor-vermelho);
    margin: 1rem 0;
    opacity: 0.4;
}
