body {
    --ink: #9e527d;
    --line: #35357a;
    --paper: #3d3847;
    --card: #323154;
    --muted: #744587;
    --accent: #1f6f78;
    --ok: #1f6f78;
    --warn: #b97f19;

    --green: #2d6a4f;
    --pending: #f28943;
    --denied: #cf5959;

    --nav: #323154;

    --text-colour-invert: #000;
    --text-colour: #fff;

    background:
        radial-gradient(circle at 1px 1px,
            rgba(36, 29, 22, 0.05) 1px,
            transparent 1px) 0 0 / 14px 14px,
        var(--paper);

    overflow-x: hidden;
    min-height: 100vh;
    
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Archivo Black", "Arial Black", sans-serif;
}

footer {
    margin-top: auto; /* Pushes the footer to the bottom of the flex body */
    padding: 2rem;
    color: var(--ink);
    background-color: var(--nav);
}

footer a {
    color: var(--ink);
    text-decoration: underline;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

nav {
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3rem;
    background-color: var(--nav);
    width: 100%;
    padding: 0 1rem;
    border-bottom: 2px var(--card) dashed;
}

nav h1 {
    font-size: 1.1rem;
}

nav .tabs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav .tabs .btn {
    display: inline-flex;
    cursor: pointer;
}

nav .tabs .btn svg {
    fill: var(--ink);
    transition: fill ease-in-out 0.25s;
}

nav .tabs .btn svg:hover {
    fill: var(--accent);
}

section {
    max-width: 1100px;
    width: 100%;
    margin: 1rem auto;
    padding: 1rem;
}

.section-1 {
    margin: auto;
    margin-top: 1rem;
    display: inline-flex;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width:600px) {
    .section-1 {
        flex-direction: column;
        align-items: center;
    }
}

.img-box img {
    border-radius: 25%;
    transition: all 0.3s ease-in-out;
}

.img-box img:hover {
    box-shadow: #fff 0px 0px 16px;
}

.info-box {
    display: flex;
    width: 100%;
    background-color: var(--card);
    padding: 1.25rem;
    border: 2px solid var(--line);
    border-radius: 2rem;
    align-items: center;
    gap: 1.25rem;
}

.info-box h2 {
    color: var(--ink);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.info-box p {
    margin: 0.25rem 0;
    color: var(--muted);
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
}

.info-box img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--line);
}

.section-2 {
    max-width: 950px;
    width: 100%;
    height: fit-content;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

.section-2 .row {
    display: flex;
    gap: 1rem;
    width: max-content;
    flex-shrink: 0;

    animation: scroll-left 20s linear infinite;
}

.section-2 .row:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Row is 4 copies of the pill set, so -25% = exactly one
           full set width. This makes the loop seamless. */
        transform: translateX(-25%);
    }
}

.section-2 .muted {
    margin-top: 1rem;
    font-family: monospace;
    color: var(--muted);
    opacity: 60%;
    font-size: 12px;
    text-align: center;
}

.pill {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    background-color: var(--card);
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    font-size: 0.85rem;
}

.pill-green,
.pill-pending,
.pill-red {
    border-radius: 50%;
    height: 0.6rem;
    width: 0.6rem;
    display: inline-block;
    flex-shrink: 0;
}

.pill-green {
    background-color: var(--green);
}

.pill-pending {
    background-color: var(--pending);
}

.pill-red {
    background-color: var(--denied);
}

.section-3 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section-3 .projects {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-3 .heading {
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-3 .break {
    border-bottom: 1px solid var(--line);
    width: 100%;
    margin-bottom: 0.25rem;
    opacity: 40%;
}

.section-3 .projects .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.section-3 .projects .gallery .project {
    background: var(--card);
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
    overflow: hidden;

    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.section-3 .projects .gallery .project:hover {
    scale: 1.05;
    transform: translateY(-1rem);
}

.section-3 .projects .gallery .project .title {
    color: var(--ink);
    display: block;
    margin-top: 0.75rem;
}

.section-3 .projects .gallery .project .time-logged {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: monospace;
    margin-top: 0.25rem;
}

.section-3 .projects .gallery .project img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Specific Mobile Styles */
@media (max-width: 600px) {
    section {
        padding: 0.5rem;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }

    .section-3 {
        padding: 0;
    }

    .section-3 .projects {
        padding: 0.75rem;
    }

    .section-3 .projects .gallery {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}