*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #fdfdfd;
  color: #333;
  overflow-x: hidden;
}

.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #007bff;
  white-space: nowrap;
}

.logo img {
  height: 50px;
  width: auto;
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding-left: 0;
  margin: 0;
}

.nav li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: #007bff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #333;
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: url('background.jpg') center center / cover no-repeat;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  z-index: 1;
  padding: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.typewriter {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero-content p:nth-of-type(2) {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #0056b3, #00aaff);
}

.btn.small {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
}

.games, .news {
  padding: 4rem 2rem;
  text-align: center;
}
.games {
  background: #f2f2f2;
}
.news {
  background: #fff;
}

.games h2, .news h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #007bff;
}

.game-cards, .news-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.game-card, .news-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 300px;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}
.news-card {
  background: #f9f9f9;
}

.game-card:hover, .news-card:hover {
  transform: translateY(-5px);
}

.game-card img, .news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card h3, .news-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 1rem;
    color: #333;
}
.game-card p, .news-card p {
    margin: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}
.game-card .btn, .news-card .btn {
    margin: 0 1rem;
}


.footer {
  padding: 2rem 1rem;
  background: #222;
  color: #fff;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}

.footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-icons a {
  color: #00d4ff;
  margin: 0 0.75rem;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #fff;
}

#musicToggle {
    margin-top: 1rem;
}

@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1rem;
  }
  .logo span {
    font-size: 1.3rem;
  }
  .logo img {
    height: 40px;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 100;
    padding: 0.5rem 0;
  }

  .nav ul.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav ul li {
    text-align: left;
    width: 100%;
  }
  .nav ul li a {
    display: block;
    padding: 0.8rem 1.5rem;
    white-space: normal;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .typewriter, .hero-content p:nth-of-type(2) {
    font-size: 1.2rem;
  }
  .hero-buttons .btn {
      padding: 0.7rem 1.2rem;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
    .games h2, .news h2 {
        font-size: 2rem;
    }
    .game-card, .news-card {
        width: 100%;
    }
}