/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa; /* Light background for contrast */
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section:nth-of-type(even) {
  background-color: #e9ecef; /* Slightly darker background for alternating sections */
}

.page-index h1,
.page-index h2 {
  color: #007bff; /* Primary brand color for main headings */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index h1 {
  font-size: 2.8em;
  line-height: 1.2;
}

.page-index h2 {
  font-size: 2.2em;
  margin-top: 40px;
}

.page-index h3 {
  color: #0056b3; /* Darker shade of primary for subheadings */
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-index p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #495057; /* Dark gray for body text */
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1em;
  border: none;
}

.page-index__btn--primary {
  background-color: #007bff; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
}

.page-index__btn--primary:hover {
  background-color: #0056b3; /* Darker primary on hover */
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: #ffc107; /* Secondary brand color */
  color: #343a40; /* Dark text for contrast */
}

.page-index__btn--secondary:hover {
  background-color: #e0a800; /* Darker secondary on hover */
  transform: translateY(-2px);
}

.page-index__btn--tertiary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.page-index__btn--tertiary:hover {
  background-color: #007bff;
  color: #ffffff;
}

.page-index__btn--center {
  margin-top: 30px;
}

.page-index__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
  min-width: 200px;
}

/* Hero Section */
.page-index__hero {
  background: linear-gradient(135deg, #007bff, #0056b3); /* Gradient with primary color */
  color: #ffffff;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 800px;
  z-index: 10;
}

.page-index__hero-content h1 {
  color: #ffffff;
  font-size: 3.5em;
  margin-bottom: 25px;
}

.page-index__hero-content p {
  color: #e9ecef;
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) blur(3px);
  transform: scale(1.1);
}

/* Grid Layout for Cards */
.page-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__card h3 {
  margin-top: 0;
  color: #007bff;
}

.page-index__card p {
  flex-grow: 1;
  color: #6c757d;
}

.page-index__card .page-index__btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* Game Categories specific styling */
.page-index__game-card {
  text-align: center;
}

.page-index__game-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__game-card .page-index__btn {
  align-self: center;
}

/* Why Choose Us List */
.page-index__features-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-index__features-list li {
  background-color: #ffffff;
  margin-bottom: 15px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #ffc107; /* Highlight with secondary color */
}

.page-index__features-list li h3 {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__features-list li p {
  color: #555;
  margin-bottom: 0;
}

/* App Download Section */
.page-index__app-download {
  background-color: #007bff; /* Primary background for app section */
  color: #ffffff;
}

.page-index__app-download h2 {
  color: #ffffff;
}

.page-index__app-download p {
  color: #e9ecef;
}

.page-index__app-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-index__app-qr {
  text-align: center;
}

.page-index__qr-code {
  width: 150px;
  height: 150px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__app-qr p {
  margin-top: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-index__app-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Final CTA */
.page-index__final-cta {
  background-color: #ffc107; /* Secondary background for final CTA */
  color: #343a40;
}

.page-index__final-cta h2 {
  color: #343a40;
}

.page-index__final-cta p {
  color: #555;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-index__hero {
    flex-direction: row;
    text-align: left;
    padding: 120px 40px;
  }

  .page-index__hero-content {
    text-align: left;
    margin-right: 50px;
  }

  .page-index__hero-content h1 {
    font-size: 4em;
  }

  .page-index__hero-content p {
    font-size: 1.4em;
  }

  .page-index h1 {
    font-size: 3.5em;
  }

  .page-index h2 {
    font-size: 2.8em;
  }

  .page-index__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__app-options {
    flex-direction: row;
    justify-content: center;
  }

  .page-index__app-buttons {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .page-index__hero {
    padding: 80px 15px;
  }

  .page-index__hero-content h1 {
    font-size: 2.5em;
  }

  .page-index__hero-content p {
    font-size: 1em;
  }

  .page-index h1 {
    font-size: 2.5em;
  }

  .page-index h2 {
    font-size: 1.8em;
  }

  .page-index__btn--large {
    min-width: unset;
    width: 100%;
  }

  .page-index__cta-buttons {
    flex-direction: column;
  }
}

/* Image specific styles */
.page-index__image--small {
  max-width: 300px;
  height: auto;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-index__image--wide {
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}