:root {
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;

    --bg: #f4f1ea;
    --panel: #fffaf0;
    --text: #211f1b;
    --muted: #6a6359;
    --line: #d9d2c8;
    --accent: #0f7c7d;
    --accent-soft: #dff2ef;
    --warm: #ff8a3d;
    --success: #1e8e3e;
    --danger: #b3261e;

    --shadow: 0 12px 40px rgba(15, 124, 125, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

[data-theme="dark"] {
    --bg: #11130f;
    --panel: #1b201a;
    --text: #ece9df;
    --muted: #afa99d;
    --line: #2f342e;
    --accent: #5fe0df;
    --accent-soft: #183331;
    --warm: #ffb26e;
    --success: #7ad890;
    --danger: #ff8c85;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 138, 61, 0.24) 0, transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(15, 124, 125, 0.18) 0, transparent 28%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 20px 56px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, calc(100% - 40px));
    z-index: 100;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--panel) 84%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
}

.topbar .brand {
    flex-shrink: 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.topbar .controls {
    flex-shrink: 0;
}

.menu-toggle,
.drawer-close,
.menu-overlay {
    display: none;
}

.menu-toggle,
.drawer-close {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.drawer-close {
    align-self: flex-end;
    margin-bottom: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-family: var(--font-display);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--warm), var(--accent));
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    transition: all 0.25s ease;
}

.nav-links a:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.nav-links a.active {
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid var(--line);
}

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

.btn {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.24s ease;
    font-weight: 600;
}

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

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin-top: 20px;
}

.intro {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
}

.intro-media {
    position: relative;
    padding: 16px;
}

.intro-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.intro-photo-placeholder {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 138, 61, 0.34) 0, transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(15, 124, 125, 0.28) 0, transparent 26%),
        linear-gradient(150deg, color-mix(in oklab, var(--panel) 92%, var(--line)), color-mix(in oklab, var(--accent-soft) 78%, var(--panel)));
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-photo-placeholder span {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    color: var(--accent);
}

.experience-badge {
    position: absolute;
    right: 0;
    bottom: -4px;
    background: color-mix(in oklab, var(--panel) 90%, var(--accent-soft));
    border: 2px solid color-mix(in oklab, var(--accent) 65%, white);
    border-radius: 16px;
    min-width: 156px;
    padding: 14px 18px;
    display: grid;
    justify-items: center;
    gap: 4px;
    box-shadow: var(--shadow);
}

.experience-badge strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.experience-badge span {
    color: var(--muted);
    font-size: 0.92rem;
}

.intro-content {
    padding: 26px;
}

.intro-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

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

.intro-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
    background: color-mix(in oklab, var(--panel) 95%, var(--accent-soft));
}

.intro-item h4 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-display);
}

.intro-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.hero-card,
.card,
.timeline-item,
.contact-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(15, 124, 125, 0.22), transparent 72%);
}

.headline {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.06;
    font-size: clamp(2rem, 4.6vw, 4rem);
    margin: 8px 0 12px;
}

.subtext {
    color: var(--muted);
    max-width: 64ch;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2fbdbe);
    color: #fff;
    border: 0;
}

.hero-panel {
    padding: 22px;
}

.stat-grid {
    display: grid;
    gap: 10px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
}

.section {
    margin-top: 24px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    margin: 0 0 6px;
}

.intro-about {
    margin-top: 14px;
}

.about-timeline {
    margin-top: 28px;
}

.about-timeline h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-family: var(--font-display);
}

.timeline-vertical {
    position: relative;
    margin-top: 20px;
    display: grid;
    gap: 16px;
    padding: 6px 0;
}

.timeline-vertical::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f39b58, #f05e78 27%, #4baadf 55%, #4c7cb7 75%, #9d73bc);
    background-size: 100% 220%;
    animation: lineFlow 7s linear infinite;
    opacity: 0.85;
}

.timeline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr);
    align-items: stretch;
    column-gap: 14px;
    animation: timelineEnter 0.7s ease both;
    animation-delay: calc(var(--row-index, 0) * 0.08s);
}

.timeline-side {
    min-height: 94px;
    display: flex;
    align-items: center;
}

.timeline-left {
    justify-content: flex-end;
}

.timeline-right {
    justify-content: flex-start;
}

.timeline-entry {
    width: min(100%, 400px);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in oklab, var(--tone-color, var(--line)) 42%, var(--line));
    background: color-mix(in oklab, var(--panel) 93%, transparent);
}

.timeline-entry-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-row.right .timeline-entry-head {
    flex-direction: row-reverse;
}

.timeline-icon-shell {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border: 4px solid var(--tone-color, var(--accent));
    background: color-mix(in oklab, var(--panel) 92%, white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), inset 0 0 0 4px color-mix(in oklab, var(--panel) 84%, white);
    animation: iconPulse 2.8s ease-in-out infinite;
}

.timeline-icon {
    font-size: 1.2rem;
    filter: saturate(1.08);
}

.timeline-mid {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    align-content: center;
}

.timeline-year-badge {
    display: inline-block;
    min-width: 76px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    background: var(--tone-color, var(--accent));
    border-radius: 10px;
    padding: 9px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    animation: badgeGlow 2.8s ease-in-out infinite;
}

.timeline-mid-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tone-color, var(--accent));
    border: 3px solid color-mix(in oklab, var(--panel) 85%, white);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--tone-color, var(--accent)) 35%, transparent);
}
.timeline-entry h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-family: var(--font-display);
    color: var(--tone-color, var(--text));
}

.timeline-row.left .timeline-entry {
    text-align: right;
}

.timeline-row.right .timeline-entry {
    text-align: left;
}

.timeline-entry p {
    margin: 0;
}

.timeline-row.is-active .timeline-entry {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--tone-color, var(--accent)) 70%, var(--line));
    box-shadow: 0 14px 30px color-mix(in oklab, var(--tone-color, var(--accent)) 20%, transparent);
}

.timeline-row.is-active .timeline-year-badge {
    transform: scale(1.05);
}

.timeline-entry,
.timeline-year-badge {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tone-1 { --tone-color: #f28d45; }
.tone-2 { --tone-color: #ea5a66; }
.tone-3 { --tone-color: #3d9ad6; }
.tone-4 { --tone-color: #3a678f; }
.tone-5 { --tone-color: #8171b4; }
.tone-6 { --tone-color: #cf5e93; }

@keyframes lineFlow {
    from { background-position: 0 0; }
    to { background-position: 0 220%; }
}

@keyframes timelineEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    }
    50% {
        box-shadow: 0 10px 24px color-mix(in oklab, var(--tone-color, var(--accent)) 45%, black);
    }
}

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

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

.card {
    padding: 18px;
}

.chip {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 2px 6px 0 0;
}

.post-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}
.posts-search input[type="search"] {
    flex: 1;
}

.post-card-link {
    display: block;
}

.post-card {
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-card-link:hover .post-card {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
}

.post-detail-card {
    padding: 22px;
}

.post-detail-thumb {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.post-content {
    margin-top: 14px;
    line-height: 1.78;
    color: var(--text);
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    height: auto;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 6px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--accent) 60%, var(--line));
    background: color-mix(in oklab, var(--accent) 16%, var(--panel));
    color: color-mix(in oklab, var(--accent) 86%, var(--text));
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--line) 90%, transparent);
    overflow: hidden;
    margin-top: 8px;
}

.progress > span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--warm), var(--accent));
}

.timeline-item {
    padding: 18px;
}

.meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.status {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--accent-soft);
}

.status.done {
    color: var(--success);
}

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

.status.stopped {
    color: var(--danger);
}

.contact-wrap {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
}

.contact-direct {
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 90% 10%, rgba(15, 124, 125, 0.18), transparent 36%),
        radial-gradient(circle at 10% 88%, rgba(255, 138, 61, 0.18), transparent 38%),
        color-mix(in oklab, var(--panel) 95%, white);
}

.contact-direct-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: color-mix(in oklab, var(--panel) 94%, var(--accent-soft));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.contact-direct-item span {
    color: var(--muted);
    font-weight: 600;
}

.contact-direct-item strong {
    color: var(--text);
    font-size: 0.96rem;
    text-align: right;
}

.contact-direct-item:hover {
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
}

.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 95;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.floating-contact-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}

.floating-contact-list {
    display: grid;
    gap: 10px;
}

.floating-contact-btn {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid color-mix(in oklab, var(--line) 86%, white);
    background: color-mix(in oklab, var(--panel) 92%, white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.floating-contact-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #3f8ff5, #1f63d8);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    font-family: var(--font-display);
}

.floating-contact-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    transform-origin: right center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    background: color-mix(in oklab, var(--panel) 93%, white);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.floating-contact-btn:hover .floating-contact-tooltip,
.floating-contact-btn:focus-visible .floating-contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.floating-contact-btn.is-facebook .floating-contact-icon {
    background: linear-gradient(135deg, #1877f2, #0d5cd6);
}

.floating-contact-btn.is-tiktok .floating-contact-icon {
    background: linear-gradient(135deg, #0e0e0e, #2b2b2b);
}

.floating-contact-btn.is-zalo .floating-contact-icon {
    background: linear-gradient(135deg, #0b9df3, #0577d4);
}

.floating-contact-btn.is-email .floating-contact-icon {
    background: linear-gradient(135deg, #f08a41, #dd5e1f);
    text-transform: none;
}

form {
    display: grid;
    gap: 10px;
}

input,
textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel) 90%, transparent);
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.empty {
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    margin-top: 20px !important;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in oklab, var(--panel) 92%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        align-items: center;
        border-radius: 18px;
    }

    .topbar .nav-links {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        padding-bottom: 2px;
    }

    .topbar .nav-links a {
        white-space: nowrap;
    }

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

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

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

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

    .timeline-vertical::before {
        left: 44px;
        transform: none;
        width: 6px;
    }

    .timeline-row {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
    }

    .timeline-left,
    .timeline-right {
        grid-column: 2;
        justify-content: flex-start;
        min-height: auto;
    }

    .timeline-row.left .timeline-entry,
    .timeline-row.right .timeline-entry {
        text-align: left;
        width: 100%;
    }

    .timeline-entry-head,
    .timeline-row.right .timeline-entry-head {
        flex-direction: row;
    }

    .timeline-mid {
        grid-column: 1;
        justify-items: start;
    }

    .timeline-year-badge {
        min-width: 66px;
        font-size: 1.35rem;
        padding: 8px 10px;
    }
}

@media (max-width: 720px) {
    .topbar {
        border-radius: 16px;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        padding: 12px;
        z-index: 100;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .nav-wrap {
        position: fixed;
        top: 0;
        right: -20px;
        width: min(78vw, 340px);
        height: 100vh;
        z-index: 120;
        transform: translateX(110%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
        padding: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        background: linear-gradient(180deg, color-mix(in oklab, var(--panel) 96%, #081539), color-mix(in oklab, var(--panel) 90%, #0b1733));
        border-left: 1px solid var(--line);
        box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
    }

    body.menu-open .nav-wrap {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(3, 8, 20, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 110;
    }

    body.menu-open .menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .drawer-close {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid transparent;
        font-size: 1.08rem;
    }

    .controls {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        flex-wrap: wrap;
    }

    .controls .btn {
        white-space: nowrap;
        min-height: 40px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .posts-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card,
    .hero-panel,
    .card,
    .timeline-item,
    .contact-wrap {
        border-radius: var(--radius-md);
    }

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

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: auto;
    }

    .floating-contact {
        right: 12px;
        bottom: 12px;
    }

    .floating-contact-title {
        text-align: left;
    }

    .floating-contact-btn {
        width: 48px;
        height: 48px;
    }

    .floating-contact-icon {
        font-size: 0.9rem;
    }

    .floating-contact-tooltip {
        display: none;
    }

    .page-shell {
        padding-top: 84px;
        padding-bottom: 220px;
    }
}



.timeline-vertical {
    position: relative;
    margin-top: 40px;
}

/* LINE GIỮA */
.timeline-vertical::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ddd;
    transform: translateX(-50%);
}

/* ROW */
.timeline-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

/* 2 BÊN */
.timeline-side {
    width: 45%;
}

.timeline-left {
    text-align: right;
}

.timeline-right {
    text-align: left;
}

/* MID (YEAR + DOT) */
.timeline-mid {
    position: relative;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DOT */
.timeline-mid-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 4px solid #3498db;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

/* YEAR BADGE */
.timeline-year-badge {
    position: absolute;
    top: -20px;
    background: #3498db;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
}

/* CARD */
.timeline-entry {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ICON */
.timeline-entry-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-icon-shell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT ARROW */
.timeline-row.left .timeline-entry::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

/* RIGHT ARROW */
.timeline-row.right .timeline-entry::after {
    content: "";
    position: absolute;
    top: 20px;
    left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* MÀU THEO TONE */
.tone-1 .timeline-year-badge { background: #f39c12; }
.tone-2 .timeline-year-badge { background: #e74c3c; }
.tone-3 .timeline-year-badge { background: #3498db; }
.tone-4 .timeline-year-badge { background: #34495e; }
.tone-5 .timeline-year-badge { background: #9b59b6; }
.tone-6 .timeline-year-badge { background: #e91e63; }

.tone-1 .timeline-mid-dot { border-color: #f39c12; }
.tone-2 .timeline-mid-dot { border-color: #e74c3c; }
.tone-3 .timeline-mid-dot { border-color: #3498db; }
.tone-4 .timeline-mid-dot { border-color: #34495e; }
.tone-5 .timeline-mid-dot { border-color: #9b59b6; }
.tone-6 .timeline-mid-dot { border-color: #e91e63; }
/* Skills page CSS */
.page-skills .progress > span {
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent);
}

.item-skill {
    display: inline-grid;
    width: 49%;
}