/* ===================================
   Mobile Menu Sidebar Styles
   =================================== */

/* Mobile Menu Container */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0);
}

#mobile-menu.active {
    left: 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

/* Menu Close Button */
.menu-close {
    padding: 20px;
    text-align: right;
}

.menu-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-close-btn:hover {
    background: #f8f9fa;
    color: #112bbf;
    transform: rotate(90deg);
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    padding: 0 30px 30px;
    text-align: center;
}

.mobile-menu-logo img {
    max-width: 120px;
    height: auto;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-link i {
    font-size: 20px;
    margin-right: 15px;
    color: #112bbf;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: #f8f9fa;
    color: #112bbf;
    padding-left: 35px;
}

.mobile-menu-link:hover i {
    transform: scale(1.1);
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #112bbf;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 4px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 30px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu-contact {
    font-size: 14px;
    color: #666;
}

.mobile-menu-contact p {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.mobile-menu-contact i {
    margin-right: 10px;
    color: #112bbf;
    font-size: 16px;
}

/* Background Screen Overlay */
.bg-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.bg-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Body Hidden (prevent scroll when menu open) */
body.hidden {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 767px) {
    #mobile-menu {
        width: 280px;
    }

    .mobile-menu-link {
        padding: 16px 25px;
        font-size: 15px;
    }

    .mobile-menu-link i {
        font-size: 18px;
        margin-right: 12px;
    }

    .mobile-menu-footer {
        padding: 25px;
    }
}

@media (max-width: 380px) {
    #mobile-menu {
        width: 260px;
    }

    .mobile-menu-link {
        padding: 14px 20px;
    }

    .mobile-menu-logo img {
        max-width: 100px;
    }
}

/* Animation for menu items */
#mobile-menu.active .mobile-menu-item {
    animation: slideInLeft 0.4s ease-out forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

#mobile-menu.active .mobile-menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

#mobile-menu.active .mobile-menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

#mobile-menu.active .mobile-menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

#mobile-menu.active .mobile-menu-item:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar Styling */
#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

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

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

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #0d1f8f;
}

.mobile-view {
    display: block;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}