@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #050508;
  --card-bg: #11111a;
  --primary: #00f3ff;
  --secondary: #bc13fe;
  --text-main: #ffffff;
  --text-muted: #8b9bb4;
  --gradient-main: linear-gradient(135deg, var(--secondary), var(--primary));
  --glow-primary: 0 0 20px rgba(0, 243, 255, 0.5);
  --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.5);
  --font-main: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Grid Effect */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(188, 19, 254, 0.15), transparent 70%);
  z-index: -1;
  filter: blur(50px);
}

/* Games Grid */
.games-section {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  display: inline-block;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  group: pointer; /* Custom attribute notion */
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-primary);
  border-color: rgba(0, 243, 255, 0.3);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.play-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-main);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s, transform 0.2s;
  width: 100%;
  text-align: center;
}

.play-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

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