/* Header Container */
.futuristic-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

/* Navigation */
.futuristic-nav {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated Accent Line */
.nav-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
            90deg,
            transparent,
            var(--primary-glow),
            var(--secondary-glow),
            transparent
    );
    animation: lineMove 3s linear infinite;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.logo-text {
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--primary-glow);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
}

/* Hover Background Effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(0, 212, 255, 0.2),
            transparent
    );
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Glowing Border Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
            90deg,
            var(--primary-glow),
            var(--secondary-glow)
    );
    transform: translateX(-50%);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Active Link State */
.nav-link.active {
    color: var(--text-light);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
}

.nav-link.active::after {
    width: 80%;
}

/* Futuristic Particles Effect */
.futuristic-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(123, 47, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: particleFloat 8s ease-in-out infinite;
}

/* Holographic shimmer */
.nav-link {
    background-size: 200% 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%) 100% 0;
    transition: all 0.3s ease, background-position 0.6s ease;
}

.nav-link:hover {
    background-position: 0 0;
}

.theme-toggle {
    margin-left: 1.5rem;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    padding: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-glow);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

/* Light theme knob position */
:root[data-theme="light"] .theme-toggle__icon {
    transform: translateX(16px);
}


@keyframes particleFloat {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .futuristic-header {
        padding: 0.5rem 0;
    }

    .futuristic-nav {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 3;
        order: 3;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        order: 4;
        margin-top: 1rem;
        background: rgba(10, 10, 30, 0.95);
        border-radius: 12px;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .logo {
        font-size: 1.2rem;
        order: 1;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Scroll Effect */
.futuristic-header.scrolled .futuristic-nav {
    background: rgba(10, 10, 30, 0.95);
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}