/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', 'Noto Sans SC', monospace;
    background: var(--bg-light);
    color: var(--text-light);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.8;
}

/* Dark Mode */
body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);

    /* Terminal Colors (Dark Mode - Retro Green) */
    --term-bg: rgba(20, 20, 20, 0.6);
    --term-text: #88cc88;
    --term-border: rgba(136, 204, 136, 0.2);
    --term-prompt: #aaaaaa;
    --term-accent: #88cc88;
    --term-header: rgba(255, 255, 255, 0.02);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cursor-blink {
    0%, 50% {
        opacity: 1;
        background: var(--term-accent);
    }
    50.1%, 100% {
        opacity: 0;
        background: transparent;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* P5 Canvas Background */
#p5-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}
