/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estrutura básica para o layout em coluna */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Navbar */
header {
    background-color: #333;
    color: #fff;
    padding: 1em 2em;
}

button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 5px;
}

/* Modo Escuro */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer {
    background-color: #222;
    color: #e0e0e0;
}

body.dark-mode button {
    background: #555;
    color: #e0e0e0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1em;
}

.menu li {
    position: relative;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Especificações para telas menores */
@media (max-width: 768px) {
    /* Menu padrão oculto e com transição de opacidade */
    .menu {
        flex-direction: column;
        gap: 0.5em;
    }

    .dropdown-menu {
        position: static; /* Alinha o menu dropdown ao menu principal no mobile */
    }

    /* Exibir menu com transição */
    .menu-active {
        opacity: 1;
        visibility: visible;
    }

    .menu li {
        text-align: center;
        margin: 0.5em 0;
    }
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu li a:hover {
    color: #ddd;
}

/* Ícone de Hambúrguer */
.hamburger {
    display: none;
    font-size: 1.5em;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Layout Mobile */
@media (max-width: 768px) {
    /* Ícone de hambúrguer visível apenas em telas menores */
    .hamburger {
        display: block;
    }

    /* Menu oculto por padrão no mobile */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1em 0;
    }

    /* Menu visível quando ativo */
    .menu-active {
        display: flex;
    }

    .menu li {
        text-align: center;
        margin: 0.5em 0;
    }
}
/* Main ocupa o espaço disponível */
main {
    flex-grow: 1;
    padding: 2em;
}

/* Seção de Portfólio */
.portfolio-section {
    padding: 2em;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    margin-top: auto;
}

.p-footer-email {
    padding: 10px;
}

.fundo-email {
    background-color: darkgray;
}
