/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    /* Mobile Header Layout */
    .main-header .navbar {
        padding: 26px 0;
        background-color: #0e110d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        background: none;
        border: none;
        width: 35px;
        height: 35px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
        padding: 5px;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 3px 0;
        transition: 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #007bff;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #007bff;
    }
    
    /* Mobile Logo */
    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    
    .mobile-logo img {
        max-width: 80px;
        height: auto;
    }
    
    /* Mobile Search Icon */
    .mobile-search-icon {
        font-size: 20px;
        color: #333;
        cursor: pointer;
        z-index: 1001;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-search-icon:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu Container */
    .mobile-menu-container {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100vh;
        background-color: #000000;
        z-index: 1001;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-container.active {
        left: 0;
    }
    
    /* Custom Scrollbar */
    .mobile-menu-container::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-menu-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .mobile-menu-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .mobile-menu-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: black;
        color: white;
    }
    
    .mobile-menu-logo img {
        max-width: 66px;
        height: auto;
        /* filter: brightness(0) invert(1); */
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 24px;
        color: white;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    /* Mobile Search Form */
    .mobile-search-form {
        padding: 20px;
        /* border-bottom: 1px solid #eee; */
        background-color: #000000;
    }
    
    .mobile-search-form .input-group {
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-search-form .form-control {
        border: none;
        border-radius: 0;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .mobile-search-form .form-control:focus {
        box-shadow: none;
        border: none;
    }
    
    .mobile-search-form .btn {
        border: none;
        border-radius: 0;
        background: #b18a55;
        padding: 12px 20px;
    }
    
    /* Mobile Menu Content */
    .mobile-menu-content {
        padding: 0;
    }
    
    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav-item {
        /* border-bottom: 1px solid #f0f0f0; */
        position: relative;
    }
    
    .mobile-nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        color: #b18a55;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .mobile-nav-link:hover::before {
        left: 100%;
    }
    
    .mobile-nav-link:hover {
        background-color: #000000;
        color: #b18a55 !important;
        text-decoration: none;
        padding-left: 25px;
    }
    
    /* Submenu Toggle */
    .submenu-toggle {
        font-size: 14px;
        transition: transform 0.3s ease;
        color: #666;
        margin-left: 10px;
    }
    
    .mobile-nav-item.active > .mobile-nav-link .submenu-toggle {
        transform: rotate(180deg);
        color: #007bff;
    }
    
    /* Mobile Submenu */
    .mobile-submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .mobile-nav-item.active > .mobile-submenu {
        max-height: 1000px;
        color: red;
        background: #000000;
    }
    
    .mobile-submenu .mobile-nav-link {
        padding: 15px 20px 15px 45px;
        font-size: 14px;
        font-weight: 400;
        color: #555;
        border-left: 3px solid transparent;
    }
    
    .mobile-submenu .mobile-nav-link:hover {
        border-left-color: #007bff;
        background-color: white;
        padding-left: 50px;
    }
    
    .mobile-submenu .mobile-submenu .mobile-nav-link {
        padding-left: 65px;
        font-size: 13px;
    }
    
    .mobile-submenu .mobile-submenu .mobile-nav-link:hover {
        padding-left: 70px;
    }
    
    /* Hide desktop menu */
    .main-menu {
        display: none !important;
    }
    
    /* Hide desktop search */
    .header-btn {
        display: none !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Loading Animation */
    .mobile-menu-container.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
    }
    
    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
}

/* Desktop styles - hide mobile elements */
@media (min-width: 992px) {
    .mobile-menu-toggle,
    .mobile-logo,
    .mobile-search-icon,
    .mobile-menu-overlay,
    .mobile-menu-container {
        display: none !important;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
    .mobile-menu-container {
        width: 350px;
        left: -350px;
    }
    
    .mobile-nav-link {
        color: #b18a55;
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .mobile-submenu .mobile-nav-link {
        padding: 18px 25px 18px 50px;
        font-size: 15px;
        color: #b18a55;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .mobile-menu-container {
        width: 280px;
        left: -280px;
    }
    
    .mobile-logo img {
        max-width: 70px;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-search-form {
        padding: 15px;
    }
}
