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

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f2027;  /* fallback for old browsers */
  background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
  color: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00ffcc;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1617957741641-0a548e51e74a?auto=format&fit=crop&w=1400&q=80') no-repeat center center/cover;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero h1 span {
  color: #00ffcc;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.cta-btn {
  background: #00ffcc;
  color: #000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #fff;
  color: #000;
}

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

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, #00ffcc, #ffffff);
  margin: 20px auto;
  border-radius: 2px;
}

/* Games Section */
.games-section {
  padding: 80px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.game-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: linear-gradient(145deg, #1e293b, #334155);
  color: #fff;
  padding: 35px 25px;
  width: 280px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.game-card:hover::before {
  left: 100%;
}

.game-card.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.game-card:hover {
  transform: translateY(-15px) scale(1.05);
  background: linear-gradient(145deg, #00ffcc, #00d4aa);
  color: #000;
  box-shadow: 0 20px 40px rgba(0, 255, 204, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.game-card:hover .card-icon {
  transform: scale(1.2) rotate(10deg);
}

.game-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.game-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* About Section */
.about {
  padding: 60px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.about h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Features Section */
.features-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(255, 255, 255, 0.05));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 255, 204, 0.2);
  background: rgba(0, 255, 204, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #00ffcc;
}

.feature-card p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Stats Section */
.stats-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 255, 204, 0.1));
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 255, 204, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #00ffcc;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .game-card {
    width: 90%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .socials a {
  color: #00ffcc;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

footer .socials a:hover {
  color: #fff;
}
