.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e1e1e 0%, #252836 50%, #1e2030 100%);
    color: var(--text-color);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(78, 145, 223, 0.2);
    position: relative;
    background: linear-gradient(90deg, 
        var(--text-color) 0%, 
        #9bc8ff 20%, 
        #4e91df 40%, 
        #5a94e0 60%,
        #75b2ff 80%,
        var(--text-color) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: waveColors 8s ease infinite;
    transition: text-shadow 0.3s ease;
    letter-spacing: 0.01em;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    backface-visibility: hidden;
}

.navbar-brand a:hover {
    text-shadow: 0 0 2px rgba(78, 145, 223, 0.3);
}

.navbar-brand a::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%,
        transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerEffect 4s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes waveColors {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerEffect {
    0% { background-position: -100% 50%; }
    100% { background-position: 200% 50%; }
}

.navbar-items {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 20px;
}

.navbar-item a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
}

.navbar-item a:hover {
    color: #9bc8ff;
    background-color: rgba(78, 145, 223, 0.1);
    transform: translateY(-2px);
}

.navbar-item a.active {
    background: rgba(78, 145, 223, 0.15);
    color: #9bc8ff;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(78, 145, 223, 0.1);
    padding: 8px 24px;
    margin: 0 -9px;
}

.navbar-item a.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4e91df, #75b2ff, #4e91df);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        height: 0;
        background: linear-gradient(135deg, #1e1e1e 0%, #252836 50%, #1e2030 100%);
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu.active {
        height: auto;
        padding-bottom: 15px;
    }

    .navbar-items {
        flex-direction: column;
        padding: 0 20px;
    }

    .navbar-item {
        margin: 15px 0;
    }

    .navbar-item a.active {
        background: rgba(78, 145, 223, 0.15);
        border-radius: 6px;
        width: 100%;
        padding: 10px 24px;
        margin: 0;
    }
}
