html {
    scroll-behavior: smooth;
}

:root {
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-strong: rgba(15, 23, 42, 0.92);
    --text: #94a3b8;
    --heading: #e2e8f0;
    --muted: #64748b;
    --accent: #5eead4;
    --accent-strong: #14b8a6;
    --outline: rgba(148, 163, 184, 0.18);
    --glow: rgba(94, 234, 212, 0.18);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, .job-title {
    color: var(--heading);
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--text);
    max-width: 300px;
    margin-bottom: 3rem;
}

.root-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 2rem;
}

.left-side {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 45%;
    padding-top: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-side {
    width: 55%;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.nav-bar ul {
    list-style-type: none;
    padding: 0;
}

.nav-bar li {
    margin-bottom: 1.5rem;
}

.nav-bar a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-bar a:hover {
    color: var(--heading);
}

.socials a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.socials a:hover {
    color: var(--heading);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid #1e293b;
}

.info {
    margin-bottom: 5rem;
}

.card-section {
    margin-bottom: 5rem;
}

.card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    cursor: pointer;
}

.card:hover {
    background-color: rgba(30, 41, 59, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.date-col {
    width: 25%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-top: 0.25rem;
}

.content-col {
    width: 75%;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card:hover .job-title {
    color: var(--accent);
}

.description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack li {
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-featured {
    border: 1px solid rgba(94, 234, 212, 0.18);
    background:
      linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(15, 23, 42, 0.02)),
      rgba(15, 23, 42, 0.18);
}

.card-cta {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0;
}

.snake-page {
    background:
      radial-gradient(circle at top left, rgba(20, 184, 166, 0.25), transparent 30%),
      radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 20%),
      linear-gradient(180deg, #07111f 0%, #0f172a 55%, #111827 100%);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
}

.snake-hero,
.snake-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem;
}

.snake-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.snake-home-link,
.snake-topbar-status {
    color: var(--heading);
    text-decoration: none;
    font-size: 0.9rem;
}

.snake-topbar-status {
    color: var(--accent);
}

.snake-hero-copy {
    max-width: 760px;
}

.eyebrow {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.snake-hero h1 {
    font-size: clamp(3rem, 8vw, 5.8rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-summary {
    max-width: 720px;
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.primary-action,
.secondary-action,
.ghost-button {
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-action,
.primary-action-button {
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    color: #05222a;
    box-shadow: 0 16px 40px var(--glow);
}

.secondary-action,
.secondary-action-button {
    background: transparent;
    color: var(--heading);
    border-color: var(--outline);
}

.ghost-button {
    background: rgba(15, 23, 42, 0.45);
    color: var(--heading);
    border-color: var(--outline);
    cursor: pointer;
}

.primary-action:hover,
.secondary-action:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.snake-grid,
.console-grid,
.architecture-grid,
.docs-grid {
    display: grid;
    gap: 1.25rem;
}

.snake-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    margin-bottom: 2rem;
}

.console-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-grid-lower {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.console-grid-history {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
}

.architecture-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snake-panel {
    background: var(--surface);
    border: 1px solid var(--outline);
    backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    padding: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.snake-panel h2,
.snake-panel h3 {
    margin-bottom: 0.75rem;
}

.docs-link-panel {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.docs-link-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.28);
    background: rgba(15, 23, 42, 0.9);
}

.docs-kicker {
    margin: 0 0 0.4rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.snake-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.metric-row:last-child {
    border-bottom: 0;
}

.metric-label {
    color: var(--muted);
}

.metric-value {
    color: var(--heading);
    text-align: right;
}

.snake-console,
.snake-architecture,
.snake-docs {
    margin-top: 3rem;
}

.snake-console-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.console-note {
    max-width: 420px;
    margin: 0;
}

.snake-form {
    display: grid;
    gap: 0.9rem;
}

.snake-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--heading);
}

.snake-form input,
.snake-form select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    color: var(--heading);
    font: inherit;
}

.primary-action-button,
.secondary-action-button {
    cursor: pointer;
}

.snake-output {
    margin: 0;
    min-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.spotify-status,
.scoreboard,
.match-history,
.room-summary {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.spotify-line,
.empty-state {
    margin: 0;
}

.score-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.score-rank {
    color: #fbbf24;
    font-weight: 700;
}

.score-name {
    color: var(--heading);
}

.score-value {
    color: var(--accent);
    font-weight: 700;
}

.summary-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 23, 42, 0.48));
    border: 1px solid rgba(94, 234, 212, 0.18);
}

.summary-kicker,
.summary-meta,
.history-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.summary-card h4,
.history-title {
    margin: 0;
    color: var(--heading);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.summary-item {
    display: grid;
    gap: 0.3rem;
}

.summary-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-value {
    color: var(--heading);
    font-weight: 700;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.history-badge {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(94, 234, 212, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .root-container {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
        height: auto;
        position: static;
        padding-top: 3rem;
    }

    .snake-grid,
    .console-grid,
    .console-grid-lower,
    .architecture-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .snake-console-header,
    .snake-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .history-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
