/* Navigation Styles */
.pagination ul, .nav ul {
  text-align: center;
}

.pagination ul li, .nav li {
  display: inline;
  padding-right: 15px;
  background: none;
  border: 0;
}

/* Main Navigation Container */
nav {
  height: auto;
  border-bottom: 1px solid #e5e7eb;
}

.dark nav {
  border-bottom-color: #374151;
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  list-style: none;
  width: 50%;
  height: 100%;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
}

.nav-links li a {
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.dark .nav-links li a {
  color: #d1d5db;
}

.nav-links li a:hover {
  color: #2563eb;
}

.dark .nav-links li a:hover {
  color: #60a5fa;
}

/* Landing section (legacy) */
.landing {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing h1 {
  margin: 100px;
  font-size: 50px;
  color: #ae5fce;
}

/* Hamburger Menu */
.line {
  width: 24px;
  height: 2px;
  background: #374151;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.dark .line {
  background: #d1d5db;
}

nav .hamburger {
  position: relative;
  cursor: pointer;
  z-index: 2;
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

nav .hamburger:hover {
  background-color: #f3f4f6;
}

.dark nav .hamburger:hover {
  background-color: #374151;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  nav .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: auto;
    max-height: 0;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    pointer-events: none;
    padding: 0 1rem;
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .dark .nav-links {
    background: rgba(17, 24, 39, 0.98);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1rem;
    pointer-events: all;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
  }

  .dark .nav-links li {
    border-bottom-color: #374151;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    font-size: 1.125rem;
    display: block;
    width: 100%;
  }

  /* Staggered fade-in animation */
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.5s; }

  .landing {
    flex-direction: column;
  }
}

/* Hamburger animation when open */
.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
