.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* z-index: 999; */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  z-index: 12;
  /* background-color: var(--header-bg-color); */ 
}


.header-flex {
  /* background-color: white; */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  display: flex;
  position: sticky;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  /* background-color: var(--header-bg-color); */
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1rem;
}

.logo-line1 {
  color: var(--logoline1-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-line2 {
  color: var(--logoline2-color);
  font-weight: 600;
  font-size: 1.2rem;
}

.menu-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

.theme-toggle {
  font-size: 20px;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

nav#main-nav {
  position: absolute;
  top: 60px;
  right: 1rem;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  width: max-content;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}


nav#main-nav.hidden {
  display: none;
}

nav a {
  font-size: 16px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--link-color);
  font-weight: 500;
}

nav a:hover {
  color: var(--link-hover-color);
}
.header.scrolled {
  background-color: var(--header-bg-color, #0c2b40); /* sau orice altă culoare */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hide-on-scroll {
  display: none !important;
}

.theme-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 0.5rem;
}
.theme-buttons button {
  background: none;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  font-size: 12px;
  color: var(--primary-color);
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }

  nav#main-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 0rem;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .menu-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

