/* ============= CSS Variables for Theming =============== */

:root {
    --primary-color: #62EBE1;
    /* Default primary color */
    --secondary-color: #252A34;
    /* Default secondary color */
    --tertiary-color: #FF2E63;
    /* Default tertiary color */
    /* The brand pink only reaches 3.0:1 on the light background, below the 4.5:1
       WCAG AA needs for body text. These two are the same hue re-stepped for each
       ground: ink for text and buttons on light, bright for text on the dark navy. */
    --tertiary-ink: #C9003C;
    --tertiary-bright: #FF5C82;
    --background-color: #EAEAEA;
    /* Default background color */
    --text-color: #1d2024;
    /* Default text color */
}

/* ============= BODY =============== */

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ============= Reusable CSS =============== */

ul{
    list-style-type: none;

}

a{
    text-decoration: none;
    color: var(--tertiary-color);
    font-weight: 500;

}

/* ============= Navigation Bar =============== */

:root {
    --nav-height: 68px;
}

/* Sticky nav would otherwise cover in-page anchor targets (e.g. #project-gallery). */
html {
    scroll-padding-top: calc(var(--nav-height) + 12px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    /* Lines the bar up with the 60%-wide .container on desktop; the mobile
       breakpoint below drops this to a flat gutter. */
    padding-inline: 20vw;
    background-color: var(--secondary-color);
    /* Light type on a dark bar renders thin and smeared without this. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The site has no global box-sizing, so scope it here to keep the declared
   touch-target sizes literal. */
.nav *,
.nav-menu *,
.nav-scrim {
    box-sizing: border-box;
}

/* The global `button` rule paints a filled pink/cyan pill; nav buttons are
   icon-only and must opt out of it, hover included. */
.nav button,
.nav button:hover {
    margin: 0;
    background: none;
    border: 0;
    font: inherit;
}

.nav-brand {
    font-family: "Raleway", sans-serif;
    /* Raleway is loaded as a variable font, so these weights are real
       instances rather than browser-synthesised (blurry) bold. */
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--tertiary-color);
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-brand:hover,
.nav-brand:focus-visible {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    font-family: "Raleway", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    transition: color .2s ease, background-color .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item--has-submenu:hover > .nav-link,
.nav-item--has-submenu:focus-within > .nav-link {
    color: var(--primary-color);
}

.nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-inline-start: -8px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.nav-chevron {
    transition: transform .25s ease;
}

.nav .nav-submenu-toggle:hover,
.nav-item--has-submenu:hover .nav-submenu-toggle,
.nav-item--has-submenu:focus-within .nav-submenu-toggle {
    color: var(--primary-color);
}

.nav .nav-toggle:hover {
    color: var(--primary-color);
}

.nav-item--has-submenu:hover .nav-chevron,
.nav-submenu-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 6px;
    min-width: 150px;
    margin: 0;
    padding: 6px;
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* An invisible bridge keeps hover alive across the gap to the panel. */
.nav-item--has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-item--has-submenu:hover .nav-submenu,
.nav-item--has-submenu:focus-within .nav-submenu,
.nav-submenu-toggle[aria-expanded="true"] + .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-inner {
    margin: 0;
    padding: 0;
    min-height: 0;
    list-style: none;
}

.nav-submenu a {
    display: block;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    padding: 10px 12px;
    border-radius: 2px;
    transition: color .2s ease, background-color .2s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}

/* ============= Nav: mobile toggle & scrim =============== */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    /* 48px keeps the hit area at the recommended touch-target minimum. */
    width: 48px;
    height: 48px;
    margin-inline-end: -10px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #fff;
    cursor: pointer;
}

.nav-toggle-box {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
}

.nav-toggle-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 7px; }
.nav-toggle-bar:nth-child(3) { top: 14px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.nav-scrim {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    z-index: 900;
    background-color: rgba(10, 12, 16, 0.55);
    opacity: 0;
    transition: opacity .25s ease;
}

.nav-scrim.is-visible {
    opacity: 1;
}

.nav-toggle:focus-visible,
.nav-submenu-toggle:focus-visible,
.nav-link:focus-visible,
.nav-brand:focus-visible,
.nav-submenu a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============= Nav: mobile layout =============== */

@media (max-width: 860px) {
    .nav {
        padding-inline-start: calc(18px + env(safe-area-inset-left));
        padding-inline-end: calc(18px + env(safe-area-inset-right));
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 950;
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
        background-color: var(--secondary-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 3px 3px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-item {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-item:last-child {
        border-bottom: 0;
    }

    /* On touch there is no hover, so the submenu is an accordion the
       chevron button opens; the label itself stays a plain link. */
    .nav-item--has-submenu {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .nav-item--has-submenu::after {
        content: none;
    }

    .nav-link {
        min-height: 52px;
        font-size: 1.15rem;
        padding: 12px 8px;
        border-radius: 2px;
    }

    .nav-submenu-toggle {
        width: 48px;
        height: 48px;
        margin-inline-start: 0;
    }

    .nav-submenu {
        grid-column: 1 / -1;
        position: static;
        display: grid;
        grid-template-rows: 0fr;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: grid-template-rows .25s ease;
    }

    .nav-submenu-toggle[aria-expanded="true"] + .nav-submenu {
        grid-template-rows: 1fr;
    }

    .nav-submenu-inner {
        overflow: hidden;
    }

    .nav-submenu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.02rem;
        margin-left: 8px;
        padding: 10px 12px;
        border-left: 2px solid rgba(255, 255, 255, 0.16);
        border-radius: 0 2px 2px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-submenu,
    .nav-scrim,
    .nav-chevron,
    .nav-toggle-bar {
        transition-duration: 0.01ms;
    }
}

.container {
    color: var(--text-color);
    width: 60%;
    margin: 0 auto;
    padding:  0;
    overflow: hidden;

}

/* ============= Hero =============== */

.hero-shader-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.2;
}

.light-curtain-canvas {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: block;
}

.hero {
    position: relative;
    text-align: center;
    background: #000000;
}

.hero img {
    z-index: -1;
    width: 100%;
    height: auto;
    opacity: 0.3;
}

.hero-text {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    opacity: 1;
    z-index: 100;
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 10px;
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    opacity: 1;
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 22px;
    }
}

.about-availability {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 16px;
    background: rgba(98, 235, 225, 0.22);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
}

.contact-lede {
    max-width: 62ch;
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px 0 30px;
}

.contact-group {
    padding: 22px 24px;
    background: linear-gradient(160deg, rgba(255, 46, 99, 0.08), rgba(98, 235, 225, 0.08));
    border: 1px solid rgba(29, 32, 36, 0.08);
    border-radius: 10px;
}

.contact-group h3,
.contact-group h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin: 0 0 14px;
    color: var(--secondary-color);
}

.contact-group h3 i,
.contact-group h2 i {
    color: var(--tertiary-color);
}

.contact-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.contact-group a:hover {
    color: var(--tertiary-color);
}

.contact-group a i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.contact-signoff {
    max-width: 62ch;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 404. GitHub Pages serves this for any bad URL, so it has to stand on its own
   without the context of whatever page the visitor thought they were opening. */
.notfound {
    padding: 64px 0 80px;
}

.notfound-code {
    margin: 0 0 10px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.notfound-lede {
    max-width: 52ch;
    margin: 0 0 30px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.notfound-cta {
    margin-bottom: 30px;
}

.notfound-alt {
    max-width: 62ch;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.7;
}

.notfound-alt a {
    color: var(--tertiary-ink);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 860px) {
    .notfound {
        padding: 44px 0 56px;
    }
    .notfound-lede {
        font-size: 1.05rem;
    }
}

.resume-section__note {
    max-width: 60ch;
    margin: -6px auto 18px;
    color: rgba(37, 42, 52, 0.75);
    line-height: 1.6;
}

/* ============= "What I built" contribution block =============== */

.project-contributions {
    margin-top: 34px;
    padding: 26px 30px;
    background: rgba(255, 255, 255, 0.55);
    border-left: 4px solid var(--tertiary-color);
    border-radius: 4px;
}

.project-contributions h3 {
    margin: 0 0 14px;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: 1.3rem;
}

.project-contributions ul {
    max-width: 78ch;
    margin: 0;
    padding-left: 20px;
}

.project-contributions li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.project-contributions li:last-child {
    margin-bottom: 0;
}

/* ============= Project card attribution =============== */

.project-card__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 6px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-card__badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--primary-color);
    border-radius: 999px;
    color: var(--secondary-color);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.project-card__role {
    margin: 0 0 4px;
    color: var(--secondary-color);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
}

.project-card__tech {
    margin: 0;
    color: rgba(37, 42, 52, 0.7);
    font-size: 0.85rem;
}

/* ============= Home hero (recruiter landing) =============== */

.hero-home {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(62vh, 520px);
    padding: 48px 0;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero-home__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(37, 42, 52, 0.94) 0%, rgba(37, 42, 52, 0.82) 45%, rgba(37, 42, 52, 0.45) 100%);
}

.hero-home__inner {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.hero-home__eyebrow {
    margin: 0 0 10px;
    color: var(--tertiary-bright);
    font-family: "Raleway", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-home__title {
    max-width: 16ch;
    margin: 0 0 18px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero-home__lede {
    max-width: 60ch;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.6;
}

.hero-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: .25s;
}

.hero-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-btn--primary {
    background-color: var(--tertiary-ink);
    border-color: var(--tertiary-ink);
    color: var(--background-color);
}

.hero-btn--primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.hero-home__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-home__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    text-decoration: none;
}

.hero-home__links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 770px) {
    .hero-home {
        min-height: auto;
        padding: 44px 0;
    }
    .hero-home__actions {
        gap: 10px;
    }
    .hero-btn {
        padding: 11px 16px;
        font-size: 0.9rem;
    }
}

/* ============= Projects =============== */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    gap: 30px 3%;
    margin-top: 20px;
}

/* breathing room when a new section heading follows a gallery row */
.project-gallery + h2 {
    margin-top: 54px;
}

/* Slight rounding for project gallery images; keep overlay clipped to same radius */
.project {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.project img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0; /* let the .project container provide the rounding */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project:hover .overlay {
    opacity: 0;
}

.project .overlay h3 {
    color: #fff;
    font-size: 35px;
    text-align: center;
    margin: 0;
}


.project-description {
    text-align: left;
    margin-top: 10px;
    color: var(--text-color);
}




/* ============= About Page =============== */

.hero-about {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--secondary-color);
    padding: 56px 0;
}

.hero-about__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    width: min(92%, 1200px);
    margin-inline: auto;
}

.hero-about__avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--tertiary-color), var(--primary-color));
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
}

.hero-about__eyebrow {
    margin: 0 0 8px;
    color: var(--tertiary-bright);
    font-family: "Raleway", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-about__title {
    margin: 0 0 14px;
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
}

.hero-about__lede {
    max-width: 60ch;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.6;
}

.hero-about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 640px) {
    .hero-about__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-about__avatar {
        width: 96px;
        height: 96px;
        font-size: 1.9rem;
    }
}

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

.about-intro p {
    max-width: 70ch;
    line-height: 1.7;
}

/* ---- About pillars ("what I bring") ---- */

.about-pillars {
    margin-top: 54px;
}

.about-pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.about-pillar {
    padding: 22px 24px;
    background: linear-gradient(160deg, rgba(255, 46, 99, 0.08), rgba(98, 235, 225, 0.08));
    border-radius: 8px;
}

.about-pillar__icon {
    color: var(--tertiary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.about-pillar h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.about-pillar p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.94rem;
}

/* ---- About: beyond the code ---- */

.about-beyond {
    margin-top: 54px;
}

.about-beyond__intro {
    max-width: 70ch;
    margin: 10px 0 0;
    line-height: 1.6;
}

.about-beyond__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.about-beyond__item {
    padding: 18px 20px;
    background: rgba(37, 42, 52, 0.04);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.about-beyond__item i {
    color: var(--tertiary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: block;
}

.about-beyond__item h4,
.about-beyond__item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.about-beyond__item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}


/* ============= Experience Section=============== */



.experience {

    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
}

.experiences {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.experience {
    display: flex;
    margin-bottom: 20px;
}

.year {
    width: 130px;
    /* Adjust width as needed */
}

.details {
    margin-left: 20px;
}

.details h4 {
    margin-top: 0;
    font-size: 1.15rem;
}

.details p {
    margin-top: 5px;
}

.experience-org {
    margin-top: 2px !important;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tertiary-ink);
    font-size: 0.92rem;
}

.details ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.details ul li {
    position: relative;
    padding-left: 16px;
    line-height: 1.55;
}

.details ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.experience-tags span {
    display: inline-block;
    padding: 2px 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.experience--minor {
    padding: 0.35rem 0;
    opacity: 0.8;
}

.experience--minor .year {
    font-weight: 500;
    font-size: 0.85rem;
}

.experience--minor .details h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.experience--minor .experience-org {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.experiences__subheading {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(29, 32, 36, 0.15);
}

/* Experience: horizontal layout with a vertical divider between year and details */
.experiences .experience{
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-radius: 6px;
}

.experiences .year{
    flex: 0 0 140px; /* fixed column for duration */
    font-weight: 700;
    color: var(--text-color);
    text-align: right;
    padding-right: 1rem;
    border-right:3px solid var(--tertiary-color); /* subtle divider */
}

.experiences .details{
    flex: 1 1 auto;
    padding-left: 1rem;
    color: var(--text-color);
}

/* ============= Skills Section =============== */

.skills {

    padding: 50px 0;
}



.skill-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.skill {
    text-align: center;

    position: relative;
    flex: 0 0 12%;
    /* Adjust width as needed */
    overflow: hidden;
}

.skill img {
    display: block;
    width: 100%;
    height: auto;
}

.skill-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    color: var(--tertiary-color);
    font-size: 4rem;
    filter: brightness(0.78);
}


/* Skills groups */
.skills__group {
    margin-top: 20px;
}

.skills__title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Core skill row uses existing .skill-row styles */
.skills__primary .skill {
    flex: 0 0 250px;
    min-width: 120px;
    padding: 0.9rem;
    background: rgba(0,0,0,0.0);
    border-radius: 10px;
    text-align: center;
}
.skills__primary .skill img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 8px;
}
.skills__primary .skill h3,
.skills__primary .skill h4 {
    margin: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Secondary (smaller) skill sizing */
.skills__secondary .skill {
    flex: 0 0 150px;
    min-width: 76px;
    padding: 0.5rem;
    background: rgba(0,0,0,0);
    border-radius: 8px;
    text-align: center;
}
.skills__secondary .skill img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 auto 6px;
}
.skills__secondary .skill-icon-placeholder {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    font-size: 1.6rem;
}
.skills__secondary .skill h3,
.skills__secondary .skill h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* WCAG 2.2 (2.5.8) sets a 24x24 floor for standalone targets. Links inside a
   sentence are exempt, so this covers only the list and navigation ones, which
   were measuring 16-23px tall. The extra height is hit area, not visible change. */
.contact-group li a,
.hero-home__links li a,
.project-metadata-links dd a,
.project-back-link a,
.nav-brand {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: 3px;
}

/* Condensed experience list for the homepage. The full timeline lives on About;
   here it is three rows a recruiter can read without scrolling past them. */
.experience-brief {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(37, 42, 52, 0.14);
}

.experience-brief li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(37, 42, 52, 0.14);
}

.experience-brief__role {
    grid-column: 1;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
}

.experience-brief__org {
    grid-column: 1;
    color: var(--tertiary-ink);
    font-size: 0.92rem;
}

.experience-brief__year {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.88rem;
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.experience-brief__more {
    margin: 16px 0 0;
}

.experience-brief__more a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--tertiary-ink);
    font-weight: 600;
}

@media (max-width: 620px) {
    .experience-brief li {
        grid-template-columns: minmax(0, 1fr);
    }
    .experience-brief__year {
        grid-column: 1;
        grid-row: auto;
        margin-top: 2px;
    }
}

/* ============= Resume Section =============== */

.resume-section {
    text-align: center;
    margin-top: 20px;
    border-radius: 4px;
    margin-bottom: 50px;


}

.image-container {

    justify-content: center;
    align-items: center;
    position: relative;
    width: 70%;
    margin: 0 auto;

}



.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Box shadow with thicker at the bottom */

}



.image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    /* Adjust the background color and opacity as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container:hover .overlay {
    opacity: 0;
}

.overlay h3 {
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}


/* ============= Footer =============== */

footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 8px;
}

.footer p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    color: #fff;
}

footer h2 {
    font-weight: 600;
    font-size: 40px;
    margin-bottom: 15px;
}

footer h3 {
    font-style: italic;
    /* 400 rather than the old 200: Roboto ships no 200, so it always rendered
       at 400 anyway. Naming the real weight keeps the face off the synthesiser. */
    font-weight: 400;
    font-size: 1.2em;
    margin-bottom: 15px;
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #FF16A4;
    transform: scale(1.2);
}







.project-info {
    position: relative;
    display: inline-block;
}

.text-overlay {
    position: absolute;
    bottom: 10px;
    /* Adjust position as needed */
    left: 10px;
    /* Adjust position as needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black background */
    padding: 10px;
    color: #fff;
}

.text-overlay h3,
.text-overlay__label {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.text-overlay p {
    margin: 5px 0 0;
}

.project-content {
    display: flex;
}

.project-info {
    flex: 0 0 65%;
    position: relative;
    margin-right: 20px;
    margin-top: 10px;
}

.additional-images {
    flex: 0 0 30%;
}

.additional-images .image {
    margin-bottom: 20px;
}

.additional-images .image img {
    width: 48%;
    height: auto;
    margin: 10px 0;

}

.additional-images .image p {
    font-size: 14px;
    margin: 0;
}

.additional-images iframe {
    margin-bottom: 15px;
}

.project-story {
    margin: 56px 0 48px;
    padding: 34px 0 0;
    border-top: 2px solid var(--tertiary-color);
}

.project-page {
    width: min(92%, 1200px);
    padding: 52px 0 70px;
}

.project-page-title {
    margin: 0 0 24px;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
}

.project-feature-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 36px;
    align-items: center;
}

.project-feature .project-info {
    width: auto;
    margin: 0;
}

.project-feature .project-info img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.project-summary {
    padding: 28px 0 28px 30px;
    border-left: 3px solid var(--primary-color);
}

.project-metadata {
    margin-top: 42px;
    padding: 24px 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid rgba(37, 42, 52, 0.25);
}

.project-metadata-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px 28px;
}

.project-metadata-item {
    min-width: 0;
}

.project-metadata-item:nth-child(n + 2):not(.project-metadata-links) {
    padding-left: 28px;
    border-left: 1px solid rgba(37, 42, 52, 0.25);
}

.project-metadata-item dt {
    margin-bottom: 7px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-metadata-item dd {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-metadata-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding-top: 18px;
    border-top: 1px solid rgba(37, 42, 52, 0.15);
}

.project-metadata-links dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-metadata-links a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--tertiary-color);
    text-underline-offset: 3px;
}

.project-metadata-links a:hover {
    color: var(--tertiary-color);
}

.project-summary h2 {
    margin: 0 0 16px;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.project-summary p:last-child {
    margin-bottom: 0;
    line-height: 1.7;
}



.project-details h4 {
    margin: 0 0 10px;
    color: var(--tertiary-color);
    font-family: "Raleway", sans-serif;
    font-size: 1.2rem;
}

.project-details p {
    margin: 0;
    line-height: 1.7;
}

.project-story > h3 {
    margin: 0 0 28px;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: 1.8rem;
}

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

.project-story-item {
    padding: 0 0 26px;
    border-bottom: 1px solid rgba(37, 42, 52, 0.25);
}

.project-story-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Only center the last item when it would otherwise sit alone in its row
   (an odd total in a 2-column grid). An even total already pairs up cleanly. */
.project-story-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 540px);
    justify-self: center;
}

.project-story-item h3,
.project-story-item h4 {
    margin: 0 0 10px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-size: 1.25rem;
}

.project-story-item p {
    max-width: 65ch;
    margin: 0;
    line-height: 1.7;
}

.project-media {
    /* Flex rather than a fixed 3-up grid: the heading spans the row, so grid
       auto-fit could never collapse its empty tracks. Here a page carrying one or
       two clips lets them grow into the full width instead of leaving a hole. */
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 12px;
}

.project-media > .image {
    flex: 1 1 320px;
    /* Capped so a page carrying a single clip gets a sensible embed rather than a
       1100px one spanning the whole column. */
    max-width: 600px;
    min-width: 0;
}

.project-media-title {
    flex: 1 0 100%;
    grid-column: 1 / -1;
    margin: 0;
    color: var(--secondary-color);
    font-family: "Raleway", sans-serif;
    font-size: 1.8rem;
}

.project-media .image {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.55);
    border-top: 3px solid var(--primary-color);
    border-radius: 4px;
}

.project-media .image h3 {
    margin: 0 0 14px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.project-media iframe,
.project-media video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
}

.project-media video {
    display: block;
    background: #11131a;
    border-radius: 4px;
    object-fit: cover;
}

/* Controls for the looping clips, injected by js/loop-video.js. */
.project-media .video-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.project-media video {
    cursor: zoom-in;
}

.project-media .video-toggle {
    padding: 7px 16px;
    min-height: 36px;
    background: transparent;
    color: var(--tertiary-ink);
    border: 1px solid currentColor;
    border-radius: 3px;
    font-family: "Raleway", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.project-media .video-toggle:hover,
.project-media .video-toggle:focus-visible {
    background: var(--tertiary-ink);
    color: #fff;
}

.project-media .image p {
    flex: 1;
    line-height: 1.6;
}


button {
    background-color: var(--tertiary-color);
    color: var(--text-color);
    padding: 10px 20px;
    margin: 20px 0px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

button:hover {
    background-color: var(--primary-color);
}


/* ============= Responsive Design =============== */

/* Stack on small screens and remove the vertical divider */
@media (max-width: 600px){
    .experiences .experience{
        flex-direction: column;
        gap: 0.5rem;
    }
    .experiences .year{
        flex: none;
        text-align: left;
        padding-right: 0;
        border-right: none;
        padding-bottom: 0.25rem;
    }
    .experiences .details{
        padding-left: 0;
    }
}

@media (max-width: 770px){
    .project .overlay h3 {
        /* font-size: 25px; */
    }
    .project-gallery {
        grid-template-columns: 1fr;
    }
    .image-container {
        width: 100%
    }
    .skill-row {
        flex-direction: column; 
      
    }
    .skill img {
      width: 60%;
    }
    .project-story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-feature-content,
    .project-details,
    .project-media {
        grid-template-columns: 1fr;
    }
    .project-metadata-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-metadata-links {
        display: block;
    }
    .project-metadata-links dd {
        margin-top: 8px;
    }
    .project-summary {
        padding: 24px 0 0;
        border-top: 3px solid var(--primary-color);
        border-left: 0;
    }
    .project-story-item:last-child {
        grid-column: auto;
    }
    }



/* make sure rows wrap nicely on narrow screens */
@media (max-width: 770px) {
    .skills__primary .skill { flex: 0 0 40%; min-width: 140px; }
    .skills__secondary .skill { flex: 0 0 28%; min-width: 96px; }
}

/* Align "See More Work" button with left edge of project items (CSS-only) */
.more-work-btn-container {
    /* make container shrink to available width and align contents to start */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    margin-top: 2rem; /* keep spacing consistent */
    margin-bottom: 2rem;
}

/* ensure button itself does not introduce extra offset */
.more-work-btn {
    color: var(--background-color);
    background-color: var(--tertiary-ink);
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    transition: .3s;
}

.more-work-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* If your project items use a grid/flex gap, match small screens */
@media (max-width: 520px) {
    .more-work-btn-container { justify-content: flex-start; }
}

/* Back to Work link near top of project pages */
.project-back-link {
    margin-bottom: 20px;
}

.project-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.project-back-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Standout CTA button (e.g. "Play on itch.io") */
.project-cta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.project-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--tertiary-ink);
    color: var(--background-color);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: .3s;
}

.project-cta-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Prev/Next project navigation footer */
.project-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--tertiary-color);
}

.project-nav-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
    color: var(--secondary-color);
    text-decoration: none;
}

.project-nav-link span {
    display: block;
    margin-bottom: 4px;
    color: var(--tertiary-ink);
    font-family: "Raleway", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-nav-link strong {
    font-family: "Raleway", sans-serif;
    font-size: 1.1rem;
}

.project-nav-next {
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
}

.project-nav-link:hover strong {
    color: var(--tertiary-color);
}

@media (max-width: 600px) {
    .project-nav-link {
        max-width: 100%;
    }
}

/* Taller crop for story galleries built from split-screen capture frames,
   where a 16/7 band would cut off the performer's head and feet */
.project-story-grid--photo .project-story-item img {
    aspect-ratio: 3 / 2;
}

/* Pull quote used in project-story items (e.g. Reception) */
.project-story-quote {
    margin: 16px 0 0;
    padding-left: 16px;
    border-left: 3px solid var(--tertiary-color);
    color: var(--secondary-color);
    font-style: italic;
}

.project-story-quote cite {
    display: block;
    margin-top: 6px;
    color: var(--tertiary-color);
    font-size: 0.85rem;
    font-style: normal;
}

/* You can add more styles for your content here */
@media (max-width: 620px) {
    /* Let the clip run the full width of its card: on a 390px phone that is
       359px instead of 319px, and the card keeps its padding for the text. */
    .project-media .image > video {
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        margin-inline: -20px;
        border-radius: 0;
    }
    .project-media .video-controls {
        margin-top: 14px;
    }
}
