/* Header Styles */
.custom-icon {
    width: 40px;
    height: 40px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efeito hover moderno */
.custom-icon:hover {
    background-color: #111111;
}

/* Efeito de clique */
.custom-icon:active {
    transform: scale(0.95);
}


/* Versão para mobile */
@media (max-width: 768px) {
    .custom-icon {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--first-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Botão de alternância de tema */
.theme-toggle {
    background: var(--white-color);
    color: var(--black-color);
    width: 100px;
    height: 25px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(134, 130, 139, 0.4);
}

/* Efeito ao passar o mouse */
.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0px 0px 15px rgba(86, 83, 88, 0.6);
}
/* Estiliza o botão quando o tema escuro estiver ativo */
.dark-mode .theme-toggle {
    background: var(--neon-green);
    color: black;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.4);
}

.menu-toggle {
    display: none;
}


@media (max-width: 800px) {
    .nav-links {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 20px 0 60px 0;
        z-index: 1000;
        display: none; /* Inicia escondido */
        flex-direction: column;
        justify-content: flex-start; /* Alinha itens ao topo */
        align-items: center;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Melhora o scroll em iOS */
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.3rem;
        padding: 15px 20px;
        margin: 8px 0; /* Adiciona margem vertical entre os itens do menu */
        border-radius: 8px; /* Arredonda um pouco mais as bordas */
        color: var(--white-color); /* Garante que a cor do texto seja branca */
        text-align: center;
        width: 80%;
        max-width: 300px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .nav-links a::after {
        transform: scale(0);
        }

.nav-links a:hover,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.1); /* Um fundo sutil ao passar o mouse/focar */
        color: var(--accent); /* Cor do texto de destaque */
        transform: scale(1.02); /* Pequeno efeito de zoom */
    }

.nav-links a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

    .nav-links .active {
        background: var(--accent); /* Cor de destaque para o item ativo */
        color: var(--white-color);
        font-weight: bold; /* Deixa o texto em negrito para o item ativo */
    }

    /* Ajustes para o menu-toggle */
    .menu-toggle {
        position: fixed;
        top: 13px;
        right: 20px;
        width: 38px;
        height: 35px;
        z-index: 1000;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding: 8px;
        background: transparent;
        border: none;
    }

   .menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--accent);
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        border-radius: 2px;
        position: relative;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 8px);
        background: var(--white-color); /* Garante que as barras do 'X' fiquem brancas */
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -8px);
        background: var(--white-color); /* Garante que as barras do 'X' fiquem brancas */
    }
}
