/* ============================================
   NAVIGATION BAR STYLES
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.navbar-logo a:hover {
    color: var(--primary-dark);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.navbar-logo a:hover .logo-img {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.navbar-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 80%;
}

.navbar-link:hover {
    color: var(--primary-color);
}

.navbar-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
        padding: 0 var(--spacing-sm);
    }
    
    .navbar-logo a {
        font-size: 1.25rem;
        gap: 0.625rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .navbar-toggle {
        display: flex;
        padding: var(--spacing-xs);
        /* Tăng khu vực touch */
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-sm);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-item {
        width: 100%;
    }
    
    .navbar-link {
        display: block;
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        text-align: center;
        border-radius: var(--radius-md);
        font-size: 1.125rem;
        /* Tăng khu vực touch */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-link:hover,
    .navbar-link:active {
        background: var(--bg-light);
        color: var(--primary-color);
    }
    
    .navbar-link::after {
        display: none;
    }
    
    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 56px;
        padding: 0 var(--spacing-xs);
    }
    
    .navbar-logo a {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .navbar-toggle {
        min-width: 40px;
        min-height: 40px;
        gap: 4px;
    }
    
    .navbar-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .navbar-menu {
        top: 56px;
        height: calc(100vh - 56px);
        padding: var(--spacing-md) var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .navbar-link {
        padding: var(--spacing-sm);
        font-size: 1rem;
        min-height: 40px;
    }
    
    body {
        padding-top: 56px;
    }
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 70px;
}

