/* Enhanced Navigation Styles */

/* Base Nav Link Animation */
.nav-menu-link {
    overflow: visible;
    position: relative;
    /* Ensure no transform affects layout shift */
    transform: none !important;
}

.nav-menu-text-wrapper {
    position: relative;
    transition: none !important;
    transform: none !important;
}

.nav-menu-link:hover .nav-menu-text-wrapper {
    transform: none !important;
}

.nav-text {
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hide the duplicate text used for slide animation */
/* Hide the duplicate text used for slide animation */
.nav-text.nav-text-style {
    display: none !important;
}

/* Hover Effect: Color Change & Glow */
.nav-menu-link:hover .nav-text {
    color: #6df780;
    text-shadow: 0 0 15px rgba(109, 247, 128, 0.5);
}

/* Active State also gets the glow */
.nav-menu-link.w--current .nav-text {
    color: #6df780;
    text-shadow: 0 0 10px rgba(109, 247, 128, 0.3);
}

/* Dropdown Styles */
.dropdown-wrapper {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: -20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 260px;
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    list-style: none;
    margin-top: 15px;
}

/* Triangle/Arrow for Dropdown */
.dropdown-list::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
}

/* Show Dropdown on Hover */
.dropdown-wrapper:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-wrapper:hover .desktop-arrow {
    transform: rotate(45deg);
}

/* Dropdown Links */
.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 25px;
    border-left: 2px solid #6df780;
}

.desktop-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 4px;
    font-size: 18px;
    color: #6df780;
}

/* Mobile Adjustments (optional, to ensure it doesn't break mobile) */
@media (max-width: 991px) {
    .dropdown-list {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
        /* Hidden by default on mobile, toggled via JS usually, or hover not applicable */
    }

    .dropdown-wrapper:hover .dropdown-list {
        display: block;
    }
}