:root {
  --color-primary: #00bcd4;
  --color-secondary: #ff3d00;
  --color-background: #121212;
  --color-surface: #1e1e1e;
  --color-text-light: #e0e0e0;
  --color-text-dark: #a0a0a0;
  --font-family-primary: "Arial", sans-serif;
  --spacing-unit: 1rem;
}

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

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

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

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

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

h1,
h2,
h3 {
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 3em;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 2.2em;
  color: var(--color-text-light);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.3em;
  margin-top: 1.5em;
  margin-bottom: 1em;
}

.section {
  padding: 4rem 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-surface);
  margin: 0;
}

.header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

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

.logo-img {
  height: 40px;
  width: 40px;
}

.main-nav {
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-text-light);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
  background: var(--color-primary);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  background-image: url("img/xcom_2_collection_hero_image.webp");
  background-size: cover;
  background-position: center 30%;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--color-text-light);
  font-size: 1.5em;
  margin-bottom: 1em;
  letter-spacing: 1px;
}

.hero-text {
  font-size: 1.2em;
  margin-bottom: 2em;
  color: var(--color-text-dark);
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.badge-img {
  height: 50px;
  transition: transform 0.3s ease;
}

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

.licensing-note {
  font-size: 0.9em;
  color: var(--color-text-dark);
}

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

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.description-section p {
  margin-bottom: 1.5em;
  font-size: 1.1em;
  color: var(--color-text-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-item {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  transition: background-color 0.3s, transform 0.3s;
  border-radius: 4px;
  font-size: 1.1em;
}

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

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

.section-subtitle {
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 3rem;
}

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

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.screenshot-img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.howto-section {
  text-align: center;
  padding-bottom: 8rem;
  position: relative;
  background-image: url("img/xcom_2_collection_tactical_view.webp");
  background-size: cover;
  background-position: center;
}

.howto-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.howto-section > .container {
  position: relative;
  z-index: 2;
}

.howto-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 2rem auto 0 auto;
  text-align: left;
}

.howto-step {
  counter-increment: step-counter;
  background-color: var(--color-surface);
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  border-radius: 8px;
  position: relative;
  font-size: 1.1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.howto-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  background-color: var(--color-primary);
  color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.howto-step:hover {
  background-color: #282828;
}

.cta-section {
  background-color: var(--color-surface);
  text-align: center;
  padding: 4rem 0;
}

.cta-title {
  color: var(--color-secondary);
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.cta-text {
  font-size: 1.2em;
  margin-bottom: 2em;
  color: var(--color-text-dark);
}

.footer {
  background-color: #0d0d0d;
  color: var(--color-text-dark);
  padding: 3rem 0;
  font-size: 0.9em;
}

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

.footer-heading {
  color: var(--color-text-light);
  font-size: 1.1em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-surface);
  padding-bottom: 0.5rem;
}

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

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

.footer-link {
  color: var(--color-text-dark);
}

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

.copyright-section {
  text-align: center;
  border-top: 1px solid var(--color-surface);
  padding-top: 1.5rem;
}

.developer-name {
  font-weight: bold;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.badge-img-footer {
  height: 40px;
}

.download-badges-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .nav-list {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 1.8em;
  }

  .hero-section {
    min-height: 60vh;
    padding: 6rem 0;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .nav-list {
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.9em;
  }

  .download-badges {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .badge-img {
    height: 45px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .footer-column:nth-child(3) {
    grid-column: 1 / -1;
  }

  .download-badges-footer {
    flex-direction: row;
    justify-content: center;
  }

  .howto-step {
    padding: 1.5rem 1rem 1.5rem 3.5rem;
  }

  .howto-step::before {
    width: 3rem;
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }

  .section {
    padding: 3rem 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.2rem;
  }

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