@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    color-scheme: dark;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #050806;
    color: #e6fde0;
    --green: #5efc8d;
    --green-soft: rgba(94, 252, 141, 0.2);
    --surface: #0b120d;
    --surface-alt: #111c14;
    --muted: #8ab396;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 0, rgba(94, 252, 141, 0.08), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(90, 236, 140, 0.05), transparent 45%),
        linear-gradient(180deg, #050806 0%, #0a100b 60%, #040604 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 0;
    line-height: 1.6;
    color: #cfe7d1;
    position: relative;
    z-index: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.particle-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.splash-screen {
    position: fixed;
    inset: 0;
    background: #050806;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 400ms ease, visibility 400ms ease;
}

.splash-screen--hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-screen__inner {
    width: min(90vw, 540px);
    border-radius: 1.5rem;
    background: rgba(5, 8, 6, 0.8);
    border: 1px solid rgba(94, 252, 141, 0.4);
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.splash-screen__logo {
    font-family: "Space Mono", "IBM Plex Mono", monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.splash-screen__log {
    font-family: "Space Mono", "IBM Plex Mono", monospace;
    color: #e6fde0;
    min-height: 120px;
}

.splash-screen__log span {
    display: block;
    opacity: 0.85;
}

.splash-screen__skip {
    margin-top: 1.5rem;
    width: 100%;
    border: 1px solid rgba(94, 252, 141, 0.4);
    background: transparent;
    color: var(--green);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.splash-screen__skip:hover {
    background: rgba(94, 252, 141, 0.15);
}

main {
    width: 100%;
    max-width: 1040px;
    margin: 2.5rem auto 3rem;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

.hero-shell {
    width: 100%;
    max-width: 1040px;
    margin: 2rem auto 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-shell h1 {
    font-family: "Space Mono", "IBM Plex Mono", monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: clamp(3rem, 6vw, 4.5rem);
    text-transform: lowercase;
    color: #edfef1;
    background: linear-gradient(135deg, #f9fff4 0%, #c7ffd9 55%, #5efc8d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 15px rgba(12, 16, 12, 0.7),
        0 0 25px rgba(94, 252, 141, 0.25);
    position: relative;
    animation: heroGlitch 4s infinite;
}

.hero-shell__glass {
    margin: 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1040px;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 1.5rem;
    background: rgba(12, 18, 13, 0.55);
    border: 1px solid rgba(94, 252, 141, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(94, 252, 141, 0.08);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.hero-shell h1::after,
.hero-shell h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    pointer-events: none;
}

.hero-shell h1::before {
    color: rgba(94, 252, 141, 0.8);
    text-shadow: 2px 0 rgba(94, 252, 141, 0.4);
}

.hero-shell h1::after {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: -2px 0 rgba(94, 252, 141, 0.2);
}

@keyframes heroGlitch {
    0%, 90%, 100% {
        filter: none;
    }
    91% {
        filter: hue-rotate(-8deg);
    }
    92% {
        filter: hue-rotate(8deg);
    }
    93% {
        filter: none;
    }
}

.hero-shell h1::before {
    animation: heroGlitchBefore 4s infinite;
}

.hero-shell h1::after {
    animation: heroGlitchAfter 4s infinite;
}

@keyframes heroGlitchBefore {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    91% {
        opacity: 0.8;
        transform: translate(-3px, -1.5px) skewX(-2deg);
    }
    93% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

@keyframes heroGlitchAfter {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    91.5% {
        opacity: 0.7;
        transform: translate(3px, 1.5px) skewX(2deg);
    }
    93.5% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

.hero-shell__glass::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(94, 252, 141, 0.2);
    pointer-events: none;
}

.site-nav {
    width: 100vw;
    align-self: stretch;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3vw;
    border-bottom: 1px solid rgba(94, 252, 141, 0.35);
    background: rgba(5, 8, 6, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.site-nav__logo {
    color: #e6fde0;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: lowercase;
    font-family: "Space Mono", "IBM Plex Mono", monospace;
}

.site-nav__logo-mark {
    color: var(--green);
}

.site-nav__links {
    display: flex;
    gap: 0;
    align-items: center;
    border-left: 1px solid rgba(94, 252, 141, 0.3);
    margin-left: 1.5rem;
}

.site-nav__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 150ms ease;
    padding: 0 1rem;
    position: relative;
}

.site-nav__links a + a {
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
    color: var(--green);
}

.site-nav__link--ghost {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(94, 252, 141, 0.4);
    border-radius: 999px;
    margin-left: 0.75rem;
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
}

.site-nav__toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    display: block;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3.5rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    letter-spacing: -0.04em;
}

header p {
    margin: 0.75rem auto 0;
    max-width: 560px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid rgba(94, 252, 141, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    transition: transform 150ms ease, border-color 150ms ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.project-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.project-card p {
    margin: 0 0 0.75rem;
    color: #cfe7d1;
    font-size: 0.95rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
}

.links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 252, 141, 0.5);
    color: var(--green);
    text-decoration: none;
}

.links a:hover {
    background: var(--green-soft);
}

.project-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-card__tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.project-card__tags li {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(94, 252, 141, 0.12);
    border: 1px solid rgba(94, 252, 141, 0.25);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--green);
}

.project-card__featured-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #051207;
    background: var(--green);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    box-shadow: 0 5px 15px rgba(94, 252, 141, 0.4);
}

.project-card--featured {
    border-color: rgba(94, 252, 141, 0.6);
    background: radial-gradient(circle at top, rgba(94, 252, 141, 0.12), transparent 60%), var(--surface);
    animation: featuredPulse 3s infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 30px 60px rgba(94, 252, 141, 0.15);
    }
    50% {
        box-shadow: 0 35px 80px rgba(94, 252, 141, 0.35);
    }
}

.cta {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px dashed rgba(94, 252, 141, 0.35);
    color: var(--muted);
    background: var(--surface-alt);
}

.cta strong {
    color: var(--green);
}

.site-footer {
    margin-top: auto;
    padding: 2.5rem 3vw 2.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    background: rgba(5, 8, 6, 0.78);
    border-top: 1px solid rgba(94, 252, 141, 0.2);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.site-footer__brand {
    font-family: "Space Mono", "IBM Plex Mono", monospace;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--green);
    margin: 0 0 0.5rem;
}

.site-footer__tagline {
    margin: 0 0 0.75rem;
    color: #e6fde0;
}

.site-footer__status {
    margin: 0;
    color: #8ab396;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(94, 252, 141, 0.65);
    display: inline-block;
}

.site-footer__label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.site-footer__grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer__grid a {
    color: #e6fde0;
    text-decoration: none;
}

.site-footer__grid a:hover {
    color: var(--green);
}

.stack-marquee {
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(94, 252, 141, 0.25);
    background: rgba(5, 8, 6, 0.6);
}

.stack-marquee__inner {
    display: flex;
    gap: 1rem;
    padding: 0.35rem 1rem;
    animation: stackScroll 18s linear infinite;
}

.stack-marquee span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
}

@keyframes stackScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.site-footer__prompt {
    margin-top: 2rem;
    border-top: 1px solid rgba(94, 252, 141, 0.2);
    padding-top: 1rem;
    font-family: "Space Mono", "IBM Plex Mono", monospace;
    color: #8ab396;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.not-found-body {
    padding-top: 0;
}

.not-found-shell {
    width: 100%;
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 1.5rem 3rem;
}

.terminal-panel {
    border-radius: 1.5rem;
    background: rgba(5, 8, 6, 0.85);
    border: 1px solid rgba(94, 252, 141, 0.35);
    padding: 2.5rem;
    box-shadow: inset 0 0 50px rgba(94, 252, 141, 0.05), 0 25px 60px rgba(0, 0, 0, 0.45);
    font-family: "Space Mono", "IBM Plex Mono", monospace;
}

.terminal-panel__prompt {
    color: var(--green);
    letter-spacing: 0.3em;
    margin: 0 0 0.5rem;
}

.terminal-panel__line {
    margin: 0 0 1rem;
    color: #e6fde0;
}

.terminal-panel__options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.terminal-panel__options a {
    color: var(--green);
    text-decoration: none;
}

.terminal-panel__options a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-bottom: 1px solid rgba(94, 252, 141, 0.25);
    }

    .site-nav__toggle {
        display: flex;
        margin-left: auto;
    }

    .site-nav__links {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 200ms ease;
        border: none;
        width: 100%;
    }

    .site-nav--open .site-nav__links {
        margin-top: 1rem;
        max-height: 400px;
    }

    main {
        margin-top: 0;
    }

    .hero-shell {
        padding: 0;
    }

    .hero-shell h1 {
        font-size: clamp(1rem, 7vw, 1.6rem);
        letter-spacing: 0.015em;
        line-height: 1.02;
        text-wrap: balance;
    }

    .hero-shell__glass {
        width: 100%;
        min-width: auto;
    }

    .hero-shell__glass p {
        font-size: 0.9rem;
    }
}
