* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-panel: #0f0f1a;
    --bg-card: #141420;
    --ai-cyan: #00D4FF;
    --ai-green: #00FF88;
    --ai-yellow: #FFD700;
    --ai-purple: #B794F6;
    --ai-pink: #FF0080;
    --ai-orange: #FF6B35;
    --text-primary: #FFFFFF;
    --text-secondary: #8B8D98;
    --border-color: rgba(0,212,255,0.2);
    --grid-color: rgba(0,212,255,0.05);
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
}

/* Main Dashboard Container */
.dashboard {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Command Bar */
.command-bar {
    background: linear-gradient(180deg, #0f0f1a 0%, rgba(15,15,26,0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (min-width: 768px) {
    .command-bar {
        padding: 0.75rem 2rem;
    }
}

.command-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    margin: 0 auto;
}

.system-id {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-logo {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--ai-cyan);
    border-radius: 12px;
    animation: pulse-logo 2s infinite;
}

.ai-logo::after {
    content: 'AI';
    font-size: 16px;
    font-weight: 700;
    color: var(--ai-cyan);
    text-shadow: 0 0 20px var(--ai-cyan);
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.operator-info {
    display: flex;
    flex-direction: column;
}

.operator-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.operator-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.system-status {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 20px;
}

.status-indicator.ai-agents {
    border-color: rgba(255,215,0,0.3);
    background: rgba(255,215,0,0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ai-green);
    animation: blink 2s infinite;
    box-shadow: 0 0 10px var(--ai-green);
}

.status-dot.yellow {
    background: var(--ai-yellow);
    box-shadow: 0 0 10px var(--ai-yellow);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-size: 0.875rem;
    color: var(--ai-green);
    font-weight: 600;
}

.status-text.yellow {
    color: var(--ai-yellow);
}

/* Dashboard Grid - Mobile First */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    min-height: calc(100vh - 80px);
    background: var(--bg-primary);
}

/* Tablet and up */
@media (min-width: 768px) {
    .dashboard-grid {
        gap: 2rem;
        padding: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 250px 1fr;
        padding: 2rem;
    }
}

/* Left Panel - System Metrics */
.metrics-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
}

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

.panel-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-icon::before {
    content: '◆';
    color: var(--ai-cyan);
    font-size: 14px;
}

.panel-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.metric-card {
    background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--ai-cyan), transparent);
}

.metric-card:hover {
    transform: translateX(5px);
    border-color: var(--ai-cyan);
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-change {
    font-size: 0.75rem;
    color: var(--ai-green);
    margin-top: 0.25rem;
}

.metric-change.negative {
    color: var(--ai-green);
}

.metric-bar {
    height: 4px;
    background: rgba(0,212,255,0.1);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green));
    border-radius: 2px;
    animation: grow 1.5s ease-out;
}

.metric-bar-fill.yellow-green {
    background: linear-gradient(90deg, var(--ai-yellow), var(--ai-green));
}

.metric-bar-fill.green-cyan {
    background: linear-gradient(90deg, var(--ai-green), var(--ai-cyan));
}

@keyframes grow {
    from { width: 0; }
}

/* Center Panel - Main Display */
.main-display {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Neural Network Visualization */
.neural-viz {
    min-height: 450px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.achievement-display {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 100%;
    padding: 1rem;
}

@media (min-width: 768px) {
    .achievement-display {
        max-width: 800px;
        padding: 2rem;
    }
}

.achievement-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green), var(--ai-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s infinite;
    line-height: 1.2;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.achievement-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.impact-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 0;
    text-align: center;
}

.impact-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--ai-cyan), var(--ai-green), var(--ai-purple));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.impact-card:hover::after {
    opacity: 1;
}

.impact-card:hover {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.9);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--ai-cyan);
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-item {
    background: var(--bg-card);
    border-left: 2px solid var(--ai-cyan);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 8px 8px 0;
    animation: slideIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-timestamp {
    font-size: 0.625rem;
    color: var(--ai-cyan);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.activity-content {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0,212,255,0.2);
    border: 1px solid var(--ai-cyan);
    border-radius: 4px;
    font-size: 0.625rem;
    color: var(--ai-cyan);
    margin-top: 0.5rem;
    margin-right: 0.25rem;
}

/* Bottom Status Bar */
.status-bar {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.status-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
}

.system-metrics {
    display: flex;
    gap: 3rem;
}

.system-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.system-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--ai-cyan);
}

/* Project Showcase */
.project-showcase {
    padding: 2rem;
    display: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
        gap: 1.5rem;
    }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green));
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--ai-cyan);
    box-shadow: 0 10px 30px rgba(0,212,255,0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-status {
    padding: 0.25rem 0.75rem;
    background: rgba(0,255,136,0.2);
    border: 1px solid var(--ai-green);
    border-radius: 12px;
    font-size: 0.625rem;
    color: var(--ai-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-metric {
    display: flex;
    flex-direction: column;
}

.project-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ai-cyan);
}

.project-metric-label {
    font-size: 0.625rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal for Architecture Diagrams */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: var(--bg-panel);
    border: 2px solid var(--ai-cyan);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--ai-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--ai-green);
    transform: scale(1.05);
}

/* Sections */
.dashboard-section {
    margin-top: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--ai-yellow), var(--ai-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.portfolio-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* Experience Cards */
.experience-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 1.5rem;
    }
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 3px solid var(--ai-cyan);
}

.experience-card.purple {
    border-left-color: var(--ai-purple);
}

.experience-card.orange {
    border-left-color: var(--ai-orange);
}

/* Architecture Cards */
.architecture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.architecture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-cyan), var(--ai-green));
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-panel);
}

::-webkit-scrollbar-thumb {
    background: var(--ai-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ai-green);
}

/* Responsive */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .metrics-panel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        max-height: none;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .command-bar-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .system-status {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .achievement-title {
        font-size: 1.75rem;
    }
    
    .achievement-subtitle {
        font-size: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .impact-card {
        padding: 1rem;
    }
    
    .impact-number {
        font-size: 1.5rem;
    }
    
    .metrics-panel {
        grid-template-columns: 1fr;
    }
    
    .status-bar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .system-metrics {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card,
    .architecture-card {
        padding: 1rem;
    }
    
    .achievement-title {
        font-size: 1.5rem;
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* Hover Glow */
.glow-hover {
    transition: all 0.3s;
}

.glow-hover:hover {
    text-shadow: 0 0 20px currentColor;
}

/* Activity feed styles */
.activity-item {
    padding: 1rem;
    border-left: 2px solid var(--ai-cyan);
    margin-bottom: 1rem;
    background: rgba(0,212,255,0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.activity-item:hover {
    background: rgba(0,212,255,0.1);
    transform: translateX(5px);
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 3rem;
}

.p-2 {
    padding: 2rem;
}

.p-1 {
    padding: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--ai-green);
    color: black;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--ai-cyan);
    border: 1px solid var(--ai-cyan);
}

.btn-secondary:hover {
    background: var(--ai-cyan);
    color: black;
}

/* Links */
a {
    color: var(--ai-cyan);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--ai-green);
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Code blocks */
code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

pre {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(0,255,136,0.2);
    border: 1px solid var(--ai-green);
    color: var(--ai-green);
}

.badge-warning {
    background: rgba(255,215,0,0.2);
    border: 1px solid var(--ai-yellow);
    color: var(--ai-yellow);
}

.badge-info {
    background: rgba(0,212,255,0.2);
    border: 1px solid var(--ai-cyan);
    color: var(--ai-cyan);
}