/* Enhanced mobile menu for better usability */

@media (max-width: 992px) {
    /* Mobile menu container */
    .menu-items {
        transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        position: fixed;
        top: 70px !important; /* Start below the header */
        height: calc(100% - 70px) !important; /* Adjust height to avoid overlap */
        padding-top: 20px !important;
        box-sizing: border-box;
        overflow-y: auto;
    }
    
    /* Menu items spacing for touch */
    .menu-item {
        padding: 15px 0;
        font-size: 18px;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    /* Improve menu button visibility and interaction */
    .menu-btn {
        z-index: 1001;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    /* Better visual feedback for menu items */
    .menu-item:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    /* Add a backdrop when menu is open */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        backdrop-filter: blur(3px);
        transition: opacity 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Improve current page indicator */
    .menu-item.active {
        color: var(--primary-color);
        position: relative;
    }
    
    .menu-item.active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: var(--primary-color);
    }
    
    /* Special styling for download CV button */
    .download-cv {
        margin: 15px auto;
        padding: 12px 25px !important;
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Smaller phones */
@media (max-width: 480px) {
    .menu-items {
        width: 85%; /* Take up more of the screen on small devices */
    }
    
    .menu-item {
        padding: 12px 0;
        font-size: 16px;
    }
}
