body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    font-family: monospace;
    background: black;
    color: #00ffcc;
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #00ffee;
}

.container > * {
    margin: 10px 0;
}

h1 {
    font-size: clamp(4rem, 10vw, 10rem);
    color: #ff0066;
    animation: flicker 2.5s infinite;
    text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066;
}

.typewriter {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    width: fit-content;
    margin: 20px auto;
    border-right: 2px solid #00ffcc;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(30, end), blink 0.7s step-end infinite;
}

.quote {
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    margin-top: 30px;
    color: #aaaaff;
    font-style: italic;
}

.hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      opacity: 1;
    }
    20%, 22%, 55% {
      opacity: 0.3;
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 22ch }
}

@keyframes blink {
    50% { border-color: transparent }
}

.terminal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.hidden {
    display: none;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    white-space: pre-line;
}

.terminal-input {
    display: flex;
    align-items: center;
}

.terminal-input input {
    background: transparent;
    border: none;
    color: #0f0;
    outline: none;
    font-size: 1rem;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.back-link {
    margin-top: 40px;
    display: inline-block;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    color: #00ffcc;
    border: 1px dashed #00ffcc;
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.back-link:hover {
    background-color: #002222;
}

h1 {
    font-size: 6rem;
    color: #ff0066;
    animation: flicker 2.5s infinite;
    text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066;
}

.terminal {
    box-shadow: inset 0 0 20px #0f0;
}

body.terminal-active .container {
    display: none;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: black;
}