html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}

#games {
  background: #111;
  padding: 80px 20px;
  text-align: center;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.fullscreen-viewer {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.fullscreen-viewer img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  object-fit: contain;
  cursor: zoom-out;
}

#games h2 {
  margin-bottom: 30px;
}

.game-card {
  flex: 0 0 300px; /* fixed width */
  background: #1a1a1a;
  padding: 15px;
  border-radius: 12px;
  scroll-snap-align: start;
}

.game-card:hover {
  transform: translateY(-10px);
}

/* Image gallery inside the card */
.game-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}


.game-gallery img {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 8px;
}

/* Scrollbar styling */
.game-gallery::-webkit-scrollbar {
  height: 6px;
}

.game-gallery::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.game-gallery::-webkit-scrollbar-track {
  background: #111;
}


a {
  color: #00e0ff;
  text-decoration: none;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 13, 13, 0.95);
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  z-index: 100;
}

nav a {
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #ff9900;
}

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#heroContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 1s;
}

#heroContent h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}


#heroContent p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  color: #eaeaea;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

section {
  padding: 80px 20px;
  text-align: center;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#games {
  background: #111;
}

.game-card {
  background: #1a1a1a;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  transition: 0.3s;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

#about {
  background: #0d0d0d;
}

#about p {
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.6;
}

#contact {
  background: #111;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
}

#contact button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #00e0ff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#contact button:hover {
  background: #ff9900;
}

footer {
  background: #0a0a0a;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9em;
  color: #777;
}

@media (max-width: 768px) {
  #heroContent h1 {
    font-size: 2.2em;
  }
}
