/* ============ TOKENS (add colours here later) ============ */
:root {
    --black: #000000; /* full black: hero image + sections */
    --off-black: #0e0e0e; /* title/subtitle section + behind hero alpha */
    --white: #f4f4f4;
    --grey: #a8a8a8;
    --line: #ffffff;
    --divider: rgba(255, 255, 255, 0.5);
    --font-heading: "Permanent Marker", "Comic Sans MS", cursive;
    --font-body:
        "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    --hero-height: 60vh; /* hero image height */
    --nav-height: 68px;
    --linkedin: #0a66c2;
    --github: #8534f3;
    --mail: #34a853;
    --instagram: #e1306c;
    --discord: #5865f2;
    --theme-hover: #f4c542;
    --nav-background: 0, 0, 0;
    --quote: #d0d0d0;
    --image-border: rgba(255, 255, 255, 0.3);
    --accent: #8c6bff; /* used for stat cards and other small accents */
    --accent-soft: rgba(140, 107, 255, 0.08);
    --magic-gradient: linear-gradient(
        120deg,
        #c02929,
        #da771b,
        #f1c900,
        #00ccbe,
        #1b7aff,
        #8f22f5,
        #f825ae
    );
}

html[data-theme="light"] {
    --black: #ffffff;
    --off-black: #f4f4f4;
    --white: #101010;
    --grey: #555555;
    --line: #000000;
    --theme-hover: #29cdff;
    --nav-background: 255, 255, 255;
    --quote: #2f2f2f;
    --image-border: rgba(0, 0, 0, 0.3);
    --divider: rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
:focus-visible {
    outline: 2px dashed var(--white);
    outline-offset: 4px;
}

h1,
h2,
h3,
.logo,
.nav-links {
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0;
}

/* ============ NAVBAR (glass, overlaps hero) ============ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(var(--nav-background), 0.35);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(4px) saturate(30%);
    border-bottom: 1px solid rgba(55, 55, 55, 0.85);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.logo {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 1.25rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
    border-color: var(--line);
}
.nav-links a:hover {
    background: var(--white);
    color: var(--black);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid transparent;
    color: var(--white);
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}
.icon-btn:hover {
    border-color: var(--theme-hover);
    background: var(--theme-hover);
    color: var(--black);
}
.social-link--linkedin:hover {
    border-color: var(--linkedin);
    background: var(--linkedin);
    /* color: #ffffff; */
}
.social-link--github:hover {
    border-color: var(--github);
    background: var(--github);
    /* color: #ffffff; */
}
.social-link--mail:hover {
    border-color: var(--mail);
    background: var(--mail);
    /* color: #ffffff; */
}
.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.divider {
    width: 2px;
    height: 22px;
    background: var(--divider);
    margin: 0 8px;
}
.menu-toggle {
    display: none;
}

/* ============ HERO (image sits under navbar) ============ */
.hero {
    position: relative;
    height: var(--hero-height);
    min-height: 350px;
    background: var(
        --off-black
    ); /* shows through the image's alpha curve */
    overflow: hidden;
}
.hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom; /* keeps the developer in frame; tweak if needed */
}

/* ============ TITLE / INTRO (off-black) ============ */
.intro {
    background: var(--off-black);
    padding: 0 clamp(20px, 6vw, 80px) clamp(56px, 8vw, 104px);
    text-align: center;
}
.intro h1 {
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 1;
}
.intro .role {
    margin: 14px 0 0;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--grey);
}
.intro .bio {
    max-width: 60ch;
    margin: 28px auto 0;
    color: var(--quote);
    font-size: clamp(0.98rem, 1.6vw, 1.1rem);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--line);
    color: var(--white);
    background: transparent;
    box-shadow: 5px 5px 0 var(--white);
    transition:
        transform 0.12s,
        box-shadow 0.12s,
        background 0.12s,
        color 0.12s;
}
.btn:hover {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 var(--white);
}
.btn-primary {
    background: var(--white);
    color: var(--black);
    box-shadow: 5px 5px 0 #6b6b6b;
}
.btn-primary:hover {
    box-shadow: 0 0 0 #6b6b6b;
}
.intro .btn-primary:hover {
    background: var(--magic-gradient);
    background-size: 300% 300%;
    color: var(--black);
    animation: magic-rainbow 1.2s ease-in-out 1 forwards;
}
@keyframes magic-rainbow {
    0% {
        background-position: 0% 50%; /* The animation will now freeze here */
    }
    100% {
        background-position: 100% 50%;
    }
}

html.modal-open {
    overflow: hidden;
}
 
/* Backdrop: dims and blurs the page behind the popup */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100; /* above the navbar (50) */
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(var(--nav-background), 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: modal-fade 0.18s ease-out;
}
.contact-modal[hidden] {
    display: none;
}
 
.contact-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--black);
    border: 2px solid var(--grey);
    box-shadow: 8px 8px 0 var(--image-border);
    padding: clamp(24px, 5vw, 36px);
    animation: modal-pop 0.2s ease-out;
}
 
.contact-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.05;
    padding-right: 48px; /* keeps the title clear of the close button */
}
.contact-sub {
    margin: 10px 0 24px;
    color: var(--grey);
    font-size: 0.95rem;
}
 
/* Close (cross): --white normally; on hover --black icon on a --white box */
.contact-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    color: var(--white);
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}
.contact-close:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}
.contact-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}
 
/* Horizontal bar list */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.contact-row {
    --c: var(--accent); /* each row sets its own colour below */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid var(--image-border);
    color: var(--white);
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.15s;
}
.contact-row--email {
    --c: var(--mail);
}
.contact-row--linkedin {
    --c: var(--linkedin);
}
.contact-row--github {
    --c: var(--github);
}
.contact-row--instagram {
    --c: var(--instagram);
}
.contact-row--discord {
    --c: var(--discord);
}
 
.contact-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--c);
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    transition:
        background 0.15s,
        color 0.15s;
}
.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
}
.contact-handle {
    font-weight: 600;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.contact-go {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--grey);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        stroke 0.15s,
        transform 0.15s;
}
 
.contact-row:hover,
.contact-row:focus-visible {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 10%, transparent);
    transform: translateX(4px);
}
.contact-row:hover .contact-icon,
.contact-row:focus-visible .contact-icon {
    background: var(--c);
    color: #fff;
}
.contact-row:hover .contact-go,
.contact-row:focus-visible .contact-go {
    stroke: var(--c);
    transform: translateX(3px);
}
 
@keyframes modal-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* ============ FULL BLACK SECTIONS ============ */
.section {
    background: var(--black);
    padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 80px);
    border-top: 2px solid var(--line);
}
.section h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}
.section p {
    color: var(--grey);
    max-width: 60ch;
}

.section-inner {
    max-width: 880px;
    margin: 0 auto;
}

/* ============ ABOUT: stat cards + bio (sits right after the hero CTAs) ============ */
.about-section {
    text-align: center;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 640px;
    margin: 0 auto 48px;
}
.stat-card {
    border: 2px solid var(--accent);
    background: var(--accent-soft);
    padding: clamp(28px, 4vw, 40px) 24px;
    display: flex;
    flex-direction: column;
}

.stat-card span {
    margin: auto 0;
}

.stat-card .num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}
.stat-card .label {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}
.about-section p {
    color: var(--quote);
    max-width: 70ch;
    margin: 0 auto;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    text-align: left;
}
.about-section p + p {
    margin-top: 18px;
}
/* ============================================================
   ABOUT: width system + Studio CTA
   Paste at the END of style.css (after the About block).
   ============================================================ */

/* ---- 1. Width tokens: two widths, used everywhere ---- */
:root {
    --w-wide: 1100px; /* card grids */
    --w-col: 760px; /* text column: stats, bio, callout, tags */
}

.projects-grid {
    max-width: var(--w-wide);
}

/* Both About areas share one column. Paragraphs, the stat cards, the
   Side Quest box and the tag rows now start and end on the same edges. */
.about-section .section-inner,
.bio-section .section-inner {
    max-width: var(--w-col);
}
.about-section .stat-grid {
    max-width: none;
}
.about-section p,
.bio-section p {
    max-width: none;
}

/* ---- 2. Studio CTA (inside the Side Quest callout) ---- */
.bio-cta {
    transition:
        transform 0.12s,
        box-shadow 0.12s,
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}
.bio-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}
.bio-cta--arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.bio-cta-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}
.bio-cta--arrow:hover .bio-cta-arrow {
    transform: translateX(4px);
}

/* ---- 3. Light-theme fix for the earlier CTA update ----
   The pasted version used var(--accent) directly, which also tints
   light mode. These re-point those spots at --accent. */
.project-cta:hover,
.project-card--other:hover .other-toggle-btn {
    background: var(--accent);
    border-color: var(--accent);
}
.other-toggle-arrow {
    background: var(--accent);
}
.project-card--other:hover .other-toggle-arrow {
    color: var(--accent);
}
/* ============ PROJECTS ============ */
.section-heading {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}
.section-heading p {
    margin: 14px auto 0;
    max-width: 55ch;
    color: var(--grey);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--image-border);
    background: transparent;
    color: inherit;
    text-align: left;
    font-family: inherit;
    padding: 0;
    transition:
        border-color 0.15s,
        transform 0.15s;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.project-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.project-cta-row {
    padding: 0 22px 22px;
}
.project-cta {
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: none;
    padding: 10px 16px;
    font-size: 0.85rem;
}
.project-cta:hover {
    box-shadow: none;
    transform: none;
}

.project-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 2px solid var(--image-border);
    background: var(--off-black);
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

.project-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.project-title {
    font-size: 1.3rem;
}
.project-tagline {
    color: var(--quote);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}
.project-tag {
    border: 1px solid var(--image-border);
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--grey);
}

/* ---- "Other Notable Projects" toggle card ---- */
.project-card--other {
    justify-content: stretch;
    cursor: pointer;
}
.project-thumb--other {
    display: grid;
    place-items: center;
    background: var(--accent-soft);
}
.project-thumb--other svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.other-toggle-chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--grey);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}
.project-card--other[aria-expanded="true"] .other-toggle-chevron {
    transform: rotate(180deg);
}

.other-project[hidden] {
    display: none;
}

/* ============================================================
   CTA + "Other Notable Projects" update
   Paste this at the END of style.css (it overrides the older
   .project-cta rules above it, which you can then delete).
   ============================================================ */

/* ---- Project card CTA: same "pop-up" button as the hero buttons ---- */
.project-cta {
    box-shadow: 5px 5px 0 #6b6b6b;
    transition:
        transform 0.12s,
        box-shadow 0.12s,
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}
.project-cta:hover {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 #6b6b6b;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

/* ---- "Other Notable Projects": button row + larger arrow ---- */
.other-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}
.other-toggle-btn .label-open {
    display: none;
}
.project-card--other[aria-expanded="true"] .other-toggle-btn .label-closed {
    display: none;
}
.project-card--other[aria-expanded="true"] .other-toggle-btn .label-open {
    display: inline;
}

/* Hovering anywhere on the card presses the button */
.project-card--other:hover .other-toggle-btn {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 #6b6b6b;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

/* Square arrow badge */
.other-toggle-arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border: 2px solid var(--black);
    background: var(--accent);
    color: var(--black);
    transition:
        background 0.12s,
        color 0.12s;
}
.project-card--other:hover .other-toggle-arrow {
    background: var(--black);
    color: var(--accent);
}
.other-toggle-arrow .other-toggle-chevron {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 3;
}

/* Gentle nudge while collapsed to invite a click; flips when open */
.project-card--other[aria-expanded="false"] .other-toggle-arrow .other-toggle-chevron {
    animation: nudge-down 1.4s ease-in-out infinite;
}
@keyframes nudge-down {
    0%,
    100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(3px);
    }
}

footer {
    background: var(--black);
    border-top: 2px solid var(--line);
    padding: 28px clamp(20px, 6vw, 80px);
    color: var(--grey);
    font-size: 0.85rem;
}

/* ============ MOBILE ============ */
@media (max-width: 760px) {
    .menu-toggle {
        display: inline-grid;
    }
    .divider {
        display: none;
    }
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px clamp(16px, 4vw, 48px) 16px;
        background: rgba(0, 0, 0, 0.8);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 2px solid var(--line);
        display: none;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 12px 4px;
    }
}

/* ============================================================
   ABOUT SECTION
   Content hierarchy is deliberate: "My Craft" and the "Side Quest"
   (both game-dev-relevant) are full-weight. "Engineering Beyond
   Games" and "Outside the Editor" use the --compact/--small
   modifiers to read as supporting context, not parallel pitches.
   ============================================================ */
.bio-section .section-inner {
    text-align: left;
}
.bio-section p {
    color: var(--quote);
    max-width: 70ch;
    font-size: 1rem;
    line-height: 1.75;
}
.bio-section p + p {
    margin-top: 14px;
}

.bio-block {
    margin-top: 52px;
}
.bio-block:first-child {
    margin-top: 0;
}
.bio-lead p {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--white);
}

.bio-heading {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 14px;
}
.bio-heading--small {
    font-size: 1.1rem;
}

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.bio-tag {
    border: 2px solid var(--image-border);
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--grey);
    transition:
        border-color 0.15s,
        color 0.15s;
}
.bio-tag:hover {
    border-color: var(--accent);
    color: var(--white);
}

/* The Side Quest — highlighted as a standout, game-relevant callout */
.bio-callout {
    margin-top: 52px;
    border: 2px solid var(--accent);
    background: var(--accent-soft);
    padding: clamp(24px, 4vw, 36px);
}
.bio-callout .bio-heading {
    color: var(--accent);
}

/* Supporting sections: visually subordinate to the game-dev content */
.bio-block--compact {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--image-border);
}
.bio-block--small {
    margin-top: 40px;
}

.bio-cta {
    margin-top: 22px;
    display: inline-block;
}

/* ============================================================
   RESUME SECTION
   Paste at the END of style.css (before the prefers-reduced-motion
   block is fine, or after it).
   ============================================================ */

/* Same text column as About, so edges line up */
.resume-section .section-inner {
    max-width: var(--w-col);
}
.resume-section p {
    max-width: none;
}

/* Download / view buttons */
.resume-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 56px;
}
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.resume-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.resume-actions .btn {
    transition:
        transform 0.12s,
        box-shadow 0.12s,
        background 0.12s,
        color 0.12s,
        border-color 0.12s;
}
.resume-actions .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

/* Blocks + headings */
.resume-block {
    margin-top: 48px;
}
.resume-block:first-child {
    margin-top: 0;
}
.resume-heading {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--image-border);
}

/* One role / project / school */
.resume-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--image-border);
}
.resume-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.resume-item-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
}
.resume-item-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
}
.resume-date {
    font-size: 0.85rem;
    color: var(--grey);
    white-space: nowrap;
}
.resume-item-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 16px;
    margin: 2px 0 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--grey);
}
.resume-points {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--quote);
    font-size: 0.95rem;
    line-height: 1.7;
}
.resume-points li + li {
    margin-top: 6px;
}
.resume-points li::marker {
    color: var(--accent);
}

/* Small link chips next to a title (Case study, GitHub, Play Store...) */
.resume-link {
    border: 1px solid var(--image-border);
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--grey);
    transition:
        border-color 0.15s,
        color 0.15s;
}
.resume-link:hover {
    border-color: var(--accent);
    color: var(--white);
}

/* Skills groups reuse .bio-tags / .bio-tag */
.resume-skill-label {
    margin: 18px 0 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
}
.resume-skill-label:first-of-type {
    margin-top: 14px;
}
.resume-skills .bio-tags {
    margin-top: 10px;
}

.resume-note {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--grey);
    text-align: center;
}

.resume-note a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.resume-note a:hover {
    color: var(--accent);
}

/* Lets the "Let's Connect" link in the resume note scroll to the top button
   and leave it clear of the fixed navbar. Needs id="connect-btn" on that button. */
#connect-btn {
    scroll-margin-top: calc(var(--nav-height) + 260px);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}