/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* DISCORD BUTTON */
.discord-btn {
  position: fixed;
  top: 20px;
  right: 25px;
  background-color: #5865f2;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.discord-btn:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
}

.discord-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #111;
  overflow-x: hidden;
}

/* HERO SECTION */
.hero {
  height: 55vh;
  background: linear-gradient(135deg, rgba(12, 13, 45, 0.7), rgba(10, 10, 30, 0.7)),
              url('/images/neon-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 4rem;
  position: relative;
  color: white;
  overflow: hidden;
  z-index: 1;
}


/* Fade-out to white at the bottom */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(21, 29, 59, 0) 0%, #ffffff 100%);
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  z-index: 3;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  color: #e0e0e0;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* GAME SECTION */
.games {
  background: #fff;
  color: #111;
  padding: 4rem 2rem 6rem;
  position: relative;
  top: -100px;
  z-index: 4;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.game-card {
  position: relative;
  height: 360px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.4s ease;
}

.game-card:hover::before {
  background: rgba(0, 0, 0, 0);
}

.game-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
}

.game-info h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    height: 45vh;
    padding: 2.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .game-card {
    height: 300px;
  }
}
