.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--color-gray-300);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-cyan);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-cyan);
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cyan);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-cyan);
    left: 0;
    transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.terminal-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    background: var(--color-cyan);
    color: var(--color-bg);
    border: none;
    padding: var(--spacing-md);
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow-cyan);
}

.terminal-toggle:hover {
    background: var(--color-purple);
}

.terminal-toggle.open {
    right: 400px;
}

.terminal {
    position: fixed;
    right: -400px;
    top: 0;
    height: 100%;
    width: 400px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-base);
}

.terminal.open {
    right: 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--color-red); }
.dot.yellow { background: var(--color-yellow); }
.dot.green { background: var(--color-green); }

.terminal-title {
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.terminal-close {
    background: none;
    border: none;
    color: var(--color-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.terminal-line {
    margin-bottom: var(--spacing-xs);
}

.terminal-line.input {
    color: var(--color-cyan);
}

.terminal-line.output {
    color: var(--color-gray-300);
}

.terminal-line.error {
    color: var(--color-red);
}

.terminal-input {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.terminal-prompt {
    color: var(--color-cyan);
    font-family: var(--font-mono);
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-gray-100);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.card {
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    border: 1px solid;
    transition: all var(--transition-base);
}

.card:hover {
    transform: scale(1.05);
}

.card-cyan {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(168, 85, 247, 0.1));
    border-color: rgba(0, 255, 255, 0.2);
}

.card-cyan:hover {
    box-shadow: var(--shadow-glow-cyan);
}

.card-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.2);
}

.card-purple:hover {
    box-shadow: var(--shadow-glow-purple);
}

.card-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(0, 255, 255, 0.1));
    border-color: rgba(236, 72, 153, 0.2);
}

.card-pink:hover {
    box-shadow: var(--shadow-glow-pink);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.card-cyan .card-title { color: var(--color-cyan); }
.card-purple .card-title { color: var(--color-purple); }
.card-pink .card-title { color: var(--color-pink); }

.card-text {
    color: var(--color-gray-400);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.tab {
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.tab:hover,
.tab.active {
    background: var(--color-cyan);
    color: var(--color-bg);
}

.tab-content {
    min-height: 400px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    text-align: center;
    padding: var(--spacing-3xl);
}

.konami-celebration {
    font-size: 6rem;
    animation: bounce 1s infinite;
}

.modal-content h2 {
    font-size: 3rem;
    margin: var(--spacing-lg) 0;
}

.modal-content p {
    font-size: 1.5rem;
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-xl);
}

.twitch-indicator {
    position: fixed;
    top: 100px;
    right: var(--spacing-xl);
    z-index: 50;
    background: var(--color-purple);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-glow-purple);
    transition: all var(--transition-base);
}

.twitch-indicator:hover {
    transform: scale(1.05);
}

.live-pulse {
    position: relative;
    width: 12px;
    height: 12px;
}

.live-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-red);
    border-radius: 50%;
}

.twitch-info {
    display: flex;
    flex-direction: column;
}

.twitch-status {
    font-weight: bold;
    font-size: 0.875rem;
}

.twitch-viewers {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer {
    padding: var(--spacing-2xl);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-family: var(--font-mono);
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-sm);
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
        flex-direction: column;
        padding: var(--spacing-lg);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .terminal,
    .terminal.open {
        width: 100%;
        right: -100%;
    }
    
    .terminal.open {
        right: 0;
    }
    
    .terminal-toggle.open {
        right: 0;
    }
}