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

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

.nav-logo .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

.bar {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: var(--text-light);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item span {
    color: var(--text-secondary);
}

/* Dark mode navigation styles */
[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .nav-menu {
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-link::after {
    background: var(--primary-color);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .hamburger {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

[data-theme="dark"] .bar {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .breadcrumb {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Improve navbar styling on mobile */
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile menu backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .nav-menu.active::before {
        opacity: 0;
        visibility: hidden;
    }

    .nav-item {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }

    .nav-link {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
        display: block;
        width: calc(100% - 2rem);
        border-radius: 12px;
        margin: 0 1rem;
        transition: all 0.3s ease;
        position: relative;
        font-weight: 500;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(138, 47, 237, 0.3);
    }

    .nav-link:active {
        transform: translateX(2px) scale(0.98);
    }

    .nav-link::after {
        display: none;
    }

    /* Dark mode mobile menu styles */
    [data-theme="dark"] .nav-menu {
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-top-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .nav-link:hover {
        background: var(--primary-color);
        color: white;
    }
}

@media (max-width: 480px) {
    /* Extra small screen hamburger improvements */
    .hamburger {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }

    .bar {
        width: 20px;
        height: 2px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin: 0 0.5rem;
    }

    /* Improve breadcrumb on mobile */
    .breadcrumb {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .breadcrumb-list {
        padding: 0 15px;
    }
}
