/* Services Dropdown - Added for Mega Menu */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 0;
    /* Align with other nav items */
}

/* Show dropdown on hover */
.nav-item-dropdown:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Keep X centering */
    pointer-events: auto;
}

/* Dropdown Container */
.services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* Center and offset */
    width: 1200px;
    /* Mega menu width */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
    /* Prevent accidental clicks when hidden */
    margin-top: 15px;
}

/* Bridge to prevent gap closing menu */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Arrow indicator on top of dropdown */
.services-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

/* Dropdown Columns */
.dropdown-column {
    text-align: left;
}

.dropdown-column h3 {
    color: #2d3436;
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-column h3 i {
    color: #636e72;
    /* Secondary/Gold color */
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Reset generic gap */
}

.dropdown-column ul li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.dropdown-column ul li a {
    color: #636E72;
    font-size: 0.95rem;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    width: 100%;
    justify-content: flex-start;
    /* Ensure left alignment */
}

/* Remove nav link hover effect for dropdown items */
.services-dropdown a:hover {
    color: #2d3436;
    transform: translateX(5px);
    background: #f8f9fa;
    box-shadow: none;
    /* Override possible shadows */
}

.dropdown-column ul li a i {
    width: 24px;
    color: #b2bec3;
    font-size: 1rem;
    text-align: center;
    transition: color 0.2s;
}

.dropdown-column ul li a:hover i {
    color: #0d6efd;
    /* Primary Blue from brand */
}

/* View All Link */
.dropdown-view-all {
    margin-top: 15px;
    text-align: center;
    grid-column: 1 / -1;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
}

.dropdown-view-all a {
    display: inline-flex !important;
    width: auto !important;
    justify-content: center;
    background: linear-gradient(135deg, #2d3436, #000000);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
}

.dropdown-view-all a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(45, 52, 54, 0.3) !important;
}

/* Mobile Responsive Styles (< 992px) */
@media (max-width: 992px) {
    .nav-item-dropdown:hover .services-dropdown {
        display: none;
        /* Disable hover behavior on mobile */
    }

    .services-dropdown {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Hidden by default, toggled via JS */
        background: rgba(124, 58, 237, 0.05);
        /* Light purple background for nested look */
        box-shadow: none;
        padding: 15px 0;
        grid-template-columns: 1fr;
        /* Single column */
        gap: 0;
        border: none;
        margin-top: 10px;
        pointer-events: auto;
        border-radius: 0;
    }

    .services-dropdown::after,
    .services-dropdown::before {
        display: none;
        /* Hide arrow and bridge */
    }

    .nav-item-dropdown.active .services-dropdown {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dropdown-column {
        margin-bottom: 15px;
    }

    .dropdown-column h3 {
        font-size: 0.95rem;
        color: var(--primary-color);
        border-bottom: 1px solid rgba(124, 58, 237, 0.2);
        margin: 10px 0 8px;
        padding-left: 15px;
        padding-bottom: 8px;
        font-weight: 600;
    }

    .dropdown-column ul li a {
        padding: 12px 15px;
        color: var(--text-color);
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(124, 58, 237, 0.1);
        border-radius: 0;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dropdown-column ul li a:hover {
        background: rgba(124, 58, 237, 0.1);
        transform: translateX(8px);
        color: var(--primary-color);
    }

    .dropdown-column ul li a i {
        color: var(--primary-color);
        width: 20px;
        opacity: 0.7;
    }

    .dropdown-column ul li a:hover i {
        opacity: 1;
    }

    .dropdown-view-all {
        display: none;
        /* Hide view all button on mobile */
    }

    /* Chevron rotation */
    .nav-item-dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
            filter: blur(4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }
    }
}