/* Hamburger Menu Button Fix - Ensures visibility on mobile */

/* Force hamburger button to show on mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        padding: 8px;
        background: transparent;
        border: none;
        z-index: 1001;
        position: relative;
        margin-left: auto;
    }

    .nav-toggle span {
        width: 24px;
        height: 3px;
        background: #553575 !important; /* Bazical purple - force color */
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
        display: block !important;
        transform-origin: center;
        opacity: 1 !important; /* Ensure visibility */
    }

    /* Hamburger animation when active */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #553575 !important; /* Keep purple when active */
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #553575 !important; /* Keep purple when active */
    }

    /* Ensure nav container has proper layout */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }

    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        overflow-y: auto;
        z-index: 1000;
    }
}

/* Ensure hamburger is hidden on desktop */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}

/* Additional fallback for hamburger visibility */
.nav-toggle span {
    background-color: #553575 !important;
    color: #553575 !important;
}

/* Debug styles - remove after testing */
@media (max-width: 768px) {
    .nav-toggle {
        /* Add a subtle border to see the button area */
        border: 1px solid rgba(85, 53, 117, 0.2) !important;
        border-radius: 4px;
    }
    
    .nav-toggle:hover {
        background: rgba(85, 53, 117, 0.1) !important;
    }
}
