/* ============================================
   Chris Trabold — Systems Designer
   Shared styles across all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

/* Palette
   --bg:        #1a1a1a   primary dark background (v1)
   --text:      #FAFFFF   primary near-white text
   --muted:     #555555   secondary / muted text
   --surface:   #F9F9F9   light surface (reserved)
*/

:root {
    --bg: #1a1a1a;
    --topbar-fill: #232323;
    --text: #FAFFFF;
    --muted: #757575;
    --surface: #F9F9F9;
    --topbar-height: 96px;
    /* Banner = the strip of image visible at the top of project pages.
       Includes the area behind the bar plus the area below it. Override
       in @media for narrower screens. */
    --banner-height: 96px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    min-height: 100vh;
}
/* ============================================
   TOP NAV BAR — frosted glass, fixed
   ============================================ */

.topbar {
    /* Translucent version of the original topbar color so backdrop-filter has something to tint */
    background-color: rgba(42, 42, 42, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(5px) saturate(140%);
    padding: 22px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Fixed so it stays put while everything else scrolls */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--topbar-height);
    /* Subtle hairline at bottom edge to separate from content */
    border-bottom: 1px solid rgba(250, 255, 255, 0.06);
}

/* Project pages get an image behind the top bar that the blur picks up.
   Positioned absolutely at the top of the page and clipped to exactly the
   bar's height — the image only exists in the strip behind the frosted bar,
   never bleeding into the page content below. As the page scrolls, this
   element scrolls away with it; the fixed bar continues to frost whatever
   is currently beneath it (the image at the top, then the dark page below). */
.topbar-backdrop {
    /* Lives at the top of the page as normal content and scrolls away with
       it. The fixed topbar frosts whatever happens to be behind it at any
       moment — initially this image, then the dark page once you've
       scrolled past. Tweak `height` to control how much image is visible. */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.nav-left {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-left a {
    color: var(--text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.18em;
    transition: opacity 0.25s ease;
    opacity: 0.75;
}

.nav-left a:hover {
    opacity: 1;
}

.nav-left a.active {
    opacity: 1;
    font-weight: 500;
}

.logo {
    flex: 0 0 auto;
    text-decoration: none;
}

.logo img {
    width: 90px;
    height: 90px;
    display: block;
}

.nav-right {
    display: flex;
    gap: 22px;
    flex: 1;
    justify-content: flex-end;
}

.nav-right a {
    color: var(--text);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-block;
    opacity: 0.75;
}

.nav-right a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-right svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Spacer so fixed topbar doesn't cover content beneath it */
.topbar-spacer {
    height: var(--topbar-height);
}

/* ============================================
   HOMEPAGE — HERO
   ============================================ */

.hero {
    padding: 100px 0px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 100px;
    font-weight: 400;
    letter-spacing: 0em;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.05;
}

.hero .subtitle {
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-bottom: 60px;
}

.scroll-cue {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.scroll-arrow {
    width: 50px;
    height: 28px;
    margin: 0 auto;
      animation: bob 2s ease-in-out infinite;
  will-change: transform;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }

}

.nav-left a.active {
  opacity: 1;
  border-bottom: 1px solid white; /* or whatever style you want */
}

/* ============================================
   HOMEPAGE — PROJECT GRID
   ============================================ */

.grid-wrapper {
    padding: 0px 0px 0px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: #2a2a2a;
    cursor: pointer;
}

.project-tile .thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.project-tile .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 14, 14, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-tile .overlay h3 {
    color: var(--text);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.project-tile:hover .overlay {
    opacity: 1;
}

.project-tile:hover .overlay h3 {
    transform: translateY(0);
}

.project-tile:hover .thumb {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.project-page {
    /* The .topbar-spacer above us takes --topbar-height. The .topbar-backdrop
       sits absolutely at top: 0 with height: --banner-height. We need our
       content to begin BELOW the backdrop, so subtract the spacer's
       contribution to flow and add a breathing gap. Using calc keeps this
       in sync across all breakpoints. */
    padding: calc(var(--banner-height) - var(--topbar-height) + 100px) 60px 100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.project-page h1 {
    font-size: 72px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.01em;
}

.project-page h2 {
    font-size: 42px;
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.project-page iframe {

    width: 100%;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.project-page p {
        font-size: 17px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 18px;
}

.project-page ul {
    margin-left: 22px;
    margin-bottom: 22px;
}

.project-page li {
    font-size: 17px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 8px;
}

.project-overview {
    align-content: center;
    font-size: 20px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 100px;
}

.project-overview p {
    margin-top: 20px;
    font-size: 20px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
}

.project-overview h1 p{
    text-align: center;
    font-size: 20px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    padding: 0px; 
}

/* Alternating image/text rows */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items:start;
    margin-bottom: 100px;
}

.content-row .row-image {
    width:100%;
    height: auto;
    display: block;
    object-fit:scale-down;
}


.content-row .row-text h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.content-row .row-text p {
    font-size: 17px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 18px;
}

.content-row .row-text em {
    color: var(--text);
    opacity: 0.7;
    font-style: italic;
}

.content-row.reverse .row-image {
    order: 2;
}

.content-row.reverse .row-text {
    order: 1;
}

/* ============================================
   RESUME / ABOUT PAGES
   ============================================ */

.text-page {
    padding: 100px 60px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.text-page h1 {
    font-size: 64px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 50px;
    letter-spacing: -0.01em;
}

.text-page h2 {
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    margin-top: 50px;
    margin-bottom: 20px;
}

.text-page h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin-top: 30px;
    margin-bottom: 6px;
}

.text-page .meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.text-page p {
    font-size: 17px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 18px;
}

.text-page ul {
    margin-left: 22px;
    margin-bottom: 22px;
}

.text-page li {
    font-size: 17px;
    color: var(--text);
    opacity: 0.85;
    line-height: 1.85;
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    :root {
        --topbar-height: 76px;
        --banner-height: 220px;
    }
    .topbar {
        padding: 18px 28px;
    }
    .nav-left {
        gap: 26px;
    }
    .nav-left a {
        font-size: 14px;
        letter-spacing: 0.12em;
    }
    .logo img {
        width: 70px;
        height: 70px;
    }
    .hero {
        padding: 80px 28px 60px;
    }
    .hero h1 {
        font-size: 56px;
    }
    .hero .subtitle {
        font-size: 22px;
        margin-bottom: 70px;
    }
    .grid-wrapper {
        padding: 40px 28px 80px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .project-page {
        /* Same formula as desktop, with a smaller breathing gap to suit
           the tighter mobile layout. Inherits the smaller --banner-height
           and --topbar-height set on :root above. */
        padding: calc(var(--banner-height) - var(--topbar-height)) 28px 80px;
    }
    .text-page {
        padding: 70px 28px 80px;
    }

    .text-page .pdf{
        max-width: 50%;
        height: 400px;
    }
    .project-page h1 {
        font-size: 44px;
    }
    .text-page h1 {
        font-size: 44px;
    }
    .content-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 70px;
    }
    .content-row.reverse .row-image {
        order: 1;
    }
    .content-row.reverse .row-text {
        order: 2;
    }
}
