:root {
    --background: #0f1720;
    --background-soft: #16202b;

    --text: #f5f7fa;
    --text-muted: #aeb8c4;

    --bronze: #a66a2c;
    --bronze-light: #c48a45;

    --border: rgba(255, 255, 255, 0.08);
    --panel: rgba(255, 255, 255, 0.03);

    /* Background image darkness:
        0.50 = brighter
        0.68 = balanced
        0.80 = darker
    */
    --hero-darkness: 0.68;

    /* How far the top background image extends down the page */
    --hero-height: 1100px;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* TOP PAGE BACKGROUND
    This is attached to the page itself, not the viewport,
    so it scrolls away normally.
*/

.page-background {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: var(--hero-height);

    z-index: -1;

    background:
        url("../img/page-background.webp") top center / cover no-repeat;

    pointer-events: none;
}

.page-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom,
            rgba(15, 23, 32, var(--hero-darkness)) 0%,
            rgba(15, 23, 32, 0.76) 28%,
            rgba(15, 23, 32, 0.88) 52%,
            rgba(15, 23, 32, 0.97) 76%,
            var(--background) 100%);
}

/* HEADER */

header {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 48px 32px 24px;
}

.logo {
    display: block;

    width: min(800px, 90vw);
    height: auto;
}

/* MAIN */

main {
    flex: 1;

    width: 100%;

    display: flex;
    justify-content: center;

    padding: 40px 24px 80px;
}

.content {
    width: 100%;
    max-width: 900px;
}

/* PROJECT INTRO */

.project-header {
    margin-bottom: 48px;

    text-align: center;
}

h1 {
    margin-bottom: 20px;

    color: var(--text);

    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.35);
}

.divider {
    width: 200px;
    height: 1px;

    margin: 0 auto 28px;

    background: var(--bronze);

    opacity: 0.8;
}

.project-status {
    margin-bottom: 18px;

    color: var(--bronze-light);

    font-size: 0.85rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.14em;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.4);
}

.project-summary {
    max-width: 720px;

    margin: 0 auto;

    color: var(--text-muted);

    font-size: 1.08rem;
    line-height: 1.75;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.25);
}

/* PROJECT DESCRIPTION */

.project-description {
    max-width: 760px;

    margin: 0 auto;
}

.project-description p {
    margin-bottom: 24px;

    color: var(--text-muted);

    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.01em;

    text-align: left;
}

.project-description strong {
    color: var(--text);

    font-weight: 600;
}

/* SCREENSHOTS */

.screenshots {
    margin-top: 72px;
}

.screenshots-header {
    margin-bottom: 28px;

    text-align: center;
}

.screenshots-header h2 {
    margin-bottom: 14px;

    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
}

.screenshots-header p {
    color: var(--text-muted);

    font-size: 0.95rem;
}

.screenshot-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.screenshot-item {
    overflow: hidden;

    aspect-ratio: 16 / 9;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--panel);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}

.screenshot-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.screenshot-item:hover img {
    transform: scale(1.025);

    filter: brightness(1.05);
}

/* FOOTER */

footer {
    width: 100%;

    padding: 24px 32px 28px;

    border-top: 1px solid var(--border);

    background: rgba(15, 23, 32, 0.92);

    color: var(--text-muted);

    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-align: center;
}

footer a {
    color: var(--text-muted);

    text-decoration: none;

    transition: color 0.2s ease;
}

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

/* TABLET */

@media (max-width: 900px) {
    :root {
        --hero-height: 950px;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 600px) {
    :root {
        --hero-darkness: 0.74;
        --hero-height: 850px;
    }

    .page-background {
        background-position: top center;
    }

    header {
        padding: 36px 20px 16px;
    }

    .logo {
        width: 90vw;
    }

    main {
        padding: 32px 20px 60px;
    }

    .project-header {
        margin-bottom: 36px;
    }

    .project-summary {
        font-size: 1rem;
    }

    .project-description p {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .screenshots {
        margin-top: 56px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 20px;

        line-height: 1.8;
    }
}


/* LIGHTBOX */

.screenshot-item img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: none;
  justify-content: center;
  align-items: center;

  padding: 40px;

  background: rgba(5, 8, 12, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  display: block;

  max-width: 95vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 6px;

  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;

  border: 0;
  background: transparent;

  color: #ffffff;

  font-size: 3rem;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;

  opacity: 0.75;

  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
  }
}