/* Header - Desktop: Logo left, Links+Dark mode right */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #2b2d42;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
}

.nav-container {
  grid-column: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo img {
  width: 131px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  grid-column: 2;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.nav-links li {
  margin: 0;
  flex-shrink: 0;
}

.nav-links a {
  color: #edf2f4;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
  display: none;
}

.dark-mode-toggle {
  cursor: pointer;
  font-size: 24px;
  color: #edf2f4;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  background-color: transparent;
  border: none;
  outline: none;
  grid-column: 3;
}

.dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
}

.dark-mode-toggle i {
  display: block;
  line-height: 1;
}

.dark-mode-toggle .bxs-moon {
  display: none;
}

.dark .dark-mode-toggle .bxs-sun {
  display: none;
}

.dark .dark-mode-toggle .bxs-moon {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #edf2f4;
  position: relative;
  transition: all 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: #edf2f4;
  position: absolute;
  transition: all 0.3s;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-toggle.open .menu-icon {
  background-color: transparent;
}

.menu-toggle.open .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.open .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Footer */
.site-footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid #374151;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #374151;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: inline-block;
}

.footer-nav a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-description {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #9ca3af;
  max-width: 800px;
  margin: 0 auto;
}

.footer-description strong {
  color: #f9fafb;
}

.footer-description a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-description a:hover {
  text-decoration: underline;
}

/* Mobile: Logo center, hamburger left */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    position: relative;
  }

  .nav-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-logo img {
    width: 120px;
  }

  .dark-mode-toggle {
    width: 44px;
    height: 44px;
    display: flex !important;
    position: relative;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2b2d42;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 17px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-description {
    text-align: left;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    width: 110px;
  }
}
