/* =========================
   COLOUR PALETTE
========================= */

:root {
    --background: #0b0f12;
    --surface: #11171b;
    --surface-hover: #172126;

    --border: #26343a;
    --border-light: #34444b;

    --text: #e8f0f2;
    --text-secondary: #8b9aa0;
    --text-muted: #5f7077;

    --mcol: #00e5ff;
    --mcol-dark: #00afc2;

    --shadow: rgb(0 0 0 / 35%);
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================
   GLOBAL
========================= */

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 50px 0;
}

.eyebrow {
    margin-bottom: 12px;

    color: var(--mcol);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* =========================
   HEADER
========================= */

.site-header {
    
    padding: 24px 0;

    background: var(--background);

    border-bottom: 1px solid var(--border);
}

.header-content {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    font-weight: 700;
}
.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo {
    width: 42px;
    height: 42px;

    object-fit: contain;

    border-radius: 50%;

    /*
       Optional subtle mcol glow.
       Remove this if you don't want it.
    */
    filter:
        drop-shadow(
            0 0 8px rgb(0 229 255 / 20%)
        );
}

.brand-text {
    color: var(--text);

    font-size: 2rem;

    letter-spacing: -0.03em;
}

.brand-text-small {
    color: var(--text-muted);

    font-size: 0.7rem;

    font-weight: 500;
}

.header-email {
    
    color: var(--text-secondary);

    font-size: 0.9rem;

    transition:
        color 180ms ease;
}

.header-email:hover {
    color: var(--mcol);
}


/* =========================
   INTRO
========================= */

.intro {
    padding-top: 50px;
    padding-bottom: 10px;
}

.intro h1 {
    max-width: 900px;

    color: var(--text);

    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 700;

    line-height: 0.95;
    letter-spacing: -0.06em;
}

.intro-text {
    max-width: 650px;
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: clamp(1.1rem, 2vw, 1.35rem);
}


/* =========================
   SWITCH
========================= */

.switch-container {
    display: inline-flex;

    margin-bottom: 10px;
    padding: 4px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;

    box-shadow:
        0 8px 30px var(--shadow);
}

.switch-button {
    border: 0;
    border-radius: 5px;

    padding: 10px 24px;

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.switch-button:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.switch-button.active {
    background: var(--mcol);
    color: #071014;

    box-shadow:
        0 0 18px rgb(0 229 255 / 15%);
}

.link-button {
    border: 0;
    border-radius: 5px;

    padding: 10px 24px;

    /* background: transparent; */
    background: var(--surface-hover);
    color: var(--text-muted);

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.link-button:hover {
    background: var(--surface-hover);
    color: var(--mcol);
}


/* =========================
   SWITCH CONTENT
========================= */

.switch-content {
    display: none;
}

.switch-content.active {
    display: block;
}


/* =========================
   PROJECTS
========================= */

.project {
    min-height: 480px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;

    padding: 80px 0;

    border-top: 1px solid var(--border);
}

.project:last-child {
    border-bottom: 1px solid var(--border);
}

.project-image-right .project-image {
    order: 2;
}

.project-image-right .project-content {
    order: 1;
}

.project-image-left .project-image {
    order: 1;
}

.project-image-left .project-content {
    order: 2;
}


/* =========================
   PROJECT IMAGE
========================= */

.project-image {
    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow:
        0 15px 50px var(--shadow);
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.project-image:hover a img {
    transform: scale(1.035);
}

details:open > summary span {
    display: none;
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* =========================
   PROJECT CONTENT
========================= */

.project-number {
    margin-bottom: 20px;

    color: var(--mcol);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.project h2 {
    margin-bottom: 20px;

    color: var(--text);

    font-size: clamp(2rem, 4vw, 3.5rem);

    line-height: 1;
    letter-spacing: -0.04em;
}

.project h2 a {
    transition:
        color 180ms ease;
}

.project h2 a:hover {
    color: var(--mcol);
}

.project-content > p:not(.project-number) {
    max-width: 500px;

    color: var(--text-secondary);
}

.simpleText {
color: var(--text);
}

.simpleText:hover {
    color: var(--mcol);
}


/* =========================
   PROJECT LINKS
========================= */

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-top: 30px;

    border-bottom: 1px solid var(--mcol);

    padding-bottom: 4px;
    padding-right: 4px;

    color: var(--text);

    font-weight: 600;

    transition:
        gap 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.project-link:hover {
    gap: 18px;

    color: var(--mcol);

    border-color: var(--mcol);
}


/* =========================
   EXTRA PROJECT CLASSES
========================= */

.media-header {
    display: flex;
    justify-content: center;
}

.project-content-text {
    max-width: 800px;

    color: var(--text-secondary);
}

.project-itro-text {
    max-width: 650px;
    margin-top: 20px;

    color: var(--text);

    font-size: clamp(1.1rem, 2vw, 1.35rem);
}


/* =========================
   CV
========================= */

.cv-content {
    min-height: 700px;
}

.cv-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}

.cv-header h2 {
    color: var(--text);

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1;

    letter-spacing: -0.05em;
}

.download-cv {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 12px 18px;

    border: 1px solid var(--mcol);
    border-radius: 6px;

    color: var(--mcol);

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.download-cv:hover {
    background: var(--mcol);
    color: #071014;

    box-shadow:
        0 0 20px rgb(0 229 255 / 15%);
}

.cv-viewer {
    width: 100%;
    height: 900px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: #fff;

    box-shadow:
        0 15px 50px var(--shadow);
}

.cv-viewer iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================
   SELECTION
========================= */

::selection {
    background: var(--mcol);
    color: #071014;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);

    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mcol-dark);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .container {
        width: min(100% - 32px, 600px);
    }

    .header-content {
        width: min(100% - 32px, 600px);

        align-items: flex-start;

        flex-direction: column;
    }

    .intro {
        padding-top: 90px;
        padding-bottom: 80px;
    }

    .section {
        padding: 35px 0;
    }

    .switch-container {
        margin-bottom: 40px;
    }

    .project {
        min-height: auto;

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 60px 0;
    }

    .project-image-right .project-image,
    .project-image-left .project-image {
        order: 1;
    }

    .project-image-right .project-content,
    .project-image-left .project-content {
        order: 2;
    }

    .project-image {
        aspect-ratio: 16 / 10;
    }

    .cv-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .cv-viewer {
        height: 650px;
    }

    .contact-links {
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .intro h1 {
        font-size: 3.5rem;
    }

    .switch-button {
        padding: 9px 18px;
    }

    .project h2 {
        font-size: 2.4rem;
    }

    .cv-viewer {
        height: 500px;
    }
}

