/* ========================================
   Mobile Navigation - Left Slide Style
   ======================================== */

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: #771D1D;
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav-panel.active {
    left: 0;
}

/* Navigation Header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-logo img {
    height: 45px;
    width: auto;
}

.mobile-nav-logo span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* Close Button */
.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

/* Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #EBADCC 0%, #EBADCC 100%);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.mobile-nav-menu > li > a:hover::before,
.mobile-nav-menu > li.active > a::before {
    height: 70%;
}

.mobile-nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

/* Dropdown Arrow Icon */
.mobile-nav-menu .dropdown-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-nav-menu .dropdown-arrow svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.6);
    transition: stroke 0.3s ease;
}

.mobile-nav-menu li.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-menu li.open > a .dropdown-arrow svg {
    stroke: #EBADCC;
}

/* Sub Menu - Level 1 */
.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease;
}

.mobile-sub-menu.open {
    max-height: 1000px;
}

.mobile-sub-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 12px 35px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.mobile-sub-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #e94560;
    padding-left: 40px;
}

/* Sub Menu - Level 2 */
.mobile-sub-menu .mobile-sub-menu {
    background: rgba(0, 0, 0, 0.15);
}

.mobile-sub-menu .mobile-sub-menu > li > a {
    padding-left: 50px;
}

.mobile-sub-menu .mobile-sub-menu > li > a:hover {
    padding-left: 55px;
}

/* Sub Menu - Level 3 */
.mobile-sub-menu .mobile-sub-menu .mobile-sub-menu > li > a {
    padding-left: 65px;
}

.mobile-sub-menu .mobile-sub-menu .mobile-sub-menu > li > a:hover {
    padding-left: 70px;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Footer */
.mobile-nav-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-social {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-nav-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-social a:hover {
    background: #e94560;
    transform: translateY(-3px);
}

.mobile-nav-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-nav-contact {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
}

.mobile-nav-contact a {
    color: #fff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .main-nav .container-fluid {
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .mobile-nav-panel,
    .mobile-nav-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Body Lock when menu is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* Animation for menu items */
.mobile-nav-panel.active .mobile-nav-menu > li {
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(7) { animation-delay: 0.4s; }
.mobile-nav-panel.active .mobile-nav-menu > li:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar Styling */
.mobile-nav-panel::-webkit-scrollbar {
    width: 5px;
}

.mobile-nav-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.mobile-nav-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}