/* Custom Mobile Menu Styles */

/* Hide desktop menu on mobile */
.desktop-menu {
    display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav ul li:last-child {
    border-bottom: none;
}

.mobile-menu-nav ul li a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.mobile-menu-nav ul li a:hover::before,
.mobile-menu-nav ul li.active a::before {
    width: 100%;
}

.mobile-menu-nav ul li a:hover,
.mobile-menu-nav ul li.active a {
    padding-left: 35px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-nav ul li.active a {
    color: #ffd700;
    font-weight: 600;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-contact {
    margin-bottom: 20px;
}

.mobile-menu-contact p {
    color: #fff;
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-contact i {
    font-size: 18px;
    color: #ffd700;
}

.mobile-menu-footer .btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .main-menu-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .main-menu-wrapper .navbar-logo {
        order: 1;
        margin-right: auto;
    }
    
    .main-menu-wrapper .mobile-menu-toggle {
        order: 2;
    }
    
    .header-six .header-nav {
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .mobile-menu-sidebar {
        width: 280px;
    }
    
    .mobile-menu-nav ul li a {
        font-size: 15px;
        padding: 16px 20px;
    }
    
    .mobile-menu-header {
        padding: 15px 20px;
    }
    
    .mobile-menu-footer {
        padding: 20px;
    }
}

/* Dark Mode Support */
.dark-mode .mobile-menu-sidebar {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

.dark-mode .mobile-menu-header {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .mobile-menu-footer {
    background: rgba(0, 0, 0, 0.4);
}

/* Smooth Scrollbar for Mobile Menu */
.mobile-menu-nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-menu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
