/* Improved Mobile Menu Styles */

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
    #mobile-menu-toggle,
    #mobile-menu {
        display: none !important;
    }
}

/* Mobile Menu Button Animation */
#mobile-menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

#mobile-menu-toggle.menu-open .fa-bars::before {
    content: "\f00d"; /* X icon */
}

/* Mobile Menu Container */
#mobile-menu {
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Animation Keyframes */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Mobile Menu Links */
#mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu a:hover {
    background: linear-gradient(to right, #1e40af10, transparent);
    padding-left: 2rem;
}

/* Services Dropdown Button */
#services-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

#services-toggle:hover {
    background: linear-gradient(to right, #1e40af10, transparent);
}

/* Services Icon Animation */
.services-icon {
    transition: transform 0.3s ease;
}

.services-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Services Submenu */
#services-submenu {
    background: #f3f4f6;
    padding: 0.5rem 0;
}

#services-submenu a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 1rem;
    color: #4b5563;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

#services-submenu a:hover {
    background: linear-gradient(to right, #dc262610, transparent);
    color: #dc2626;
    padding-left: 3.5rem;
}

/* CTA Button in Mobile Menu */
#mobile-menu .mobile-cta {
    margin: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    text-align: center;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

#mobile-menu .mobile-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

/* Menu Item Icons */
.menu-icon {
    display: inline-block;
    width: 20px;
    margin-right: 12px;
    color: #1e40af;
}

/* Active Page Indicator */
#mobile-menu a.active {
    background: linear-gradient(to right, #1e40af15, transparent);
    color: #1e40af;
    font-weight: 600;
    border-left: 4px solid #1e40af;
}

/* Smooth Transitions */
#mobile-menu * {
    transition: all 0.3s ease;
}