/* =============================================
   Design System — Paweł Seweryn Landing Page
   ============================================= */

/* --- Custom Properties --- */
:root {
    --primary: #135bec;
    --primary-rgb: 19, 91, 236;
    --bg-light: #f6f6f8;
    --bg-dark: #101622;
    --surface-dark: #161d2d;
    --surface-light: #ffffff;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --emerald-400: #34d399;
    --purple-400: #c084fc;
    --green-400: #4ade80;
    --yellow-500: #eab308;
    --red-400: #f87171;
    --red-500: #ef4444;
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --text-heading: #ffffff;
    --nav-bg: rgba(16, 22, 34, 0.9);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--slate-200);
    line-height: 1.6;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Remove focus outline for mouse/touch users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Blazor focuses h1[tabindex="-1"] on navigation — suppress outline */
.hero-title:focus,
.hero-title:focus-visible {
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Grid background --- */
.bg-grid-pattern {
    background-image: linear-gradient(to right, var(--slate-800) 1px, transparent 1px),
        linear-gradient(to bottom, var(--slate-800) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Container --- */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* =============================================
   Navigation
   ============================================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid var(--slate-800);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-inner {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--primary);
}

.nav-links {
    display: none;
    align-items: baseline;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-cta {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.2s;
}

.nav-link-cta:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        padding: 12rem 0 8rem;
    }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 10;
}

.hero-layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-layout {
        grid-template-columns: 7fr 5fr;
        gap: 4rem;
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin-bottom: 1.5rem;
}

.badge-dot {
    position: relative;
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
}

.badge-dot-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: var(--primary);
    opacity: 0.75;
}

.badge-dot-core {
    position: relative;
    display: inline-flex;
    border-radius: 9999px;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Hero text */
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-primary {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-400);
    margin-bottom: 2rem;
    max-width: 42rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-lg);
    color: white;
    background: var(--primary);
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.25);
    cursor: pointer;
}

.btn-primary:hover {
    background: rgba(var(--primary-rgb), 0.9);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid var(--slate-700);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-lg);
    color: var(--slate-300);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--slate-800);
}

/* Terminal Card */
.terminal-card {
    background: var(--surface-dark);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    position: relative;
}

.terminal-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(168, 85, 247, 0.2));
    border-radius: var(--radius-xl);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.terminal-card:hover::before {
    opacity: 0.4;
}

.terminal-header {
    background: var(--slate-900);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--slate-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.terminal-dot-red {
    background: var(--red-500);
}

.terminal-dot-yellow {
    background: var(--yellow-500);
}

.terminal-dot-green {
    background: var(--green-400);
}

.terminal-title {
    color: var(--slate-500);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terminal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--slate-800);
}

.terminal-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.terminal-label {
    color: var(--slate-400);
}

.terminal-value {
    font-weight: 700;
}

.terminal-value-emerald {
    color: var(--emerald-400);
}

.terminal-value-primary {
    color: var(--primary);
}

.terminal-value-purple {
    color: var(--purple-400);
}

.terminal-value-green {
    color: var(--green-400);
}

/* Activity bars */
.activity-section {
    margin-top: 1.5rem;
}

.activity-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.activity-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 3rem;
}

.activity-bar {
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
    animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.activity-bar:nth-child(1) {
    height: 100%;
    opacity: 0.2;
    animation-delay: 0s;
}

.activity-bar:nth-child(2) {
    height: 75%;
    opacity: 0.4;
    animation-delay: 0.1s;
}

.activity-bar:nth-child(3) {
    height: 50%;
    opacity: 1;
    animation-delay: 0.2s;
}

.activity-bar:nth-child(4) {
    height: 66%;
    opacity: 0.6;
    animation-delay: 0.3s;
}

.activity-bar:nth-child(5) {
    height: 33%;
    opacity: 0.3;
    animation-delay: 0.4s;
}

.activity-bar:nth-child(6) {
    height: 75%;
    opacity: 0.8;
    animation-delay: 0.5s;
}

.activity-bar:nth-child(7) {
    height: 100%;
    opacity: 1;
    animation-delay: 0.6s;
}

.activity-bar:nth-child(8) {
    height: 50%;
    opacity: 0.4;
    animation-delay: 0.7s;
}

.activity-bar:nth-child(9) {
    height: 25%;
    opacity: 0.2;
    animation-delay: 0.8s;
}

.activity-bar:nth-child(10) {
    height: 66%;
    opacity: 0.6;
    animation-delay: 0.9s;
}

.activity-bar:nth-child(11) {
    height: 83%;
    opacity: 1;
    animation-delay: 1s;
}

.activity-bar:nth-child(12) {
    height: 33%;
    opacity: 0.3;
    animation-delay: 1.1s;
}

/* =============================================
   What I Do Section
   ============================================= */
.what-i-do {
    padding: 5rem 0;
    background: var(--surface-dark);
    border-top: 1px solid var(--slate-800);
    border-bottom: 1px solid var(--slate-800);
}

.cards-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--bg-dark);
    border: 1px solid var(--slate-800);
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    transition: all 0.3s;
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* =============================================
   Section Headers
   ============================================= */
.section-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-heading-bar {
    width: 0.5rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 1rem;
}

/* =============================================
   Flagship Project Section
   ============================================= */
.flagship {
    padding: 6rem 0;
}

.flagship-card {
    background: var(--surface-dark);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.flagship-layout {
    display: grid;
}

@media (min-width: 1024px) {
    .flagship-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Architecture diagram side */
.flagship-diagram {
    background: var(--slate-900);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--slate-800);
}

@media (min-width: 1024px) {
    .flagship-diagram {
        padding: 3rem;
        border-bottom: none;
        border-right: 1px solid var(--slate-800);
    }
}

.flagship-diagram-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.arch-diagram {
    position: relative;
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.arch-node {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    text-align: center;
}

.arch-node-ingest {
    border: 1px solid var(--slate-600);
    background: var(--slate-800);
    color: var(--slate-300);
    align-self: center;
}

.arch-node-ingest span {
    color: var(--emerald-400);
}

.arch-connector {
    display: flex;
    justify-content: center;
    height: 2rem;
}

.arch-connector-line {
    width: 1px;
    background: var(--slate-600);
    height: 100%;
}

.arch-workers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.arch-worker {
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Split connectors */
.arch-split {
    display: flex;
    justify-content: center;
    height: 2rem;
    position: relative;
}

.arch-split-center {
    width: 1px;
    background: var(--slate-600);
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.arch-split-horizontal {
    width: 66%;
    border-top: 1px solid var(--slate-600);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.arch-storage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.arch-store {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--slate-700);
    background: var(--slate-800);
    color: var(--slate-300);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    text-align: center;
}

.arch-store-label {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.arch-store-label-redis {
    color: var(--red-400);
}

.arch-store-label-elastic {
    color: var(--yellow-500);
}

/* Flagship details side */
.flagship-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .flagship-details {
        padding: 3rem;
    }
}

.flagship-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flagship-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
}

.flagship-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    background: var(--slate-800);
    color: var(--slate-400);
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid var(--slate-700);
}

.flagship-desc {
    color: var(--slate-400);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.flagship-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--slate-800);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    border: 1px solid var(--slate-700);
    color: var(--slate-300);
}

.tech-tag-primary {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.link-arrow {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.link-arrow:hover {
    color: var(--text-heading);
}

.link-arrow .material-icons {
    font-size: 0.875rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.link-arrow:hover .material-icons {
    transform: translateX(4px);
}

/* =============================================
   Selected Works Section
   ============================================= */
.selected-works {
    padding: 3rem 0;
    background: var(--bg-dark);
}

.selected-works-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-800);
}

.works-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    background: var(--surface-dark);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-card:hover {
    background: var(--slate-800);
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.work-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
}

.work-card-icon {
    color: var(--slate-600);
}

.work-card-desc {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.work-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-card-tag {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.work-card-tag-primary {
    color: var(--primary);
}

.work-card-tag-muted {
    color: var(--slate-500);
}

/* =============================================
   Why Different / Tech Stack Section
   ============================================= */
.why-stack {
    padding: 6rem 0;
    border-top: 1px solid var(--slate-800);
}

.why-stack-layout {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .why-stack-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.why-title,
.stack-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2rem;
}

/* JSON code block */
.json-block {
    background: #0B0E14;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    border: 1px solid var(--slate-800);
}

.json-comment {
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.json-brace {
    color: var(--yellow-500);
}

.json-key {
    color: var(--purple-400);
}

.json-value {
    color: var(--green-400);
}

.json-line {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* Tech stack groups */
.stack-groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stack-group-label {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stack-badge {
    padding: 0.5rem 1rem;
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--radius);
    color: var(--slate-300);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: default;
}

.stack-badge:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--text-heading);
}

/* =============================================
   Side Projects / About Section
   ============================================= */
.about-section {
    padding: 5rem 0;
    background: var(--surface-dark);
    border-top: 1px solid var(--slate-800);
}

.about-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 4fr 8fr;
    }
}

.side-title,
.about-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-dark);
    border: 1px solid var(--slate-800);
    transition: border-color 0.2s;
}

.side-item:hover {
    border-color: var(--slate-600);
}

.side-item-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: var(--slate-300);
    transition: color 0.2s;
}

.side-item:hover .side-item-name {
    color: var(--primary);
}

.side-item-desc {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

.side-item-arrow {
    color: var(--slate-600);
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.side-item:hover .side-item-arrow {
    transform: rotate(-45deg);
}

.about-prose {
    color: var(--slate-400);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-prose p+p {
    margin-top: 1rem;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--slate-800);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-headline {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.footer-email {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--text-heading);
}

.footer-contact-line {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-social {
    color: var(--slate-400);
    transition: color 0.2s;
}

.footer-social:hover {
    color: var(--text-heading);
}

.footer-social svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.footer-copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-600);
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

/* =============================================
   Scroll Reveal Animations
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating terminal animation */
@keyframes terminalFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.terminal-float {
    animation: terminalFloat 4s ease-in-out infinite;
}

/* Card hover glow */
.card,
.work-card,
.education-card,
.flagship-card {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover,
.work-card:hover {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.08);
}

.flagship-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.1);
}

/* =============================================
   Expandable Details
   ============================================= */
.expandable {
    border-top: 1px solid var(--slate-800);
    margin-top: 1rem;
}

.expandable-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    list-style: none;
    transition: color 0.2s;
}

.expandable-trigger::-webkit-details-marker {
    display: none;
}

.expandable-trigger:hover {
    color: var(--text-heading);
}

.expandable-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.expandable-body {
    padding-bottom: 1rem;
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-block-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.6;
}

.detail-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.detail-list li strong {
    color: var(--slate-200);
}

.detail-note {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.7;
}

.detail-note strong {
    color: var(--slate-200);
}

/* =============================================
   Experience Timeline
   ============================================= */
.experience {
    padding: 6rem 0;
    border-top: 1px solid var(--slate-800);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--slate-800));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    transform: translateX(-5px);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.timeline-content {
    background: var(--surface-dark);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.timeline-role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .timeline-meta {
        align-items: flex-end;
    }
}

.timeline-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--slate-500);
    white-space: nowrap;
}

.timeline-badge-industry {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 9999px;
    color: var(--primary);
    white-space: nowrap;
}

.timeline-desc {
    color: var(--slate-400);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--slate-300);
}

.timeline-highlight-icon {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.timeline-highlight strong {
    color: var(--text-heading);
}

/* =============================================
   Education Section
   ============================================= */
.education {
    padding: 5rem 0;
    background: var(--surface-dark);
    border-top: 1px solid var(--slate-800);
}

.education-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.education-card {
    background: var(--bg-dark);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.education-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.08);
}

.education-card-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple-400));
}

.education-card-accent-music {
    background: linear-gradient(90deg, var(--emerald-400), var(--primary));
}

.education-card-body {
    padding: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.education-degree {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
}

.education-spec {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.education-school {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.education-music-desc {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* =============================================
   Hero Social Links
   ============================================= */
.hero-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-social-link {
    color: var(--slate-500);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}

.hero-social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* =============================================
   Light Theme Overrides
   ============================================= */
[data-theme="light"] {
    --bg-dark: #f6f6f8;
    --surface-dark: #ffffff;
    --slate-200: #1e293b;
    --slate-300: #334155;
    --slate-400: #475569;
    --slate-500: #64748b;
    --slate-600: #94a3b8;
    --slate-700: #cbd5e1;
    --slate-800: #e2e8f0;
    --slate-900: #f1f5f9;
    --text-heading: #0f172a;
    --nav-bg: rgba(246, 246, 248, 0.9);
}

/* Override hardcoded colors that can't use vars */
[data-theme="light"] .json-block {
    background: #f1f5f9;
}

[data-theme="light"] .terminal-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .flagship-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="light"] .timeline-marker {
    border-color: var(--bg-dark);
}

/* =============================================
   Theme Toggle — Icon
   ============================================= */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: inherit;
}

.theme-toggle .material-icons {
    font-size: 1.125rem;
    vertical-align: middle;
}

/* Dark mode: show sun icon, hide moon */
.theme-icon-dark {
    display: none;
}

.theme-icon-light {
    display: inline;
}

/* Light mode: show moon icon, hide sun */
[data-theme="light"] .theme-icon-dark {
    display: inline;
}

[data-theme="light"] .theme-icon-light {
    display: none;
}