body {
    font-family: Georgia, Times, Times New Roman, serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

header img {
    width: 50px;
    position: absolute;
    left: 20px;
    top: 10px;
}

.menu-icon, .settings-icon {
    position: absolute;
    top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

.menu-icon {
    right: 20px;
}

.settings-icon {
    right: 60px;
}

.menu, .settings-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu.show, .settings-menu.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.menu a, .settings-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px;
    border-bottom: 1px solid #444;
}

.menu a:hover, .settings-menu a:hover {
    background: #444;
}

/* Submenu de contatos */
.submenu, .contact-submenu {
    display: none;
    padding-left: 10px;
}

.submenu a, .contact-submenu a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

.submenu i {
    margin-right: 8px; /* Espaço entre ícone e texto */
    font-size: 1.2rem; /* Ajuste o tamanho do ícone */
    vertical-align: middle;
}

.menu-item > a {
    cursor: pointer;
}

/* Menu de contatos com Instagram */
.contact-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-menu.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.contact-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 5px;
    border-bottom: 1px solid #444;
}

.contact-menu a:hover {
    background: #444;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.hero {
    background-color: #6E9ECF;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 20px);
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .project {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .project {
        width: 100%;
    }
    .menu-icon, .settings-icon {
        display: block;
    }
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header, 
body.dark-mode .footer, 
body.dark-mode .menu, 
body.dark-mode .settings-menu, 
body.dark-mode .contact-menu {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .project {
    background-color: #242424;
    border-color: #333;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background-color: #444;
    border-radius: 15px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch label {
    display: flex;
    align-items: center;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    width: 34px;
    height: 20px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

input:checked + .slider {
    background: #2196F3;
}

input:checked + .slider::before {
    transform: translateX(14px);
}
