/* Enhanced Header Styling */
.header {
  position: sticky;
  top: 0;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--gray-200);
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 4.5rem;
  width: auto;
}

.nav {
  display: none;
}

.nav-link {
  position: relative;
  margin-left: 2rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-phone {
  margin-left: 2rem;
  padding: 0.5rem 1rem;
  background-color: #d1d5db;
  color: #d1d5db;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-phone:hover {
  background-color: var(--gray-800);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 60;
}

.menu-icon {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gray-800);
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--gray-800);
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.mobile-menu-btn.active .menu-icon {
  background-color: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.active .menu-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-color);
  background-color: var(--gray-50);
  padding-left: 0.5rem;
  text-decoration: none;
}

.mobile-phone {
  background-color: var(--gray-100);
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-top: 0.5rem;
  border-radius: 4px;
  padding: 1rem !important;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
  }

  .mobile-menu-btn {
    display: none;
  }
}
