/* Clean Navbar Styles - Fixed Version */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: translateY(-1px);
    background: rgba(74, 144, 226, 0.05);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.nav-logo:hover img {
    border-color: #4A90E2;
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-logo span {
    font-weight: 700;
    background: linear-gradient(135deg, #4A90E2, #357abd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(74, 144, 226, 0.05);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link {
    text-decoration: none;
    color: #4A90E2;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A90E2, #357abd);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(74, 144, 226, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
}

.hamburger:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #4A90E2, #357abd);
    margin: 2px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-logo img {
        width: 35px;
        height: 35px;
    }
    
    .nav-logo span {
        font-size: 1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(74,144,226,0.2);
        border-bottom: 2px solid rgba(74,144,226,0.1);
        padding: 40px 20px;
        gap: 12px;
        border-radius: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        padding: 16px 25px;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
        font-size: 1.1rem;
        font-weight: 600;
        border: 2px solid rgba(74,144,226,0.1);
        background: rgba(74,144,226,0.05);
        backdrop-filter: blur(10px);
        color: #4A90E2;
        width: 100%;
        max-width: 300px;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: white;
        transform: translateX(8px) scale(1.02);
        border-color: rgba(255,255,255,0.3);
        box-shadow: 0 8px 25px rgba(74,144,226,0.4);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        padding: 30px 15px;
    }
    
    .nav-menu .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
        max-width: 280px;
    }
}