/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
  position: relative;
  /* Remove solid background color to allow gradient canvas to show */
}

/* Canvas background */
#dots-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Top Tab */
.top-tab {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 60px;
  padding: 25px 40px; /* increased height */
  z-index: 10;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* Tab Content */
.tab-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* ensures children align vertically within taller container */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.nav-buttons a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-buttons a:hover {
  color: #f261f4;
}

section {
   min-height: 100vh; /* enough space, expands with content */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 3rem;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

/* Nav Container */
.nav-container {
  background: rgba(255,255,255,0.05);
  padding: 25px 15px; /* bigger padding for taller container */
  border-radius: 35px;
  display: flex;
  flex-grow: 1;             
  justify-content: space-around; /* spreads buttons evenly */
  margin-left: 20px;        
}

/* Nav Buttons */
.nav-buttons a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  padding: 12px 0; /* more vertical space for taller container */
  font-size: 1.2rem; /* slightly bigger text */
  transition: color 0.3s;
}

/* Hover Box (just change opacity) */
.nav-buttons a::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: 2px solid rgba(255,255,255,0.5);
  opacity: 0;
  border-radius: 15px;
  transition: opacity 0.3s ease;
}

.nav-buttons a:hover::before {
  opacity: 1; /* just fade in */
}

/* Underline Animation: center → out */
.nav-buttons a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-buttons a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;            /* full width of the word */
  height: 2px;
  background: #fff;
  transform: scaleX(0);   /* start collapsed */
  transform-origin: center; /* expand from center */
  transition: transform 0.3s ease;
}

.nav-buttons a:hover::after {
  transform: scaleX(1);   /* expand to full width */
}

/* Sections Headers */
section h1 {
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}



.explore-btn {
  background: #ff00ff;
  color: #fff;
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background: #ff66ff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* Top Tab */
.top-tab {
  position: fixed;
  top: 20px; /* keep nav at top of screen */
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 60px;
  padding: 25px 40px;
  z-index: 10; 
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.explore-btn:hover {
  background: #ff66ff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

.story h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.story p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
}

/* Stats Containers */
.stats {
  display: flex;
  gap: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px 40px;
  border-radius: 20px;
  text-align: center;
  flex: 1;
}

.stat h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff;
}

.stat p {
  font-size: 1rem;
  color: #ddd;
}

/* Games Section */
#games {
  padding: 100px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.section-title {
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  font-size: 3rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

.games-container {
  display: flex;
  justify-content: center; /* center all cards horizontally */
  gap: 30px;
  flex-wrap: wrap;
}

.game-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 25px;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button to bottom */
  gap: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

.game-card img {
  width: 100%;
  border-radius: 15px;
}

.game-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.game-card p {
  font-size: 1rem;
  color: #ddd;
  flex-grow: 1; /* makes description take up remaining space */
}

.game-card button {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  background: #ff00ff;
  color: #fff;
  transition: all 0.3s ease;
}

.game-card button:hover:not(:disabled) {
  background: #ff66ff;
  box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff;
}

.game-card button:disabled {
  background: rgba(255,255,255,0.2);
  cursor: not-allowed;
  box-shadow: none;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* stack vertically */
  padding: 150px 50px 100px 50px; /* space for top nav */
  min-height: 100vh;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 6rem; /* big and bold */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  margin-top: 100px;
  line-height: .5;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 40px #ff00ff;
}

.hero-title span {
  display: block; /* ensures each word is on its own line */
  margin-bottom: 30px; /* increases spacing between Create, Play, Inspire */
}


/* Explore Button */
.explore-btn {
  background: #ff00ff;
  color: #fff;
  padding: 20px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background: #ff66ff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* About Section */
#about {
  padding: 40px 50px 40px 40px; /* enough space below hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

#about .section-title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
  text-align: center;
}

.about-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

/* Stats Containers in About */
.stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px 40px;
  border-radius: 20px;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff;
}

.stat p {
  font-size: 1rem;
  color: #ddd;
}

.see-more-container {
  margin-top: 40px;
  text-align: center;
}

.see-more-btn {
  background: #ff00ff;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background: #ff66ff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* Video Gallery Page */
.video-gallery {
  padding: 150px 50px 100px 50px; /* space for top nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.videos-container video {
  width: 100%;
  height: 170px;
  border-radius: 20px;
  box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.videos-container video:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff00ff, 0 0 50px #ff66ff;
}

.section-title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  text-align: center;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

/* Make canvas cover entire background like main page */
#dots-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#contact {
  padding: 100px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  color: #fff;
  text-align: center;
}

#contact .section-title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

.contact-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #ddd;
}

.contact-buttons {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-btn {
  background: #ff00ff;
  color: #fff;
  padding: 20px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #ff66ff;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Adjust section padding */
  section {
    padding: 80px 20px;
    font-size: 2rem;
  }

  /* Hero Section */
  .hero-title {
    font-size: 3.5rem;
    margin-top: 50px;
    line-height: 1;
  }

  .explore-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
  }

  /* Games Container */
  .games-container {
    flex-direction: column;
    align-items: center;
  }

  .game-card {
    width: 90%;
    max-width: 350px;
  }

  /* Video Gallery */
  .videos-container {
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 20px;
  }

  .videos-container video {
    height: auto; /* scale video height */
  }

  /* Contact Buttons */
  .contact-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .contact-btn {
    width: 80%;
    font-size: 1rem;
    padding: 15px 30px;
  }

  /* Top Tab / Nav */
  .top-tab {
    width: 90%;
    padding: 20px 15px;
  }

  .nav-buttons a {
    font-size: 1rem;
    margin-left: 10px;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* General */
  body, html {
    font-size: 14px; /* smaller base size */
  }

  section {
    padding: 60px 20px;
    min-height: auto; /* prevents forced overlap */
    height: auto;
    text-align: center;
  }

  /* Fix for headers */
  section h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  /* Top Tab / Nav */
  .top-tab {
    width: 95%;
    padding: 15px 20px;
    border-radius: 25px;
  }

  .tab-content {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .nav-container {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    border-radius: 20px;
  }

  .nav-buttons a {
    font-size: 0.9rem;
    margin: 5px 10px;
    padding: 8px 0;
  }

  /* Hero Section */
  .hero {
    padding: 120px 20px 60px 20px; /* ensures space below nav */
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .hero-title span {
    margin-bottom: 15px;
  }

  .explore-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  /* About Section */
  #about {
    padding: 60px 20px;
    gap: 30px;
  }

  .about-content p {
    font-size: 1rem;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    width: 100%;
    padding: 20px;
  }

  /* Games Section */
  #games {
    padding: 60px 20px;
    gap: 20px;
  }

  .games-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .game-card {
    width: 100%;
    max-width: 320px;
  }

  /* Video Gallery */
  .video-gallery {
    padding: 120px 20px 60px 20px;
    gap: 30px;
  }

  .videos-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .videos-container video {
    height: auto;
  }

  /* Contact Section */
  #contact {
    padding: 60px 20px;
    gap: 30px;
  }

  .contact-content h2 {
    font-size: 1.8rem;
  }

  .contact-content p {
    font-size: 1rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 12px 25px;
  }
}