/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    will-change: opacity;
    transform: translateZ(0);
}

.mobile-menu-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.mobile-menu-content nav {
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
}

.mobile-menu-content li {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.mobile-menu-content li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-content li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu-content li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu-content li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu-content li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-menu-content a {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    /* background: var(--card); */
    /* border: 1px solid var(--border); */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    will-change: transform;
    transform: translateZ(0);
}

.mobile-menu-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: var(--primary); */
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: 0;
}

.mobile-menu-content a:hover::before,
.mobile-menu-content a:focus::before {
    left: 0;
}

.mobile-menu-content a:hover,
.mobile-menu-content a:focus {
    color: var(--primary);
    border-color: var(--primary);
    /* background: var(--accent); */
    transform: translate3d(0.25rem, 0, 0);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-content a:active {
    transform: translate3d(0.25rem, 0, 0) scale(0.98);
}

/* Animation */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.dark .mobile-menu-content a:hover,
.dark .mobile-menu-content a:focus {
    background: var(--muted);
    border-color: var(--primary);
}

/* Responsive Design */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 2rem 1rem;
    }

    .mobile-menu-content a {
        font-size: 1.5rem;
        padding: 0.875rem 1rem;
        text-align: left;
    }
}

