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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ecf0f1;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 186, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background: radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 186, 255, 0.1) 0%, transparent 50%);
  }
  50% {
    background: radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 186, 255, 0.1) 0%, transparent 50%);
  }
}

/* Navigation */
nav {
  background: rgba(15, 52, 96, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: #00baff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00baff, #e94560);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* Header */
header {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10; /* ✅ FIX ADDED */
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  animation: float 3s ease-in-out infinite;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00baff, #e94560, #00baff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 8s ease infinite;
  font-weight: 900;
  letter-spacing: 2px;
}

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

.subtitle {
  font-size: 1.5rem;
  color: #00baff;
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Section */
section {
  margin: 4rem 0;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #00baff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.game-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 186, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 186, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 186, 255, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.game-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00baff;
  font-weight: 700;
}

.game-card p {
  color: #bdc3c7;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #00baff, #0099cc);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge.upcoming {
  background: linear-gradient(135deg, #e94560, #c91e4a);
}

.badge.special {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Button */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #00baff, #0099cc);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 186, 255, 0.3);
  position: relative;     /* ✅ FIX ADDED */
  z-index: 999;           /* ✅ FIX ADDED */
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 186, 255, 0.5);
  background: linear-gradient(135deg, #00d4ff, #00baff);
}

.btn:active {
  transform: scale(0.98);
}

/* Footer */
footer {
  background: rgba(15, 52, 96, 0.95);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 186, 255, 0.2);
  position: relative;
  z-index: 1;
}

footer p {
  color: #95a5a6;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #00baff;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00d4ff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(233, 69, 96, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 186, 255, 0.1);
  margin: 2rem 0;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #bdc3c7;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

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

  .container {
    padding: 1rem;
  }

  header {
    padding: 2rem 1rem;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

  section h2 {
    font-size: 1.5rem;
  }

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