@font-face {
    font-family: "Geist Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src:
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-400-normal.woff2") format("woff2"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-400-normal.woff") format("woff");
}

@font-face {
    font-family: "Geist Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src:
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-500-normal.woff2") format("woff2"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-500-normal.woff") format("woff");
}

@font-face {
    font-family: "Geist Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src:
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-600-normal.woff2") format("woff2"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-600-normal.woff") format("woff");
}

:root {
    color-scheme: dark;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-sans: "Geist Sans", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);
    color: var(--text-primary);
    background:
        radial-gradient(circle at 20% 15%, rgba(78, 163, 255, 0.14), transparent 40%),
        radial-gradient(circle at 80% 5%, rgba(41, 211, 173, 0.1), transparent 45%),
        linear-gradient(145deg, var(--bg-start), var(--bg-end));
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
label,
button,
input {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.page-shell {
    width: min(1540px, 96%);
    margin: 0 auto;
    padding: 56px 0 96px;
}

.site-footer {
    margin-top: 36px;
    position: relative;
    z-index: 8;
    border-top: 1px solid color-mix(in hsl, var(--border), white 22%);
    background: linear-gradient(180deg, rgba(13, 26, 53, 0.94), rgba(10, 20, 44, 0.98));
    box-shadow: 0 -10px 20px rgba(6, 12, 28, 0.28);
    padding: 14px 0;
}

.site-footer-inner {
    width: min(1700px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 52px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-right: 56px;
}

.site-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer-social-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition: color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.site-footer-social-btn:hover {
    color: var(--accent-start);
    border-color: var(--accent-start);
    filter: brightness(1.15);
}

.site-footer-social-btn--github,
.site-footer-social-btn--linkedin,
.site-footer-social-btn--stackoverflow,
.site-footer-social-btn--facebook,
.site-footer-social-btn--reddit {
    color: #69aeff;
}

.site-footer-social-btn--discord,
.site-footer-social-btn--x-social,
.site-footer-social-btn--gitlab,
.site-footer-social-btn--devto,
.site-footer-social-btn--youtube,
.site-footer-social-btn--hashnode,
.site-footer-social-btn--codepen,
.site-footer-social-btn--leetcode,
.site-footer-social-btn--mastodon,
.site-footer-social-btn--bluesky {
    color: #1ed0a8;
}

.site-footer-top-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-start);
    color: var(--accent-start);
    background: rgba(78, 163, 255, 0.08);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: filter 0.2s ease, background 0.2s ease;
}

.site-footer-top-btn:hover {
    background: rgba(78, 163, 255, 0.16);
    filter: brightness(1.15);
}

.hero {
    min-height: 74vh;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 18px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: linear-gradient(130deg, var(--accent-start), var(--accent-end));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.7vw, 2rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-description {
    width: min(750px, 95%);
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

.btn {
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 14px 24px;
    color: var(--text-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(90deg, var(--accent-start), #6997ff);
    box-shadow: 0 14px 24px rgba(58, 138, 255, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
}

.btn-blog {
    border-color: transparent;
    background: linear-gradient(92deg, #ff9f1a, #ff6b00);
    box-shadow: 0 14px 24px rgba(255, 116, 0, 0.34);
}

.btn-blog:hover {
    border-color: rgba(255, 171, 83, 0.72);
    box-shadow: 0 16px 26px rgba(255, 124, 14, 0.4);
}

.btn-resume {
    border-color: transparent;
    background: linear-gradient(92deg, #8d5dff, #5f8bff);
    color: #f7fbff;
    box-shadow: 0 14px 24px rgba(108, 101, 255, 0.35);
}

.btn-resume:hover {
    border-color: rgba(166, 159, 255, 0.72);
    box-shadow: 0 16px 26px rgba(115, 108, 255, 0.42);
}

.btn-resume.is-disabled {
    opacity: 0.6;
    box-shadow: none;
}

.btn-contact {
    border-color: #34a853;
    box-shadow: inset 0 0 0 1px rgba(52, 168, 83, 0.18);
}

.btn-contact:hover {
    border-color: #46c669;
    box-shadow: inset 0 0 0 1px rgba(70, 198, 105, 0.26);
}

.btn-terminal {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #12ff32;
    border-color: #08d41e;
    background: rgba(2, 14, 5, 0.84);
    box-shadow: inset 0 0 0 1px rgba(20, 255, 60, 0.14), 0 0 20px rgba(12, 180, 32, 0.12);
    text-shadow: 0 0 9px rgba(18, 255, 50, 0.35);
}

.btn-terminal:hover {
    border-color: #21ff3f;
    box-shadow: inset 0 0 0 1px rgba(32, 255, 74, 0.22), 0 0 24px rgba(18, 202, 48, 0.24);
}

.about-terminal-modal[hidden] {
    display: none;
}

.about-terminal-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
}

.about-terminal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 4, 1, 0.78);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.about-terminal-window {
    position: relative;
    width: min(1180px, calc(100% - 44px));
    height: min(72vh, 680px);
    border: 1px solid #08d41e;
    background: #020603;
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    transition: transform 0.24s ease, opacity 0.24s ease;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(4, 158, 31, 0.22);
}

.about-terminal-modal.is-open .about-terminal-overlay {
    opacity: 1;
}

.about-terminal-modal.is-open .about-terminal-window {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-terminal-topbar {
    min-height: 52px;
    border-bottom: 1px solid #08d41e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px 8px 16px;
    background: #020b04;
}

.about-terminal-topbar h2 {
    margin: 0;
    color: #06f225;
    font-size: 1.08rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.about-terminal-controls {
    display: flex;
    gap: 7px;
}

.about-terminal-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid #08d41e;
    background: #020603;
    color: #04ff22;
    font-family: var(--font-mono);
    font-size: 0.98rem;
    cursor: pointer;
}

.about-terminal-controls button:last-child {
    color: #ff2c2c;
    border-color: #ff2c2c;
}

.about-terminal-body {
    height: calc(100% - 52px);
    overflow: auto;
    padding: 22px 22px 30px;
    color: #00ff2a;
    font-family: var(--font-mono);
    font-size: 1.06rem;
    line-height: 1.65;
}

.about-terminal-command {
    margin: 0 0 10px;
    color: #00f7ff;
    font-weight: 600;
    white-space: pre-wrap;
}

.about-terminal-output {
    margin: 0;
    white-space: pre-wrap;
    color: #00ff2a;
    font-family: inherit;
}

.about-terminal-cursor {
    display: inline-block;
    width: 11px;
    height: 1.15rem;
    background: #00ff2a;
    margin-left: 2px;
    animation: terminal-cursor-blink 0.8s steps(1, end) infinite;
    vertical-align: text-bottom;
}

@keyframes terminal-cursor-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.hero-socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
    border-color: var(--accent-start);
    transform: translateY(-2px);
}

.social-btn--linkedin {
    color: #0a66c2;
}

.social-btn--github {
    color: #ffffff;
}

.social-btn--instagram {
    color: #e4405f;
}

.social-btn--youtube {
    color: #ff0000;
}

.social-btn--facebook {
    color: #1877f2;
}

.social-btn--discord {
    color: #5865f2;
}

.social-btn--x-social {
    color: #f5f8ff;
}

body.modal-open {
    overflow: hidden;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 8, 20, 0.8);
    opacity: 0;
    transition: opacity 0.24s ease;
    cursor: pointer;
}

.contact-modal-dialog {
    position: relative;
    width: min(1220px, calc(100% - 30px));
    max-height: calc(100vh - 30px);
    overflow: auto;
    border: 1px solid color-mix(in hsl, var(--border), white 28%);
    background: linear-gradient(145deg, #1a2338, #171f34);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
    box-shadow: 0 25px 70px rgba(3, 10, 28, 0.55);
}

.contact-modal.is-open .contact-modal-overlay {
    opacity: 1;
}

.contact-modal.is-open .contact-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    background: rgba(5, 12, 26, 0.55);
    color: var(--text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.contact-modal-close:hover {
    border-color: var(--accent-start);
    color: var(--text-primary);
    filter: brightness(1.12);
}

.contact-modal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 62%);
}

.contact-modal-info {
    border-right: 1px solid color-mix(in hsl, var(--border), white 14%);
    padding: 34px 32px;
    background: linear-gradient(160deg, rgba(82, 120, 185, 0.18), rgba(19, 31, 52, 0.25));
}

.contact-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in hsl, var(--accent-start), white 24%);
    background: color-mix(in hsl, var(--accent-start), black 80%);
    color: var(--accent-start);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
}

.contact-modal-info h2 {
    margin: 24px 0 14px;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.08;
}

.contact-modal-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.6;
}

.contact-meta-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.contact-meta-list li {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid color-mix(in hsl, var(--accent-start), black 15%);
    display: grid;
    gap: 6px;
}

.contact-meta-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ec0f5;
}

.contact-meta-list strong {
    color: #f7fbff;
    font-size: 1.02rem;
    font-weight: 600;
}

.contact-modal-form {
    padding: 34px 32px;
    display: grid;
    gap: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f4f9ff;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid color-mix(in hsl, var(--border), white 20%);
    background: rgba(7, 14, 26, 0.65);
    color: #ecf5ff;
    font-family: var(--font-sans);
    font-size: 1.04rem;
    line-height: 1.5;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 190px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9aacca;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px rgba(86, 162, 255, 0.2);
}

.contact-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.contact-form-actions .btn {
    cursor: pointer;
    min-width: 170px;
    justify-content: center;
}

.contact-form-status {
    margin: 0;
    min-height: 1.4rem;
    color: #96b6e6;
    font-size: 0.96rem;
}

.contact-form-status.is-success {
    color: #65e7c0;
}

.contact-form-status.is-error {
    color: #ff9fb1;
}

.section {
    margin-top: 48px;
}

.section-head {
    text-align: center;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2.4rem);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--text-secondary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--surface), black 14%);
    padding: 20px 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
}

.feature-icon-wrap {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid color-mix(in hsl, var(--card-accent), white 30%);
    background: color-mix(in hsl, var(--card-accent), black 28%);
    color: #f7fbff;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
}

.feature-points {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    display: grid;
    gap: 6px;
}

.feature-points li {
    line-height: 1.5;
}

.skill-groups {
    display: grid;
    gap: 18px;
}

.skill-category {
    background: color-mix(in hsl, var(--surface), black 16%);
    border: 1px solid var(--border);
    padding: 22px 24px;
}

.skill-category h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 10px 14px;
    border: 1px solid;
    white-space: nowrap;
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
}

.icon-lg {
    width: 2.1rem;
    height: 2.1rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.skills-heading-icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.skill-category-icon {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 2.15;
    flex-shrink: 0;
}

.empty-note {
    color: var(--text-secondary);
}

.journey-section {
    margin-top: 56px;
}

.journey-section-head {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.journey-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #4f88db;
    background: rgba(57, 113, 196, 0.12);
    color: #68aeff;
    padding: 8px 16px;
    font-weight: 600;
}

.journey-cards {
    display: grid;
    gap: 18px;
}

.journey-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--surface), black 10%);
    padding: 28px 32px;
}

.journey-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.journey-head-main {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.journey-title-wrap {
    display: grid;
    gap: 6px;
    align-content: center;
}

.journey-title-pair {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.journey-icon-box {
    width: auto;
    height: auto;
    min-width: 0;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in hsl, var(--journey-accent), white 24%);
    background: color-mix(in hsl, var(--journey-accent), black 72%);
    color: var(--journey-accent);
}

.journey-head-main h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
    line-height: 1.08;
    color: var(--text-primary);
}

.journey-org {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 700;
    color: #ffffff;
}

.journey-location {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.journey-period-badge {
    border: 1px solid color-mix(in hsl, var(--journey-accent), white 26%);
    color: var(--journey-accent);
    background: color-mix(in hsl, var(--journey-accent), black 82%);
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.journey-summary {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.65;
}

.journey-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.journey-points li {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.55;
    padding-left: 18px;
}

.journey-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--journey-accent);
}

.journey-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.journey-tag {
    border: 1px solid var(--border);
    background: #1a2235;
    color: #9bc4ff;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.projects-section {
    margin-top: 56px;
}

.projects-heading-icon {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 2.1;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.project-filter-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    padding: 11px 18px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-filter-btn:hover,
.project-filter-btn.active {
    border-color: var(--accent-start);
    color: var(--text-primary);
    background: rgba(78, 163, 255, 0.16);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--surface), black 8%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.project-preview {
    height: 210px;
    min-height: 210px;
    flex: 0 0 210px;
    position: relative;
    background: linear-gradient(135deg, var(--project-preview-start), var(--project-preview-end));
    border-bottom: 1px solid var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.project-preview-center {
    text-align: center;
    color: #c7d8f4;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 16px;
}

.project-preview-center .icon {
    width: 2.15rem;
    height: 2.15rem;
    color: #69aeff;
}

.project-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-preview-center p {
    margin: 12px 0 0;
    font-size: 1.1rem;
    color: #d4e2fa;
}

.project-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0cc58a;
    color: #f4fffb;
    padding: 6px 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.project-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: clip;
}

.project-category-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #5d82be;
    color: #93bcff;
    background: rgba(61, 93, 145, 0.2);
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.project-body h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #f4f8ff;
}

.project-body p {
    margin: 0;
    color: #c2d1ea;
    line-height: 1.45;
    font-size: 0.9rem;
    max-height: calc(1.45em * 3);
    overflow: hidden;
}

.project-tech-tags {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 52px;
    overflow: hidden;
}

.project-tech-tag {
    padding: 4px 10px;
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.project-actions {
    margin-top: auto;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.project-action-btn {
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    flex: 1 1 0;
    min-width: 0;
}

.project-action-code {
    background: #12192b;
    color: #ffffff;
}

.project-action-code:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.project-action-demo {
    background: linear-gradient(90deg, #4f8fff, #6da7ff);
    border-color: transparent;
    color: #ffffff;
}

.project-action-demo:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

.projects-view-all-wrap {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.projects-view-all-btn {
    color: #ffffff;
    border-color: #3b4b6c;
    background: #141d31;
}

.projects-view-all-btn:hover {
    border-color: #ffffff;
}

.portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.portfolio-project-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--surface), black 8%);
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-project-preview {
    height: 210px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--project-preview-start), var(--project-preview-end));
}

.portfolio-project-preview-center {
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: #d4e2fa;
    text-align: center;
}

.portfolio-project-preview-center .icon {
    width: 2.3rem;
    height: 2.3rem;
    color: var(--project-icon-color, #69aeff);
}

.project-preview-animated-icon {
    animation: project-icon-breathe 3.2s ease-in-out infinite;
    transform-origin: center;
}

.portfolio-project-custom-icon {
    width: clamp(52px, 9vw, 78px);
    height: clamp(52px, 9vw, 78px);
    object-fit: contain;
    animation: project-icon-image-breathe 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 0 transparent);
}

@keyframes project-icon-breathe {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.98);
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 14px currentColor);
    }
}

@keyframes project-icon-image-breathe {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.98);
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.12) drop-shadow(0 0 12px var(--project-icon-color, #69aeff));
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-preview-animated-icon,
    .portfolio-project-custom-icon {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.portfolio-project-preview-center p {
    margin: 0;
    color: #d4e2fa;
    font-size: 1rem;
}

.portfolio-project-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-project-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0cc58a;
    color: #f4fffb;
    padding: 6px 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.portfolio-project-featured-badge.under-development-badge {
    background: #f59e0b;
    color: #1f1400;
}

.portfolio-project-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 245px;
    flex: 1 1 auto;
}

.portfolio-project-category-tag {
    align-self: flex-start;
    max-width: 100%;
    border: 1px solid #5d82be;
    color: #93bcff;
    background: rgba(61, 93, 145, 0.2);
    padding: 4px 9px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-project-body h3 {
    margin: 0;
    color: #f4f8ff;
    font-size: 1.2rem;
    line-height: 1.25;
    min-height: 3rem;
}

.portfolio-project-body p {
    margin: 0;
    color: #c2d1ea;
    font-size: 0.92rem;
    line-height: 1.45;
    min-height: 4.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 64px;
    align-content: flex-start;
    overflow: hidden;
}

.portfolio-project-tech-tag {
    border: 1px solid;
    padding: 4px 9px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.2;
}

.portfolio-project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.portfolio-project-action-btn {
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.portfolio-project-action-code {
    background: #12192b;
    color: #ffffff;
}

.portfolio-project-action-demo {
    background: linear-gradient(90deg, #4f8fff, #6da7ff);
    border-color: transparent;
    color: #ffffff;
}

.portfolio-project-action-btn.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
}

.portfolio-project-action-code.is-disabled {
    border-color: #3d516f;
    background: #131b2d;
    color: #c8d5ef;
}

body.has-apk-modal-open {
    overflow: hidden;
}

.apk-modal[hidden] {
    display: none;
}

.apk-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.apk-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 16, 0.76);
    backdrop-filter: blur(3px);
}

.apk-modal-dialog {
    position: relative;
    width: min(780px, 94vw);
    border: 1px solid #33527d;
    background: linear-gradient(160deg, #172238, #121a2b);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    padding: 26px 22px 20px;
    z-index: 1;
}

.apk-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid #304b70;
    background: #11192b;
    color: #d7e5ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apk-modal-dialog h2 {
    margin: 0 0 6px;
    color: #eef4ff;
    font-size: 1.55rem;
}

.apk-modal-subtitle {
    margin: 0;
    color: #7ec3ff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.apk-modal-note {
    margin: 10px 0 0;
    color: #b7c8e4;
}

.apk-option-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.apk-option-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #35507a;
    background: #151f33;
    color: #d4e4ff;
    text-decoration: none;
    padding: 12px;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.apk-option-card:hover {
    border-color: #69aeff;
    background: #1a2a45;
    transform: translateY(-2px);
}

.apk-option-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #f1f6ff;
}

.apk-option-card p {
    margin: 0;
    color: #c2d1ea;
    font-size: 0.9rem;
    line-height: 1.4;
}

.apk-option-card code {
    margin-top: auto;
    display: inline-block;
    width: 100%;
    border: 1px solid #2e476d;
    background: #10182a;
    color: #8ec3ff;
    padding: 6px 7px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apk-modal-empty {
    margin: 14px 0 2px;
    color: #ffc38e;
}

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

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-preview {
        height: 200px;
        min-height: 200px;
        flex-basis: 200px;
    }

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

@media (max-width: 720px) {
    .page-shell {
        width: min(1240px, 94%);
        padding: 28px 0 52px;
    }

    .site-footer-inner {
        width: calc(100% - 28px);
        justify-content: center;
        flex-direction: column;
        gap: 14px;
        padding-right: 0;
    }

    .site-footer-top-btn {
        position: static;
        transform: none;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

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

    .portfolio-project-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-project-preview {
        height: 190px;
    }

    .project-actions {
        flex-direction: column;
    }

    .portfolio-project-actions {
        flex-direction: column;
    }

    .apk-option-list {
        grid-template-columns: 1fr;
    }

    .journey-card {
        padding: 18px;
    }

    .journey-card-head {
        flex-direction: column;
    }

    .journey-org {
        font-size: 1.35rem;
    }

    .journey-period-badge {
        align-self: flex-start;
    }

    .skill-category {
        padding: 16px;
    }

    .skill-tag {
        white-space: normal;
    }

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

.blog-page-shell {
    color: var(--blog-text-primary);
    width: min(1700px, calc(100% - 40px));
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--blog-text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.blog-back-link:hover {
    color: var(--accent-start);
}

.blog-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-head-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    background: linear-gradient(130deg, var(--accent-start), var(--accent-end));
}

.blog-page-head h1 {
    margin: 0;
    line-height: 1.1;
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-page-head p {
    margin: 6px 0 0;
    color: var(--blog-text-secondary);
    font-size: 1.15rem;
}

.blog-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid rgba(41, 211, 173, 0.5);
    color: #3ee4b6;
    background: rgba(26, 94, 80, 0.25);
    font-weight: 600;
}

.blog-layout-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
}

.blog-sidebar .panel-card {
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    z-index: 2;
}

.panel-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 7%);
    padding: 22px;
}

.panel-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.panel-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(130deg, var(--accent-start), var(--accent-end));
    color: #f7fbff;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.9rem;
    color: var(--blog-text-primary);
}

.panel-header p {
    margin: 2px 0 0;
    color: var(--blog-text-muted);
}

.search-form {
    margin-bottom: 22px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-chip), black 12%);
    color: var(--blog-text-muted);
    padding: 0 12px;
}

.input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--blog-text-primary);
    padding: 12px 4px;
    font: inherit;
}

.input-wrap input::placeholder {
    color: var(--blog-text-muted);
}

.sidebar-subhead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--blog-text-secondary);
}

.sidebar-subhead h3 {
    margin: 0;
    font-size: 1.2rem;
}

.popular-topic-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 8px;
}

.popular-topic-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-chip), black 10%);
    padding: 10px 12px;
    color: var(--blog-text-secondary);
}

.popular-topic-item:hover,
.popular-topic-item.active {
    border-color: var(--accent-start);
    color: var(--blog-text-primary);
}

.topic-dot {
    width: 8px;
    height: 8px;
}

.topic-name,
.topic-count {
    font-family: var(--font-mono);
    font-size: 0.92rem;
}

.topic-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topic-count {
    color: var(--accent-start);
}

.btn-full {
    display: flex;
    justify-content: center;
}

.blog-content-col {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.featured-topics-wrap {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 7%);
    min-width: 0;
    overflow: hidden;
    padding: 18px;
}

.featured-topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.featured-topics-header h2,
.latest-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--blog-text-primary);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.featured-title-icon {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 2.1;
}

.featured-topics-header p,
.latest-header p {
    margin: 3px 0 0;
    color: var(--blog-text-secondary);
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--blog-text-secondary);
    cursor: pointer;
}

.carousel-btn:hover {
    border-color: var(--accent-start);
    color: var(--blog-text-primary);
}

.carousel-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.featured-carousel-viewport {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.featured-carousel-track {
    display: flex;
    gap: 12px;
    min-width: 0;
    width: 100%;
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.featured-carousel-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.featured-carousel-dots button {
    width: 18px;
    height: 4px;
    border: 0;
    background: color-mix(in hsl, var(--blog-chip), white 20%);
    opacity: 0.8;
    cursor: pointer;
}

.featured-carousel-dots button.active {
    width: 28px;
    background: var(--accent-start);
    opacity: 1;
}

.featured-topic-card {
    padding: 18px;
    min-height: 188px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(130deg, var(--topic-gradient-start), var(--topic-gradient-end));
    color: #f2f8ff;
    display: grid;
    align-content: space-between;
    gap: 12px;
    text-decoration: none;
    flex: 0 0 var(--featured-card-width, calc((100% - 24px) / 3));
    max-width: var(--featured-card-width, calc((100% - 24px) / 3));
}

.featured-topic-card h3 {
    margin: 0;
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-topic-card p {
    margin: 0;
    font-size: 1rem;
    color: rgba(242, 248, 255, 0.92);
}

.featured-topic-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.featured-topic-card footer span:last-child {
    color: #f2f8ff;
    font-weight: 700;
}

.count-chip {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.latest-actions {
    display: flex;
    gap: 10px;
}

.action-chip {
    text-decoration: none;
    color: var(--blog-text-secondary);
    border: 1px solid var(--border);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
}

button.action-chip {
    font: inherit;
    cursor: pointer;
}

.action-chip:hover {
    color: var(--blog-text-primary);
    border-color: var(--accent-start);
}

.action-chip.active {
    border-color: var(--accent-start);
    color: var(--accent-start);
}

.clear-filter-chip {
    justify-content: center;
    min-width: 170px;
}

.blog-filter-modal[hidden] {
    display: none;
}

.blog-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.blog-filter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.7);
}

.blog-filter-dialog {
    position: relative;
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    margin: 18px auto;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 10%);
}

.blog-filter-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.blog-filter-head h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--blog-text-primary);
}

.blog-filter-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--blog-text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.blog-filter-close:hover {
    border-color: var(--accent-start);
    color: var(--blog-text-primary);
}

.blog-filter-form {
    padding: 18px 22px 20px;
    display: grid;
    gap: 18px;
}

.blog-filter-groups {
    display: grid;
    gap: 20px;
}

.blog-filter-group h4 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--blog-text-primary);
}

.blog-filter-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-filter-chip {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-chip), black 8%);
    color: var(--blog-text-secondary);
    padding: 9px 12px;
    font-family: var(--font-mono);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.blog-filter-chip:hover {
    border-color: var(--accent-start);
    color: var(--blog-text-primary);
}

.blog-filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.blog-filter-chip.active {
    border-color: var(--accent-start);
    color: var(--accent-start);
    background: rgba(78, 163, 255, 0.18);
}

.blog-filter-actions {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.article-list {
    display: grid;
    gap: 14px;
}

.article-card {
    border: 1px solid var(--border);
    border-left: 4px solid var(--post-accent);
    background: color-mix(in hsl, var(--blog-panel), black 8%);
    padding: 18px 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in hsl, var(--post-accent), white 32%);
    box-shadow: 0 16px 32px rgba(8, 16, 36, 0.45);
}

.article-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.article-topic-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--accent-start);
    border: 1px solid color-mix(in hsl, var(--accent-start), white 30%);
    background: color-mix(in hsl, var(--blog-chip), black 10%);
    padding: 4px 10px;
}

.bookmark-placeholder {
    color: var(--blog-text-muted);
}

.article-card h3 {
    margin: 0;
    font-size: 1.72rem;
}

.article-card h3 a {
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: var(--accent-start);
}

.article-card p {
    margin: 10px 0 0;
    color: var(--blog-text-secondary);
    font-size: 1.08rem;
}

.article-content-preview {
    margin-top: 10px;
    color: var(--blog-text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
}

.article-inline-preview {
    margin: 12px 0 0;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 12%);
    overflow: hidden;
}

.article-inline-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.article-featured-hero {
    margin: 12px 0 0;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 12%);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 8px;
}

.article-featured-hero img {
    width: 100%;
    height: clamp(230px, 32vw, 400px);
    object-fit: contain;
    object-position: center;
    background: rgba(8, 15, 28, 0.55);
    display: block;
}

.article-featured-hero figcaption {
    padding: 8px 12px;
    color: var(--blog-text-muted);
    font-size: 0.9rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.article-mini-tag {
    padding: 5px 10px;
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: var(--blog-text-muted);
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.read-more-link {
    text-decoration: none;
    color: var(--blog-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.72;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-card:hover .read-more-link {
    color: var(--accent-start);
    opacity: 1;
    transform: translateX(3px);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.blog-detail-shell {
    color: var(--blog-text-primary);
    width: min(1700px, calc(100% - 40px));
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.blog-detail-grid.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.blog-detail-sidebar {
    margin-left: -8px;
    min-height: 0;
}

.sticky-panel {
    position: sticky;
    top: 12px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    z-index: 2;
}

.sticky-panel h2 {
    margin: 0 0 12px;
    font-size: 1.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.toc-list a {
    display: block;
    text-decoration: none;
    color: var(--blog-text-secondary);
    border-left: 2px solid var(--border);
    padding: 5px 10px;
}

.toc-list a:hover {
    color: var(--blog-text-primary);
    border-left-color: var(--accent-start);
}

.share-row-wrap {
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 14px;
}

.share-row-wrap h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--blog-text-secondary);
}

.share-row {
    display: flex;
    gap: 8px;
}

.share-row a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    color: var(--blog-text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.share-row a:hover {
    border-color: var(--accent-start);
    color: var(--blog-text-primary);
}

.blog-hero-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 8%);
    padding: 24px;
}

.blog-article-col {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--blog-text-muted);
    align-items: center;
}

.blog-hero-card h1 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.15;
    color: var(--blog-text-primary);
}

.hero-excerpt {
    margin: 14px 0 0;
    font-size: 1.2rem;
    color: var(--blog-text-secondary);
}

.hero-info-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--blog-text-secondary);
}

.hero-info-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bookmark-chip {
    margin-left: auto;
    border: 1px solid var(--border);
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.02);
}

.article-hero-image-wrap {
    margin: 16px 0 0;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 10%);
}

.article-hero-image-wrap img {
    width: 100%;
    display: block;
    height: min(68vh, 620px);
    object-fit: contain;
    object-position: center;
    background: rgba(8, 15, 28, 0.55);
}

.article-hero-image-wrap figcaption {
    padding: 10px 14px;
    color: var(--blog-text-muted);
    font-size: 0.95rem;
}

.article-section-stack {
    display: grid;
    gap: 14px;
}

.article-section-block {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 8%);
    padding: 24px;
}

.article-content-html {
    color: var(--blog-text-secondary);
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-content-html > :first-child {
    margin-top: 0;
}

.article-content-html > :last-child {
    margin-bottom: 0;
}

.article-content-html h2 {
    margin: 1.75rem 0 0.75rem;
    color: var(--blog-text-primary);
    font-size: 2rem;
    line-height: 1.28;
    scroll-margin-top: 84px;
}

.article-content-html h3,
.article-content-html h4 {
    margin: 1.4rem 0 0.65rem;
    color: var(--blog-text-primary);
}

.article-content-html p {
    margin: 0 0 1rem;
}

.article-content-html ul,
.article-content-html ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
    display: grid;
    gap: 0.35rem;
}

.article-content-html a {
    color: var(--accent-start);
}

.article-content-html pre {
    margin: 1rem 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--border);
    background: var(--blog-code-bg);
    color: #d7e3ff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.55;
}

.article-content-html code {
    font-family: var(--font-mono);
}

.article-content-html blockquote {
    margin: 1rem 0;
    border-left: 3px solid var(--accent-start);
    padding: 8px 14px;
    background: color-mix(in hsl, var(--blog-chip), black 8%);
    color: var(--blog-text-secondary);
}

.article-content-html img {
    max-width: 100%;
    height: auto;
}

.section-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-number {
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent-start);
    color: var(--accent-start);
    font-weight: 700;
}

.section-bar {
    width: 4px;
    height: 34px;
}

.section-headline h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--blog-text-primary);
}

.section-body-text {
    color: var(--blog-text-secondary);
    font-size: 1.08rem;
}

.checklist-box {
    margin-top: 14px;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-chip), black 7%);
    padding: 16px;
}

.checklist-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.checklist-box li {
    color: var(--blog-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-box .icon {
    color: #53d3a1;
}

.code-card {
    margin-top: 14px;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 11%);
}

.code-card-top {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--blog-text-muted);
}

.code-card h3 {
    margin: 12px 14px 0;
    color: var(--blog-text-secondary);
    font-size: 1rem;
}

.code-card pre {
    margin: 0;
    padding: 14px;
    overflow: auto;
    background: var(--blog-code-bg);
    color: #d7e3ff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.screenshot-block {
    margin: 14px 0 0;
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 11%);
}

.screenshot-block img {
    width: 100%;
    display: block;
}

.screenshot-placeholder {
    min-height: 290px;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    margin: 20px;
    display: grid;
    place-items: center;
    color: var(--blog-text-muted);
    gap: 6px;
}

.screenshot-block figcaption {
    padding: 10px 14px;
    color: var(--blog-text-muted);
}

.two-column-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.two-column-list > div {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-chip), black 9%);
    padding: 14px;
}

.two-column-list h3 {
    margin: 0 0 10px;
    color: var(--blog-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.two-column-list ul {
    margin: 0;
    padding-left: 18px;
    color: var(--blog-text-secondary);
    display: grid;
    gap: 7px;
}

.related-topics-panel h2,
.related-articles-wrap h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    color: var(--blog-text-primary);
}

.related-topics-panel {
    padding: 24px;
}

.related-articles-wrap {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 8%);
    padding: 24px;
}

.related-articles-wrap .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-articles-wrap .post-card {
    border: 1px solid var(--border);
    background: color-mix(in hsl, var(--blog-panel), black 8%);
}

.related-articles-wrap .post-card h3 {
    margin: 10px 0 6px;
    font-size: 1.5rem;
}

.related-articles-wrap .post-card h3 a {
    color: var(--blog-text-primary);
    text-decoration: none;
}

.related-articles-wrap .post-card h3 a:hover {
    color: var(--accent-start);
}

.related-articles-wrap .post-card p {
    margin: 0;
    color: var(--blog-text-secondary);
}

@media (max-width: 1260px) {
    .blog-layout-grid,
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar .panel-card {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .blog-detail-sidebar {
        min-height: 0;
        height: auto;
        max-height: none;
        padding: 0;
        margin-left: 0;
        overflow: visible;
    }

    .sticky-panel {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .blog-detail-grid,
    .blog-article-col {
        min-height: 0;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 980px) {
    .about-terminal-window {
        width: calc(100% - 16px);
        height: min(78vh, 640px);
    }

    .about-terminal-topbar h2 {
        font-size: 0.96rem;
    }

    .about-terminal-body {
        padding: 16px;
        font-size: 0.95rem;
    }

    .contact-modal-layout {
        grid-template-columns: 1fr;
    }

    .contact-modal-info {
        border-right: 0;
        border-bottom: 1px solid color-mix(in hsl, var(--border), white 14%);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .latest-header {
        flex-direction: column;
        align-items: stretch;
    }

    .latest-actions {
        justify-content: flex-start;
    }

    .two-column-list,
    .related-articles-wrap .post-grid {
        grid-template-columns: 1fr;
    }

    .blog-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-card h3 {
        font-size: 1.6rem;
    }

    .featured-topic-card {
        flex-basis: var(--featured-card-width, calc((100% - 12px) / 2));
        max-width: var(--featured-card-width, calc((100% - 12px) / 2));
    }

    .article-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .about-terminal-window {
        height: min(84vh, 620px);
    }

    .about-terminal-controls button {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }

    .contact-modal-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
    }

    .contact-modal-info,
    .contact-modal-form {
        padding: 22px 18px;
    }

    .contact-modal-close {
        right: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
    }

    .contact-form-actions .btn {
        width: 100%;
    }

    .blog-page-shell {
        width: calc(100% - 28px);
    }

    .panel-header h2,
    .sticky-panel h2,
    .section-headline h2 {
        font-size: 1.4rem;
    }

    .blog-hero-card h1 {
        font-size: 1.95rem;
    }

    .featured-topic-card {
        flex-basis: var(--featured-card-width, 100%);
        max-width: var(--featured-card-width, 100%);
    }
}
