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

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#flow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;       /* just above matrix/starfield */
  opacity: 0.1;
  pointer-events: none;
}

 #matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 1.5s ease;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;     /* ← ensure full width */
    height: 100vh;    /* ← ensure full height */
    z-index: 1;
    opacity: 1;
    transition: opacity 1.5s ease;
    background: #000;
 }
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: transparent;
}

#ascii-logo {
    opacity: 0;
    margin-bottom: 3rem;
    font-size: clamp(0.4rem, 2.5vw, 0.8rem);
    line-height: 0.9;
    letter-spacing: -1px;
    white-space: pre;
    text-align: center;
    max-width: 90vw;
    overflow: hidden;
}

#ascii-logo span {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

#command-buttons {
    opacity: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease-in;
}

.cmd-button {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-transform: lowercase;
    min-width: 100px;
    overflow: hidden;
}

.cmd-button::after {
    content: '|';
    display: inline-block;
    margin-left: 3px;
    animation: blink 0.8s step-end infinite;
    opacity: 0;
}

.cmd-button.typing::after {
    opacity: 1;
}

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

.cmd-button:hover {
    background: rgba(128, 0, 128, 0.2);
    border-color: #800080;
    color: #800080;
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.3);
    transform: translateY(-2px);
}

.cmd-button.glitching {
    animation: glitch-shake 0.08s ease-in-out infinite;
}

@keyframes glitch-shake {
    0% { transform: translateX(0) translateY(-2px); }
    25% { transform: translateX(-1px) translateY(-1px); }
    50% { transform: translateX(1px) translateY(-3px); }
    75% { transform: translateX(-1px) translateY(-1px); }
    100% { transform: translateX(0) translateY(-2px); }
}

#glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

#glitch-overlay.active {
    animation: green-boot 0.3s ease-in-out;
}

@keyframes green-boot {
    0% {
        background: rgba(0, 255, 0, 0);
        opacity: 0;
    }
    50% {
        background: rgba(0, 255, 0, 0.7);
        opacity: 1;
        filter: brightness(2.5) contrast(2.5);
    }
    100% {
        background: rgba(0, 255, 0, 0);
        opacity: 0;
    }
}

#main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    color: #e0e0e0;
    padding: 2rem;
    z-index: 4;
    display: none;
    overflow-y: auto;
}

#main-content.active {
    display: block;
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section h1 {
    color: #00ff00;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 0.5rem;
}

.content-section h2 {
    color: #800080;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section a {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dotted #00ff00;
}

.content-section a:hover {
    color: #800080;
    border-bottom-color: #800080;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: transparent;
    border: 2px solid #800080;
    color: #800080;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.back-button:hover {
    background: rgba(128, 0, 128, 0.2);
    transform: translateY(-1px);
}

/* -- Warp-speed flash/scale effect -- */
#warp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;               /* sits on top */
  background: rgba(255,255,255,0);
  transform: scale(1);
  opacity: 0;
}
#warp-overlay.active {
  animation: warpFlash 0.7s ease-out forwards;
}
@keyframes warpFlash {
  0% {
    background: rgba(255,255,255,0);
    opacity: 0;
    transform: scale(1);
  }
  30% {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    background: rgba(0,0,0,1);
    opacity: 1;
    transform: scale(30);
  }
}

#starfield-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 99;           /* sits above matrix but below warp flash */
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

@media (max-width: 768px) {
    #command-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cmd-button {
        width: 150px;
    }
    
    #ascii-logo {
        font-size: clamp(0.3rem, 4vw, 0.6rem);
    }
}


