/* style/index.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* From custom colors 'Login' */
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #FFFFFF;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark #000000, so text is light */
  background-color: var(--bg-dark);
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* General container styling for consistency */
.page-index__video-section,
.page-index__hero-section,
.page-index__features-section,
.page-index__installation-guide,
.page-index__game-showcase,
.page-index__faq-section,
.page-index__brand-section,
.page-index__blog-section {
  padding: 60px 20px;
  position: relative;
}

/* Specific top padding for the first section to clear fixed header */
.page-index__video-section {
  padding-top: var(--header-offset, 120px);
}

/* Shared container for content width */
.page-index__video-container,
.page-index__hero-container,
.page-index__features-container,
.page-index__installation-container,
.page-index__game-container,
.page-index__faq-container,
.page-index__brand-container,
.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for mobile/desktop */
}

/* Button Styles */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__btn-primary:hover {
  background: #208cb3; /* Manually darkened version of #26A9E0 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-index__btn-secondary:hover {
  background: #c36706; /* Manually darkened version of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Card Styling */
.page-index__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  color: var(--text-light);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__card img {
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Image Reset (Global for page-index) */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none; /* Ensure no default border */
}

/* Video Section */
.page-index__video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  background-color: var(--bg-dark);
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 12px 25px;
  background: rgba(38, 169, 224, 0.8); /* Primary color with transparency */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #208cb3; /* Darkened primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a7eb3 100%); /* Gradient with primary color */
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-container {
  max-width: 900px;
}

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Features Section */
.page-index__features-section {
  background-color: var(--bg-dark);
}

.page-index__features-container {
  text-align: center;
}