/* Navigation Bar Styles */

/* Main Navigation Container */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Navigation Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo/Brand */
.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

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

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

/* Navigation Links */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    transform: rotate(180deg);
}

.theme-icon {
    transition: all 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation States */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    [data-theme="light"] .nav-menu {
        background-color: var(--background-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background-color: rgba(99, 102, 241, 0.2);
        border-left: 4px solid var(--primary-color);
    }
    
    .theme-toggle {
        margin-top: 1rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Scroll Effect for Navbar */
.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
}
