/* Navigation Styles */
header {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  background: none;
}

.nav-links li {
  margin: 0;
  background: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 25px;
  transition: all 0.4s ease;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  
  /* Glassmorphism effect without backdrop blur */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  
  /* Ensure proper sizing and prevent text wrapping */
  display: inline-block;
  white-space: nowrap;
  box-sizing: border-box;
  min-width: 90px;
}

.nav-links a:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
  border: 1px solid rgba(0, 255, 255, 0.5);
  text-shadow: 0 0 15px #0ff, 0 0 25px #0ff;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.05);
}

.nav-links a.active {
  transform: scale(1.02);
}

/* Home button active state - cyan */
.nav-links a.active[href="."],
.nav-links a.active[href="../"] {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 255, 255, 0.15));
  border: 1px solid rgba(0, 255, 255, 0.6);
  text-shadow: 0 0 12px #0ff, 0 0 22px #0ff;
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

/* About button active state - dark purple */
.nav-links a.active[href="about"] {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(75, 0, 130, 0.15));
  border: 1px solid rgba(138, 43, 226, 0.6);
  text-shadow: 0 0 12px #8a2be2, 0 0 22px #8a2be2;
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* Tic Tac Toe button active state - neon green */
.nav-links a.active[href="tic-tac-toe.html"],
.nav-links a.active[href="/tic-tac-toe.html"],
.nav-links a.active[href="../tic-tac-toe.html"] {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 200, 0, 0.15));
  border: 1px solid rgba(0, 255, 0, 0.6);
  text-shadow: 0 0 12px #00ff00, 0 0 22px #00ff00;
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
  animation: pulse-green 2s infinite;
}

/* Tic Tac Toe button hover effect - neon green */
.nav-links a[href="tic-tac-toe.html"]:hover,
.nav-links a[href="/tic-tac-toe.html"]:hover,
.nav-links a[href="../tic-tac-toe.html"]:hover {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.1));
  border: 1px solid rgba(0, 255, 0, 0.5);
  text-shadow: 0 0 15px #00ff00, 0 0 25px #00ff00;
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
  transform: translateY(-3px) scale(1.05);
}

/* Pulse animation for Tic Tac Toe button */
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.3);
  }
}

/* Mobile styles for navigation */
@media (max-width: 768px) {
  header {
    bottom: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
  
  .nav-links a:hover {
    transform: translateY(-2px) scale(1.02);
  }
}
