/* ===================================================
   Stan the Dumpling – website stylesheet
   =================================================== */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e0a04;
  --bg2:        #16100a;
  --accent:     #f5a623;
  --accent2:    #c8841a;
  --text:       #e8dcc8;
  --text-muted: #9a8e7c;
  --steam-dark: #1b2838;
  --steam-blue: #4a90d9;
  --font-px:    'Press Start 2P', monospace;
  --font-body:  'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

img { display: block; max-width: 100%; }
a   { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(14, 10, 4, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.18);
  transition: box-shadow 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-px);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 1px;
}
.nav-logo span { color: #e74c3c; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: 16px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--text-muted);
  padding: 5px 11px;
  font-family: var(--font-px);
  font-size: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Small Steam button in nav */
.btn-steam-small {
  background: var(--steam-dark);
  color: #c7d5e0;
  text-decoration: none;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--steam-blue);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-steam-small:hover {
  background: var(--steam-blue);
  color: #fff;
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Full-width background image – taller than the section so parallax
   shift never reveals a gap. Centred vertically via top offset. */
.hero-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 10, 4, 0.10) 0%,
    rgba(14, 10, 4, 0.00) 30%,
    rgba(14, 10, 4, 0.75) 80%,
    var(--bg)             100%
  );
}

/* Logo floats over the image on its own parallax layer */
.hero-logo {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 82%;
  filter: drop-shadow(0 8px 36px rgba(245, 166, 35, 0.6));
  will-change: transform;
}

/* Tagline + description + CTA sit below the logo */
.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  margin-top: 28px;
}

.hero-tagline {
  font-family: var(--font-px);
  font-size: 13px;
  color: var(--accent);
  line-height: 2;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text);
  max-width: 580px;
  opacity: 0.92;
}

/* Large Steam CTA */
.btn-steam {
  display: inline-block;
  background: linear-gradient(135deg, var(--steam-blue) 0%, #1b5f9e 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 38px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--steam-blue);
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-steam:hover {
  background: linear-gradient(135deg, #5aa3ec 0%, #2370b5 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(74, 144, 217, 0.45);
}

/* ===================================================
   SECTIONS – common
   =================================================== */
section { padding: 88px 0; }
#about       { background: var(--bg2); }
#features    { background: var(--bg);  }
#screenshots { background: var(--bg2); }

h2 {
  font-family: var(--font-px);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 44px;
  line-height: 1.7;
}

/* ===================================================
   ABOUT
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--text);
}
.about-text p:last-child { margin-bottom: 0; }

.about-image img {
  width: 100%;
  border: 3px solid rgba(245, 166, 35, 0.28);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

/* ===================================================
   FEATURES
   =================================================== */
#features h2 { text-align: center; }

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

.feature-card {
  background: rgba(245, 166, 35, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.18);
  padding: 28px 22px 28px 32px;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity 0.2s;
}
.feature-card:hover {
  background: rgba(245, 166, 35, 0.09);
  border-color: rgba(245, 166, 35, 0.44);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-card p { font-size: 15px; line-height: 1.65; }

/* ===================================================
   SCREENSHOTS
   =================================================== */
#screenshots h2 { text-align: center; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(245, 166, 35, 0.12);
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.025);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.32s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===================================================
   VIDEO
   =================================================== */
#video { background: var(--bg); text-align: center; }

.video-wrap {
  max-width: 880px;
  margin: 0 auto;
  border: 2px solid rgba(245, 166, 35, 0.22);
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.65);
  background: #000;
}
.video-wrap video {
  width: 100%;
  display: block;
  max-height: 70vh;
}

/* ===================================================
   AUTHORS
   =================================================== */
#authors { background: var(--bg2); text-align: center; }

.authors-inner {
  max-width: 740px;
  margin: 0 auto;
}
.authors-inner h2 { margin-bottom: 32px; }

.authors-inner p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.authors-inner p:last-child { margin-bottom: 0; }

/* Decorative separator under the heading */
.authors-inner h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
  opacity: 0.6;
}

/* ===================================================
   LIGHTBOX
   =================================================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#lightbox.open { display: flex; }

#lb-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid rgba(245, 166, 35, 0.35);
  cursor: default;
  user-select: none;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.38);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 18px;
  transition: background 0.2s;
  user-select: none;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(245, 166, 35, 0.3);
}

.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: #08060200;
  border-top: 1px solid rgba(245, 166, 35, 0.13);
  text-align: center;
  padding: 52px 24px 44px;
  background: #07050200;
  background-color: #080603;
}

.footer-logo {
  max-width: 200px;
  margin: 0 auto 24px;
  opacity: 0.75;
}

.footer-links { margin-bottom: 18px; }
.footer-links a {
  color: var(--steam-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #6db3f2; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-image { order: -1; }

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

  h2 { font-size: 14px; }
  .hero-tagline { font-size: 10px; }
  .hero-desc { font-size: 16px; }

  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 420px) {
  .nav-logo { font-size: 10px; }
  .btn-steam { padding: 12px 26px; font-size: 14px; }
}
