/* Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.show {
    transform: translateX(0) !important;
}

#mobile-menu .menu-panel {
    transition: transform 0.3s ease-in-out;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Custom scrollbar for mobile menu */
#mobile-menu nav {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#mobile-menu nav::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu nav::-webkit-scrollbar-track {
    background: #f7fafc;
}

#mobile-menu nav::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

#mobile-menu nav::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Animation for menu items */
#mobile-menu ul li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease-out forwards;
}

#mobile-menu ul li:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu ul li:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu ul li:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu ul li:nth-child(4) { animation-delay: 0.4s; }
#mobile-menu ul li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Backdrop animation */
#menu-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu.show #menu-backdrop {
    opacity: 1;
}

/* Menu toggle button animation */
#menu-toggle i {
    transition: transform 0.3s ease-in-out;
}

#menu-toggle.active i {
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #mobile-menu .fixed {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Focus styles for accessibility */
#menu-toggle:focus,
#menu-close:focus,
#mobile-menu a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hover effects for better UX */
#mobile-menu a:hover {
    transform: translateX(4px);
    transition: transform 0.2s ease-in-out;
}
