:root {
    --bg: #050505;
    --bg-deep: #020202;
    --panel: rgba(255, 255, 255, 0.02);
    --panel-strong: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f3f3f3;
    --muted: #8f8f8f;
    --soft: #cfcfcf;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 18%),
        linear-gradient(180deg, #0a0a0a 0%, var(--bg-deep) 100%);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.34) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.38;
    background-image:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px),
        radial-gradient(circle at 24% 36%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.4px),
        radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.4px),
        radial-gradient(circle at 56% 28%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.4px),
        radial-gradient(circle at 73% 16%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.4px),
        radial-gradient(circle at 86% 34%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.4px),
        radial-gradient(circle at 15% 62%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.4px),
        radial-gradient(circle at 33% 76%, rgba(255, 255, 255, 0.46) 0 1px, transparent 1.4px),
        radial-gradient(circle at 55% 82%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.4px),
        radial-gradient(circle at 84% 74%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px);
    background-size: 240px 240px;
}

.star {
    display: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    padding: 30px 24px 132px;
}

.page {
    width: min(100%, 860px);
    margin: 0 auto;
}

.hero {
    padding: 8px 0 22px;
}

.hero h1,
.content-section h2 {
    font-family: 'Space Grotesk', sans-serif;
}

.content-section h2,
.item-meta,
.project-links a {
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-description,
.stack-copy p,
.project-copy p,
.item-copy p {
    color: var(--muted);
}

.hero-description {
    max-width: 38rem;
    font-size: 0.94rem;
}

.content-section {
    padding: 18px 0;
}

.content-section h2 {
    font-size: 0.66rem;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section h2 i {
    font-size: 0.72rem;
    color: var(--soft);
}

.stack-copy {
    max-width: 44rem;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.stack-copy p {
    font-size: 0.9rem;
}

.list-block,
.project-list {
    display: grid;
    gap: 12px;
}

.list-item,
.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.list-item:hover,
.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), var(--panel));
}

.item-copy h3,
.project-copy h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.item-copy p,
.project-copy p {
    font-size: 0.82rem;
}

.item-highlights {
    margin-top: 8px;
}

.item-meta {
    color: var(--muted);
    white-space: nowrap;
    font-size: 0.62rem;
    padding-top: 2px;
}

.role-line,
.project-links,
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}

.role-line {
    margin-bottom: 4px;
}

.role-line span,
.project-copy .role-line span {
    color: var(--muted);
    font-size: 0.68rem;
}

.company {
    color: var(--soft);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--soft);
    font-size: 0.68rem;
    font-weight: 500;
}

#skills .skills-list {
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

@media (min-width: 1200px) {
    #skills {
        position: fixed;
        left: 24px;
        top: 50%;
        transform: translateY(calc(-50% + 14px));
        width: 140px;
        z-index: 100;
        padding: 0;
        margin: 0;
        opacity: 0;
    }

    #skills.active {
        opacity: 1;
        transform: translateY(-50%);
    }

    #skills h2 {
        font-size: 0.6rem;
        margin-bottom: 12px;
        justify-content: center;
        opacity: 0.5;
        letter-spacing: 0.2em;
    }

    #skills h2 i {
        display: none;
    }

    #skills .skills-list {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        background: rgba(10, 10, 10, 0.88);
        backdrop-filter: blur(18px);
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 10px 6px;
        max-height: 80vh;
        overflow-y: auto;
        scrollbar-width: none;
        gap: 2px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    #skills .skills-list::-webkit-scrollbar {
        display: none;
    }

    #skills .pill {
        background: transparent;
        border: 1px solid transparent;
        width: 100%;
        justify-content: flex-start;
        font-size: 0.65rem;
        padding: 6px 10px;
        color: var(--muted);
        transition: all 180ms ease;
    }

    #skills .pill:hover {
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        border-color: rgba(255, 255, 255, 0.05);
        transform: translateX(2px);
    }
}

.project-copy .skills-list {
    margin-top: 10px;
}

.project-links {
    margin-top: 10px;
}

.project-links a {
    color: var(--soft);
    font-size: 0.7rem;
}

.dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(18px);
    z-index: 20;
}

.dock a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #efefef;
    transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.dock a:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.x-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .page-shell {
        padding: 20px 16px 118px;
    }

    .list-item,
    .project-card {
        grid-template-columns: 1fr;
    }

    .item-meta {
        white-space: normal;
    }

    .dock {
        width: calc(100% - 24px);
        justify-content: space-between;
        padding-inline: 10px;
    }
}
