.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 100px;
  background-color: var(--primary-color);
  color: #ffffff;
  transition: padding 0.3s ease;
}

.header-icon {
  width: 20px;
  object-fit: cover;
}

.top-nav-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-nav-contact-dtls {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-social {
  display: flex;
  gap: 15px;
}

.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  padding: 5px 100px;
  background-color: #f5fff6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo-section .logo {
  width: 80px;
  object-fit: cover;
  margin: 0;
}

.navbar .logo-section .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  cursor: pointer;
}

.navbar .nav-links li a {
  font-size: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: 0.2s ease;
}

.navbar .nav-links li a.active {
  color: var(--primary-color);
  position: relative;
  opacity: 1;
}

.navbar .nav-links li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--primary-color);

  padding: 5px 40px;
  border-radius: 8px;
}

.nav-btn-dtls {
  color: var(--primary-color);
  margin: 0;
}

.phone-call-icon-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  left: 0;
  transition: 0.3s;
}
.navbar .nav-links li a:hover {
  opacity: 0.5;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 9px;
}
.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* drop-down */
.navbar .nav-links li.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1100;
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.navbar .nav-links li.dropdown > a img {
  width: 10px;
  height: 10px;
}

.dropdown-menu li a:hover {
  background-color: #f5fff6;
  opacity: 1 !important;
}

.navbar .nav-links li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown:hover img {
  transform: rotate(180deg);
}

@media (max-width: 1200px) {
  .nav-links li a {
    font-size: 0.85rem;
  }
}
@media (max-width: 992px) {
  .top-nav {
    padding: 8px 25px;
  }

  .top-nav-contact {
    gap: 20px;
  }

  .navbar {
    padding: 10px 25px;
  }

  .nav-links li a {
    font-size: 0.65rem;
  }

  .nav-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    text-align: center;
  }

  .top-nav-contact {
    flex-direction: column;
  }

  .top-social {
    justify-content: center;
    width: 100%;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar {
    padding: 10px 25px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background-color: #ffffff;
    position: absolute;
    top: 54px;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition:
      height 0.4s ease,
      opacity 0.3s ease;
  }

  .nav-links.show {
    height: auto;
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
    padding: 40px 0 20px 0;
    overflow-y: auto;
  }

  .hamburger {
    display: block;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    font-size: 1rem;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    box-shadow: none;
    background-color: #f5fff6;
    border-radius: 8px;
    width: 100%;
    padding: 8px 0;
    margin-top: 8px;
    text-align: center;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-menu li a {
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem !important;
  }

  .navbar .nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .navbar .nav-links li.dropdown:hover .dropdown-menu.open {
    display: block;
  }
}
