/* Modern Mobile Menu Styles */

/* Hide the old slicknav menu */
.slicknav_menu {
    display: none !important;
}

/* Modern Hamburger Button */
.modern-hamburger {
    display: none;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 5px;
}

.mobile_menu {
    position: relative;
    min-height: 50px;
}

.modern-hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #1F1F1F;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.modern-hamburger span:nth-child(1) {
    top: 0px;
}

.modern-hamburger span:nth-child(2) {
    top: 10px;
}

.modern-hamburger span:nth-child(3) {
    top: 20px;
}

/* Hamburger Animation when open */
.modern-hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.modern-hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.modern-hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Modern Mobile Menu Overlay */
.modern-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding-top: 80px;
}

.modern-mobile-menu.active {
    right: 0;
}

/* Menu Overlay Background */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern Menu Items */
.modern-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.modern-mobile-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
}

.modern-mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.modern-mobile-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
.modern-mobile-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
.modern-mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
.modern-mobile-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }
.modern-mobile-menu.active ul li:nth-child(6) { transition-delay: 0.35s; }
.modern-mobile-menu.active ul li:nth-child(7) { transition-delay: 0.4s; }

.modern-mobile-menu ul li a {
    display: block;
    padding: 18px 30px;
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.modern-mobile-menu ul li a:hover,
.modern-mobile-menu ul li a.active {
    color: #00d9ff;
    background: #f8f9fa;
    padding-left: 40px;
}

.modern-mobile-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.modern-mobile-menu ul li a:hover::before {
    width: 5px;
}

/* Book Appointment Button in Mobile Menu */
.modern-mobile-menu .mobile-book-btn {
    margin: 20px 30px;
}

.modern-mobile-menu .mobile-book-btn a {
    display: block;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #ffffff !important;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.modern-mobile-menu .mobile-book-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
    background: linear-gradient(135deg, #0099cc 0%, #00d9ff 100%);
}

/* Show on mobile only */
@media only screen and (max-width: 991px) {
    .modern-hamburger {
        display: block !important;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
    .modern-mobile-menu {
        width: 100%;
    }
}
