html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  z-index: 20;
}

.nav-left, .nav-right {
  display: flex;
  gap: 1.2rem;
}
@media (max-width: 1000px) {
  .lang-dropdown {
    display: flex;
    align-items: center;
  }

  .lang-dropdown > .nav-link {
    padding: 0;       /* match Contact link */
    margin: 0;        /* reset spacing */
    line-height: 1;   /* keep consistent */
  }
}

@media (max-width: 480px) {
  .lang-dropdown > .nav-link {
    font-size: 0.6rem; /* match other nav-links on very small screens */
  }
}

.nav-link {
  font-family: 'ZCOOL XiaoWei', serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}


.nav-link:hover {
        color: #c8a951;
  opacity: 1;
}

nav .logomain {
  width: 7vw; /* responsive width */
  max-width: 4rem; /* limit max size */
  min-width: 2.7rem;   /* prevent shrinking too small */
  object-fit: contain;
  position: absolute;
  left: 50%;
    z-index: 100;
    padding-bottom:1px;
  transform: translateX(-50%);
}



@media (max-width: 1000px) {
nav {
  width: calc(100% - 4rem);
  padding: 0.5rem 0.3rem; /* less top/bottom padding */
  justify-content: space-around;
}


  nav .logomain {
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    margin: 0 0.2rem; /* Add some margin around logo */
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .nav-left, .nav-right {
    gap: 0.5rem; /* Reduce gap further */
    flex: 1; /* Allow sides to grow */
    justify-content: center; /* Center links */
  }


}
@media (max-width: 480px) {
  nav {
    width: calc(100% - 2rem); /* Less padding on very small screens */
  }

  .nav-link {
    font-size: 0.6rem; /* Even smaller font */
  }
}
.lang-dropdown {
  position: relative;
  display: flex;       /* makes it behave like a nav-link */
  align-items: center; /* keeps vertical alignment consistent */
}


.lang-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.3rem;
  display: none;
  flex-direction: column;
  min-width: 6rem;
  z-index: 50;
}

.lang-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-link {
  display: flex;
  align-items: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
  background: rgba(200, 169, 81, 0.2);
  color: #c8a951;
}

.dropdown-link img.flag {
  width: 1.2rem;
  height: auto;
  margin-right: 0.5rem;
  border-radius: 2px;
  object-fit: cover;
}
.flag {
  display: inline-block;
  width: 1.2rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  background-size: cover;
  vertical-align: middle;
  border-radius: 2px;
}
