* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* =========================
   SCROLL SNAP
========================= */

.container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  position: fixed;
  top: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  z-index: 1000;
}

.nav-container {
  background: #fff;
  padding: 8px 36px;
  border-radius: 50px;
  display: inline-flex;     
  align-items: center;
  gap: 35px;
  position: relative;
}

/* Desktop nav items */
.nav-item {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

/* Logo centered */
.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 30px;
  font-weight: 900;
  color: #000;
}

/* Hide mobile dropdown on desktop */
.nav-links {
  display: none;
}

/* =========================
   HAMBURGER
========================= */

.menu-toggle {
  display: none;
  width: 32px;
  height: 26px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
}

.hero-content {
  z-index: 3;
}

.hero h1 {
  font-size: 4rem;
}

/* =========================
   HERO CONTINUOUS SLIDE
========================= */

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 4rem; /* keeps We Build large */
  line-height: 1.1;
}

.static-text {
  font-weight: 600;
}

/* Wrapper */
.animated-text-wrapper {
  height: 3.8rem;   /* reduced height to match smaller text */
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

/* Moving column */
.animated-track {
  display: flex;
  flex-direction: column;
  animation: verticalScroll 8s linear infinite;
}

/* 🔥 Reduced animated text size */
.animated-track span {
  height: 3.8rem;       /* must match wrapper height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;      /* smaller than 4rem */
  font-weight: 800;
  background: linear-gradient(90deg, #00ff9d, #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth continuous movement */
@keyframes verticalScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-75%); }
}

.hero p {
  margin-top: 20px;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* GRID */

.grid-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(#222 1px, transparent 1px),
                    linear-gradient(90deg, #222 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 20s linear infinite;
  transform: rotateX(60deg);
  top: -50%;
  left: -50%;
}

@keyframes moveGrid {
  from { transform: rotateX(60deg) translateY(0); }
  to { transform: rotateX(60deg) translateY(60px); }
}

/* FLOATING */

.floating {
  position: absolute;
  width: 200px;
  animation: float 6s ease-in-out infinite;
}

.char1 { left: 10%; top: 20%; }
.char2 { right: 10%; bottom: 20%; animation-delay: 2s; }

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* =========================
   GAME SECTION
========================= */

.game-section {
  overflow: hidden;
}

.game-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}

.game-section:hover .game-bg {
  transform: scale(1.08);
}

.game-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
}

.game-card {
  position: relative;
  z-index: 2;
  width: 350px;
  padding: 40px;
  border-radius: 30px;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.game-logo {
  width: 120px;
  margin-bottom: 15px;
}

.google-play-btn img {
  width: 180px;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

.google-play-btn img:hover {
  transform: scale(1.1);
}

/* =========================
   SOCIAL
========================= */

.social {
  background: #111;
  flex-direction: column;
}

.social-icons {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.social-icons a {
  font-size: 30px;
  color: white;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: translateY(-8px) scale(1.2);
  color: #00ff9d;
}

footer {
  padding: 20px;
  text-align: center;
  background: #000;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

  .nav {
    padding: 1px 0;   /* smaller top spacing */
  }

  .nav-container {
    width: 92%;
    padding: 10px 24px;   /* 🔥 reduced height */
    border-radius: 50px;
    justify-content: space-between;
  }

  /* Slightly smaller logo for balance */
  .logo {
    font-size: 24px;
  }

  /* Hide desktop items */
  .nav-item {
    display: none;
  }

  /* Hamburger */
  .menu-toggle {
    display: block;
    width: 24px;
    height: 18px;
  }

  .menu-toggle span {
    height: 2.5px;
  }

  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 7px; }
  .menu-toggle span:nth-child(3) { top: 14px; }

  /* Smaller centered X */
.menu-toggle.active span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

  /* Dropdown */
  .nav-links {
    display: flex;
    position: absolute;
    top: 70px;  /* adjusted for smaller nav */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background: #ffffff;
    border-radius: 28px;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transition: all 0.35s ease;
  }

  .nav-links.active {
    padding: 28px 0;
    max-height: 350px;
    opacity: 1;
  }

  .nav-links a {
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
  }

  .hero-title {
  font-size: 2.2rem; /* We Build */
}

.animated-text-wrapper {
  height: 2rem;
}

.animated-track span {
  height: 2rem;
  font-size: 1.6rem;
}

  .floating { width: 120px; opacity: 0.6; }

  .game-card {
    width: 85%;
    padding: 30px;
  }

  .game-logo { width: 90px; }
}



/* =========================
   FOOTER
========================= */

.site-footer{
background:#000;
padding:80px 20px 40px;
margin-top:120px;
}

.footer-container{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:1.3fr 1fr 1fr;
gap:60px;
color:white;
}

/* LOGO */

.footer-logo{
font-family:'Fredoka One', cursive;
font-size:28px;
margin-bottom:15px;
}

/* TEXT */

.footer-brand p{
opacity:0.75;
line-height:1.6;
}

/* LINKS */

.footer-links h3,
.footer-games h3{
margin-bottom:15px;
}

.footer-links a{
display:block;
color:white;
text-decoration:none;
margin-bottom:10px;
opacity:0.8;
transition:0.3s;
}

.footer-links a:hover{
opacity:1;
color:#00ff9d;
}

/* GAMES GRID */

.footer-games-grid{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.footer-games-grid img{
width:60px;
height:60px;
border-radius:12px;
transition:0.3s;
}

.footer-games-grid img:hover{
transform:scale(1.1);
}

/* BOTTOM */

.footer-bottom{
text-align:center;
margin-top:60px;
opacity:0.6;
font-size:14px;
}

/* MOBILE */

@media(max-width:900px){

.footer-container{
grid-template-columns:1fr;
gap:40px;
text-align:center;
}

.footer-games-grid{
justify-content:center;
}

}