/* ========== BASE STYLING ========== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background-color: #000;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ========== HEADER ========== */
.site-header {
  background-color: #111;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
}

.nav-left,
.nav-right {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-left li a,
.nav-right li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: white;
  letter-spacing: 5px;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  background-image: url('images/bgi1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #000;
  min-height: 100vh;
  height: auto;
  padding-top: 80px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 15, 58, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.main-title {
  font-size: 64px;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* ========== CATEGORY SECTION ========== */
.category {
  position: relative;
  margin: 40px auto;
  width: 100%;
  max-width: 1600px;
  padding: 0 20px;
}

.category-header,
.scroll-wrapper,
.scroll-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.category-header {
  padding: 3px 15px;
  border-radius: 10px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

.category h2 {
  color: white;
  margin: 10px 0px;
  font-size: 24px;
  text-align: left;
}

/* ========== SCROLLING GAME ROWS ========== */
.scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 3px 20px;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* ========== GAME TILES ========== */
.game-tile {
  position: relative;
  overflow: hidden;
  flex: 0 0 391px;
  height: 220px;
  border-radius: 10px;
  scroll-snap-align: start;
  transition: transform 0.2s;
}

.game-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.tile-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}

/* ========== SCROLL BUTTONS ========== */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  line-height: 1;
  transition: background-color 0.3s;
}

.scroll-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  position: static;
  width: 100%;
  background-color: #111;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  z-index: 1000;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
  .scroll-container {
    gap: 16px;
    padding: 10px 0;
  }

  .game-tile {
    flex: 0 0 300px;
    height: 169px;
  }

  .site-title {
    font-size: 20px;
  }

  .nav-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .scroll-container {
    gap: 12px;
    padding: 2px 0;
  }

  .game-tile {
    flex: 0 0 240px;
    height: 135px;
    margin: 0;
  }

  .main-title {
    font-size: 36px;
  }

  .category h2 {
    font-size: 14px;
    margin: 1px 8px;
  }

  .nav-container {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .hero {
    background-position: top center;
    padding-top: 60px;
    padding-bottom: 40px;
    background-attachment: scroll;
  }

  .category {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .category-header {
    margin-bottom: 6px;
  }

  .category:first-of-type {
    margin-top: 40px;
  }

  .nav-left,
  .nav-right {
    gap: 10px;
  }

  .site-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .nav-left li a,
  .nav-right li a {
    font-size: 14px;
  }

  .hero-description {
    margin: 0 16px 40px;
  }

  .hero-title {
    margin-top: 50px;
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }
}
