
/* ===========================
   NAVBAR BASE
=========================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    background-color: #ffffff;
}

.navbar-brand {
    font-weight: 700;
    color: #4f46e5 !important;
    font-size: 1.5rem;
}

.nav-link {
    color: #4b5563 !important;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
    margin: 0 10px;
}

.nav-link:hover {
    color: #4f46e5 !important;
}

/* ===========================
   MEGA MENU (About Us - Grid 4)
=========================== */
.app-mega-menu {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
    width: 900px;
    max-width: 95vw;
}

.app-mega-header {
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.app-mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 18px 12px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.app-mega-item:hover {
    background-color: #f8fafc;
    border-color: #f1f5f9;
    transform: translateY(-2px);
}

.app-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.app-item-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.app-item-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .app-mega-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        left: 50% !important;
    }

    .app-mega-dropdown:hover .app-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===========================
   CATEGORY MEGA MENU (Services)
=========================== */
.app-category-mega {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
    width: 750px;
    max-width: 95vw;
    /* max-height: 85vh; */
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.category-section {
    margin-bottom: 1.5rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section.category-hidden {
    display: none;
}

.category-section.category-show-animation {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-left: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(4px);
}

.category-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.category-item-content {
    flex: 1;
}

.category-item-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.category-item-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ===========================
   CATEGORY ACTIONS (Load More & View All)
=========================== */
.category-actions {
    display: flex;
    gap: 10px;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #f1f5f9;
}

.btn-load-more,
.btn-view-all {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-load-more {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
    transform: translateY(-2px);
}

.btn-view-all {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.category-mega-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.category-mega-container::-webkit-scrollbar {
    width: 6px;
}

.category-mega-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.category-mega-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.category-mega-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (min-width: 992px) {
    .app-category-mega {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        left: 50% !important;
    }

    .app-mega-dropdown:hover .app-category-mega {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===========================
   LANGUAGE PICKER
=========================== */
.dropdown-toggle-language {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    text-decoration: none;
}

.dropdown-toggle-language:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* ===========================
   MOBILE MENU BUTTON
=========================== */
.btn-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4b5563;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-mobile-menu:hover {
    color: #4f46e5;
}

/* ===========================
   MOBILE SIDEBAR
=========================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.btn-close-sidebar:hover {
    color: #1e293b;
}

.mobile-sidebar-content {
    /* flex: 1; */
    height: 100%;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-section {
    padding: 0 1rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.mobile-menu-item:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.mobile-menu-item i {
    font-size: 0.875rem;
    transition: transform 0.3s;
}

.mobile-menu-dropdown {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0.5rem;
}

.mobile-dropdown-content.active {
    max-height: 100%;
}

/* Category Group in Mobile */
.mobile-category-group {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-category-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-category-title {
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.mobile-product-item {
    display: flex;
    gap: 12px;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-product-item:hover {
    background: #f8fafc;
}

.mobile-product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-product-content {
    flex: 1;
}

.mobile-product-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.mobile-product-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.3;
}

.mobile-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1199.98px) {
    .mega-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .mobile-sidebar {
        width: 100%;
        max-width: 380px;
    }
    
    .mega-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .mobile-sidebar {
        width: 100%;
        height: 100%;
        max-width: 90vw;
    }
    
    .mega-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .category-items {
        grid-template-columns: 1fr;
    }
}
