/* --- Gaming Theme Colors --- */
:root {
  --bg-dark-main: #12121c; /* Dark space blue */
  --bg-dark-secondary: #1a1a2e; /* Slightly lighter navy */
  --text-light: #f0f0f0; /* Off-white for text */
  --text-muted: #a9a9b2; /* Lighter grey for muted text */
  --accent-primary: #ff47ab; /* Vibrant pink/magenta */
  --accent-secondary: #00e5ff; /* Bright cyan */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-main);
  color: var(--text-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section:last-of-type {
  border-bottom: none;
}

/* --- Navbar & Footer --- */
.navbar {
  background-color: rgba(26, 26, 46, 0.85) !important;
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--text-light) !important;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  color: var(--accent-primary) !important;
}
.navbar-toggler {
  border-color: rgba(0, 229, 255, 0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 229, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

footer {
  background-color: var(--bg-dark-secondary);
  color: var(--text-muted);
  padding: 2rem 0;
}

/* --- Shared Image Styling --- */
.styled-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid var(--accent-secondary);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(
    180deg,
    var(--bg-dark-secondary) 0%,
    var(--bg-dark-main) 100%
  );
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-shadow: 0 0 10px var(--accent-primary);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.play-button-wrapper {
  position: relative;
  display: inline-block;
}

.btn-play {
  font-size: 1.25rem;
  padding: 12px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background-color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  color: var(--text-light);
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 71, 171, 0.5);
}

.btn-play:hover:not(.disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 71, 171, 0.8);
}

.btn-play.disabled {
  background-color: #555;
  border-color: #666;
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.coming-soon-badge {
  position: absolute;
  top: -10px;
  right: -20px;
  background-color: var(--accent-secondary);
  color: var(--bg-dark-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  transform: rotate(10deg);
}

/* --- History Section --- */
.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.feature-card {
  background-color: var(--bg-dark-secondary);
  border: 1px solid var(--accent-secondary);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
}
.feature-icon {
  font-size: 3rem;
  color: var(--accent-secondary);
  text-shadow: 0 0 15px var(--accent-secondary);
}

/* --- Game Section --- */
#section-3 {
  background-color: var(--bg-dark-secondary);
}
.game-content h2 {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(255, 71, 171, 0.7);
}
.game-content p {
  color: var(--text-muted);
}
.game-content p strong {
  color: var(--text-light);
}

/* --- Team Section --- */
.team-member-card {
  background-color: var(--bg-dark-secondary);
  border: 1px solid rgba(255, 71, 171, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 71, 171, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 71, 171, 0.25);
  border-color: var(--accent-primary);
}
.team-member-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  margin: 0 auto 1.5rem auto;
  object-fit: cover;
}
.team-member-card .description {
  color: #e5e7eb; /* Lighter, more readable text color */
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* Pushes social links to the bottom */
}
.team-social-links {
  margin-top: 1.5rem;
}
.team-social-links a {
  color: var(--text-muted);
  font-size: 1.5rem;
  margin: 0 0.75rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.team-social-links a:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}
.jupiter-icon {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: text-bottom;
}
.community-icon-link {
  color: var(--text-muted);
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.community-icon-link:hover {
  color: var(--accent-secondary);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1021; /* Higher than navbar's default z-index */
    background-color: var(--bg-dark-secondary);
    padding: 1rem;
    /* border-bottom: 1px solid var(--accent-primary);*/
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);

    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out,
      visibility 0.2s ease-out;
  }

  .navbar-collapse.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* Override Bootstrap's default animation */
  .navbar-collapse.collapsing {
    height: auto !important;
    overflow: hidden !important;
    transition: none !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-image,
  .game-image {
    margin-bottom: 40px;
  }
  .section {
    padding: 60px 0;
  }
  .text-center-mobile {
    text-align: center !important;
  }

  .play-button-wrapper {
    margin-bottom: 25px;
  }
}
