/* ============================
   GLOBAL RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Source Sans Pro", sans-serif;
}

body {
  background: #03040a;
  color: #e6f1ff;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

/* DARK MODE */
body.dark-mode {
  background: #ffffff;
  color: #111;
}

/* ============================
   HEADER + NAVBAR
============================ */
.header {
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(0, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-title {
  font-size: 28px;
  font-weight: 900;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

/* NAV LINKS */
.header__links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.header__link {
  color: #bce8ff;
  font-size: 18px;
  text-decoration: none;
  transition: .25s;
}

.header__link:hover,
.header__link.active {
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

/* ============================
   DROPDOWN MENU (OPTION 1)
============================ */
.dropdown {
  position: relative;
}

.dropdown-btn {
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 28px;
  left: 0;
  background: #02040a;
  border: 1px solid #0ff;
  border-radius: 5px;
  box-shadow: 0 0 12px #0ff;
  display: none;
  min-width: 180px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #bce8ff;
  transition: .2s;
}

.dropdown-content a:hover {
  background: rgba(0, 255, 255, 0.15);
  color: #0ff;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ============================
   DARK MODE BUTTON
============================ */
.dark-toggle {
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  color: #0ff;
  background: none;
  border: 2px solid #0ff;
  border-radius: 6px;
  transition: .2s;
}

.dark-toggle:hover {
  background: #0ff;
  color: #000;
}

/* ============================
   HOME HERO
============================ */
.home-hero {
  padding: 80px 20px;
  text-align: center;

  background: url("../assets/image/game-bg.jpg") center/cover no-repeat fixed;
  position: relative;
  color: #fff;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 20, 0.65); 
  backdrop-filter: blur(2px);
  z-index: 1;
}

.home-hero * {
  position: relative;
  z-index: 2;
}


.heading-primary {
  font-size: 48px;
  text-shadow: 0 0 15px #0ff;
}

.home-sub {
  max-width: 700px;
  margin: 15px auto;
  opacity: .85;
  font-size: 20px;
}

/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 20px;
  border: 2px solid #0ff;
  border-radius: 8px;
  color: #0ff;
  text-decoration: none;
  transition: .25s;
  font-weight: 600;
}

.btn--bg {
  background: rgba(0, 255, 255, 0.05);
}

.btn:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 16px #0ff;
}

/* ============================
   COUNTERS
============================ */
.counters {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.counter-box {
  width: 150px;
  padding: 20px;
  text-align: center;
  background: rgba(0,255,255,0.05);
  border: 1px solid #0ff;
  border-radius: 10px;
  box-shadow: 0 0 10px #0ff;
}

.counter {
  font-size: 40px;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

/* ============================
   FOOTER
============================ */
.main-footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #0ff;
  background: rgba(0, 255, 255, 0.03);
}

/* ============================
   SCROLL TO TOP BUTTON
============================ */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0ff;
  color: #000;
  font-size: 20px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 18px #0ff;
}

#scrollTopBtn:hover {
  box-shadow: 0 0 25px #0ff;
}

/* ============================
   CONTACT PAGE BUBBLE
============================ */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
}

.contact-bubble {
  width: 90%;
  max-width: 600px;
  background: rgba(0, 15, 25, 0.7);
  border: 2px solid #0ff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 25px #0ff;
  backdrop-filter: blur(6px);
}

.contact-title {
  font-size: 2.5rem;
  color: #0ff;
  text-shadow: 0 0 12px #0ff;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 1.1rem;
  color: #e0faff;
  margin-bottom: 30px;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #a8faff;
}

.contact-note {
  margin-top: 25px;
  font-size: 0.9rem;
  color: #99eaff;
  opacity: 0.8;
}

.nav-row {
  margin-top: 40px;
  display: flex;
  justify-content: space-between; /* Puts back on left, next on right */
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 600px; 
  margin-left: auto;
  margin-right: auto;
}

.nav-row .btn {
  flex: 1;
  text-align: center;
}

/* ============================
   GENRE PAGE LAYOUT FIXES
============================ */
.genre-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Genre boxes */
.genre-box {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid #0ff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 35px;
  box-shadow: 0 0 10px #0ff;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* Game card layout */
.game-card {
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid #0ff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 8px #0ff;
}

/* Image placeholder */
.game-img {
  width: 100%;
  height: 180px;
  background: rgba(0, 255, 255, 0.15);
  border: 1px dashed #0ff;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ff;
  font-size: 16px;
  text-shadow: 0 0 8px #0ff;
}

/* Title inside cards */
.game-card h3 {
  margin-bottom: 8px;
}

/* Center nav row */
.nav-row {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.game-img {
  width: 100%;
  height: 160px; /* adjust height if you want bigger */
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #0ff;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* IMPORTANT */
  box-shadow: 0 0 12px #0ff;
  color: #0ff;
  font-size: 14px;
}

/* Makes sure the inserted image scales correctly */
.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* IMPORTANT */
  border-radius: 6px;
}


/* ============================
   RESPONSIVE
============================ */
@media (max-width: 600px) {
  .counters {
    flex-direction: column;
    gap: 15px;
  }

  .header__links {
    gap: 15px;
  }

  .heading-primary {
    font-size: 36px;
  }
}
/* =======================
   GAME POPUP MODAL
======================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(10, 10, 20, 0.95);
  border: 2px solid rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  position: relative;
  animation: modalPop 0.2s ease-out;

  /* ✅ makes modal scrollable */
  max-height: 85vh;      /* 85% of screen height */
  overflow-y: auto;      /* scroll inside modal */
}


@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: white;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.05);
}

.modal-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.modal-img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.modal-text p {
  line-height: 1.6;
}

.modal-features {
  margin-top: 14px;
  opacity: 0.9;
}
.modal-text {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}
.modal-subtitle {
  margin-top: 15px;
  margin-bottom: 6px;
  color: #0ff;
  text-shadow: 0 0 8px #0ff;
  font-size: 18px;
}


/* Mobile responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-img {
    width: 100%;
    height: 240px;
  }
}

/* make game card look clickable */
.game-card {
  cursor: pointer;
}

.game-card .game-img img {
  transition: transform 0.25s ease;
}

.game-card:hover .game-img img {
  transform: scale(1.05);
}
.music-btn{
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}



