/* ==========================================================================
   Neo-Brutalism Design System - GuoBug Preview
   Inspired by yanliudesign.live
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --background: #ffffff;
    --foreground: #000000;
    --card: #ffffff;
    --card-foreground: #000000;
    --secondary: #f4f4f5;
    --secondary-foreground: #000000;
    --muted: #f4f4f5;
    --muted-foreground: #666666;
    --accent: #7fff00; /* Neon Lime / Chartreuse */
    --accent-foreground: #000000;
    --border: #000000;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Custom Selection */
::selection {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Typography Helpers */
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Bilingual Text Switching */
[data-lang="zh"] [data-i18n="en"] { display: none !important; }
[data-lang="en"] [data-i18n="zh"] { display: none !important; }

/* Container */
.container {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    box-sizing: border-box;
}

@media (min-width: 540px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Sticky Top Navigation Bar
   -------------------------------------------------------------------------- */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    border-bottom: 2px solid var(--border);
    transition: transform 0.2s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.nav-logo {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--foreground);
    border: 2px solid transparent;
    padding: 0.12rem 0.25rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

@media (min-width: 440px) {
    .nav-logo {
        font-size: 1.05rem;
        padding: 0.2rem 0.45rem;
        gap: 0.45rem;
    }
}

@media (min-width: 768px) {
    .nav-logo {
        font-size: 1.25rem;
        letter-spacing: -0.05em;
        padding: 0.25rem 0.6rem;
        gap: 0.5rem;
    }
}

.nav-logo:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--border);
}

.nav-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

@media (min-width: 440px) {
    .nav-logo-img {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 768px) {
    .nav-logo-img {
        width: 28px;
        height: 28px;
    }
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.08);
}

.nav-logo-badge {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    background: var(--foreground);
    color: var(--background);
    border-radius: 2px;
}

@media (min-width: 440px) {
    .nav-logo-badge {
        display: inline-block;
    }
}

@media (min-width: 480px) {
    .nav-logo-badge {
        font-size: 0.75rem;
        padding: 0.1rem 0.4rem;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.65rem;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active-nav {
    background-color: var(--accent);
    color: #000000;
    border-color: var(--border);
    box-shadow: 2px 2px 0px 0px #000000;
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 2px solid var(--border);
    padding: 0.15rem 0.35rem;
    background: var(--background);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .lang-switch {
        gap: 0.25rem;
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: 0.1rem 0.25rem;
    transition: all 0.15s ease;
}

@media (min-width: 480px) {
    .lang-btn {
        padding: 0.1rem 0.3rem;
    }
}

.lang-btn.active {
    background-color: var(--foreground);
    color: var(--background);
}

.nav-actions,
.nav-container > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.35rem !important;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .nav-actions,
    .nav-container > div:last-child {
        gap: 0.75rem !important;
    }
}

.menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .menu-toggle-btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 860px) {
    .menu-toggle-btn {
        display: none;
    }
}

.menu-toggle-btn:hover {
    background-color: var(--foreground);
    color: var(--background);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    background: var(--background);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem;
    z-index: 99;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--foreground);
    display: block;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
    border-bottom: 2px solid var(--border);
    position: relative;
    background-color: var(--background);
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.hero-main-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-main-title-wrap {
        justify-content: flex-start;
        gap: 1.5rem;
    }
}

.hero-title {
    font-size: clamp(2.35rem, 9vw, 9.5rem);
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--foreground);
    margin: 0;
    word-break: keep-all;
}

.hero-avatar {
    width: clamp(3.4rem, 11vw, 7.5rem);
    height: clamp(3.4rem, 11vw, 7.5rem);
    min-width: 3.4rem;
    min-height: 3.4rem;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3.5px 3.5px 0px 0px var(--accent);
    padding: 0.2rem;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .hero-avatar {
        border-width: 3px;
        box-shadow: 4px 4px 0px 0px var(--accent);
        padding: 0.45rem;
    }
}

.hero-avatar:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px var(--accent);
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.hero-social-link:hover {
    background-color: var(--accent);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0px 0px #000;
}

.hero-bio {
    margin-top: 1.75rem;
    border-left: 3.5px solid var(--accent);
    padding-left: 1.15rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-bio {
        margin-top: 4.5rem;
        padding-left: 2rem;
        border-left-width: 4px;
    }
}

.hero-bio p {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
    line-height: 1.65;
    color: var(--foreground);
    margin-bottom: 1.1rem;
    word-break: break-word;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}

.highlight-tag {
    background-color: var(--accent);
    color: #000000;
    font-weight: 700;
    padding: 0.08em 0.38em;
    border: 1px solid rgba(0, 0, 0, 0.25);
    display: inline-block;
    vertical-align: baseline;
    line-height: 1.25;
    margin: 0.08em 0;
    max-width: 100%;
    word-break: normal;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Company Highlights Bar & Popover Tooltips */
.hero-companies-bar {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem 1.5rem;
    padding: 1.5rem 0.75rem;
    border-top: 2px dashed rgba(0,0,0,0.15);
    border-bottom: 2px dashed rgba(0,0,0,0.15);
    background: #fafafa;
}

@media (min-width: 768px) {
    .hero-companies-bar {
        margin-top: 3.5rem;
        gap: 2rem 3.5rem;
        padding: 2.5rem 1rem;
    }
}

.company-brand-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    letter-spacing: -0.03em;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

@media (min-width: 768px) {
    .company-brand-item {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

.company-brand-item:hover {
    border-color: var(--border);
    background-color: #ffffff;
    box-shadow: 4px 4px 0px 0px #000000;
    transform: translateY(-2px);
}

.company-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .company-logo-img {
        width: 32px;
        height: 32px;
    }
}

.company-brand-item:hover .company-logo-img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Neo-Brutalist Popover Tooltip */
@media (max-width: 767px) {
    .company-tooltip {
        display: none !important;
    }
}

.company-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 280px;
    max-width: calc(100vw - 2.5rem);
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px 0px var(--accent);
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .company-tooltip {
        width: 320px;
        box-shadow: 6px 6px 0px 0px var(--accent);
        padding: 1rem 1.15rem;
        font-size: 0.825rem;
    }
}

/* Tooltip downward arrow */
.company-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #000000 transparent transparent transparent;
}

.company-tooltip::before {
    content: '';
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    z-index: 1;
}

.company-brand-item:hover .company-tooltip,
.company-brand-item:focus .company-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.company-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed #d1d5db;
}

.company-tooltip-role {
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #000000;
}

.company-tooltip-badge {
    background: var(--accent);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border: 1px solid #000000;
    text-transform: uppercase;
}

.company-tooltip-desc {
    color: #333333;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Skills Badges Matrix */
.hero-badges-matrix {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero-badges-matrix {
        margin-top: 2.5rem;
        gap: 0.75rem;
    }
}

.badge-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.65rem;
    border: 2px solid var(--border);
    background: var(--secondary);
    color: var(--foreground);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .badge-item {
        font-size: 0.875rem;
        letter-spacing: 0.04em;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
}

.badge-item:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px 0px #000;
}

.badge-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Marquee Banner (Ribbon Divider)
   -------------------------------------------------------------------------- */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--foreground);
    color: var(--background);
    padding: 0.85rem 0;
    border-bottom: 2px solid var(--border);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    user-select: none;
}

.marquee-wrapper.reverse {
    background-color: var(--accent);
    color: #000;
}

.marquee-track {
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-wrapper.reverse .marquee-track {
    animation-direction: reverse;
}

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

/* --------------------------------------------------------------------------
   Section Common Styles
   -------------------------------------------------------------------------- */
.section-block {
    border-bottom: 2px solid var(--border);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-block {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .section-header {
        align-items: flex-end;
        flex-direction: row;
        margin-bottom: 3.5rem;
        gap: 1.5rem;
    }
}

.section-title {
    font-size: clamp(2.35rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.92;
    color: var(--foreground);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--muted-foreground);
    max-width: 100%;
    text-align: left;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 0.875rem;
        max-width: 380px;
        text-align: right;
    }
}

.view-all-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--border);
    transition: all 0.15s ease;
}

.view-all-link:hover {
    border-color: var(--accent);
    color: #000;
    background-color: var(--accent);
    padding: 0.2rem 0.5rem;
}

/* --------------------------------------------------------------------------
   WORK Section (Compact Chronological Career Rows)
   -------------------------------------------------------------------------- */
.work-history-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.work-history-item {
    border: 2px solid var(--border);
    background: #ffffff;
    padding: 1.15rem 1.15rem;
    box-shadow: 3.5px 3.5px 0px 0px #000000;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .work-history-item {
        padding: 1.35rem 1.75rem;
        box-shadow: 4px 4px 0px 0px #000000;
        gap: 1rem;
    }
}

@media (min-width: 900px) {
    .work-history-item {
        grid-template-columns: 320px 1fr;
        gap: 2.5rem;
        align-items: center;
    }
}

.work-history-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000000;
    background-color: #fafafa;
}

.work-history-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.work-history-period {
    font-family: var(--font-mono);
    font-size: 0.775rem;
    font-weight: 700;
    color: #000;
    background: var(--accent);
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border: 1.5px solid #000;
    width: fit-content;
    text-transform: uppercase;
}

.work-history-company {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--foreground);
    line-height: 1.15;
    margin-top: 0.2rem;
}

.work-history-role {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--muted-foreground);
    font-weight: 700;
}

.work-history-desc {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: #222222;
    margin: 0;
}

/* --------------------------------------------------------------------------
   VIBE CODING Section (2 Prominent Interactive Cards)
   -------------------------------------------------------------------------- */
.vibe-section {
    background-color: #f9f9fa;
}

.vibe-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 580px) {
    .vibe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 860px) {
    .vibe-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.vibe-card {
    position: relative;
    border: 2px solid var(--border);
    background: var(--card);
    aspect-ratio: 16 / 11;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px 0px #000000;
}

@media (min-width: 580px) {
    .vibe-card {
        aspect-ratio: 1 / 1;
    }
}

.vibe-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px 0px #000000;
}

.vibe-card-bg {
    position: absolute;
    inset: 0;
    background: #0f1115;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 14px 14px;
}

.vibe-card-symbol {
    font-size: 3.25rem;
    color: #fff;
    opacity: 0.25;
    font-family: var(--font-mono);
    font-weight: 900;
    transition: all 0.3s ease;
    user-select: none;
}

.vibe-card:hover .vibe-card-symbol {
    opacity: 0.7;
    transform: scale(1.15) rotate(5deg);
    color: var(--accent);
}

.vibe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.vibe-card:hover .vibe-card-img {
    transform: scale(1.05);
}

.vibe-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    background: var(--accent);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border: 1.5px solid var(--border);
}

.vibe-card-footer {
    position: relative;
    z-index: 10;
    background: var(--background);
    border-top: 2px solid var(--border);
    padding: 0.85rem 1rem;
    transform: translateY(0);
    transition: transform 0.25s ease;
}

.vibe-card-title {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vibe-card-tag {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   WRITINGS Section
   -------------------------------------------------------------------------- */
.writings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 860px) {
    .writings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.writing-card {
    border: 2px solid var(--border);
    background: var(--card);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    box-shadow: 3.5px 3.5px 0px 0px #000;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .writing-card {
        padding: 1.75rem;
        min-height: 220px;
        box-shadow: 4px 4px 0px 0px #000;
    }
}

.writing-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px 0px #000;
    background-color: #fafafa;
}

.writing-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.writing-pub-tag {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    border: 1.5px solid var(--border);
    padding: 0.12rem 0.45rem;
    text-transform: uppercase;
}

.writing-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.writing-title {
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
    transition: color 0.15s ease;
}

@media (min-width: 768px) {
    .writing-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.writing-card:hover .writing-title {
    color: #000;
    text-decoration: underline;
}

.writing-excerpt {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .writing-excerpt {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

.writing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    border-top: 1px dashed #d1d5db;
    padding-top: 0.75rem;
}

.writing-read-more {
    font-weight: 700;
    color: var(--foreground);
}

/* --------------------------------------------------------------------------
   ABOUT Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (min-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.about-heading {
    font-size: clamp(2.35rem, 7vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.about-content {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--foreground);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .about-content {
        font-size: 1rem;
        line-height: 1.7;
        gap: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   FOOTER (Inverted Neo-Brutalist)
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--foreground);
    color: var(--background);
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .site-footer {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

.footer-dot-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
}

.footer-top-label {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .footer-top-label {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }
}

.footer-email-link {
    font-size: clamp(1.45rem, 6.5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--background);
    text-decoration: none;
    display: block;
    word-break: break-all;
    transition: color 0.15s ease;
}

.footer-email-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.8;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        margin-top: 5rem;
        padding-top: 2rem;
        font-size: 0.875rem;
        flex-direction: row;
        align-items: center;
    }
}

.footer-social-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-social-links {
        gap: 2rem;
    }
}

.footer-social-link {
    color: var(--background);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease;
}

.footer-social-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   Medium-Style Article Detail Page (Post View) - Neo-Brutalism
   ========================================================================== */
.medium-article-page {
    background-color: var(--background);
    padding-top: 3.5rem;
    padding-bottom: 6rem;
}

.medium-article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb & Publication Header */
.medium-pub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 700;
}

.medium-pub-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    background: #000;
    color: var(--accent);
    border: 1.5px solid #000;
}

.medium-back-link {
    color: var(--muted-foreground);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease;
}

.medium-back-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Article Headline & Subtitle */
.medium-article-title {
    font-size: clamp(2.35rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 1.25rem;
}

.medium-article-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Medium Author Meta Bar */
.medium-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.medium-author-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.medium-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.medium-author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.medium-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.medium-author-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.medium-author-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--foreground);
    text-transform: uppercase;
}

.medium-follow-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    background: transparent;
    border: 1.5px solid #000;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.medium-follow-btn:hover,
.medium-follow-btn.following {
    background: var(--accent);
    box-shadow: 2px 2px 0px #000;
}

.medium-post-specs {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.medium-author-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.medium-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.medium-action-btn:hover {
    color: #000;
    background: #f3f4f6;
}

/* Medium Cover Visual Frame */
.medium-cover-frame {
    border: 2px solid var(--border);
    background: #ffffff;
    box-shadow: 6px 6px 0px 0px #000000;
    margin-bottom: 3.5rem;
    overflow: hidden;
}

.medium-cover-visual {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: #ffffff;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--border);
}

.medium-cover-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--accent);
    color: #000000;
    padding: 0.25rem 0.75rem;
    border: 1.5px solid #000;
    margin-bottom: 1.25rem;
}

.medium-cover-graphic-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1.15;
    max-width: 600px;
}

.medium-cover-caption {
    padding: 0.85rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-foreground);
    background: #fafafa;
    text-align: center;
}

/* Medium Article Body Typography */
.medium-body-text {
    font-family: var(--font-sans);
    font-size: 1.18rem;
    line-height: 1.85;
    color: #222222;
}

.medium-body-text h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    color: var(--foreground);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.medium-body-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.medium-body-text p {
    margin-bottom: 1.75rem;
}

/* Article Images Constrained to Container Width */
.medium-body-text img,
.post-content img,
.section-block img,
img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.medium-body-text img {
    width: 100%;
    margin: 2.25rem 0;
    border-radius: 6px;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0px 0px #000000;
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.medium-body-text img:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000000;
}

.medium-pullquote {
    border-left: 6px solid var(--accent);
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #111827;
    box-shadow: 4px 4px 0px 0px #000;
}

.neo-highlight {
    background-color: var(--accent);
    color: #000000;
    padding: 0.15rem 0.4rem;
    font-weight: 600;
}

.medium-takeaways-card {
    border: 2px solid var(--border);
    background: #ffffff;
    padding: 1.75rem 2rem;
    margin: 3rem 0;
    box-shadow: 6px 6px 0px 0px var(--accent);
}

.medium-takeaways-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Inline Code */
.medium-body-text code,
.post-content-body code,
code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    font-weight: 600;
    color: #0f172a;
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    word-break: break-word;
}

/* ==========================================================================
   Neo-Brutalist Terminal Code Blocks
   ========================================================================== */
.neo-code-block,
pre {
    position: relative;
    border: 2px solid #000000;
    background-color: #0d1117;
    box-shadow: 5px 5px 0px 0px #000000;
    margin: 2.25rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.code-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #161b22;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid #000000;
    user-select: none;
}

.code-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid #000000;
    display: inline-block;
}

.code-dot.red { background-color: #ff5f56; }
.code-dot.yellow { background-color: #ffbd2e; }
.code-dot.green { background-color: #27c93f; }

.code-lang-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b949e;
}

.code-copy-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #c9d1d9;
    background: #21262d;
    border: 1.5px solid #30363d;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.code-copy-btn:hover {
    background-color: var(--accent);
    color: #000000;
    border-color: #000000;
    box-shadow: 2px 2px 0px 0px #000000;
}

pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.925rem;
    line-height: 1.7;
    color: #e6edf3;
    tab-size: 2;
}

pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    border-radius: 0 !important;
    white-space: pre;
}

/* Syntax Highlighting Tokens */
.token-keyword { color: #ff7b72; font-weight: 700; }
.token-string { color: #a5d6ff; }
.token-function { color: #d2a8ff; }
.token-comment { color: #8b949e; font-style: italic; }
.token-variable { color: #ffa657; }
.token-number { color: #79c0ff; }
.token-property { color: #7ee787; }
.token-boolean { color: #ff7b72; font-weight: 700; }
.token-operator { color: #79c0ff; }
.token-accent { color: var(--accent); font-weight: 700; }

/* Medium Floating Interaction Pill (Bottom Sticky Bar) */
.medium-floating-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0px 0px #000000;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
}

.floating-clap-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.floating-clap-btn:hover {
    background: var(--accent);
    color: #000;
}

.floating-clap-btn:active {
    transform: scale(0.92);
}

.floating-action-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4b5563;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.floating-action-icon:hover {
    color: #000;
}

/* Medium Author Bio Footer Card */
.medium-author-card {
    border: 2px solid var(--border);
    background: #fafafa;
    padding: 2.25rem;
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
    box-shadow: 6px 6px 0px 0px #000000;
}

.medium-author-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.medium-author-card-bio {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* "More from Gu0 Qiang" 3-Column Recommendations */
.medium-more-section {
    border-top: 2px solid var(--border);
    padding-top: 4rem;
    margin-top: 4rem;
}

.medium-more-heading {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.medium-more-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .medium-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.medium-rec-card {
    border: 2px solid var(--border);
    background: #ffffff;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.medium-rec-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0px 0px #000000;
    background: #fafafa;
}

.medium-rec-tag {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.medium-rec-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.medium-rec-footer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

/* ==========================================================================
   Neo-Brutalism Image Lightbox Modal
   ========================================================================== */
.neo-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}

.neo-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.neo-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    background: #7FFF00;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 900;
    padding: 8px 16px;
    border: 2.5px solid #000000;
    border-radius: 6px;
    box-shadow: 3.5px 3.5px 0px #000000;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.neo-lightbox-close:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 5px 5px 0px #000000;
    background: #6ee700;
}

.neo-lightbox-close:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

.neo-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    max-height: 90vh;
    cursor: zoom-out;
}

.neo-lightbox-img {
    max-width: 95vw;
    max-height: 84vh;
    object-fit: contain;
    border: 3px solid #000000;
    border-radius: 10px;
    box-shadow: 8px 8px 0px #000000;
    background: #FFFFFF;
    cursor: zoom-out;
    transform: scale(0.96);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.neo-lightbox-overlay.active .neo-lightbox-img {
    transform: scale(1);
}

.neo-lightbox-caption {
    margin-top: 1rem;
    background: #FFFFFF;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 800;
    padding: 5px 16px;
    border: 2px solid #000000;
    border-radius: 6px;
    box-shadow: 2.5px 2.5px 0px #000000;
    max-width: 90vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: zoom-out;
}
