body {
    margin: 0;
    background: #1e1e2e;
    font-family: "Hack", monospace;
    color: #fab387;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
    font-family: "Hack Bold", monospace;
}

.nav-bar {
    width: 90%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    margin-top: 1rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    gap: 2rem;
}

a {
    text-decoration: underline;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

.content {
    margin-top: 2rem;
    display: grid;
    place-items: center;
    width: 100%;
}

.content.blog {
    text-align: left;
    max-width: none;
    width: 100%;
    padding: 1rem 4rem;
    box-sizing: border-box;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5%;
    text-align: center;
    color: #fab387;
    max-width: 100%;
}

.home-welcome {
    font-size: 1.5vw;
    margin-bottom: 3%;
    font-family: "Hack", monospace;
}

.profile-pic {
    width: 20%;
    aspect-ratio: 1 / 1;
    border: 5px solid #fab387;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Hack", monospace;
    font-size: 1rem;
    margin-bottom: 3%;
    min-width: 240px;
    min-height: 240px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.home-subtitle {
    font-size: 1rem;
    margin-bottom: 3%;
    font-family: "Hack", monospace;
}

.social-icons {
    display: flex;
    gap: 3vw;
    font-size: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    color: #fab387;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.7;
}

.site-footer {
    margin-top: auto;
    padding: clamp(1rem, 2vh, 2rem);
    text-align: center;
    font-size: 0.5rem;
    font-family: "Hack", monospace;
    color: #fab387;
    background-color: transparent;
}

.site-footer a {
    color: #fab387;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.site-footer a:hover {
    opacity: 0.7;
}

.terminal-help {
    margin: 0;
    text-align: center;
}

#terminal-container {
    width: 100%;
    max-width: 500px;
    height: 80%;
    box-sizing: border-box;
    text-align: left;
    border-radius: 12px;
    border: 2px solid #fab387;
    overflow: hidden;
    margin: 3rem auto;
}

/* Size the native viewer like a portrait US Letter page within the viewport. */
.resume-page {
    width: min(42rem, calc(100vw - 2rem), 54vh);
    margin: 0 auto 2rem;
}

.resume-page h1 {
    margin: 0 0 0.5rem;
    text-align: center;
}

.resume-intro {
    margin: 0 0 1rem;
    text-align: center;
}

.resume-viewer {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8.5 / 11;
    border: 2px solid #fab387;
    border-radius: 12px;
    background: #11111b;
}

.resume-viewer p {
    padding: 1rem;
    text-align: center;
}

.xterm {
    padding: 12px;
}

.xterm .xterm-viewport {
    overflow-y: hidden !important;
}

/* --- Responsive tweaks for mobile --- */
@media (max-width: 600px) {
    .content {
        width: calc(100% - 2rem);
    }

    .title {
        margin-top: 1.5rem;
    }

    .title,
    .resume-page h1 {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }

    .nav-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .resume-page {
        width: min(100%, 48vh);
    }

    .resume-viewer {
        box-sizing: border-box;
    }
}
