/* Kitchen Sink Page Styles */
/* Complete self-contained CSS for kitchen-sink.html */

/* ============================================ */
/* CSS RESET AND BASE STYLES */
/* ============================================ */

:root {
    --grit-black: #000000;
    --synth-green: #00FF7F;
    --response-gold: #FFD700;
    --remix-neon: #FF0055;
    --ai-azure: #001AFF;
    --thread-silver: #E5E5E5;
    --context-gray: #1A1A1A;
    --vhs-white: #F5F5F5;
    --obsidian-gray: #2A2A2A;
    --midnight-black: #0F0F0F;
    --platinum-silver: #E8E8E8;
    --gold-pulse: #FFD700;
    --deep-azure: #001AFF;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --duration-fast: 0.15s;
    --duration-standard: 0.3s;
    --duration-slow: 0.5s;
    --ease-linear: linear;
    --ease-in: ease-in;
    --ease-out: ease-out;
    --ease-in-out: ease-in-out;
    --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
    --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--grit-black);
    color: var(--thread-silver);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* TYPOGRAPHY SYSTEM */
/* ============================================ */

.h1, h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--response-gold);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.h2, h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--response-gold);
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.h3, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--synth-green);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.h4, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--synth-green);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.h5, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--thread-silver);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.h6, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--thread-silver);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================ */
/* KITCHEN SINK SPECIFIC STYLES */
/* ============================================ */

.kitchen-sink-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--obsidian-gray);
    color: var(--platinum-silver);
    font-family: 'Inter', sans-serif;
}

.component-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.component-section h2 {
    color: var(--gold-pulse);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--gold-pulse);
    padding-bottom: 0.5rem;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--platinum-silver);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: var(--platinum-silver);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-pulse);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* ============================================ */
/* BUTTON COMPONENTS */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
    margin: 0.25rem;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gold-pulse);
    color: var(--midnight-black);
    border-color: var(--gold-pulse);
}

.btn-primary:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-pulse);
    border-color: var(--gold-pulse);
}

.btn-secondary:hover {
    background: var(--gold-pulse);
    color: var(--midnight-black);
    transform: translateY(-2px);
}

.btn-action {
    background: var(--remix-neon);
    color: var(--vhs-white);
    border-color: var(--remix-neon);
}

.btn-action:hover {
    background: var(--response-gold);
    border-color: var(--response-gold);
    color: var(--grit-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.3);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ============================================ */
/* CARD COMPONENTS */
/* ============================================ */

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--gold-pulse);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--gold-pulse);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(229, 229, 229, 0.1);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--response-gold);
    margin-bottom: var(--space-sm);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--synth-green);
    font-family: 'JetBrains Mono', monospace;
}

.card-content {
    margin-bottom: var(--space-lg);
}

.card-footer {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(229, 229, 229, 0.1);
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card {
    background: var(--obsidian-gray);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--response-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.analytics-card {
    background: linear-gradient(135deg, var(--context-gray) 0%, var(--obsidian-gray) 100%);
    border: 1px solid var(--ai-azure);
}

.analytics-card:hover {
    border-color: var(--response-gold);
    box-shadow: 0 10px 30px rgba(0, 26, 255, 0.2);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--gold-pulse);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold-pulse);
    color: var(--midnight-black);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--platinum-silver);
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0, 255, 127, 0.1);
    border-color: #00FF7F;
    color: #00FF7F;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-pulse);
    color: var(--gold-pulse);
}

.alert-error {
    background: rgba(255, 0, 85, 0.1);
    border-color: #FF0055;
    color: #FF0055;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--gold-pulse), #00FF7F);
    transition: width 0.5s ease;
}


/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .kitchen-sink-container {
        padding: 1rem;
    }
    
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .h1, h1 {
        font-size: 2.5rem;
    }
    
    .h2, h2 {
        font-size: 2rem;
    }
    
    .h3, h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .kitchen-sink-container {
        padding: var(--space-md);
    }
    
    .h1, h1 {
        font-size: 2rem;
    }
    
    .h2, h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* TAB NAVIGATION SYSTEM */
/* ============================================ */

.demo-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding-bottom: var(--space-lg);
}

.nav-tab {
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-md);
    color: var(--thread-silver);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-standard) var(--ease-standard);
    position: relative;
    overflow: hidden;
}

.nav-tab:hover {
    border-color: var(--synth-green);
    color: var(--synth-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.2);
}

.nav-tab.active {
    background: var(--response-gold);
    border-color: var(--response-gold);
    color: var(--grit-black);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.demo-section {
    display: none;
    animation: fadeIn var(--duration-standard) var(--ease-standard);
}

.demo-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* ES6+ INTERACTIVE DEMOS */
/* ============================================ */

.demo-area {
    background: var(--midnight-black);
    border: 2px solid var(--synth-green);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'JetBrains Mono', monospace;
    color: var(--vhs-white);
    min-height: 200px;
    position: relative;
    overflow-x: auto;
}

.demo-area::before {
    content: '> ';
    color: var(--synth-green);
    font-weight: bold;
}

.code-input {
    background: var(--midnight-black);
    border: 2px solid var(--ai-azure);
    border-radius: var(--radius-md);
    color: var(--vhs-white);
    font-family: 'JetBrains Mono', monospace;
    padding: var(--space-lg);
    resize: none;
    width: 100%;
    height: 256px;
    tab-size: 4;
    transition: border-color var(--duration-standard) var(--ease-standard);
}

.code-input:focus {
    outline: none;
    border-color: var(--synth-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

.code-output {
    background: var(--obsidian-gray);
    border: 2px solid var(--response-gold);
    border-radius: var(--radius-md);
    color: var(--vhs-white);
    font-family: 'JetBrains Mono', monospace;
    padding: var(--space-lg);
    white-space: pre-wrap;
    overflow: auto;
    height: 256px;
    line-height: 1.4;
}

.error-message {
    color: var(--remix-neon);
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--remix-neon);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.success-message {
    color: var(--synth-green);
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid var(--synth-green);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* ============================================ */
/* TYPESCRIPT COMPILER DEMO */
/* ============================================ */

.typescript-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.typescript-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.typescript-panel h4 {
    color: var(--ai-azure);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.typescript-panel h4::before {
    content: '🔷';
    font-size: 1.2em;
}

.type-checker {
    background: var(--context-gray);
    border: 2px solid var(--ai-azure);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.type-error {
    color: var(--remix-neon);
    background: rgba(255, 0, 85, 0.1);
    border-left: 4px solid var(--remix-neon);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================ */
/* ANGULAR COMPONENT EXAMPLES */
/* ============================================ */

.angular-demo-container {
    background: var(--obsidian-gray);
    border: 2px solid var(--remix-neon);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
}

.angular-component {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    position: relative;
}

.angular-component::before {
    content: attr(data-component);
    position: absolute;
    top: -10px;
    left: var(--space-md);
    background: var(--remix-neon);
    color: var(--vhs-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.angular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.directive-example {
    background: linear-gradient(135deg, var(--ai-azure) 0%, var(--remix-neon) 100%);
    color: var(--vhs-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    transition: transform var(--duration-standard) var(--ease-bounce);
}

.directive-example:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 8px 24px rgba(0, 26, 255, 0.3);
}

/* ============================================ */
/* FORM VALIDATION STYLING */
/* ============================================ */

.form-validation {
    position: relative;
}

.form-input.valid {
    border-color: var(--synth-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

.form-input.invalid {
    border-color: var(--remix-neon);
    box-shadow: 0 0 0 3px rgba(255, 0, 85, 0.1);
}

.validation-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-standard) var(--ease-standard);
    pointer-events: none;
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message.error {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--remix-neon);
    color: var(--remix-neon);
}

.validation-message.success {
    background: rgba(0, 255, 127, 0.1);
    border: 1px solid var(--synth-green);
    color: var(--synth-green);
}

/* ============================================ */
/* PERFORMANCE METRICS DISPLAY */
/* ============================================ */

.performance-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.metric-card {
    background: linear-gradient(135deg, var(--context-gray) 0%, var(--obsidian-gray) 100%);
    border: 2px solid var(--ai-azure);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-standard) var(--ease-standard);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ai-azure), var(--synth-green), var(--response-gold));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--synth-green);
    font-family: 'Orbitron', monospace;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.metric-label {
    color: var(--thread-silver);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-trend {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 20px;
    display: flex;
    align-items: end;
    gap: 2px;
}

.trend-bar {
    flex: 1;
    background: var(--synth-green);
    border-radius: 1px;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.trend-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.trend-bar:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.trend-bar:nth-child(3) { height: 80%; animation-delay: 0.4s; }
.trend-bar:nth-child(4) { height: 100%; animation-delay: 0.6s; }
.trend-bar:nth-child(5) { height: 70%; animation-delay: 0.8s; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================ */
/* CODE SYNTAX HIGHLIGHTING */
/* ============================================ */

.code-block {
    background: var(--midnight-black);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: attr(data-language);
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--synth-green);
    color: var(--grit-black);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.syntax-keyword {
    color: var(--remix-neon);
    font-weight: 600;
}

.syntax-string {
    color: var(--synth-green);
}

.syntax-number {
    color: var(--response-gold);
}

.syntax-comment {
    color: var(--thread-silver);
    opacity: 0.7;
    font-style: italic;
}

.syntax-function {
    color: var(--ai-azure);
    font-weight: 500;
}

.syntax-variable {
    color: var(--vhs-white);
}

.syntax-operator {
    color: var(--thread-silver);
    font-weight: 600;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: var(--space-lg);
    bottom: var(--space-lg);
    width: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 var(--space-sm);
    font-size: 0.75rem;
    color: var(--thread-silver);
    opacity: 0.6;
    counter-reset: line-number;
}

.line-numbers::before {
    content: counter(line-number);
    counter-increment: line-number;
    display: block;
    line-height: 1.6;
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--response-gold);
}

.text-secondary {
    color: var(--synth-green);
}

.text-accent {
    color: var(--remix-neon);
}

.text-muted {
    color: var(--thread-silver);
    opacity: 0.7;
}

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-48 { min-height: 12rem; }
.h-64 { height: 16rem; }

.bg-dark { background: var(--midnight-black); }
.bg-secondary { background: var(--obsidian-gray); }
.text-light { color: var(--vhs-white); }
.text-danger { color: var(--remix-neon); }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-md {
    padding: var(--space-md);
}

.rounded {
    border-radius: var(--radius-md);
}

.overflow-auto {
    overflow: auto;
}

/* ============================================ */
/* ACCESSIBILITY */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--synth-green);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --thread-silver: #ffffff;
        --context-gray: #000000;
        --synth-green: #00ff00;
        --response-gold: #ffff00;
    }
}

/* Tab Navigation System */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-tech);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--easing-smooth);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--synth-green);
    background: rgba(0, 255, 127, 0.1);
}

.tab-btn.active {
    color: var(--synth-green);
    border-bottom-color: var(--synth-green);
    background: rgba(0, 255, 127, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Enhanced Technical Demo Styles */
.demo-container {
    background: var(--obsidian-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
}

.demo-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.demo-option {
    padding: var(--space-md);
    background: var(--midnight-black);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-smooth);
    text-align: center;
}

.demo-option:hover {
    border-color: var(--synth-green);
    background: rgba(0, 255, 127, 0.1);
}

.demo-option.selected {
    border-color: var(--synth-green);
    background: rgba(0, 255, 127, 0.2);
}

.demo-output {
    background: var(--midnight-black);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    min-height: 200px;
    overflow-x: auto;
}

/* TypeScript Compiler Demo */
.compiler-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.code-input, .code-output {
    background: var(--midnight-black);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    min-height: 300px;
    resize: vertical;
}

.code-input {
    color: var(--vhs-white);
    background: var(--obsidian-gray);
}

.code-output {
    color: var(--synth-green);
    background: var(--midnight-black);
    border-color: var(--synth-green);
}

/* Performance Metrics Display */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.metric-card {
    background: var(--obsidian-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--synth-green);
    font-family: var(--font-tech);
    display: block;
    margin-bottom: var(--space-sm);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* NAVIGATION STYLES (BACKUP) */
/* ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--grit-black);
    border-bottom: 2px solid var(--response-gold);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex-shrink: 0;
}

.site-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--response-gold);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: transparent;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all var(--duration-standard) var(--ease-standard);
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--synth-green);
    border-radius: 2px;
    transition: all var(--duration-standard) var(--ease-standard);
}

.hamburger-menu:hover .hamburger-line {
    background: var(--response-gold);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Horizontal Menu */
.horizontal-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--grit-black);
    padding-top: 100px;
    transform: translateY(-100%);
    transition: transform var(--duration-slow) var(--ease-emphasized);
    overflow-y: auto;
    z-index: 99;
}

.horizontal-menu.active {
    transform: translateY(0);
}

.menu-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.menu-category {
    background: var(--context-gray);
    border: 2px solid var(--thread-silver);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-standard) var(--ease-standard);
}

.menu-category:hover {
    border-color: var(--synth-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 127, 0.2);
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--response-gold);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--obsidian-gray);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--thread-silver);
    transition: all var(--duration-standard) var(--ease-standard);
}

.menu-link:hover {
    background: var(--context-gray);
    border-color: var(--synth-green);
    color: var(--synth-green);
    transform: translateX(4px);
}

.menu-link.active {
    background: var(--synth-green);
    color: var(--grit-black);
    font-weight: 600;
}

.link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.link-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* Adjust main container for fixed header */
body {
    padding-top: 80px;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .menu-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .site-logo {
        font-size: 1.5rem;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* Smooth scrolling for menu */
.horizontal-menu {
    -webkit-overflow-scrolling: touch;
}

/* Disable body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}