html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  overflow-x: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

.logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: #00ffea;
  text-shadow: 0 0 10px #00ffea;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #00ffea;
  bottom: -5px;
  left: 0;
  transition: 0.4s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #00ffea;
  text-shadow: 0 0 10px #00ffea;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1550747528-9734c2c1f3a3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.glitch {
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px #00ffea;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-5px, -5px); }
  60% { transform: translate(5px, 5px); }
  80% { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

.typed-text {
  font-size: 1.8rem;
  margin: 1.5rem 0 2.5rem;
  color: #00ffea;
}

.neon-btn {
  padding: 14px 32px;
  font-size: 1.2rem;
  background: transparent;
  border: 2px solid #00ffea;
  color: #00ffea;
  cursor: pointer;
  border-radius: 50px;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.4s;
  box-shadow: 0 0 15px rgba(0, 255, 234, 0.5);
}

.neon-btn:hover {
  background: #00ffea;
  color: #000;
  box-shadow: 0 0 25px #00ffea;
}

.neon-btn.secondary {
  border-color: #ff00aa;
  color: #ff00aa;
  box-shadow: 0 0 15px rgba(255, 0, 170, 0.5);
}

.neon-btn.secondary:hover {
  background: #ff00aa;
  color: #fff;
}

/* Games Section */
.section {
  padding: 8rem 5%;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: #00ffea;
  text-shadow: 0 0 15px #00ffea;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s, box-shadow 0.4s;
}

.game-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 255, 234, 0.3);
}

.game-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: 0.6s;
}

.game-card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: 0.4s;
}

.game-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  background: #000;
  border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 3rem;
  }
}