.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 25px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 105, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(233, 30, 99, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.navbar:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 105, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .navbar:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(233, 30, 99, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--shadow-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.navbar-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.navbar-link:hover::before {
    left: 0;
    opacity: 0.1;
}

.navbar-item.active .navbar-link {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
    transform: translateY(-1px);
}

.navbar-item.active .navbar-link::before {
    opacity: 0;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--accent-secondary);
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        top: 10px;
    }
    
    .navbar-container {
        padding: 12px 20px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-radius: 0 0 25px 25px;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 105, 180, 0.2);
        border-top: 1px solid rgba(255, 105, 180, 0.3);
        margin-top: 0;
        z-index: 999;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-brand h2 {
        font-size: 1.3rem;
    }
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 50%);
    border-radius: 25px;
    pointer-events: none;
    z-index: -1;
}
