/* ── page nav (top-left corner) ─────────────────────────────────────────── */

.page-nav {
    position: fixed;
    top: 18px;
    left: 22px;
    right: 22px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.nav-link {
    color: rgb(94, 8, 8);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgb(255, 240, 217);
    padding: 6px 12px;
    border: 2px solid rgb(94, 8, 8);
    transform: skew(5deg);
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    transition: color 0.15s;
}

.nav-link:hover {
    color: rgb(240, 144, 27);
}

/* ── about page layout ───────────────────────────────────────────────────── */

.about-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
}

/* ── shared box overrides for this page ─────────────────────────────────── */

.about-layout .box {
    position: static;
    box-shadow: 0 0 13px rgb(0, 0, 0);
}

/* ── details card ────────────────────────────────────────────────────────── */

.about-card {
    width: 320px;
    flex-shrink: 0;
}

.content p {
    margin: 6px 0;
    font-size: 15px;
    font-weight: 500;
    color: rgb(94, 8, 8);
    text-align: center;
    line-height: 1.5;
    opacity: 0.85;
}

.content strong {
    font-weight: 700;
}

/* ── CV download button ───────────────────────────────────────────────────── */

.contact button {
    font-size: 18px;
    font-weight: 700;
    color: rgb(94, 8, 8);
    background-color: rgb(255, 240, 217);
    border: none;
    font-family: 'Ubuntu', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
    transition: color 0.15s;
}

.contact button:hover {
    color: rgb(240, 144, 27);
}

/* ── timeline card ───────────────────────────────────────────────────────── */

.timeline-card {
    width: clamp(320px, 50vw, 560px);
    flex-shrink: 1;
}

.timeline-content {
    padding: 16px 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: skew(-5deg);
}

/* rows above / below the axis */

.timeline-row {
    display: flex;
    justify-content: space-between;
}

.timeline-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 45%;
}

.timeline-entry.left  { align-items: flex-start; text-align: left; }
.timeline-entry.right { align-items: flex-end;   text-align: right; }

.tl-years {
    font-size: 12px;
    font-weight: 700;
    color: rgb(94, 8, 8);
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.tl-title {
    font-size: 15px;
    font-weight: 800;
    color: rgb(40, 10, 10);
}

.tl-role {
    font-size: 14px;
    font-weight: 500;
    color: rgb(94, 8, 8);
    opacity: 0.85;
}

/* the X axis line */

.timeline-axis {
    position: relative;
    height: 10px;
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.axis-line {
    width: 100%;
    height: 3px;
    background-color: #1a0a0a;
    border-radius: 2px;
}

.axis-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1a0a0a;
    top: 50%;
    transform: translateY(-50%);
}

.axis-dot.left-dot  { left: 0; }
.axis-dot.right-dot { right: 0; }

/* ── responsive: stack vertically on narrow screens ─────────────────────── */

@media (max-width: 700px) {

    /* allow body to scroll but hide the scrollbar */
    html, body {
        overflow: hidden;   /* kill the default scrollbar */
    }

    body {
        /* re-enable scrolling without a visible bar */
        overflow-y: scroll;
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE/Edge */
        align-items: flex-start;        /* don't force-center vertically */
    }

    body::-webkit-scrollbar {
        display: none;                  /* Chrome/Safari */
    }

    .about-layout {
        flex-direction: column;
        min-height: unset;
        padding: 80px 20px 40px;        /* top padding clears the nav buttons */
        gap: 32px;
    }

    .about-card {
        width: 100%;
        max-width: 400px;
    }

    .timeline-card {
        width: 100%;
        max-width: 400px;
    }
}