/* Services Dropdown */
.nav-link.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
    z-index: 1000;
    max-height: 70vh;
    overflow: visible;
}

.nav-link.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.3);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.main-service {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-item.main-service:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Submenu Styles */
.dropdown-item.has-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

.submenu-arrow {
    transition: transform var(--transition-smooth);
    margin-left: 0.5rem;
}

.dropdown-item.has-submenu:hover .submenu-arrow {
    transform: rotate(0deg);
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-smooth);
    z-index: 1001;
    margin-left: 5px;
}

/* Light mode submenu */
[data-theme="light"] .submenu {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dropdown-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.2);
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mobile responsiveness for submenus */
@media (max-width: 768px) {
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        margin-left: 0;
        background: var(--bg-tertiary);
    }
    
    .dropdown-item.has-submenu:hover .submenu {
        transform: none;
    }
    
    .submenu-item {
        padding-left: 2rem;
        background: transparent;
    }
    
    .submenu-arrow {
        display: none;
    }
} 