:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --accent-color: #a8dadc;
  --text-dark: #1d3557;
  --text-light: #f1faee;
  --font-heading: "Impact", sans-serif;
  --font-body: "Arial", sans-serif;
  --spacing-large: 80px;
  --spacing-medium: 40px;
  --spacing-small: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--text-light);
  min-width: 320px;
}

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

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

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-small);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-large);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: var(--secondary-color);
  border-radius: 5px;
}

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

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

.store-badge {
  height: 60px;
  width: auto;
  transition: transform 0.2s;
}

.store-badge:hover {
  transform: translateY(-5px);
}

.site-header {
  background-color: var(--text-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

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

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

.main-nav {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--spacing-small);
}

.nav-link {
  color: var(--text-light);
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
}

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

.hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1d3557 100%);
  color: var(--text-light);
  padding: 120px 0 var(--spacing-large) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/gameplay-hero.webp") no-repeat center center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-image-wrapper {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: var(--spacing-small);
}

.hero-game-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
  transition: transform 0.5s;
}

.hero-game-image:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-title {
  color: var(--text-light);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: normal;
  text-transform: none;
  color: var(--accent-color);
  margin-bottom: var(--spacing-medium);
}

.store-buttons {
  display: flex;
  gap: var(--spacing-small);
  margin-top: var(--spacing-medium);
}

.licence-note {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.content-section {
  padding: var(--spacing-large) 0;
  min-height: 50vh;
}

.description-section p {
  margin-bottom: var(--spacing-small);
}

.bg-light {
  background-color: var(--accent-color);
}

.content-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: var(--spacing-small);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.float-right {
  float: right;
  margin-left: var(--spacing-small);
}

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

.feature-list li {
  background-color: var(--text-light);
  padding: var(--spacing-medium);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.feature-list strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.howto-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  padding: 0;
}

.howto-steps li {
  counter-increment: step-counter;
  background-color: var(--text-light);
  padding: var(--spacing-medium);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 60px;
}

.howto-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--text-light);
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
}

.howto-steps strong {
  color: var(--primary-color);
}

.gallery-section {
  text-align: center;
}

.section-subtitle {
  margin-bottom: var(--spacing-medium);
  font-style: italic;
  color: var(--text-dark);
}

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

.screenshot-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, opacity 0.3s;
}

.screenshot-item:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-large) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: var(--spacing-small);
}

.cta-section h2::after {
  background-color: var(--accent-color);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-medium);
}

.cta-buttons .store-badge {
  height: 70px;
}

.site-footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: var(--spacing-large) 0 var(--spacing-small) 0;
  font-size: 0.9rem;
}

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

.footer-col h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-small);
  font-size: 1.2rem;
}

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

.footer-list a {
  color: var(--accent-color);
  display: block;
  padding: 5px 0;
}

.footer-list a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.developer-name {
  margin-bottom: 5px;
  color: var(--accent-color);
}

.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-small);
  text-align: center;
  opacity: 0.7;
}

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

  .container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-large: 60px;
    --spacing-medium: 30px;
    --spacing-small: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

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

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

  .hero-content,
  .hero-image-wrapper {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-image-wrapper {
    order: -1;
    padding-bottom: var(--spacing-medium);
  }

  .float-right {
    float: none;
    margin: var(--spacing-small) auto;
    display: block;
  }

  .store-buttons {
    justify-content: center;
  }

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

  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    grid-column: span 2;
  }

  .footer-store-buttons {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .store-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .store-badge {
    height: 50px;
  }

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