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

body {
  font-family: Orbitron, sans-serif;
  background: #041E42;
  color: white;
}

/* --- HEADER & NAVIGATION --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #5D2E8C;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #FFD700;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: white;
  transition: .3s;
}

nav a:hover {
  color: #40E0D0;
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  height: 500px;
  display: flex;
  align-items: center;
  padding-left: 80px;
  background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p {
  width: 500px;
  font-size: 20px;
  margin-bottom: 30px;
}

button {
  padding: 15px 35px;
  background: #00A86B;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: .3s;
  font-family: inherit;
}

button:hover {
  background: #FFD700;
  color: black;
}

/* --- SEARCH SECTION --- */
.search {
  padding: 40px;
  display: flex;
  justify-content: center;
}

.search input {
  width: 100%;
  max-width: 700px;
  padding: 18px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-family: inherit;
}

/* --- FEATURED GAME SECTION --- */
.featured {
  padding: 40px 60px;
}

.featured h2 {
  font-size: 28px;
  color: #40E0D0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-card {
  display: flex;
  background: #0C2E66;
  border: 2px solid #5D2E8C;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  border-color: #FFD700;
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.featured-card .cover {
  width: 45%;
  min-width: 280px;
  max-height: 280px;
  background: #041E42;
  position: relative;
  overflow: hidden;
}

.featured-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card .info {
  padding: 40px;
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .info .tag {
  font-size: 14px;
  color: #40E0D0;
  margin-bottom: 10px;
  font-weight: 700;
}

.featured-card .info h3 {
  font-size: 32px;
  color: white;
  margin-bottom: 15px;
}

.featured-card .info p {
  color: #D1D5DB;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* --- MAIN GAME GRID --- */
.games {
  padding: 60px;
}

.games h2 {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 25px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.game-card {
  background: #5D2E8C;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.card-image-wrap {
  position: relative;
  width: 100%;
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.dev-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFD700;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dev-card {
  border: 2px dashed #40E0D0;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #041E42;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #40E0D0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #40E0D0, #FFD700);
}

.game-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.game-info h3 {
  font-size: 18px;
  color: #FFF;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-info p {
  color: #FFD700;
  font-size: 13px;
  margin-bottom: 15px;
}

.game-info button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
}

footer {
  padding: 40px;
  text-align: center;
  background: #5D2E8C;
  margin-top: 60px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .logo {
    font-size: 24px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #5D2E8C;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  }

  nav.active {
    max-height: 300px;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    width: 100%;
    font-size: 16px;
  }

  .featured {
    padding: 20px;
  }

  .featured-card {
    flex-direction: column;
  }

  .featured-card .cover,
  .featured-card .info {
    width: 100%;
  }

  .featured-card .cover {
    height: 180px;
  }

  .featured-card .info {
    padding: 25px;
  }

  .games {
    padding: 20px;
  }
}