.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem 2.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.social-icons {
  display: flex !important;
  gap: 0.75rem;
  order: 1;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible;
  padding-right: 0.5rem;
}

.social-icons a {
  outline: none !important;
  text-decoration: none;
}

.social-icons a:focus {
  outline: none !important;
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #666666 !important;
  transition: color 0.3s ease, transform 0.2s ease;
  overflow: visible;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.social-icons a:hover .social-icon {
  color: #000000 !important;
  transform: scale(1.1);
}

.reserved-area {
  display: none;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  order: 2;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  order: 4;
  margin-left: auto;
  transition: transform 0.2s ease;
  outline: none !important;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle:focus {
  outline: none !important;
}

.mobile-menu-toggle:active {
  outline: none !important;
}

.hamburger-line {
  height: 3px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 3px;
}

.hamburger-line:nth-child(1) {
  width: 25px;
}

.hamburger-line:nth-child(2) {
  width: 20px;
}

.hamburger-line:nth-child(3) {
  width: 25px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
  width: 25px !important;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.main-navigation {
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 0;
}

.main-navigation.active {
  max-height: 500px;
  opacity: 1;
}

.nav-menu {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.nav-item {
  border-bottom: 1px solid #f8f8f8;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-align: center;
}

.nav-link:focus {
  outline: none;
}

.nav-link:hover {
  background-color: #f8f8f8;
  color: #000000;
}

.cta-link {
  background-color: transparent;
  color: #333333 !important;
  margin: 0.5rem 1rem;
  border-radius: 0;
  font-weight: 500;
}

.cta-link:hover {
  background-color: transparent !important;
  font-weight: 700;
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .navbar-container {
    padding: 3rem 2rem 2.5rem 2rem;
  }

  .social-icons {
    position: absolute;
    left: 2rem;
    top: 1rem;
    order: initial;
    display: flex !important;
    visibility: visible !important;
    padding-left: 0;
  }

  .logo-container {
    position: static;
    transform: none;
    order: initial;
  }

  .reserved-area {
    position: absolute;
    right: 0;
    order: initial;
  }

  .reserved-link {
    font-size: 0.9rem;
  }

  .logo {
    height: 60px;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-navigation {
    max-height: none;
    border-top: none;
    margin-top: -0.5rem;
    opacity: 1;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .nav-item {
    border-bottom: none;
  }

  .nav-link {
    padding: 0.5rem 0;
    position: relative;
  }

  .nav-link:hover {
    background-color: transparent;
  }

  .nav-link:not(.cta-link):hover {
    font-weight: 700;
    text-decoration: underline;
  }

  .nav-link:not(.cta-link).active {
    font-weight: 700;
    text-decoration: underline;
  }


  .cta-link {
    margin: 0;
    padding: 0.5rem 0;
    background-color: transparent !important;
    border-radius: 0;
  }
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 3.5rem 3rem 3rem 3rem;
  }

  .social-icons {
    gap: 1rem;
    top: 1.25rem;
    left: 3rem;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .logo {
    height: 70px;
  }

  .nav-menu {
    gap: 3rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }
}