:root {
  --color-primary: #ffd700;
  --color-secondary: #00a693;
  --color-background: #1e1e1e;
  --color-text: #f0f0f0;
  --color-heading: var(--color-primary);
  --color-accent: #ff4500;
  --spacing-lg: 3.5rem;
  --spacing-md: 2rem;
  --border-radius: 8px;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-gem: 0 0 20px rgba(255, 215, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.game-page {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: 2.8rem;
  color: var(--color-heading);
  margin-bottom: var(--spacing-md);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-top: var(--spacing-md);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

h1.hero-title {
  font-size: 4.5rem;
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 5px var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

h2.hero-subtitle {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.section-alt-background {
  background-color: #2a2a2a;
}

.main-header {
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
}

.logo-link {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

.site-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
}

.main-nav .nav-item {
  margin-left: var(--spacing-md);
}

.main-nav .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: background-color 0.3s, color 0.3s;
}

.main-nav .nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(255, 215, 0, 0.1);
}

.hero-section {
  background: url("img/hero-background.webp") no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.8) 0%,
    rgba(30, 30, 30, 0.5) 100%
  );
  z-index: 1;
}

.hero-container {
  z-index: 2;
  max-width: 600px;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
}

.hero-text {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-md);
}

.hero-image-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  z-index: 1;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {
  .hero-container {
    max-width: 800px;
  }
  .hero-image-wrapper {
    display: block;
  }
}

.download-cta {
  margin-top: var(--spacing-md);
}

.app-store-badge img {
  height: 60px;
  transition: transform 0.3s ease;
}

.app-store-badge img:hover {
  transform: scale(1.05);
}

.app-store-note,
.pricing-note {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.game-description .description-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: justify;
}

.description-content p {
  font-size: 1.1rem;
}

.description-image {
  text-align: center;
  margin: var(--spacing-md) 0;
}

.description-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-gem);
}

.game-features {
  padding: var(--spacing-lg) 0;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.feature-item {
  background-color: #333;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--color-primary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: var(--shadow-light);
}

.feature-item:hover {
  background-color: #444;
  transform: translateY(-3px);
}

.screenshots-gallery {
  background-color: var(--color-background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: var(--spacing-md);
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
  aspect-ratio: 9/16;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: zoom-in;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-gem);
}

.how-to-play {
  background: #2a2a2a;
}

.how-to-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.how-to-step {
  background-color: #333;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
  box-shadow: var(--shadow-light);
}

.how-to-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--color-primary);
  color: var(--color-background);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.how-to-step strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.cta-section {
  background: linear-gradient(90deg, #1e1e1e 0%, #3a3a3a 50%, #1e1e1e 100%);
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.cta-text {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.main-footer {
  background-color: #000;
  padding: var(--spacing-lg) 0 1rem;
  border-top: 3px solid var(--color-secondary);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-primary);
}

.contact-info {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-app-links .app-store-badge img {
  height: 50px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  h1.hero-title {
    font-size: 3rem;
  }

  h2.hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .main-nav .nav-list {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav .nav-item {
    margin: 5px 10px;
  }

  .hero-section {
    height: auto;
    padding: var(--spacing-lg) 0;
  }

  .hero-container {
    max-width: 100%;
    padding: var(--spacing-md);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  h1.hero-title {
    font-size: 4rem;
  }
}
