@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
* {margin: 0; padding: 0; box-sizing: border-box;}

html, body {
    height: 100%;
}

body {
    background: #0a0a0a;
    color: #e5e9e2;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.5em;
    padding: 4em;
    overflow-x: hidden;
    animation: crt-flicker 6s infinite;
}

.terminal-wrap {
    perspective: 700px;
    perspective-origin: 50% 50%;
    filter: url(#crt-chromatic);
    visibility: hidden;
}

.terminal-wrap.visible {
    visibility: visible;
}

#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 5s ease, opacity 0.6s ease;
    filter: url(#crt-chromatic);
}

#boot-screen.entering {
    background-color: #1a4fb0;
}

#boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-click {
    font-size: 0.7em;
    letter-spacing: 0.15em;
    color: rgb(136, 255, 142);
    text-transform: uppercase;
    animation: boot-click-blink 2s step-end infinite;
    transition: opacity 0.4s ease;
}

#boot-screen.entering .boot-click {
    animation: none;
    opacity: 0;
}

.boot-logo {
    text-align: center;
    position: absolute;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    opacity: 0;
    transition: opacity 2.5s ease 0.5s;
}
.boot-logo p {
    font-size: 0.5em;
    font-weight: 400;
}

#boot-screen.entering .boot-logo {
    opacity: 1;
}

@keyframes boot-click-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.terminal {
    transform: rotateX(0.5deg) rotateY(0deg) scale(1);
    transform-style: preserve-3d;
    text-shadow: 0 0 1px rgba(229, 233, 226, 0.5), 0 0 6px rgba(127, 174, 130, 0.15);
}

.root-user {
    text-shadow: 0.5px 0 0 rgba(255, 60, 60, 0.35), -0.5px 0 0 rgba(60, 200, 255, 0.35);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10001;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    mix-blend-mode: multiply;
}

.crt-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10002;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

@keyframes crt-flicker {
    0%, 100% { filter: brightness(1); }
    92% { filter: brightness(1); }
    93% { filter: brightness(0.96); }
    94% { filter: brightness(1.02); }
    95% { filter: brightness(0.98); }
    96% { filter: brightness(1); }
}

a {
    color: #e5e9e2;
}

.command {
    display: flex;
    align-items: center;
}

.root-user {
    color: #7fae82;
    font-weight: bold;
    padding-right: 0.75em;
}

.message {
    padding-bottom: 1em;
}

.projects {
    list-style: none;
}

.project {
    padding-left: 2em;
}

.project::before {
    content: '🗁';
    position: absolute;
    left: 0;
    padding-left: 5px;
}

.socials {
    display: flex;
    gap: 2em;
    padding-left: 2em;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 0.75em;
        padding: 1em;
    }
}



.typewriter {
    white-space: pre;
}

.caret {
    animation: blink 0.5s linear infinite;
    color: #8bf;
    margin-left: 0.05em;
}

.caret.done {
    animation: none;
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .caret {
        animation: none;
    }
}