/* Navigation Menu Style Updates */
.nav-tabs {
    display: flex;
    list-style: none;
    overflow-x: auto;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    padding: 0 5px;
}

.nav-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.nav-tabs .tab {
    padding: 16px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    font-weight: 600;
    font-family: 'IBM Plex Sans', 'Inter', 'Urbanist', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-tabs .tab a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

/* Remove underlines from all links */
.nav-tabs .tab a:hover,
.nav-tabs .tab a:focus,
.nav-tabs .tab.active a {
    text-decoration: none;
}

/* Glow effect on hover */
.nav-tabs .tab:hover a {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 154, 0.5);
    transform: translateY(-2px);
}

/* Active tab styling */
.nav-tabs .tab.active a {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(0, 255, 154, 0.6);
    background: linear-gradient(to bottom, rgba(0, 255, 154, 0.08), transparent);
    border-radius: 4px 4px 0 0;
}

/* Underline animation */
.nav-tabs .tab a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 154, 0.4);
    opacity: 0;
    z-index: 2;
}

/* Pulsing effect on hover */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 154, 0.4); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 154, 0.7); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 154, 0.4); }
}

.nav-tabs .tab:hover a::after {
    transform: scaleX(0.7);
    opacity: 0.8;
    animation: pulseGlow 2s infinite;
}

.nav-tabs .tab.active a::after {
    transform: scaleX(1);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 154, 0.7);
}

/* Main navigation items styling */
.nav-tabs .tab[data-tab="home"] a,
.nav-tabs .tab[data-tab="blocks"] a,
.nav-tabs .tab[data-tab="transactions"] a,
.nav-tabs .tab[data-tab="tokens"] a,
.nav-tabs .tab[data-tab="wallets"] a,
.nav-tabs .tab[data-tab="token-factory"] a,
.nav-tabs .tab[data-tab="smart-contracts"] a,
.nav-tabs .tab[data-tab="network"] a {
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    background: linear-gradient(90deg, var(--text-color), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Special hover effects for main navigation items */
.nav-tabs .tab[data-tab="home"]:hover a,
.nav-tabs .tab[data-tab="blocks"]:hover a,
.nav-tabs .tab[data-tab="transactions"]:hover a,
.nav-tabs .tab[data-tab="tokens"]:hover a,
.nav-tabs .tab[data-tab="wallets"]:hover a,
.nav-tabs .tab[data-tab="token-factory"]:hover a,
.nav-tabs .tab[data-tab="smart-contracts"]:hover a,
.nav-tabs .tab[data-tab="network"]:hover a {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Active state for main navigation items */
.nav-tabs .tab.active[data-tab="home"] a,
.nav-tabs .tab.active[data-tab="blocks"] a,
.nav-tabs .tab.active[data-tab="transactions"] a,
.nav-tabs .tab.active[data-tab="tokens"] a,
.nav-tabs .tab.active[data-tab="wallets"] a,
.nav-tabs .tab.active[data-tab="token-factory"] a,
.nav-tabs .tab.active[data-tab="smart-contracts"] a,
.nav-tabs .tab.active[data-tab="network"] a {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 154, 0.8);
}

/* Special tab styling for Krvia Pump */
.nav-tabs .tab.special-tab a {
    background: linear-gradient(90deg, #FF3CAC, #784BA0, #2B86C5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
    animation: pulse-special 2s infinite;
}

.nav-tabs .tab.special-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF3CAC, #784BA0, #2B86C5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-tabs .tab.special-tab:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes pulse-special {
    0% {
        text-shadow: 0 0 5px rgba(255, 60, 172, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(43, 134, 197, 0.7);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 60, 172, 0.5);
    }
}

/* Media queries for responsive design */
@media (max-width: 991px) {
    .nav-tabs {
        padding-bottom: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none; /* For Firefox */
        -ms-overflow-style: none; /* For Internet Explorer and Edge */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* For Chrome, Safari and Opera */
    }
    
    .nav-tabs .tab {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .nav-tabs .tab[data-tab="home"] a,
    .nav-tabs .tab[data-tab="blockchain"] a,
    .nav-tabs .tab[data-tab="tokens"] a,
    .nav-tabs .tab[data-tab="wallet"] a,
    .nav-tabs .tab[data-tab="data"] a,
    .nav-tabs .tab[data-tab="governance"] a,
    .nav-tabs .tab[data-tab="ecosystem"] a,
    .nav-tabs .tab[data-tab="developers"] a,
    .nav-tabs .tab[data-tab="earn"] a,
    .nav-tabs .tab[data-tab="more"] a,
    .nav-tabs .tab[data-tab="krvia-pump"] a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .nav-tabs .tab {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .nav-tabs .tab[data-tab="home"] a,
    .nav-tabs .tab[data-tab="blockchain"] a,
    .nav-tabs .tab[data-tab="tokens"] a,
    .nav-tabs .tab[data-tab="wallet"] a,
    .nav-tabs .tab[data-tab="data"] a,
    .nav-tabs .tab[data-tab="governance"] a,
    .nav-tabs .tab[data-tab="ecosystem"] a,
    .nav-tabs .tab[data-tab="developers"] a,
    .nav-tabs .tab[data-tab="earn"] a,
    .nav-tabs .tab[data-tab="more"] a,
    .nav-tabs .tab[data-tab="krvia-pump"] a {
        font-size: 0.8rem;
    }
    
    /* Adjust submenu for mobile */
    .submenu {
        max-width: 100%;
    }
    
    .submenu-tabs {
        flex-direction: column;
    }
}