:root {
  --color-primary: #87ceeb;
  --color-secondary: #dc143c;
  --color-dark: #0a192f;
  --color-light: #f0f8ff;
  --color-accent: #ffd700;
  --font-main: "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Impact", 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-light);
  background-color: var(--color-dark);
  line-height: 1.6;
  background-image: url("img/background-texture.webp");
  background-size: cover;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--color-primary);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 20px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-light);
  letter-spacing: 1px;
}

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

.nav-item {
  margin-left: 25px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-light);
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.3s, border-bottom 0.3s;
  position: relative;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

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

.hero-section {
  background-image: linear-gradient(
      rgba(10, 25, 47, 0.7),
      rgba(10, 25, 47, 0.9)
    ),
    url("img/hero-main.webp");
  background-size: cover;
  background-position: center top;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  padding: 80px 40px;
  background-color: rgba(10, 25, 47, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--color-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.app-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

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

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

.disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(240, 248, 255, 0.7);
}

.hero-visual {
  display: none;
}

.game-section {
  padding: 80px 0;
  min-height: 50vh;
  border-bottom: 1px solid rgba(135, 206, 235, 0.1);
}

.section-divider {
  border: none;
  height: 2px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--color-primary),
    transparent
  );
  margin: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.description-section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
  padding: 0 5%;
}

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

.feature-item {
  background-color: rgba(135, 206, 235, 0.1);
  border-left: 5px solid var(--color-primary);
  padding: 20px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.feature-item:hover {
  background-color: rgba(135, 206, 235, 0.2);
  transform: translateY(-5px);
}

.feature-item strong {
  color: var(--color-accent);
  font-weight: bold;
}

.gallery-section {
  background-color: rgba(10, 25, 47, 0.8);
}

.subsection-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-light);
  font-size: 1.5rem;
}

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

.screenshot-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.03);
}

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

.howtoplay-list {
  list-style: none;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
}

.howtoplay-step {
  background-color: rgba(135, 206, 235, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  position: relative;
  transition: background-color 0.3s;
}

.howtoplay-step:before {
  counter-increment: step-counter;
  content: counter(step-counter);
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  background-color: var(--color-primary);
  padding: 5px 15px;
  border-radius: 50%;
  margin-right: 20px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.howtoplay-step:hover {
  background-color: rgba(135, 206, 235, 0.1);
}

.cta-section {
  text-align: center;
  background-color: var(--color-secondary);
  padding: 60px 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.cta-content {
  max-width: 800px;
}

.cta-text {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-app-links .store-badge {
  height: 60px;
}

.main-footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 40px 0 20px;
  border-top: 3px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col {
  padding: 10px;
}

.footer-heading {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-description {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-link {
  text-decoration: none;
  color: var(--color-light);
  transition: color 0.3s;
  font-size: 0.95rem;
}

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

.contact-info p,
.support-email {
  font-style: normal;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: rgba(240, 248, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(135, 206, 235, 0.2);
  padding-top: 20px;
}

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

.small-badge {
  height: 35px;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    margin-top: 15px;
  }

  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-item {
    margin: 0 10px 10px 10px;
  }

  .hero-section {
    height: auto;
    padding: 100px 20px 50px;
    background-position: center 30%;
    justify-content: center;
  }

  .hero-content {
    max-width: 90%;
    padding: 30px;
    text-align: center;
  }

  .app-links {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .features-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .nav-item {
    margin: 5px 0;
  }

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

  .cta-app-links .store-badge {
    height: 45px;
  }

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

  .footer-logo-col {
    border-bottom: 1px dashed rgba(135, 206, 235, 0.2);
    padding-bottom: 20px;
  }

  .footer-logo {
    justify-content: center;
  }

  .howtoplay-step:before {
    font-size: 1.5rem;
    padding: 3px 10px;
  }
}
