.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  color: #000000;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

.page-index__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #F0F0F0;
  transform: translateY(-2px);
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #E0A83A;
  transform: translateY(-2px);
}

.page-index__button--promo {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
}

.page-index__button--promo:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

.page-index__section-padding {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-index__section-title--light {
  color: #FFFFFF;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-index__section-intro--light {
  color: #F0F0F0;
}

.page-index__about-grid, .page-index__game-grid, .page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__about-item, .page-index__game-card, .page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__about-item:hover, .page-index__game-card:hover, .page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__about-icon, .page-index__game-image, .page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__about-item-title, .page-index__game-title, .page-index__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__about-item-title a, .page-index__game-title a, .page-index__promo-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-index__about-item-title a:hover, .page-index__game-title a:hover, .page-index__promo-title a:hover {
  color: #FCBC45;
}

.page-index__about-item-description, .page-index__game-description, .page-index__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--small:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__dark-background {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__dark-background .page-index__about-item, .page-index__dark-background .page-index__game-card, .page-index__dark-background .page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.page-index__dark-background .page-index__about-item:hover, .page-index__dark-background .page-index__game-card:hover, .page-index__dark-background .page-index__promo-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index__dark-background .page-index__about-item-title, .page-index__dark-background .page-index__game-title, .page-index__dark-background .page-index__promo-title {
  color: #FFFFFF;
}

.page-index__dark-background .page-index__about-item-description, .page-index__dark-background .page-index__game-description, .page-index__dark-background .page-index__promo-description {
  color: #CCCCCC;
}

.page-index__app-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-index__app-content {
  max-width: 600px;
  text-align: left;
}

.page-index__app-content .page-index__section-title {
  text-align: left;
}

.page-index__app-content .page-index__section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-image-wrapper {
  flex-shrink: 0;
}

.page-index__app-image {
  width: 400px;
  height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

.page-index__button--download:hover {
  background-color: #E0A83A;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__app-section {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-content {
    text-align: center;
  }
  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px 30px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-padding {
    padding: 40px 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__about-grid, .page-index__game-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-item, .page-index__game-card, .page-index__promo-card {
    padding: 20px;
  }
  .page-index__about-icon, .page-index__game-image, .page-index__promo-image {
    height: 200px;
  }
  .page-index__app-image {
    width: 100%;
    max-width: 300px;
    height: auto; /* Ensures mobile image does not overflow */
  }
  .page-index__hero-image-wrapper, .page-index__app-image-wrapper, .page-index__about-item img, .page-index__game-card img, .page-index__promo-card img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image, .page-index__app-image, .page-index__about-icon, .page-index__game-image, .page-index__promo-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image-wrapper {
    /* Filter brightness is allowed, but no color changing filters */
    filter: brightness(0.6);
  }
  /* Ensure all content area images are at least 200px wide or tall, or responsive */
  .page-index img {
    min-width: 200px; /* Enforce minimum size if not already larger */
    min-height: 200px;
    object-fit: cover;
  }
  .page-index__hero-image, .page-index__app-image {
    min-width: unset;
    min-height: unset;
  }
  .page-index__hero-image-wrapper, .page-index__app-image-wrapper, .page-index__about-item img, .page-index__game-card img, .page-index__promo-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    width: 90%;
  }
}