header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 19, 19, 0.95);
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    width: 70px;
    animation: fadeInScale 0.6s ease-out 0.15s backwards;
}

#logo {
    width: 70px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(90deg, #7BE760, #00D2A0);
    padding: 18px 35px;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(123, 231, 96, 0.3);
    animation: slideUp 0.5s ease-out 0.1s backwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav button {
    border: none;
    background: none;
    color: #001313;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 5px 15px;
}

nav button:hover {
    transform: translateY(-4px) scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

nav button.active {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

    50% {
        text-shadow: 0 0 40px rgba(123, 231, 96, 0.8);
    }
}

/* ===== SELETOR DE IDIOMA ===== */
.language-selector {
    position: relative;
    margin-left: 30px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid rgba(123, 231, 96, 0.4);
    background: rgba(123, 231, 96, 0.05);
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    background: rgba(123, 231, 96, 0.1);
    border-color: rgba(123, 231, 96, 0.7);
    transform: translateY(-2px);
}

.lang-toggle.active {
    background: rgba(123, 231, 96, 0.2);
    border-color: #7BE760;
    box-shadow: 0 0 20px rgba(123, 231, 96, 0.3);
}

.lang-current {
    font-weight: 700;
    min-width: 20px;
}

.lang-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.lang-toggle.active .lang-icon {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(0, 19, 19, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid #7BE760;
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scaleY(0.9);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(123, 231, 96, 0.2);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.lang-option {
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: rgba(123, 231, 96, 0.15);
    transform: translateX(5px);
}

.lang-option.active {
    background: rgba(123, 231, 96, 0.3);
    color: #7BE760;
    font-weight: 700;
}

.lang-option.active::before {
    content: '✓';
    margin-left: auto;
    font-weight: 700;
    color: #7BE760;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .language-selector {
        margin-left: 15px;
    }

    .lang-toggle {
        padding: 10px 15px;
        font-size: 12px;
    }

    .lang-dropdown {
        min-width: 180px;
    }

    .lang-option {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 10px;
    }

    .lang-toggle {
        padding: 8px 12px;
        font-size: 11px;
        border-width: 1px;
    }

    .lang-current {
        min-width: 18px;
    }

    .lang-icon {
        width: 12px;
        height: 12px;
    }

    .lang-dropdown {
        min-width: 160px;
        top: calc(100% + 8px);
    }

    .lang-option {
        padding: 10px 12px;
        font-size: 12px;
    }
}