body {
    background-color: #000;
    color: #fff;
    font-family: "Courier New", monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header {
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

.subtitle {
    color: #ccc;
    font-size: 1rem;
    margin-top: 0.3rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro {
    max-width: 600px;
}

.intro p {
    margin: 1rem 0 2rem;
    line-height: 1.6;
    color: #ddd;
}

.options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.options a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.options a:hover {
    color: #ccc;
    transform: translateY(-2px);
}

.options a.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

footer {
    position: absolute;
    bottom: 1rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
}

body.about-page,
body.skills-page {
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 100vh;
}

body.about-page header,
body.skills-page header {
    margin-top: 8vh;
    margin-bottom: 2rem;
}

.about, .skills {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    color: #ddd;
    line-height: 1.7;
}

.about h2, .skills h2 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #111;
    padding-bottom: 0.3rem;
}

.about ul, .skills ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem;
}

.about ul li, .skills ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about ul li::before, .skills ul li::before {
    content: ">";
    color: #fff;
    margin-right: 0.5rem;
}

.nav-return {
    text-align: center;
    margin-top: 3rem;
}

.nav-return a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-return a:hover {
    color: #ccc;
}

body:not(:has(.intro)) {
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 100vh;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 5rem;
}

footer {
    position: static;
    margin-top: 2rem;
}

.projects-page header {
    margin-top: 6vh;
    margin-bottom: 1rem;
    text-align: center;
}

.projects-list {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
    color: #ddd;
    padding: 0 1rem;
}

.projects-list .lead {
    text-align: center;
    color: #ccc;
    margin-bottom: 2rem;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-card {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.25s ease, transform 0.15s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.project-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: #fff;
}

.project-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #bdbdbd;
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

body.project-detail {
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.terminal {
    width: 90%;
    max-width: 1100px;
    text-align: left;
}

.terminal-header {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-box {
    border: 1px solid #222;
    padding: 1.5rem;
    background-color: #0a0a0a;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.project-box:hover {
    background-color: #111;
}

.project-box h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #ece852;
    border-bottom: 1px solid #222;
    padding-bottom: 0.25rem;
}

.project-box p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.project-box ul li {
    margin-bottom: 0.4rem;
}

.project-box ul li::before {
    content: "> ";
    color: #fff;
}

.project1 {
    display: block;
    margin: 0 auto 1.5rem;
    width: 60%;
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid #222;
}

.nav-return a {
    color: #fff;
    text-decoration: none;
    border: 1px solid #222;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-return a:hover {
    background-color: #111;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 850px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

body.goals-page header {
    margin-top: 8vh;
    margin-bottom: 2rem;
    text-align: center;
}

.goals {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    color: #ddd;
    line-height: 1.7;
    padding-bottom: 4rem;
}

.goals h2 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #111;
    padding-bottom: 0.3rem;
}

.goals h3 {
    color: #eee;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.goals-img {
    display: block;
    margin: 3rem auto 2rem;
    max-width: 50%;
    border-radius: 8px;
    opacity: 0.9;
}

.nav-return {
    text-align: center;
    margin-top: 3rem;
}

.nav-return a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-return a:hover {
    color: #ccc;
}

body.contact-page {
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 100vh;
}

body.contact-page header {
    margin-top: 8vh;
    margin-bottom: 2rem;
    text-align: center;
}

.contact {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    color: #ddd;
    line-height: 1.7;
}

.contact-img {
    display: block;
    margin: 2rem auto 2.5rem;
    max-width: 45%;
    border-radius: 8px;
    opacity: 0.9;
}

.contact ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.contact ul li {
    margin-bottom: 0.7rem;
    position: relative;
}

.contact ul li::before {
    content: "> ";
    color: #fff;
    margin-right: 0.3rem;
}

.contact a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact a:hover {
    color: #ccc;
}

.nav-return {
    text-align: center;
    margin-top: 3rem;
}

.nav-return a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-return a:hover {
    color: #ccc;
}
