/* ==============================
   Base
   ============================== */

:root {
  --color-bg: #f7f7f5;
  --color-dark: #111;
  --color-text: #1f1f1f;
  --color-muted: #666;
  --color-light-muted: #d6d6d6;
  --color-shadow: rgba(0, 0, 0, 0.12);
  --color-card-shadow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
video {
  max-width: 100%;
}


/* ==============================
   Navbar
   ============================== */

.portfolio-navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.portfolio-navbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 0;
  white-space: nowrap;
}

.portfolio-nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.portfolio-nav-links .nav-link {
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.portfolio-nav-links .nav-link:hover,
.portfolio-nav-links .nav-link:focus {
  color: white;
}


/* ==============================
   Home Hero
   ============================== */

.hero-section {
  background: var(--color-dark);
  color: white;
  padding: 64px 0 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #b9b9b9;
  margin-bottom: 16px;
}

.eyebrow-dark {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.hero-section h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 780px;
  font-size: 1.15rem;
  color: var(--color-light-muted);
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-copy {
  min-width: 0;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image {
    width: 180px;
    height: 220px;
  }
}

/* ==============================
   Sections
   ============================== */

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 2.4rem;
  font-weight: 700;
}

.technical-focus-section {
  background: white;
  padding: 56px 0;
}

.technical-focus-section h2 {
  font-weight: 700;
  margin-bottom: 16px;
}

.technical-focus-section p {
  font-size: 1.1rem;
  max-width: 100%;
}


/* ==============================
   Project Cards
   ============================== */

.project-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 10px 30px var(--color-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--color-shadow);
}

.project-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.project-image-link img {
  transition: opacity 0.2s ease;
}

.project-image-link:hover img {
  opacity: 0.92;
}

.project-card-img {
  width: 100%;
  height: 180px;
  display: block;
}

.project-card-img-contain {
  object-fit: contain;
  padding: 12px;
  background: white;
}

/* Used for the second board-game card */
.project-card-img-board {
  object-fit: contain;
  background: #f3f3f3;
}

.project-card .card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.card-text {
  margin-bottom: 20px;
}

.project-focus {
  font-size: 0.9rem;
  color: #555;
  margin-top: auto;
  margin-bottom: 18px;
}

.project-card .btn {
  align-self: flex-start;
}


/* ==============================
   Project Pages
   ============================== */

.project-hero {
  background: var(--color-dark);
  color: white;
  padding: 72px 0 64px;
}

.back-link {
  color: #cfcfcf;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}

.back-link:hover {
  color: white;
}

.project-content {
  max-width: 900px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.project-content h2 {
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.project-content p,
.project-content li {
  font-size: 1.08rem;
  line-height: 1.75;
}

.project-content ul {
  padding-left: 1.2rem;
}


/* ==============================
   Media Blocks
   ============================== */

.project-media {
  margin: 40px auto;
}

.project-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px var(--color-shadow);
}

.media-caption {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.5;
  font-style: italic;
}

.two-column-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
  align-items: start;
}

.two-column-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 30px var(--color-shadow);
}

.two-column-media img.focus-dragon {
  object-position: 50% 25% !important;
}


/* ==============================
   Video Blocks
   ============================== */

.project-video {
  margin: 40px 0;
}

.project-video video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px var(--color-shadow);
  background: var(--color-dark);
}


/* ==============================
   Brand Logo Optional
   ============================== */

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo span {
  font-size: 0.72rem;
  font-weight: 400;
  color: #b9b9b9;
  letter-spacing: 0.04em;
}


/* ==============================
   Footer
   ============================== */

.footer-section {
  background: var(--color-dark);
  color: #aaa;
  padding: 32px 0;
}

.footer-section p {
  margin: 0;
}


/* ==============================
   Responsive
   ============================== */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }

  .portfolio-navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .portfolio-navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .navbar-brand {
    font-size: 1rem;
    white-space: normal;
  }

  .portfolio-nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem 1rem;
  }

  .portfolio-nav-links .nav-link {
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 44px 0 56px;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  .hero-section h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-buttons {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .technical-focus-section {
    padding: 48px 0;
  }

  .technical-focus-section p {
    font-size: 1rem;
  }

  .project-card .card-body {
    padding: 24px;
  }

  .project-card-img {
    height: 170px;
  }

  .project-hero {
    padding: 56px 0;
  }

  .project-content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .project-content h2 {
    margin-top: 40px;
  }

  .project-content p,
  .project-content li {
    font-size: 1rem;
    line-height: 1.7;
  }

  .two-column-media {
    grid-template-columns: 1fr;
  }

  .two-column-media img {
    height: auto;
  }

  .project-media {
    margin: 32px auto;
  }

  .project-video {
    margin: 32px 0;
  }
}

