/* Style dla menu mobilnego */

/* Przycisk menu hamburgerowego - domyślnie ukryty */
#mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 2000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

/* Animacja przycisku menu hamburger */
#mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
    background-color: #ff4136 !important; /* Czerwony kolor dla X */
}

#mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
}

#mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
    background-color: #ff4136 !important; /* Czerwony kolor dla X */
}

/* Efekt najechania dla przycisku menu */
#mobile-menu-toggle:hover .bar {
    background-color: #0085b6;
}

/* Nakładka przyciemniająca tło podczas otwartego menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1550;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animacja menu tylko dla urządzeń mobilnych */
@media screen and (max-width: 768px) {
    /* Pokazuję przycisk menu hamburgerowego */
    #mobile-menu-toggle {
        display: block;
    }
    
    /* Style dla mobilnego menu */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #0a101f;
        z-index: 1600;
        transition: all 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Kiedy menu jest otwarte */
    nav.active {
        right: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 60px 0;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
        position: relative;
    }
    
    nav ul li .nav-link {
        font-size: 1.3rem;
        padding: 12px 15px;
        display: block;
        width: 100%;
        transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        border-radius: 4px;
        cursor: pointer;
    }
    
    nav ul li .nav-link:hover {
        transform: translateY(-3px);
    }
} 