/* Base Layout Styles */
.navbar {
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  background-color: #141A1F;
  padding: 1.2rem 10%;
  color: white;
  z-index: 3;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #72CCF3;
}

.nav-links a:active {
  color: #1088BC;
}

.hamburger {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

/* Hide toggle checkbox and hamburger icon on desktop */
.menu-toggle, .hamburger {
  display: none;
}

.logo-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo-container span {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo {
  height: 1rem;
}

@media screen and (max-width: 660px) {
  .navbar {
    padding: 1.2rem 5%;
  }
}

/* Mobile Breakpoint Configuration */
@media screen and (max-width: 560px) {
  /* Display the hamburger trigger icon */
  .hamburger {
    display: flex;
    font-size: 24px;
    cursor: pointer;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Position the collapsible menu block */
  .nav-links {
    display: none; /* Hide by default */
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
  }


  /* The Collapse Hack Engine */
  /* When the checkbox is checked, select the adjacent sibling nav-links element */
  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}
