.page-index {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-index__section-title {
  font-size: 3em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-content {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-index__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-index__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.4em;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 1em;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: rgba(139, 0, 0, 0.1);
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-index__game-description {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
}

.page-index__game-card .page-index__button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* Promotion Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: rgba(255, 215, 0, 0.05);
}

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

.page-index__promo-card {
  background-color: rgba(139, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #FFD700;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: scale(1.02);
}

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

.page-index__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-index__promo-description {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
}

.page-index__promo-card .page-index__button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-index__promo-card .page-index__button:hover {
  background-color: #e6c200;
}

/* App Section */
.page-index__app-section {
  padding: 80px 0;
}

.page-index__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-index__app-info {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-index__app-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.5;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid #FFD700;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #8B0000;
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(135deg, #8B0000 0%, #a80000 100%);
}

.page-index__cta-content {
  max-width: 900px;
}

.page-index__cta-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-index__cta-description {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__hero-description {
    font-size: 1.3em;
  }
  .page-index__section-title {
    font-size: 2.5em;
  }
  .page-index__cta-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px);
  }
  .page-index__hero-section {
    min-height: 500px;
    padding: 40px 0;
  }
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
  }
  .page-index__button--large {
    padding: 15px 30px;
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__features-grid, .page-index__games-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image {
    height: 200px;
  }
  .page-index__app-download-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__app-info {
    order: 2;
  }
  .page-index__app-image {
    order: 1;
    max-width: 300px;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__cta-description {
    font-size: 1.2em;
  }

  /* Ensure all content area images are responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__button {
    font-size: 1em;
  }
  .page-index__button--large {
    font-size: 1.1em;
  }
}