/* ---- GENERAL ---- */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  text-align: center;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  max-width: 100%;
  background-attachment: fixed;
  box-sizing: border-box;

  /* ✅ FIX SAFARI & MOBILE WHITE BORDER ISSUE */
  min-height: 100vh;
  min-height: 100dvh; /* Use dynamic viewport height for Safari */
}

/* Ensure every section fills the screen like Contact Us */
section, main, .content-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* ✅ fix for mobile landscape mode */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- BACKGROUNDS ---- */
.home-bg {
  background: linear-gradient(135deg, #0a1f44, #06152e);
  background-size: cover;
  background-position: center;
}
.dark-bg {
  background: linear-gradient(135deg, #000000, #0a0a0a);
  background-size: cover;
  background-position: center;
}
.green-bg {
  background: linear-gradient(135deg, #0f3e1b, #06290d);
  background-size: cover;
  background-position: center;
}

/* ---- HEADER ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(10, 15, 35, 0.9);
  border-bottom: 2px solid #1f6feb;
  box-shadow: 0 0 15px rgba(31, 111, 235, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.header-left, .header-center, .header-right {
  flex: 1;
  text-align: center;
}

.header-left { text-align: left; }
.header-right { text-align: right; }

.logo-text {
  font-size: 1.6em;
  font-weight: 700;
  color: #1f6feb;
  letter-spacing: 2px;
}

.logo {
  width: 60px;
  height: 60px;
}

/* ---- NAVIGATION ---- */
nav ul {
  list-style: none;
  display: inline-flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #dce3f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
  color: #1f6feb;
  text-shadow: 0 0 10px #1f6feb;
}

/* ---- MAIN CONTENT ---- */
.hero {
  margin-top: 100px;
  width: 100%;
  box-sizing: border-box;
}

.quote {
  font-size: 1.8em;
  letter-spacing: 2px;
  color: #dce3f0;
  margin-bottom: 30px;
}

/* ---- BUTTONS ---- */
.btn {
  padding: 12px 28px;
  font-size: 1em;
  border: 2px solid #1f6feb;
  background-color: transparent;
  color: #1f6feb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background-color: #1f6feb;
  color: #fff;
  box-shadow: 0 0 20px #1f6feb;
}

/* ---- GAME MENU ---- */
.game-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.game-menu.visible {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  animation: dropdownGlow 0.8s ease forwards;
}

.game-menu button {
  background: none;
  border: none;
  color: #1f6feb;
  font-size: 1.2em;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-shadow: 0 0 6px rgba(31, 111, 235, 0.4);
}

.game-menu button:hover {
  color: #66aaff;
  text-shadow: 0 0 15px #1f6feb, 0 0 25px #1f6feb;
  transform: scale(1.05);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dropdownGlow {
  0% { opacity: 0; text-shadow: none; }
  50% { opacity: 0.7; text-shadow: 0 0 10px #1f6feb; }
  100% { opacity: 1; text-shadow: 0 0 15px #1f6feb; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  /* Center logo and name properly */
  .header-center {
    position: absolute;
    left: 53%;
    transform: translateX(-50%);
  }

  .logo {
    width: 55px;
    height: 55px;
  }

  .logo-text {
    font-size: 1.4em;
  }

  /* Hamburger toggle */
  #menu-toggle {
    display: none;
  }

  label[for="menu-toggle"] {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
  }

  label[for="menu-toggle"] span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1f6feb;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  /* Hamburger → X transition */
  #menu-toggle:checked + label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu-toggle:checked + label span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Full-screen dropdown menu (like Contact Us) */
  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh; /* ✅ make sure the menu also covers full screen */
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 15, 35, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0;
    gap: 25px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
    z-index: 1000;
  }

  #menu-toggle:checked + label + nav ul {
    opacity: 1;
    pointer-events: all;
  }

  nav a {
    font-size: 1.5em;
    color: #dce3f0;
  }

  nav a:hover {
    color: #1f6feb;
    text-shadow: 0 0 15px #1f6feb;
  }

  .hero {
    margin-top: 80px;
    padding: 0 10px;
  }

  .btn {
    width: 85%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .game-menu button {
    width: 85%;
    max-width: 300px;
    font-size: 1.1em;
  }
}

/* Hide checkbox desktop */
#menu-toggle {
  display: none !important;
}

/* Hide hamburger icon on desktop */
@media (min-width: 769px) {
  label[for="menu-toggle"] {
    display: none;
  }
}

/* ---- FIX FULL SCREEN WHITE BORDER ISSUE ---- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.home-bg,
.dark-bg,
.green-bg {
  min-height: 100vh;
  min-height: 100dvh; /* ✅ dynamic height fix for Safari & landscape */
  width: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
