body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f0f0f0;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-profissional {
  width: 260px;
  height: auto;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.logo-profissional:hover {
  transform: scale(1.05);
}

.dark-mode {
    background: #121212;
    color: #ddd;
}

nav {
    background: #2c3e50;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav a {
    color: yellow;
    text-decoration: none;
    font-weight: bold;
}

.switch {
    cursor: pointer;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dark-mode .section {
    background: #1e1e1e;
}

.tecnologias img {
    width: 40px;
    margin: 5px;
}
.perfil-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.foto-perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 250px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.dark-mode .card {
    background: #2a2a2a;
}

.card:hover {
    transform: translateY(-5px);
}

.artigos-main {
    display: flex;
    flex-wrap: wrap;
}

.menu-lateral {
    flex: 1 1 200px;
    padding: 20px;
    background: #f9f9f9;
}

.dark-mode .menu-lateral {
    background: #1a1a1a;
}

.conteudo-artigos {
    flex: 3 1 600px;
    padding: 20px;
}

.menu-lateral ul {
    list-style: none;
    padding: 0;
}

.menu-lateral li {
    margin: 10px 0;
}

.menu-lateral a {
    text-decoration: none;
    color: inherit;
}

nav a.active {
    color: white;
    background: #34495e;
    padding: 10px;
    border-radius: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-label {
    color: white; /* Ou ajuste conforme seu tema */
    font-weight: bold;
    cursor: pointer;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .artigos-main {
        flex-direction: column;
    }

    .menu-lateral, .conteudo-artigos {
        flex: 1 1 100%;
    }

    nav {
        flex-wrap: wrap;
    }
}
