/* ===== BASE ===== */
:root {
  --primary: #6c5ce7;
  --secondary: #a29bfe;
  --dark: #2d3436;
  --light: #f5f6fa;
  --success: #00b894;
  --android: #3ddc84;
  --ios: #007aff;
  --warning: #fdcb6e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: var(--dark);
  line-height: 1.6;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                  url('images/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(0,0,0,0.9);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
}

.logo i {
  color: var(--primary);
  margin-right: 10px;
}

.logo span {
  color: var(--primary);
  margin-right: 5px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 5rem 5%;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(255,255,255,0.15);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  min-width: 150px;
  backdrop-filter: blur(5px);
}

.stat-box span {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-box p {
  font-size: 1rem;
  opacity: 0.8;
}

/* ===== GAMES SECTION ===== */
.games-container {
  padding: 4rem 5%;
  background: rgba(10,10,10,0.95);
}

.games-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--light);
}

.games-container h2 i {
  color: var(--primary);
  margin-right: 15px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid #444;
  border-radius: 50px;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  background: rgba(30,30,30,0.8);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #333;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: var(--primary);
}

.game-icon {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: rgba(20,20,20,0.7);
  padding: 1.5rem;
}

.game-card h3 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.3rem;
  text-align: center;
  color: var(--light);
}

.game-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.2rem;
  color: #aaa;
  font-size: 0.9rem;
}

.download-btns {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.download-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.android {
  background: var(--android);
  color: #1a1a1a;
}

.android:hover {
  background: #2bc973;
}

.download-btn.android:hover {
  background: #2bc973;
  box-shadow: 0 0 15px #3ddc84;
  transform: scale(1.02);
}


.ios {
  background: var(--ios);
  color: white;
}

.ios:hover {
  background: #0069d9;
}

.disabled {
  background: #555;
  color: #ccc;
  cursor: not-allowed;
}

/* ===== INSTRUCTIONS ===== */
.instructions {
  padding: 5rem 5%;
  background: rgba(15,15,15,0.95);
}

.instructions h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--light);
}

.instructions h2 i {
  color: var(--primary);
  margin-right: 15px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  background: rgba(40,40,40,0.8);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #444;
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.step p {
  color: #ddd;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  padding: 4rem 5% 2rem;
  color: var(--light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-section a {
  display: flex;
  align-items: center;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.3s;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-section a i {
  width: 20px;
  text-align: center;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .stats {
    gap: 1.5rem;
  }

  .stat-box {
    min-width: 120px;
    padding: 1.2rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .games-container h2, .instructions h2 {
    font-size: 2rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-width: 100%;
  }
}