/* ============================================
   ENHANCED HAMBURGER MENU WITH PARTICLES
   ============================================ */
.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 6000;
    width: 50px;
    height: 50px;
    background-color: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--accent-red);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    overflow: visible;
}

    .hamburger:hover {
        box-shadow: 0 0 20px var(--accent-red);
        transform: scale(1.05);
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background-color: var(--accent-red);
        transition: all 0.3s;
        position: relative;
    }

.hamburger.hide-bars span {
    opacity: 0;
    transition: opacity 0.2s;
}

/* Particle container */
.hamburger-particles {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 2500;
}
.hamburger-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.9;
    /* start centered inside the hamburger */
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

/* animate from center out to the target offset (explode) */
@keyframes particle-explode {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)));
        opacity: 0;
    }
}

/* animate from target offset back to center (implode) */
@keyframes particle-implode {
    from {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)));
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Active state - X formation with glitch */
.hamburger.active {
    animation: hamburger-glitch 0.5s ease-out;
}

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

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

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

/* ============================================
   SIDEBAR NAVIGATION WITH GLOWS
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    border-left: 2px solid var(--accent-red);
    z-index: 1999;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.3);
}

    .sidebar.active {
        right: 0;
    }

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-white);
}

.logo-bracket {
    color: var(--accent-red);
    font-size: 1.5rem;
    font-weight: bold;
    animation: pulse-glow 2s ease-in-out infinite;
}

.sidebar-header h2 {
    color: var(--neon-white);
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

    .nav-menu li {
        margin-bottom: 1.5rem;
    }

.nav-link {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
}

    .nav-link::before {
        content: '>';
        position: absolute;
        left: 0.5rem;
        opacity: 0;
        transition: all 0.3s;
        color: var(--accent-red);
    }

    .nav-link:hover,
    .nav-link.active {
        border: 1px solid var(--accent-red);
        padding-left: 2rem;
        box-shadow: 0 0 15px var(--accent-red);
        background-color: rgba(255, 0, 51, 0.1);
        animation: pulse-glow 2s ease-in-out infinite;
    }

        .nav-link:hover::before,
        .nav-link.active::before {
            opacity: 1;
        }

    .nav-link.cta-nav {
        background-color: var(--accent-red);
        color: white;
        border: 1px solid var(--accent-red);
        text-align: center;
        margin-top: 1rem;
        animation: pulse-glow 3s ease-in-out infinite;
    }

        .nav-link.cta-nav:hover {
            box-shadow: 0 0 25px var(--accent-red);
            transform: scale(1.02);
        }

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-white);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border-white);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-white);
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-red);
}

/* Scroll bar for sidebar navigation */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--accent-red);
    }

/* ============================================
   BREADCRUMB NAVIGATION (SYSTEM PATH)
   ============================================ */
.breadcrumb-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    font-family: var(--font-system);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
    background: rgba(10, 10, 10, 0.8);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-cyan);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: breadcrumb-appear 0.5s ease-out 0.3s forwards;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

    .breadcrumb-item:hover {
        color: var(--primary-white);
        text-shadow: 0 0 10px var(--accent-cyan);
    }

    .breadcrumb-item.active {
        color: var(--accent-red);
        text-shadow: 0 0 5px var(--accent-red);
    }

.breadcrumb-separator {
    color: var(--dark-white);
    opacity: 0.5;
}

@keyframes breadcrumb-appear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing effect for breadcrumbs */
.breadcrumb-typing {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--accent-cyan);
    animation: breadcrumb-typing 1s steps(30) forwards, cursor-blink 0.5s step-end infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--accent-red);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 15px var(--accent-red);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--accent-red);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .breadcrumb-container {
        top: 1rem;
        left: 1rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 500px) {
    .sidebar {
        width: 100%;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

        .hamburger span {
            width: 20px;
        }

    .breadcrumb-container {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
}

/* End of navigation.css */
