/* Navigation Submenu - AlphaGoGoGo Style */
.nav-item {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
}

.sub-item {
    margin: 0;
    padding: 0;
}

.sub-link {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.sub-link:hover {
    color: #8B5CF6 !important;
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(4px);
}

/* When header is not scrolled (navy background) */
.alpha-header:not(.scrolled) .sub-menu {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alpha-header:not(.scrolled) .sub-link {
    color: rgba(255, 255, 255, 0.9);
}

.alpha-header:not(.scrolled) .sub-link:hover {
    color: #8B5CF6 !important;
    background: rgba(139, 92, 246, 0.2);
}

/* Active Menu Indicator - Current Page */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #8B5CF6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Active state for current page */
.nav-item.active .nav-link::after,
.nav-link.active::after {
    width: 80%;
}

.nav-item.active .nav-link,
.nav-link.active {
    color: #8B5CF6 !important;
}

/* For scrolled header */
.alpha-header.scrolled .nav-item.active .nav-link,
.alpha-header.scrolled .nav-link.active {
    color: #8B5CF6 !important;
}
