/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-icon {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Active state for burger icon (X shape) */
.burger-menu.active .burger-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.active .burger-icon:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark, #1a1a2e);
        padding: 20px;
        z-index: 1000;
    }

    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header-nav ul li a {
        display: block;
        text-align: center;
        padding: 12px;
        color: #fff;
    }

    .header-container {
        position: relative;
    }

    /* Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* MOBILE-MENU-ZFIX */
@media (max-width: 768px) {
    #mobileMenu,
    .header-nav,
    .header-nav.active,
    [class*="mobile-menu"],
    [class*="mobile_menu"],
    nav.active,
    nav.open {
        z-index: 99999 !important;
    }
    .mobile-menu-overlay,
    .menu-overlay,
    #menuOverlay {
        z-index: 99998 !important;
        pointer-events: auto;
    }
    .mobile-menu-overlay.active ~ *,
    .menu-overlay.active ~ * {
        /* Don't block menu */
    }
}
