/* Pandaemonium - Coming Soon Page
   Cyberpunk pixel art aesthetic */

:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-purple: #bf00ff;
    --neon-orange: #ff6600;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --pixel-size: 4px;
}

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

html {
    font-size: 16px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    color: #c0c0c0;
    font-family: 'VT323', monospace;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* CRT Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Noise overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Main container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Pixel art room scene */
.room {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    overflow: hidden;
    opacity: 0.4;
}

/* Window with stars */
.window {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 100px;
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b263b 100%);
    border: var(--pixel-size) solid #2a2a40;
}

.window-frame {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: var(--pixel-size);
    background: #2a2a40;
}

.window-frame::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: var(--pixel-size);
    height: 100px;
    background: #2a2a40;
}

.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 2px;
    height: 2px;
    background: white;
    animation: twinkle 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

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

.moon {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 20px;
    height: 20px;
    background: #e8e8e8;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 200, 0.3);
}

/* Desk */
.desk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background: #1a1a25;
    border-top: var(--pixel-size) solid #2d2d3d;
}

/* Monitor */
.monitor {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 100px;
}

.monitor-frame {
    position: absolute;
    inset: 0;
    background: #1a1a25;
    border: var(--pixel-size) solid #2d2d3d;
    border-radius: 4px;
}

.screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 20px;
    background: #0a0f14;
    overflow: hidden;
}

.screen-content {
    padding: 8px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
}

.prompt {
    color: var(--neon-pink);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 12px;
    background: var(--neon-cyan);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.monitor-light {
    position: absolute;
    bottom: 8px;
    right: 12px;
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: power-light 2s ease-in-out infinite;
}

@keyframes power-light {
    0%, 90%, 100% { opacity: 1; box-shadow: 0 0 6px var(--neon-cyan); }
    95% { opacity: 0.4; box-shadow: none; }
}

/* Keyboard */
.keyboard {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -15px;
    width: 100px;
    height: 25px;
    background: #1a1a25;
    border: 2px solid #2d2d3d;
    border-radius: 2px;
}

/* Coffee mug */
.coffee {
    position: absolute;
    bottom: 100%;
    right: 20px;
    margin-bottom: 5px;
    width: 20px;
    height: 25px;
    background: #3a3a4a;
    border-radius: 0 0 4px 4px;
}

.coffee::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 5px;
    width: 8px;
    height: 12px;
    border: 2px solid #3a3a4a;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.steam {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
}

.steam-particle {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: steam-rise 2s ease-out infinite;
}

.steam-particle:nth-child(1) { left: 2px; animation-delay: 0s; }
.steam-particle:nth-child(2) { left: 8px; animation-delay: 0.5s; }
.steam-particle:nth-child(3) { left: 14px; animation-delay: 1s; }

@keyframes steam-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-25px) scale(1.5);
        opacity: 0;
    }
}

/* Plant */
.plant {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 40px;
    height: 80px;
}

.pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 25px;
    background: #8b4513;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.leaves {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.leaf {
    position: absolute;
    width: 20px;
    height: 30px;
    background: #228b22;
    border-radius: 50% 0;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
}

.leaf:nth-child(1) { transform: rotate(-30deg); animation-delay: 0s; }
.leaf:nth-child(2) { transform: rotate(0deg); animation-delay: 0.5s; }
.leaf:nth-child(3) { transform: rotate(30deg); animation-delay: 1s; }

@keyframes sway {
    0%, 100% { transform: rotate(var(--rotation, 0deg)); }
    50% { transform: rotate(calc(var(--rotation, 0deg) + 5deg)); }
}

.leaf:nth-child(1) { --rotation: -30deg; }
.leaf:nth-child(2) { --rotation: 0deg; }
.leaf:nth-child(3) { --rotation: 30deg; }

/* Shelf with books */
.shelf {
    position: absolute;
    top: 25%;
    left: 10%;
    width: 80px;
    height: 8px;
    background: #2d2d3d;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 8px;
}

.book {
    width: 12px;
    position: absolute;
    bottom: 100%;
}

.book-1 { height: 35px; background: #ff6b6b; left: 8px; }
.book-2 { height: 40px; background: #4ecdc4; left: 24px; }
.book-3 { height: 32px; background: #ffe66d; left: 40px; }

/* LED strip */
.led-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--neon-pink),
        var(--neon-purple),
        var(--neon-cyan),
        var(--neon-purple),
        var(--neon-pink)
    );
    background-size: 200% 100%;
    animation: led-scroll 3s linear infinite;
    opacity: 0.7;
}

@keyframes led-scroll {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Main content */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* Title with neon effect */
.title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
}

.neon-text {
    position: relative;
    color: #fff;
    text-shadow:
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-purple),
        0 0 80px var(--neon-purple);
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 5px var(--neon-pink),
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 40px var(--neon-purple),
            0 0 80px var(--neon-purple);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

/* Subtitle */
.subtitle {
    font-family: 'VT323', monospace;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(11) infinite;
    border-right: 2px solid var(--neon-cyan);
}

@keyframes typing {
    0%, 100% { width: 0; }
    50%, 90% { width: 11ch; }
}

/* ASCII divider */
.ascii-divider {
    margin: 1.5rem 0;
    color: #3a3a4a;
    font-size: 0.8rem;
    overflow: hidden;
}

.ascii-divider pre {
    font-family: 'VT323', monospace;
}

/* Tagline */
.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #606080;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Status indicator */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    font-size: 0.9rem;
    color: #808080;
}

.status-light {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 4px #00ff00, 0 0 8px #00ff00;
    }
    50% {
        box-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00, 0 0 24px #00ff00;
    }
}

/* Footer */
footer {
    padding: 1rem;
    text-align: center;
    opacity: 0.3;
}

.footer-art {
    overflow: hidden;
}

.ascii-small {
    font-family: 'VT323', monospace;
    font-size: clamp(0.3rem, 1.5vw, 0.5rem);
    line-height: 1;
    color: var(--neon-purple);
    white-space: pre;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .room {
        height: 50%;
        opacity: 0.25;
    }

    .window {
        width: 80px;
        height: 70px;
        right: 5%;
    }

    .desk {
        width: 200px;
        height: 80px;
    }

    .monitor {
        width: 100px;
        height: 70px;
    }

    .shelf, .plant {
        display: none;
    }

    .content {
        padding: 1rem;
    }

    .ascii-divider {
        display: none;
    }

    .footer-art {
        display: none;
    }

    /* Reduce animations on mobile for performance */
    .scanlines {
        display: none;
    }

    .noise {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .neon-text {
        text-shadow: none;
        color: #fff;
    }

    .subtitle {
        color: #fff;
    }
}
