/* Universal Header & Navigation Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: "Minecraftia", "Press Start 2P", cursive;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #ff5252, #ffb142);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0px #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff5252;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ff5252;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Elements */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 200;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: right 0.4s ease;
  z-index: 150;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 800;
  font-family: "Minecraftia", sans-serif;
  letter-spacing: 2px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: "Outfit", sans-serif !important; /* Use clean font for the X */
  font-size: 4rem !important;
  font-weight: 300 !important;
  cursor: pointer;
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #ff5252 !important;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Footer Styles */
footer {
  padding: 40px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
