/* Color variables */
:root {
  --primary-color: #0487d3;
  --primary-dark: #0277bd;
  --secondary-color: #039be5;
  --text-dark: rgba(0, 0, 0, 0.87);
  --text-light: rgba(0, 0, 0, 0.7);
  --background-light: #ECEFF1;
  --white: #ffffff;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 6rem 0;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* About Section */
.about {
  padding: 4rem 0;
  background: var(--white);
}

.about h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.about-promo-image {
  max-width: 900px;
  width: 100%;
  height: auto;
  margin: 3rem auto 0;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* Games Section */
.games {
  padding: 4rem 0;
  background: var(--background-light);
}

.games h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
}

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

.game-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.game-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.game-card p {
  color: var(--text-light);
  font-size: 1rem;
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
  aspect-ratio: 3/2;
}

/* Download Section */
.download {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.download h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.download-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--text-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
  min-width: 180px;
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.store-icon {
  width: 32px;
  height: 32px;
  fill: var(--white);
  flex-shrink: 0;
}

.google-play-icon {
  fill: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.store-title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.2;
}

.google-play {
  background: #000000;
}

.app-store {
  background: #000000;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-download-buttons {
    justify-content: center;
  }

  .about-promo-image {
    width: 95%;
    margin-top: 2rem;
  }

  .logo-image {
    height: 32px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  nav ul {
    display: flex;
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.85rem;
  }

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

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

  .store-button {
    width: 100%;
    max-width: 280px;
  }
}
