/* ===================================================
   Astra Morgana – website stylesheet
   =================================================== */

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

:root {
  --bg:         #05080f;
  --bg2:        #0a1120;
  --accent:     #4fd1ff;
  --accent-rgb: 79, 209, 255;
  --accent2:    #ff8a3d;
  --text:       #d6e2f0;
  --text-muted: #8193a8;
  --steam-dark: #1b2838;
  --steam-blue: #4a90d9;
  --font-head:  'Exo 2', sans-serif;
  --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(5, 8, 15, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  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-head);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); margin-left: 6px; }

.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: 3px; flex-wrap: wrap; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--text-muted);
  padding: 4px 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  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;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Content sits low, over the planet, so it doesn't cover the ship */
  justify-content: flex-end;
  padding: 0 0 12vh;
  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;
  filter: brightness(0.7);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 15, 0.35) 0%,
    rgba(5, 8, 15, 0.05) 35%,
    rgba(5, 8, 15, 0.75) 80%,
    var(--bg)            100%
  );
}

/* Placeholder text logo on its own parallax layer */
.hero-logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 8vw, 92px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #eef6ff;
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.55), 0 4px 18px rgba(0, 0, 0, 0.8);
  padding: 0 16px;
  will-change: transform;
}
.hero-logo span { color: var(--accent); }

/* 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-head);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent2);
}

.hero-desc {
  font-size: 18px;
  color: var(--text);
  max-width: 600px;
  opacity: 0.92;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* 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);
}

/* Steam page not live yet – buttons show "coming soon" and do nothing */
[data-steam].is-soon { cursor: default; }
.btn-steam.is-soon,
.btn-steam.is-soon:hover {
  background: rgba(27, 40, 56, 0.85);
  transform: none;
  box-shadow: none;
}
.btn-steam-small.is-soon:hover { background: var(--steam-dark); color: #c7d5e0; }

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

h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 44px;
  line-height: 1.4;
}

/* ===================================================
   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: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(var(--accent-rgb), 0.08);
}

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

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

.feature-card {
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  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(--accent2);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.feature-card:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.42);
  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(240px, 1fr));
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  aspect-ratio: 16 / 9;
  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.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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: 1px solid rgba(var(--accent-rgb), 0.24);
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.7);
  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(--accent2);
  margin: 20px auto 0;
  opacity: 0.7;
}

/* ===================================================
   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;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  cursor: default;
  user-select: none;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 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(var(--accent-rgb), 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-color: #03050a;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  text-align: center;
  padding: 52px 24px 44px;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 20px;
}
.footer-logo span { color: var(--accent); }

.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-links a.is-soon:hover { color: var(--steam-blue); }

.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: 760px) {
  .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: 20px; }
  .hero-tagline { font-size: 12px; letter-spacing: 3px; }
  .hero-desc { font-size: 16px; }

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

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