@import url('https://fonts.googleapis.com/css2?family=Nova+Square&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Genos:wght@400;600&display=swap');

/* ------------------------------
   Root Variables
------------------------------ */
:root {
  --banner-height-portrait: 140px;
  --banner-height-landscape: 80px;
  --nav-height: 48px;
  --title-font: 'Nova Square', sans-serif;
  --body-font: 'Genos', sans-serif;

  /* default banner height */
  --banner-height: var(--banner-height-portrait);
}

@media (orientation: landscape) {
  :root {
    --banner-height: var(--banner-height-landscape);
  }
}

/* ------------------------------
   Global Reset & Background
------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden; /* no global scrolling */
  font-family: var(--body-font);
  color: #0d0df4;
  background: url('../img/bg1.png') no-repeat center center fixed;
  background-size: cover;
}

/* ------------------------------
   Hero / Banner
------------------------------ */
#hero-header {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: height 2s cubic-bezier(.77, 0, .18, 1);
  z-index: 100;
}

.hero-collapsed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: var(--banner-height) !important;
  z-index: 0;
}

#hero-image img {
  width: 100vw;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ------------------------------
   Main Content Zone
------------------------------ */
main {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--banner-height) - var(--nav-height));
  padding: 0;
  margin: 0;
  color: #FFD700;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden; /* force child containers to manage scroll */
}

/* ------------------------------
   Scrollable Utility
------------------------------ */
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scrollable::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}
.scrollable::-webkit-scrollbar-thumb {
  background: #ffe600;
  border-radius: 6px;
}
.scrollable {
  scrollbar-color: #ffe600 transparent;
  scrollbar-width: thin;
}

/* ------------------------------
   Navigation Bar
------------------------------ */
#main-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010000;
  border-radius: 0;
  box-shadow: 0 0 16px rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 2000;
  padding: 0 1.5em;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

#main-nav ul.menu {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 0.5em;
  height: 100%;
}

#main-nav ul.menu > li { margin: 0 8px; }

#main-nav a {
  font-family: var(--title-font);
  letter-spacing: 0.04em;
  font-size: 1.15em;
  color: #FFD700;
  text-shadow: 0 0 2px #222, 0 0 8px #000;
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#main-nav a:hover,
#main-nav a:focus {
  color: #fff;
  background: #222;
  box-shadow: 0 0 8px 2px #FFD700;
  text-shadow: 0 0 6px #FFD700;
}

#main-nav ul.submenu {
  display: none;
  position: absolute;
  background: #111;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
  min-width: 180px;
  z-index: 3000;
  margin: 0;
  padding: 0.5em 0;
  bottom: 100%;
  left: 0;
  top: auto;
  pointer-events: auto;
}

#main-nav ul.menu > li {
  position: relative;
}
#main-nav ul.menu > li:hover > ul.submenu,
#main-nav ul.menu > li:focus-within > ul.submenu {
  display: block;
}

#main-nav ul.submenu li {
  display: block;
  margin: 0;
  padding: 0;
}
#main-nav ul.submenu li a {
  display: block;
  padding: 10px 18px;
  color: #FFD700;
  background: none;
  border-radius: 0;
  text-align: left;
  font-size: 1em;
  pointer-events: auto;
}
#main-nav ul.submenu li a:hover {
  background: #222;
  color: #fff;
}
