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

:root {
  --color-primary: #8b0000;
  --color-secondary: #ffc400;
  --color-background: #1e1e1e;
  --color-text-light: #f0f0f0;
  --color-text-dark: #333333;
  --font-heading: "Georgia", serif;
  --font-body: "Arial", sans-serif;
  --spacing-large: 6rem;
  --spacing-medium: 4rem;
  --spacing-small: 2rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.header {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
}

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

.main-nav .nav-item {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.main-nav .nav-item:hover {
  background-color: var(--color-primary);
  color: white;
}

.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(30, 30, 30, 0.7), rgba(30, 30, 30, 0.9)),
    url("img/gameplay_overview.webp") no-repeat center center/cover;
  padding: var(--spacing-large) 0;
  border-bottom: 5px double var(--color-secondary);
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: white;
}

.hero-subtitle {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-small);
}

.hero-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.download-link {
  margin-top: var(--spacing-small);
}

.store-badge {
  width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

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

.price-note {
  margin-top: 10px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

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

.description-section {
  background-color: var(--color-background);
}

.description-grid {
  display: flex;
  gap: var(--spacing-small);
  align-items: center;
  margin-bottom: var(--spacing-medium);
}

.description-text {
  flex: 2;
  padding: 1.5rem;
  background-color: #2a2a2a;
  border-radius: 8px;
  border-left: 5px solid var(--color-primary);
}

.description-image {
  flex: 1;
  min-width: 300px;
  border: 4px solid var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.3);
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  background-color: #333333;
  padding: 1.5rem;
  border-radius: 6px;
  border-top: 3px solid var(--color-secondary);
  transition: background-color 0.3s, transform 0.3s;
}

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

.gallery-section {
  background-color: #111111;
  border-top: 2px solid var(--color-primary);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: var(--spacing-small);
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.screenshot-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--color-secondary);
}

.howto-section {
  background-color: var(--color-background);
  text-align: center;
}

.howto-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-medium);
}

.howto-step {
  background-color: #333333;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 700px;
  border-radius: 8px;
  font-size: 1.15rem;
  position: relative;
  border-right: 4px solid var(--color-primary);
}

.howto-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px var(--color-secondary);
}

.howto-list {
  counter-reset: step-counter;
}

.howto-image {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  border: 2px dashed var(--color-secondary);
  border-radius: 10px;
}

.cta-section {
  text-align: center;
  background-color: var(--color-primary);
  padding: var(--spacing-large) 0;
  border-top: 5px double var(--color-secondary);
}

.cta-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.footer-heading {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 5px;
  width: fit-content;
}

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

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

.footer-link,
.contact-text,
.footer-info {
  color: #cccccc;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: white;
}

.download-column .store-badge {
  width: 200px;
}

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

.copyright,
.domain-link {
  font-size: 0.85rem;
  color: #999999;
}

@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .main-nav {
    margin-top: 1rem;
  }
  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav .nav-item {
    margin: 0.5rem 0.5rem;
  }
  .description-grid {
    flex-direction: column;
  }
  .description-image {
    min-width: 100%;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-large: 4rem;
    --spacing-medium: 3rem;
    --spacing-small: 1.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .screenshot-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .footer-grid {
    gap: var(--spacing-small);
  }
}
