:root {
  --color-background: #fff;
  --color-text: #444;
  --color-highlight: #76a9d6;
  --font-size-small: 1.1rem;
  --font-size-medium: 1.2rem;
  --font-size-large: 2.3rem;
  --spacing-small: 0.8rem;
  --spacing-medium: 1.5rem;
  --spacing-large: 2.5rem;
}

.navbar {
  box-shadow: 0px 5px 10px 0px #aaa;
  position: fixed !important;
  width: 100%;
  background: var(--color-background);
  color: #000;
  opacity: 0.85;
  z-index: 100;
  padding: 15px 25px !important;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center !important;
  align-items: center;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: auto;
}

.navbar-container {
  display: flex;
  justify-content: center !important;
  position: relative;
  flex-wrap: nowrap !important;
  align-items: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.menu-items {
  margin-bottom: 0;
  order: 2;
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
}
.menu-items .button {
  margin-left: 50px;
  margin-top: 0;
  width: 150px;
  transition: all 0.3s ease;
  font-size: 17px;
}

.menu-items .items-list {
  list-style: none;
  font-size: var(--font-size-medium);
}

.navbar ul a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul a:hover {
  color: var(--color-highlight);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.link-logo img {
  width: 200px;
  max-width: 200px;
  transition: all 0.3s ease;
}

.link-logo-burger {
  display: none;
}

.navbar input[type=checkbox] {
  display: none;
}

.hamburger-lines {
  display: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .navbar {
    opacity: 0.95;
    padding: 10px 20px !important;
    height: 76px;
  }
  .container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0;
    width: 100%;
    margin-left: 15px;
  }
  .navbar-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    gap: 15px;
  }
  .link-logo {
    order: 2;
    margin: 0;
  }
  .hamburger-lines {
    display: flex;
    height: 28px;
    width: 35px;
    position: relative;
    z-index: 2;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    align-items: center;
    order: 1;
  }
  .hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: #333;
    transition: all 0.3s ease;
  }
  .menu-items {
    order: 3;
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 100px 30px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    transition: left 0.3s ease;
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin-left: auto;
  }
  .menu-items .items-list {
    margin-bottom: 0;
    font-size: var(--font-size-medium);
    font-weight: 500;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .menu-items .items-list a {
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
  }
  .menu-items .items-list a:hover {
    color: var(--color-highlight);
    transform: translateX(10px);
    text-decoration: none;
  }
  .menu-items .button {
    margin: 30px 0 0 0;
    width: 250px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  .menu-items .button:hover {
    background: rgb(78.7471910112, 144.3595505618, 202.2528089888);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  #nav-check:checked ~ .menu-items {
    left: 0;
  }
  #nav-check:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg) translate(8px, 8px);
  }
  #nav-check:checked ~ .hamburger-lines .line2 {
    opacity: 0;
    transform: translateX(-10px);
  }
  #nav-check:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  .link-logo-burger {
    display: none;
    position: fixed;
    top: 20px;
    left: 230px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .link-logo-burger img {
    width: 50px;
    max-width: 50px;
  }
  #nav-check:checked ~ .link-logo-burger {
    display: flex;
    opacity: 0;
    visibility: hidden;
    animation: showBurgerLogo 0.3s ease 0.3s forwards;
  }
  @keyframes showBurgerLogo {
    0% {
      opacity: 0;
      visibility: hidden;
    }
    100% {
      opacity: 1;
      visibility: visible;
    }
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 8px 15px !important;
  }
  .container {
    margin-left: 10px;
  }
  .link-logo img {
    width: 180px;
  }
}
@media (max-width: 500px) {
  .navbar {
    padding: 6px 10px !important;
  }
  .container {
    margin-left: 5px;
  }
  .link-logo img {
    width: 150px;
  }
}