/* ── page nav (reuse same pattern as aboutPage) ──────────────────────────── */

.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);
}

/* ── page layout ─────────────────────────────────────────────────────────── */

html {
    overflow: hidden;          /* kills the outer scrollbar track */
}

body {
    overflow-y: scroll;        /* re-enables scroll without a visible bar */
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    align-items: flex-start;
}

body::-webkit-scrollbar {
    display: none;             /* Chrome/Safari */
}

.projects-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 90px 24px 48px;   /* top clears the nav */
    box-sizing: border-box;
    width: 100%;
}

/* ── title card ──────────────────────────────────────────────────────────── */

.projects-header {
    position: static !important;   /* override .box absolute */
    width: clamp(260px, 40vw, 420px);
    padding: 16px;
}

.projects-header .header {
    margin: 0;
}

/* ── repo grid ───────────────────────────────────────────────────────────── */

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1200px;
}

/* ── repo card ───────────────────────────────────────────────────────────── */

.repo-card {
    /* override .box defaults that don't suit a grid */
    position: static !important;
    width: 100% !important;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.repo-inner {
    /* inner div already gets skew(-5deg) from .box > div — we reuse that */
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 14px 16px;
    /* cancel the outer box margin so padding controls spacing */
    margin: 0 !important;
}

/* repo name */
.repo-name {
    font-size: 17px;
    font-weight: 800;
    color: rgb(40, 10, 10);
    word-break: break-word;
}

/* description */
.repo-desc {
    font-size: 13px;
    color: rgb(94, 8, 8);
    margin: 0;
    flex-grow: 1;          /* pushes meta + link to the bottom */
    opacity: 0.85;
    line-height: 1.5;
}

/* meta row: language + date */
.repo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgb(94, 8, 8);
    font-weight: 700;
    opacity: 0.75;
    gap: 8px;
    flex-wrap: wrap;
}

.repo-lang, .repo-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dot {
    font-size: 8px;    /* fa-circle used as a colour dot */
}

/* github link */
.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(94, 8, 8);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
    margin-top: 4px;
}

.repo-link:hover {
    color: rgb(240, 144, 27);
}

/* ── loading / error states ──────────────────────────────────────────────── */

.repo-loading, .repo-error {
    grid-column: 1 / -1;
    text-align: center;
    color: rgb(94, 8, 8);
    font-weight: 700;
    font-size: 16px;
    padding: 20px;
}

.repo-error {
    position: static !important;
    width: 100% !important;
}

.repo-error .repo-inner {
    justify-content: center;
    align-items: center;
}