@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
}

#cursor-light {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
    transition: background 0.2s;
}

#cursor-light.on {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,230,50,0.4) 0%, rgba(255,220,30,0.15) 40%, transparent 70%);
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

/* === TYPING TEST === */

#typing-test {
    text-align: center;
    position: relative;
}

.skip-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    background: transparent;
    border: 1px solid #333;
    color: #444;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

.skip-btn:hover {
    color: #aaa;
    border-color: #aaa;
}

.glitch-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 97%, 100% { opacity: 1; }
    98% { opacity: 0.6; }
    99% { opacity: 0.2; }
}

.subtitle {
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 3rem;
}

.prompt {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 2rem;
    text-align: left;
}

#typed-correct {
    color: #4af626;
}

#cursor-char {
    background-color: #fff;
    color: #000;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 49% { background-color: #fff; color: #000; }
    50%, 100% { background-color: transparent; color: #fff; }
}

#remaining-text {
    color: #555;
}

.typing-input {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: #fff;
    width: 100%;
    padding: 1rem 0;
    outline: none;
    caret-color: transparent;
}

.typing-input:focus {
    border-bottom-color: #fff;
}

.typing-input::placeholder {
    color: #333;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
}

.stats {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

#wpm-display {
    color: #666;
    transition: color 0.3s;
}

.fail-message {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #ff4444;
    animation: shake 0.5s ease-in-out;
    line-height: 1.8;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* === MAIN SITE === */

#main-site {
    animation: fadeIn 1.5s ease-in;
}

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

.site-header {
    margin-bottom: 3rem;
}

.name-title {
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.bio {
    margin-bottom: 3rem;
}

.bio-text {
    font-size: 0.6rem;
    line-height: 2.2;
    color: #aaa;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 3rem;
}

.nav-link {
    font-size: 0.75rem;
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: all 0.2s;
}

.nav-link:hover {
    text-decoration: underline;
}

/* === BUG === */

#bug {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    image-rendering: pixelated;
}

.site-footer {
    margin-top: 3rem;
    font-size: 0.5rem;
    color: #333;
}

/* === SUBPAGES === */

.page-content {
    padding-top: 3rem;
    animation: fadeIn 1s ease-in;
}

.back-link {
    font-size: 0.55rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.page-title {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 2rem 0 2.5rem;
}

.section-heading {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.body-text {
    font-size: 0.55rem;
    line-height: 2.4;
    color: #aaa;
}

/* === WORK PAGE / PROJECT FLOW === */

.work-page .body-text {
    margin-bottom: 3rem;
}

.project-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-step {
    border-left: 2px solid #222;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

.step-number {
    font-size: 0.5rem;
    color: #4af626;
    margin-bottom: 0.6rem;
}

.step-title {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.step-img-wrapper {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.step-img {
    width: 100%;
    display: block;
    opacity: 0.9;
}

.step-img-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-img-col {
    flex: 1;
}

.img-caption {
    font-size: 0.4rem;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
}

.step-desc {
    font-size: 0.5rem;
    line-height: 2.2;
    color: #888;
}

.flow-arrow {
    font-size: 1rem;
    color: #333;
    text-align: center;
    padding: 0.5rem 0;
}
