:root {
    --ink: #242832;
    --muted: #555b66;
    --sidebar: #303a4b;
    --sidebar-rail: #536176;
    --rule: #a99380;
    --paper: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #d9dde3;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.availability-box {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 200px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid rgba(169, 147, 128, 0.55);
    border-radius: 18px;
    color: #293144;
    background: linear-gradient(135deg, #fff8ef 0%, #ead8c3 100%);
    box-shadow: 0 12px 30px rgba(92, 64, 45, 0.18);
    text-decoration: none;
    overflow: visible;
}

.availability-open-icon {
    position: absolute;
    bottom: -76px;
    left: 50%;
    width: 92px;
    height: 92px;
    object-fit: contain;
    transform: translateX(-50%) rotate(-4deg);
    filter: drop-shadow(0 5px 8px rgba(6, 78, 59, 0.18));
}

.availability-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(92, 64, 45, 0.24);
}

.availability-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: #303a4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.availability-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.35), 0 0 12px rgba(34, 197, 94, 0.95);
}

.availability-box strong {
    font-size: 17px;
    line-height: 1.15;
}

.availability-box span:last-child {
    color: #555b66;
    font-size: 13px;
}

.page-credit {
    width: 210mm;
    margin: -10px auto 28px;
    color: #6b7280;
    font-size: 11px;
    text-align: center;
}

.page-credit a {
    color: inherit;
}

.floating-actions {
    z-index: 10;
}

.career-roadmap {
    position: absolute;
    top: 50px;
    left: calc(52% + 88mm);
    width: 320px;
    color: #ffffff;
}

.career-roadmap h2 {
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    color: #303a4b;
    font-size: 15px;
    letter-spacing: 0.12em;
}

.career-roadmap h2::after {
    display: none;
}

.roadmap-track {
    position: relative;
    min-height: 560px;
    padding: 18px 0;
}

.roadmap-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 36px;
    border: 3px solid #f7fafc;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.24);
    transform: translateX(-50%);
}

.roadmap-track::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(
            to bottom,
            #b8d94f 0,
            #b8d94f 14px,
            transparent 14px,
            transparent 28px
    );
    transform: translateX(-50%);
}

.roadmap-stop {
    position: relative;
    display: flex;
    min-height: 118px;
    align-items: center;
}

.roadmap-stop:nth-child(odd) {
    justify-content: flex-start;
}

.roadmap-stop:nth-child(even) {
    justify-content: flex-end;
}

.roadmap-stop::before {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    transform: translateY(-50%);
}

.roadmap-stop:nth-child(odd)::before {
    left: 126px;
    border-left: 28px solid #b9855f;
}

.roadmap-stop:nth-child(even)::before {
    right: 126px;
    border-right: 28px solid #536176;
}

.roadmap-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    width: 160px;
    min-height: 64px;
    padding: 10px;
    border-radius: 18px;
    color: #ffffff;
    background: #b9855f;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

.roadmap-stop:nth-child(even) .roadmap-card {
    grid-template-columns: 1fr 48px;
    background: #536176;
}

.roadmap-stop:nth-child(even) .roadmap-logo {
    order: 2;
}

.roadmap-logo {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: #ffffff;
    color: #303a4b;
    font-size: 20px;
    font-weight: 900;
}

.roadmap-logo img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.roadmap-card strong,
.roadmap-card span {
    display: block;
}

.roadmap-card strong {
    font-size: 13px;
    line-height: 1.1;
}

.roadmap-card span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    line-height: 1.2;
}

.download-button,
.ad-button {
    position: fixed;
    bottom: 28px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.25);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.floating-action-left {
    left: 28px;
}

.floating-action-right {
    right: 28px;
}

.download-button {
    background: var(--sidebar);
}

.download-button:hover {
    background: #253042;
}

.ad-button {
    background: #b9855f;
}

.ad-button:hover {
    background: #9f704f;
}

.page {
    display: grid;
    grid-template-columns: 270px 1fr;
    width: 210mm;
    min-height: 297mm;
    margin: 24px auto;
    background: var(--paper);
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.18);
}

@media (min-width: 1421px) {
    .page,
    .page-credit {
        margin-left: calc(50% - 122mm);
        margin-right: auto;
    }
}

.sidebar {
    background: var(--sidebar);
    border-left: 24px solid var(--sidebar-rail);
    color: #ffffff;
    padding: 56px 34px 42px;
}

.content {
    padding: 58px 46px 42px;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.avatar-frame {
    width: 156px;
    height: 156px;
    margin: 0 auto 64px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--rule), 0 10px 26px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.18);
    transform-origin: center 42%;
}

.hero h1 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    color: #263044;
    font-size: 43px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: capitalize;
}

.english-name {
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.title {
    margin-top: 8px;
    color: #2f3034;
    font-size: 24px;
    letter-spacing: 0.05em;
}

.summary-text {
    max-width: 560px;
    margin-top: 28px;
    color: #2e3138;
    font-size: 14px;
    line-height: 1.45;
    text-align: justify;
}

h2 {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

h2::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: var(--rule);
}

.content h2 {
    margin-top: 38px;
    color: #293144;
}

.sidebar h2 {
    color: #ffffff;
    margin-bottom: 18px;
    gap: 22px;
}

.sidebar h2::after {
    background: rgba(169, 147, 128, 0.85);
}

h3 {
    font-size: 14px;
    font-weight: 800;
}

.sidebar h3 {
    color: #ffffff;
}

.content h3 {
    color: #181a20;
    font-size: 17px;
}

h4 {
    color: #181a20;
    font-size: 17px;
    font-weight: 800;
}

.side-section {
    margin-top: 42px;
}

.plain-list,
.side-bullets,
.bullets {
    margin: 0;
}

.plain-list {
    padding: 0;
    list-style: none;
}

.plain-list li {
    margin-top: 4px;
    color: #f0f2f5;
    font-size: 15px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.icon-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icon-row i {
    flex: 0 0 18px;
    width: 18px;
    margin-top: 3px;
    color: var(--rule);
    text-align: center;
}

.inline-icon {
    align-items: center;
}

.inline-icon i {
    margin-top: 0;
}

.inline-fa {
    width: 18px;
    margin-right: 7px;
    color: var(--rule);
    text-align: center;
}

.side-bullets {
    padding-left: 24px;
}

.side-bullets li {
    margin-top: 5px;
    color: #f0f2f5;
    font-size: 15px;
}

.education {
    margin-top: 22px;
}

.education p {
    margin-top: 5px;
    color: #f0f2f5;
    font-size: 13px;
}

.experience {
    margin-top: 0;
}

.company {
    margin-top: 0;
}

.project {
    position: relative;
    margin-top: 28px;
    padding-left: 42px;
    padding-bottom: 22px;
}

.project::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 11px;
    height: 11px;
    border: 3px solid var(--rule);
    border-radius: 50%;
    background: var(--paper);
    z-index: 1;
}

.project::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: -30px;
    left: 7px;
    width: 2px;
    background: var(--rule);
}

.company:last-child .project:last-child::after {
    display: none;
}

.project-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.project-period {
    flex: 0 0 auto;
    color: #55565d;
    font-size: 16px;
    font-style: italic;
    white-space: nowrap;
}

.company-name {
    margin-top: 6px;
    color: #555b66;
    font-size: 15px;
}

.project p {
    margin-top: 7px;
    color: #2e3138;
}

.bullets {
    padding-left: 22px;
}

.bullets li {
    margin-top: 4px;
}

strong {
    font-weight: 800;
}

@media print {
    body {
        background: #ffffff;
    }

    .floating-actions,
    .availability-box,
    .career-roadmap {
        display: none;
    }

    .page {
        width: auto;
        min-height: 0;
        margin: 0;
        box-shadow: none;
    }
}

@media (max-width: 1420px) {
    .career-roadmap {
        display: none;
    }
}

@media (max-width: 900px) {
    .availability-box {
        position: static;
        width: auto;
        margin: 16px 16px 96px;
    }

    .download-button,
    .ad-button {
        justify-content: center;
        right: 16px;
        left: 16px;
    }

    .ad-button {
        bottom: 72px;
    }

    .download-button {
        bottom: 16px;
    }
}
