:root {
  --bg-color: #0e0e0e;
  --text-color: #e0e0e0;
  --accent1: #ff4444;
  --accent2: #828282;
  --font-family: "Orbitron", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  transition: background-color 0.3s, color 0.3s;
}

/* Links */
a {
  color: var(--accent2);
  text-decoration: none;
}
a:hover {
  color: var(--accent1);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 10px #000;
}
header .logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent1);
  text-shadow: 0 0 8px var(--accent1);
}
header nav a {
  margin: 0 10px;
  font-size: 1.1em;
}
header button {
  background: var(--accent1);
  border: none;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}
header button:hover {
  box-shadow: 0 0 10px var(--accent1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ff0000, #1b1b1b, #730000, #0800ff);
  background-size: 400% 400%;
  animation: gradientBackground 20s ease infinite;
}
@keyframes gradientBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 {
  font-size: 4em;
  margin: 0;
  color: var(--accent2);
  text-shadow: 0 0 15px var(--accent1);
}
.hero p {
  font-size: 1.5em;
  margin: 10px 0 20px;
  color: var(--accent2);
  text-shadow: 0 0 5px var(--accent2);
}
.hero .btn {
  background: var(--accent1);
  border: none;
  color: #fff;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 4px;
  transition: box-shadow 0.3s;
}
.hero .btn:hover {
  box-shadow: 0 0 10px var(--accent1);
}

/* Info Bar */
.info-bar {
  margin-top: 30px;
}
.info-bar p {
  margin: 5px 0;
  font-size: 1.1em;
}

/* Main Game Grid */
main {
  padding: 40px 20px;
  text-align: center;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.game-card {
  background: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px var(--accent1);
}
.game-card img {
  width: 100%;
  display: block;
}
.game-card-content {
  padding: 20px;
}
.game-card h3 {
  margin: 0;
  color: var(--accent2);
  font-size: 1.4em;
}
.game-card p {
  font-size: 1em;
  color: #ccc;
  margin: 10px 0;
}
.game-card button {
  background: var(--accent1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.game-card button:hover {
  box-shadow: 0 0 10px var(--accent1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #222;
  padding: 25px;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  color: var(--accent2);
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  color: var(--accent1);
}
.modal-content .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 2em;
  cursor: pointer;
  color: var(--accent2);
}

/* Tags / Badges */
.tag {
  display: inline-block;
  background: var(--accent1);
  color: #fff;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* 404 Page */
.notfound {
  padding: 100px 20px;
  text-align: center;
}
.notfound h1 {
  font-size: 5em;
  color: var(--accent1);
  margin: 0;
  text-shadow: 0 0 15px var(--accent1);
}
.notfound p {
  font-size: 1.3em;
  margin: 20px 0;
}

/* Light Mode */
body.light-mode {
  background-color: #fff;
  color: #222;
}
body.light-mode header {
  background: rgba(255, 255, 255, 0.95);
}
body.light-mode header .logo,
body.light-mode .hero h1,
body.light-mode .hero p,
body.light-mode .game-card h3,
body.light-mode .game-card p {
  color: #222;
  text-shadow: none;
}
body.light-mode .hero {
  background: #f4f4f4;
  animation: none;
}
body.light-mode .hero .btn,
body.light-mode .game-card button {
  background: #222;
  color: #fff;
}
body.light-mode .game-card {
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
body.light-mode .modal-content {
  background: #fff;
  color: #111;
}
body.light-mode .tag {
  background: #222;
  color: #fff;
}

/* Particles */
#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* Body Glow Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03), rgba(0,0,0,0.6));
  pointer-events: none;
  z-index: -2;
}

/* Team Section */
.team-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.team-member {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.team-member:hover {
  transform: translateY(-5px);
}
.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-bottom: 1rem;
}
