:root {
  --color-primary: #8a2be2;
  --color-secondary: #ffc300;
  --color-background: #121212;
  --color-text-light: #f5f5f5;
  --color-text-dark: #333333;
  --color-accent: #ff4500;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Impact", "Arial Black", sans-serif;
  --spacing-unit: 1rem;
}

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

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

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

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-unit);
}

h1 {
  font-size: 3.5rem;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: 2.5rem;
  margin-top: calc(2 * var(--spacing-unit));
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 5px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-unit);
}

.header {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 0;
}

.header__logo a {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  font-size: 1.8rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
}

.logo__img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
}

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

.nav__link {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.hero-section {
  background-image: linear-gradient(
      rgba(18, 18, 18, 0.7),
      rgba(18, 18, 18, 0.9)
    ),
    url("img/screenshot_1.webp");
  background-size: cover;
  background-position: center 30%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: calc(5 * var(--spacing-unit)) 0;
  border-bottom: 5px solid var(--color-accent);
}

.hero__container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero__subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: calc(2 * var(--spacing-unit));
  color: var(--color-secondary);
}

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

.hero__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.download__link img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download__link img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--color-secondary);
}

.download__note {
  font-style: italic;
  color: rgba(245, 245, 245, 0.7);
  margin-top: var(--spacing-unit);
}

.section {
  padding: calc(4 * var(--spacing-unit)) 0;
}

.section:nth-child(even) {
  background-color: #1e1e1e;
}

.description__content p {
  font-size: 1.05rem;
  text-align: justify;
}

.description__image {
  margin: calc(3 * var(--spacing-unit)) auto;
  max-width: 800px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  transition: transform 0.4s ease;
}

.description__image:hover {
  transform: scale(1.02);
}

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

.features__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(2 * var(--spacing-unit));
  margin-top: calc(3 * var(--spacing-unit));
}

.feature__item {
  background-color: var(--color-background);
  padding: calc(1.5 * var(--spacing-unit));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-left: 5px solid var(--color-primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature__item:hover {
  transform: translateY(-5px);
  background-color: #2a2a2a;
  border-left-color: var(--color-secondary);
}

.feature__title {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.gallery {
  padding-bottom: 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: calc(3 * var(--spacing-unit));
}

.gallery__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery__image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.8);
}

.how-to-play__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--spacing-unit));
  margin-top: calc(3 * var(--spacing-unit));
}

.step__item {
  padding: calc(1.5 * var(--spacing-unit));
  background-color: #282828;
  border-radius: 10px;
  counter-increment: step-counter;
  position: relative;
  padding-left: calc(4 * var(--spacing-unit));
}

.step__item::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: var(--color-background);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.step__title {
  color: var(--color-primary);
  margin-top: 0;
}

.how-to-play__image {
  margin: calc(3 * var(--spacing-unit)) auto 0;
  max-width: 600px;
  border: 5px solid var(--color-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.how-to-play__image img {
  width: 100%;
  display: block;
}

.cta {
  background-color: var(--color-primary);
  text-align: center;
  padding: calc(4 * var(--spacing-unit)) 0;
}

.cta__title {
  color: var(--color-secondary);
  font-size: 3rem;
  border-bottom: none;
}

.cta__text {
  color: var(--color-text-light);
  max-width: 800px;
  margin: var(--spacing-unit) auto calc(3 * var(--spacing-unit));
}

.cta__download {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.cta__download .download__link img {
  height: 70px;
}

.footer {
  background-color: #0d0d0d;
  color: rgba(245, 245, 245, 0.8);
  padding: calc(3 * var(--spacing-unit)) 0 calc(1 * var(--spacing-unit));
  border-top: 3px solid var(--color-primary);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(3 * var(--spacing-unit));
  margin-bottom: calc(3 * var(--spacing-unit));
}

.footer__title {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-unit);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 5px;
  display: inline-block;
}

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

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a {
  color: rgba(245, 245, 245, 0.7);
  transition: color 0.3s ease;
}

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

.footer__col--contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer__col--download .download__link--footer {
  display: block;
  margin-bottom: 10px;
}

.footer__col--download .download__link--footer img {
  height: 45px;
  width: auto;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(245, 245, 245, 0.1);
  padding-top: var(--spacing-unit);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.5);
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav__list {
    gap: 1rem;
  }

  .hero-section {
    min-height: 65vh;
  }
}

@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    text-align: center;
  }

  .header__nav {
    margin-top: var(--spacing-unit);
  }

  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .hero__download,
  .cta__download {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__col--download {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__title {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.4rem;
  }

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

  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
