
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
   color: #fff; 
  width: 100%; 
  padding: 0.9rem 8rem; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  /* Allows containment  of absolute positioned children. */
  position: relative;
}

.nav-container {
  padding: 0.2rem 0.5rem; 
  border-radius: 4px; 
}

/* Menu styles */
.navbar__menu {
list-style: none;
display: flex;
justify-content: flex-end;
align-items: center;
margin: 0;
padding: 0;
gap: 1rem;
flex-grow: 1; 
}

.navbar__toggle {
  display: none; 
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
}



/* Menu items */
.navbar__item, hero__item {
  display: inline-block;
  font-weight: lighter;
  color: var(--primary-h1);
  }


.navbar__link {
    color: var(--primary-h1);
    text-decoration: none;
    padding: 0.1rem .3rem;
    transition: all 0.3s ease;
    font-family: monospace;
    font-size: 1rem;
}

.navbar__link:hover {
  border-bottom: 2px solid var(--primary-text);
  /* transition: border-bottom 0.1s; */

}

/* Logo */
.navbar__brand {
  max-height: 40px; 
  height: auto;
  width: auto;
  display: block; 
}









.placeholder .brace {
    color: var(--placeholder-brace); 
  }

.placeholder .currency .navbar__link--about {
    color: var(--placeholder-currency);
  }


  .placeholder .navbar__link--home{
    color: var(--placeholder-navbar--home); 
  }

  .placeholder .args{
    color: var(--placeholder-args);
  }


.initials {
  color:var(--placeholder-initials);
}





/* Navbar Mobile styles */
@media (max-width: 768px) {
  .navbar {
    /* Reduce padding */
    padding: 0.9rem 2rem; 
  }

  .navbar__toggle {
    display: block;
    z-index: 1001;
  }


  .navbar__menu {
      display: none; /* Initially hidden */
      flex-direction: column; /* Vertical layout for mobile */
      position: absolute;
      top: 100%; /* Below the navbar */
      left: 0;
      width: 100%;
      padding: 1rem 0;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1000;
    }
  
    .navbar__menu--open {
      display: flex; /* Show menu when toggled */
      animation: slideDown 0.3s ease-in-out;

    }
  
  .navbar__menu--open {
    /* Show menu when toggled */
    display: flex; 
    animation: slideDown 0.3s ease-in-out;
    background-color:rgba(40, 44, 52, 0.9)


  }

  .navbar__item {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }


  .navbar__icon {    
      font-size: 22px;
       }

    header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
  }

  /* Hide logo on mobile */
  @media (max-width: 450px) {
    .navbar__brand {
      display: none;
    }
    .navbar {
      display: flex; 
      justify-content: end;
      padding: 0.9rem 2rem;
    }
  }
