/* Dropdown Navigation Styles */

.nav-item {
    position: relative;
}

/* Remove the arrow indicator */
.nav-item.has-dropdown .nav-link::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99999;
    border-radius: 0;
    margin-top: 0;
}

/* Add invisible bridge between nav-link and dropdown */
.nav-item.has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 99998;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FFA500 0%, #FF6347 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover {
    background: transparent;
    color: #FFA500;
    padding-left: 28px;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover::after {
    opacity: 1;
}

.dropdown-item i {
    display: none;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
    margin: 5px 0;
}

/* Single Column Dropdown for Services */
.dropdown-menu.dropdown-services {
    min-width: 280px;
}

/* Enhanced hover for service items */
.dropdown-services .dropdown-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-services .dropdown-item:hover {
    transform: translateX(8px);
}

/* Mobile - Hide Dropdowns */
@media (max-width: 768px) {
    .dropdown-menu {
        display: none !important;
    }
    
    .nav-item.has-dropdown::before {
        display: none;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu {
        min-width: 220px;
    }
    
    .dropdown-menu.dropdown-services {
        min-width: 260px;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .dropdown-item:hover {
        padding-left: 23px;
    }
}
