* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --vh: 1vh;
}

html {
  overflow-y: scroll;
}
html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0d0d0d;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.6;
}

/* Navigation */
.nav {
  background-color: rgba(18, 18, 18, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  height: 64px;
}

/* Shared nav-container styles */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-logo:hover {
  color: #ffed4e;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  width: 40px;
  height: 40px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px !important;
  min-height: 2px;
  background-color: #ffd700;
  margin: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  position: relative;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  margin: 8px 0;
}

.hamburger span:nth-child(3) {
  top: 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: -10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.87);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.1);
}

/* Hero Section */

.hero {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 64px);
  height: calc(var(--vh, 1vh) * 100 - 64px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Content Sections */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-content {
  min-height: 70vh;
  text-align: left;
}

.page-content h1 {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.page-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* Contact Page */
.contact-info {
  margin-top: 2rem;
}

/* Games Page */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.game-thumbnail {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 1rem 0 0 0;
  background-color: transparent;
}

.game-card h2 {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  color: #ffd700;
  text-align: center;
  margin: 0;
  padding: 1rem 0;
  font-size: 1.2rem;
}

.game-card {
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-card:hover {
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  /* Removed redundant CSS for .game-thumbnail and .game-detail-image */
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    background-color: rgba(18, 18, 18, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0);
  }
  .nav-menu.active {
    max-height: 300px;
    padding: 1rem 0;
    border-bottom-color: rgba(255, 215, 0, 0.2);
  }
  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }
  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-link {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .hero {
    align-items: center;
    justify-content: center;
  }
  .hero-content {
    padding: 1rem;
  }
  .page-content h1 {
    font-size: 2rem;
  }
  .page-content p {
    font-size: 1rem;
  }
  .content {
    padding: 2rem 1rem;
    padding-top: 5rem;
  }
  .page-content {
    padding-top: 5rem;
  }
  .button-link {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified button style */
.button-link {
  display: inline-block;
  font-size: 1.1rem;
  color: #ffd700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid #ffd700;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: none;
  text-align: center;
  margin-top: 1rem;
}

.button-link:hover {
  background-color: #ffd700;
  color: #0d0d0d;
}

/* Button icon for store links */
.button-icon {
  width: 25px;
  height: 25px;
  vertical-align: bottom;
}
