body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes background-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
  animation: fadeIn 0.5s ease-in-out;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 30px;
}

.store-button {
  background-color: #fec105;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.user-profile img {
  height: 40px;
  border-radius: 50%;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: left;
  padding: 4rem 2rem;
  background: linear-gradient(45deg, #420d0d, #1a1a1a, #6A0DAD);
  background-size: 400% 400%;
  animation: background-pan 15s ease-in-out infinite;
  color: #fff;
}

.hero-content {
  max-width: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-in-out, slideInUp 0.8s ease-in-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.2s ease-in-out, slideInUp 1s ease-in-out;
}

.hero-cta-button {
  background-color: #fec105;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 1.5s ease-in-out, bounce 1.5s ease-in-out 2s;
}

.hero-cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.hero-image img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 1.5s ease-in-out;
}


.main-content {
  padding: 2rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: slideInUp 0.5s ease-in-out;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 600;
}

.card-link .arrow {
  color: #888;
  margin-right: 0.5rem;
}

.download-button {
  padding: 0 1rem 1rem;
  text-align: center;
}

.download-button a {
  background-color: #fec105;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-button a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.download-section {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.game-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.game-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease-in-out;
}

.game-icons img:hover {
  animation: bounce 0.5s;
}

.app-store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-store-buttons a {
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-buttons a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.app-store-buttons img {
  height: 50px;
}

.features {
  padding: 4rem 1rem;
  color: #fff;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fec105;
  text-align: center;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(45deg, #420d0d, #1a1a1a, #6A0DAD);
  background-size: 400% 400%;
  animation: background-pan 15s ease-in-out infinite, slideInUp 0.5s ease-in-out;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: #fec105;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #28a745;
}

.card p {
  color: #fff;
}

footer {
  background-color: #1e1e1e;
  padding: 2rem 0;
  border-top: 1px solid #333;
  color: #e0e0e0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo a {
  color: #fec105;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.social-links a {
  margin: 0 0.5rem;
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-text p {
  margin: 0;
  font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }

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

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

  .hero-image img {
    max-width: 80%;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}
