/* Mobile Navigation Styles */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1003; /* Higher than sidebar to ensure it's clickable */
  position: relative;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav__links {
    display: none; /* Hide the top navigation links on mobile */
  }
  
  .nav__link {
    margin: 10px 0;
    display: block; /* Ensure links are displayed as blocks */
  }
  
  .nav__buttons {
    display: none; /* Hide the top navigation buttons on mobile */
  }
  
  /* Only show sidebar when toggled active */
  .sidebar {
    display: block;
    transform: translateX(100%); /* Use transform instead of right positioning */
  }
  
  .sidebar.active {
    transform: translateX(0);
    display: block;
  }
  
  .hero__content {
    text-align: center;
    margin: 0 auto;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__logo {
    justify-content: center;
    margin: 0 auto;
  }
}