/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

:root {
    color-scheme: light;
    --bg: #eff9ef;
    --bg-soft: rgba(255, 255, 255, 0.5);
    --surface: rgba(255, 255, 255, 0.62);
    --surface-strong: rgba(255, 255, 255, 0.84);
    --ink: #263a34;
    --ink-strong: #101b17;
    --muted: #65766f;
    --faint: #8ba097;
    --line: rgba(38, 58, 52, 0.13);
    --accent: #18bd78;
    --accent-strong: #07965b;
    --accent-soft: rgba(24, 189, 120, 0.13);
    --chip: #283a34;
    --shadow: 0 22px 65px rgba(28, 75, 57, 0.1);
    --radius: 16px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111c18;
    --bg-soft: rgba(24, 39, 34, 0.68);
    --surface: rgba(29, 48, 41, 0.74);
    --surface-strong: rgba(35, 56, 48, 0.96);
    --ink: #c9d8d2;
    --ink-strong: #f2faf6;
    --muted: #93a89f;
    --faint: #6d8179;
    --line: rgba(226, 244, 236, 0.12);
    --accent: #44dc9d;
    --accent-strong: #62e8b0;
    --accent-soft: rgba(68, 220, 157, 0.12);
    --chip: #e5f4ed;
    --shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background 220ms ease, color 220ms ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: 0.36;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
    pointer-events: none;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.ambient-one {
    width: 680px;
    height: 680px;
    top: -240px;
    left: -180px;
    background: radial-gradient(circle, rgba(103, 207, 195, 0.22), transparent 68%);
}

.ambient-two {
    width: 760px;
    height: 760px;
    right: -300px;
    bottom: -280px;
    background: radial-gradient(circle, rgba(86, 220, 136, 0.2), transparent 68%);
}

.resume-shell {
    width: min(calc(100% - 48px), 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 60px;
    padding: 82px 0 140px;
}

.profile-column {
    position: sticky;
    top: 54px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.avatar-wrap {
    position: relative;
    width: fit-content;
}

.avatar {
    width: 148px;
    height: 148px;
    display: block;
    object-fit: cover;
    border: 7px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    box-shadow: 0 16px 45px rgba(29, 88, 67, 0.16);
}

.availability {
    position: absolute;
    right: -18px;
    bottom: 10px;
    padding: 6px 10px;
    border: 4px solid var(--bg);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.identity-mobile {
    display: none;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-list a,
.contact-list > span {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
}

.contact-list a span {
    border-bottom: 1px dashed var(--line);
    transition: border-color 180ms ease, color 180ms ease;
}

.contact-list a:hover span {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.contact-list svg,
.floating-actions svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.side-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pill-title {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme="dark"] .pill-title {
    color: #17231e;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud span {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.community-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.community-list a {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.community-logo {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 5px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 7px 20px rgba(38, 58, 52, 0.06);
}

.community-logo img,
.highlight-icon img,
.project-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.community-list a > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.community-list strong {
    color: var(--ink-strong);
    font-size: 13px;
}

.community-list small {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-stats div {
    min-width: 0;
}

.mini-stats strong,
.mini-stats span {
    display: block;
}

.mini-stats strong {
    color: var(--ink-strong);
    font-size: 17px;
    letter-spacing: -0.04em;
}

.mini-stats span {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
}

.resume-content {
    min-width: 0;
}

.intro {
    padding: 18px 0 56px;
}

.hello {
    color: var(--muted);
    font-size: 18px;
    font-weight: 650;
}

.hello strong {
    color: var(--accent-strong);
}

.intro h1,
.identity-mobile h1 {
    margin-top: 10px;
    color: var(--ink-strong);
    font-size: clamp(44px, 5.1vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.intro h1 span,
.identity-mobile h1 span {
    color: var(--accent);
}

.intro-copy {
    max-width: 770px;
    margin-top: 30px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.85;
}

.intro-copy p + p {
    margin-top: 16px;
}

.intro-copy strong {
    color: var(--ink-strong);
}

.intro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.intro-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.intro-badges i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.resume-section {
    padding: 46px 0;
    border-top: 1px solid var(--line);
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading-row > a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 10px;
}

.section-heading-row > a:hover {
    color: var(--accent-strong);
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
}

.highlight-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.highlight-item:hover {
    background: var(--surface);
    transform: translateX(3px);
}

.highlight-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
}

.highlight-item > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.highlight-item strong {
    color: var(--ink-strong);
    font-size: 15px;
}

.highlight-item small {
    color: var(--muted);
    font-size: 12px;
}

.highlight-item b {
    color: var(--faint);
    font-size: 15px;
    transition: color 180ms ease, transform 180ms ease;
}

.highlight-item:hover b {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.project-card {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(29, 76, 60, 0.04);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.project-card:hover {
    border-color: rgba(24, 189, 120, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.project-card-wide {
    min-height: 205px;
    grid-column: 1 / -1;
}

.featured-project {
    background:
        linear-gradient(145deg, rgba(24, 189, 120, 0.13), transparent 70%),
        var(--surface);
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-strong);
    box-shadow: 0 7px 20px rgba(38, 58, 52, 0.06);
}

.project-arrow {
    color: var(--faint);
    transition: color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--ink-strong);
    font-size: 19px;
    letter-spacing: -0.025em;
}

.public-badge {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.project-card p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
}

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

.language-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
}

.language-dot.java { background: #b07219; }
.language-dot.vue { background: #41b883; }
.language-dot.rust { background: #dea584; }
.language-dot.typescript { background: #3178c6; }

.timeline-item {
    position: relative;
    margin-top: 28px;
    padding: 2px 0 0 26px;
    border-left: 1px solid var(--line);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-item + .timeline-item {
    margin-top: 38px;
}

.timeline-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.timeline-head h3 {
    color: var(--ink-strong);
    font-size: 18px;
    letter-spacing: -0.025em;
}

.timeline-head p {
    color: var(--muted);
    font-size: 12px;
}

.timeline-head time {
    flex: 0 0 auto;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
}

.timeline-item ul {
    margin-top: 16px;
    padding-left: 18px;
    color: var(--muted);
}

.timeline-item li {
    margin: 8px 0;
    padding-left: 3px;
    font-size: 13px;
}

.timeline-item li::marker {
    color: var(--accent);
}

.skill-groups {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.skill-groups > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.skill-groups h3 {
    color: var(--ink-strong);
    font-size: 13px;
}

.skill-groups p {
    color: var(--muted);
    font-size: 12px;
}

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

.language-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
}

.language-list strong {
    color: var(--ink-strong);
    font-size: 13px;
}

.language-list span {
    color: var(--faint);
    font-size: 11px;
}

.resume-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding: 46px 0 0;
    border-top: 1px solid var(--line);
}

.resume-footer p {
    width: 100%;
    color: var(--ink-strong);
    font-size: 16px;
    font-weight: 650;
}

.resume-footer div {
    display: flex;
    gap: 16px;
}

.resume-footer a {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.resume-footer small {
    margin-left: auto;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9px;
}

.floating-actions {
    position: fixed;
    right: max(18px, calc((100vw - 1240px) / 2));
    top: 50%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    backdrop-filter: blur(18px);
}

.floating-actions button {
    width: 44px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    transition: transform 170ms ease, filter 170ms ease;
}

.floating-actions button:not(.action-theme) {
    min-height: 96px;
    flex-direction: column;
}

.floating-actions button:not(.action-theme) span {
    writing-mode: vertical-rl;
}

.floating-actions button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.action-copy {
    background: var(--accent);
    color: #fff;
}

.action-print {
    background: var(--ink-strong);
    color: var(--bg);
}

.action-theme {
    align-self: center;
    background: transparent;
    color: var(--ink);
}

.action-theme .sun-icon,
html[data-theme="dark"] .action-theme .moon-icon {
    display: none;
}

html[data-theme="dark"] .action-theme .sun-icon {
    display: block;
}

.action-divider {
    height: 1px;
    margin: 2px 4px;
    background: var(--line);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 50;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-strong);
    color: var(--ink-strong);
    box-shadow: var(--shadow);
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(16px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .resume-shell {
        width: min(calc(100% - 40px), 760px);
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 60px;
    }

    .profile-column {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 28px 34px;
        align-items: start;
    }

    .identity-mobile {
        display: block;
        align-self: center;
    }

    .identity-mobile .hello {
        font-size: 15px;
    }

    .identity-mobile h1 {
        font-size: clamp(36px, 7vw, 52px);
    }

    .contact-list,
    .side-section {
        grid-column: span 1;
    }

    .stats-section {
        grid-column: 1 / -1;
    }

    .intro > .hello,
    .intro > h1 {
        display: none;
    }

    .intro {
        padding-top: 0;
    }

    .floating-actions {
        top: auto;
        right: 50%;
        bottom: 16px;
        flex-direction: row;
        transform: translateX(50%);
    }

    .floating-actions button span {
        display: inline;
        writing-mode: horizontal-tb;
    }

    .floating-actions button:not(.action-theme) span {
        writing-mode: horizontal-tb;
    }

    .floating-actions button {
        width: auto;
        min-height: 42px;
        padding: 0 12px;
    }

    .floating-actions button:not(.action-theme) {
        min-height: 42px;
        flex-direction: row;
    }

    .action-divider {
        width: 1px;
        height: auto;
        margin: 4px 2px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 14px;
    }

    .resume-shell {
        width: min(calc(100% - 32px), 520px);
        gap: 28px;
        padding: 42px 0 110px;
    }

    .profile-column {
        display: flex;
        gap: 30px;
    }

    .avatar {
        width: 112px;
        height: 112px;
        border-width: 5px;
    }

    .availability {
        right: -25px;
        bottom: 4px;
    }

    .identity-mobile .hello {
        font-size: 19px;
    }

    .identity-mobile h1 {
        margin-top: 12px;
        font-size: clamp(36px, 10.8vw, 48px);
        line-height: 1.07;
    }

    .contact-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-list a,
    .contact-list > span {
        font-size: 13px;
    }

    .side-section {
        width: 100%;
    }

    .community-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stats-section,
    .side-section:nth-of-type(1) {
        display: none;
    }

    .intro {
        padding-bottom: 40px;
    }

    .intro-copy {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.82;
    }

    .resume-section {
        padding: 38px 0;
    }

    .highlight-item {
        grid-template-columns: 38px 1fr;
        padding: 10px 0;
    }

    .highlight-item b {
        display: none;
    }

    .highlight-item small {
        margin-top: 3px;
        font-size: 11px;
    }

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

    .project-card-wide {
        grid-column: auto;
    }

    .project-card {
        min-height: 220px;
    }

    .timeline-head {
        flex-direction: column;
        gap: 6px;
    }

    .skill-groups > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

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

    .resume-footer small {
        width: 100%;
        margin-left: 0;
    }

    .floating-actions {
        width: calc(100% - 32px);
        max-width: 360px;
        justify-content: center;
        padding: 7px;
    }

    .floating-actions button {
        flex: 1;
        padding: 0 10px;
    }

    .action-theme {
        flex: 0 0 42px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@page {
    size: A4;
    margin: 12mm;
}

@media print {
    :root,
    html[data-theme="dark"] {
        --bg: #fff;
        --bg-soft: #fff;
        --surface: #fff;
        --surface-strong: #fff;
        --ink: #2b3833;
        --ink-strong: #111916;
        --muted: #58655f;
        --faint: #77837e;
        --line: rgba(17, 25, 22, 0.16);
        --accent: #109d65;
        --accent-strong: #08794c;
        --accent-soft: rgba(16, 157, 101, 0.1);
        --chip: #263730;
    }

    body {
        background: #fff;
        font-size: 10px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body::before,
    .ambient,
    .floating-actions,
    .toast {
        display: none !important;
    }

    .resume-shell {
        width: 100%;
        grid-template-columns: 165px minmax(0, 1fr);
        gap: 28px;
        padding: 0;
    }

    .profile-column {
        position: static;
        gap: 20px;
    }

    .avatar {
        width: 92px;
        height: 92px;
        border-width: 4px;
    }

    .availability {
        display: none;
    }

    .contact-list a,
    .contact-list > span {
        font-size: 8px;
    }

    .community-logo {
        width: 24px;
        height: 24px;
        padding: 3px;
        border-radius: 6px;
    }

    .community-list strong {
        font-size: 9px;
    }

    .intro {
        padding: 4px 0 22px;
    }

    .hello {
        font-size: 12px;
    }

    .intro h1 {
        font-size: 32px;
    }

    .intro-copy {
        margin-top: 16px;
        font-size: 10px;
        line-height: 1.55;
    }

    .intro-copy p + p {
        margin-top: 8px;
    }

    .intro-badges {
        margin-top: 12px;
    }

    .resume-section {
        padding: 20px 0;
        break-inside: avoid;
    }

    .highlight-list,
    .project-grid,
    .skill-groups,
    .language-list {
        margin-top: 14px;
    }

    .project-card {
        min-height: 145px;
        padding: 12px;
        break-inside: avoid;
        box-shadow: none;
    }

    .project-mark {
        width: 28px;
        height: 28px;
        padding: 4px;
        border-radius: 7px;
    }

    .project-card h3 {
        margin-top: 8px;
        font-size: 12px;
    }

    .project-card p,
    .timeline-item li,
    .skill-groups p {
        font-size: 8px;
        line-height: 1.45;
    }

    .timeline-item {
        margin-top: 14px;
    }

    .timeline-head h3 {
        font-size: 12px;
    }

    .resume-footer {
        padding-top: 20px;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
