/* Nagłówek */
header {
  padding: 0 2rem;

  background-color: #004e98; /* lekko przezroczyste tło */
  z-index: 1000;
  width: 100%;
  height: 100px;
  display: flex;

  /*hero*/
  /* position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease; */
}
.navbar-logo {
  width: 300px;
}

/* header.show {
  opacity: 1;
} */

header li {
  list-style: none;
  position: relative;
  /* padding: 1rem; */
  cursor: pointer;
}

header li::after {
  content: "";
  position: absolute;
  background-color: #ff6700;
  height: 3px;
  width: 0;
  left: 1rem;
  bottom: -0.1em;
  transition: all 0.3s ease;
}

header li:hover::after {
  width: calc(100% - 2rem);
}

header a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 1rem;
}

nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav navbar-logo a {
  font-size: 1.5rem;
  font-weight: bold;
}

nav .navbar-links {
  display: flex;
  /* gap: 2rem; */
}

nav .toggle_btn {
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.action_btn {
  background-color: #ff6700;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.action_btn:hover {
  transform: scale(1.05);
  color: white;
}

.action_btn:active {
  scale: 0.95;
}

.dropdown_menu {
  z-index: 999;
  display: none;
  position: absolute;
  right: 2rem;
  top: 90px;
  height: 0;
  width: 300px;
  background-color: rgba(22, 80, 155, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
  height: 310px;
}

.dropdown_menu a {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown_menu .action_btn {
  width: auto;
  display: flex;
  justify-content: center;
  margin: 0.7rem;
}

@media (max-width: 1070px) {
  nav .navbar-links,
  nav .action_btn {
    display: none;
  }

  nav .toggle_btn {
    display: block;
  }

  .dropdown_menu {
    display: block;
  }
  header a {
    padding: 0;
  }
  header li:hover::after {
    width: 0;
  }
  header li:not(:last-child):hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.2s ease-in-out;
  }
}

@media (max-width: 500px) {
  .dropdown_menu {
    left: 1rem;
    right: 1rem;
    width: unset;
  }
}

/* @media (max-width: 1100px) {
  header {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 15em;
    z-index: 10000;
    background-color: #1c66c5; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;

  }*/

/* Nagłówek */
/* header {
  
  z-index: 1000;
  width: 100%;
  display: flex;

  
  /*hero
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

header.show {
  opacity: 1;
} */
