/* Global Styles */
:root {
    --bg-color: hsl(0, 0%, 100%);
    --text-color: #ffffffcb;
    --accent1: #636362;
    --accent2: #ffffff;
    --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;
  }
  
  a {
    color: var(--accent1);
    text-decoration: none;
  }
  a:hover {
    color: var(--accent2);
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
  }
  header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent1);
    text-shadow: 0 0 5px var(--accent1);
  }
  header nav a {
    margin: 0 10px;
    font-size: 1em;
  }
  header button {
    background: none;
    border: 2px solid var(--accent2);
    color: var(--accent2);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
  }
  header button:hover {
    box-shadow: 0 0 10px var(--accent2);
  }
  
  /* Hero-Section */
  .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(255, 0, 0), rgb(57, 48, 48), rgba(115, 0, 0, 0.869), rgb(8, 0, 255));
    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(--accent1);
    text-shadow: 0 0 10px var(--accent1), 0 0 20px var(--accent2);
  }
  .hero p {
    font-size: 1.5em;
    margin: 10px 0 20px;
    color: var(--accent2);
    text-shadow: 0 0 5px var(--accent2);
  }
  .hero .btn {
    background: none;
    border: 2px solid var(--accent1);
    color: var(--accent1);
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: box-shadow 0.3s;
  }
  .hero .btn:hover {
    box-shadow: 0 0 10px var(--accent1);
  }
  
  /* Info Bar in Hero */
  .info-bar {
    margin-top: 30px;
    color: var(--text-color);
  }
  .info-bar p {
    margin: 5px 0;
    font-size: 1.1em;
  }
  
  /* Games Listing */
  main {
    padding: 20px;
    text-align: center;
  }
  .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .game-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--accent2);
  }
  .game-card img {
    width: 100%;
    display: block;
  }
  .game-card-content {
    padding: 15px;
  }
  .game-card h3 {
    margin: 0;
    color: var(--accent1);
    font-size: 1.2em;
  }
  .game-card p {
    font-size: 0.95em;
    color: #ccc;
    margin: 10px 0;
  }
  .game-card button {
    background: none;
    border: 2px solid var(--accent1);
    color: var(--accent1);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
  }
  .game-card button:hover {
    box-shadow: 0 0 10px var(--accent1);
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  .modal.open {
    display: flex;
  }
  .modal-content {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
  }
  .modal-content h2 {
    margin-top: 0;
    color: var(--accent1);
  }
  .modal-content p {
    color: #ddd;
    line-height: 1.5;
  }
  .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(--accent2);
    color: #000;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 0.9em;
  }
  
  /* 404 Page */
  .notfound {
    padding: 100px 20px;
    text-align: center;
  }
  .notfound h1 {
    font-size: 5em;
    color: var(--accent1);
    margin: 0;
    text-shadow: 0 0 10px var(--accent1);
  }
  .notfound p {
    font-size: 1.2em;
    margin: 20px 0;
    color: var(--text-color);
  }
  
  /* Light Mode */
  body.light-mode {
    background-color: #ffffff;
    color: #222;
  }
  body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
  }
  body.light-mode header .logo {
    color: #555;
    text-shadow: none;
  }
  body.light-mode .hero {
    background: #eee;
    animation: none;
  }
  body.light-mode .hero h1,
  body.light-mode .hero p {
    color: #222;
    text-shadow: none;
  }
  body.light-mode .hero .btn {
    color: #222;
    border-color: #222;
  }
  body.light-mode .game-card {
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }
  body.light-mode .game-card h3 {
    color: #333;
  }
  body.light-mode .game-card p {
    color: #444;
  }
  body.light-mode .game-card button {
    border-color: #333;
    color: #333;
  }
  body.light-mode .modal-content {
    background: #fff;
    color: #111;
  }
  body.light-mode .modal-content .close {
    color: #333;
  }
  body.light-mode .tag {
    background: #ccc;
    color: #333;
  }
  /* Particle Background Effect */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  /* Optional: overlay for deeper glow */
  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;
  }
  
  