/* style.css */
body {
    background-color: #111; /* Dark grey, almost black */
    color: #eee;            /* Off-white text */
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* The Typewriter Effect */
.typewriter h1 {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid orange; /* The orange cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
        typing 3.5s steps(30, end),
        blink-caret .75s step-end infinite;
}

/* The Links Section */
.links {
    margin-top: 2rem;
    opacity: 0; /* Hidden initially */
    animation: fadeIn 2s ease-in forwards; /* Fade in after typing is done */
    animation-delay: 3.5s; /* Wait for typing to finish */
}

.links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animation Logic */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}