/* =========================================================
   DCODINGX MENU ONLY CSS
   Works with the existing header/menu HTML in whoweare.html
   No page-content, hero, footer, or layout styles included.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

body {
  --menu-blue: #1d76ec;
  --menu-blue-dark: #092a68;
  --menu-blue-deep: #002f87;
  --menu-text: #092a68;
  --menu-border: rgba(159, 199, 249, 0.58);
  --menu-bg: rgba(255, 255, 255, 0.84);
  --menu-bg-solid: #ffffff;
  --menu-shadow: 0 14px 38px rgba(29, 118, 236, 0.12);
  --menu-hover-bg: #eef6ff;
}

header,
header * {
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

/* =========================
   HEADER WRAPPER
========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px clamp(14px, 4vw, 50px);
  background: transparent;
  overflow: visible;
}

.navbar {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  box-shadow: var(--menu-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
}

/* =========================
   LOGO
========================= */

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: 137px;
  max-width: 137px;
  height: auto;
  padding: 4px;
  border-radius: 14px;
}

.logo h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: var(--menu-text);
}

.logo p {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #777777;
}

/* =========================
   DESKTOP MENU
========================= */

.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex: 1 1 auto;
  overflow: visible;
}

.desktop-menu a,
.services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--menu-text);
  -webkit-text-fill-color: var(--menu-text);
  box-shadow: none;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-menu a:hover,
.desktop-menu a:focus,
.services-btn:hover,
.services-btn:focus {
  color: var(--menu-blue);
  -webkit-text-fill-color: var(--menu-blue);
  outline: none;
}

/* =========================
   SERVICES DROPDOWN
========================= */

.services-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.services-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.services-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 9999;
  width: 320px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--menu-border);
  box-shadow: 0 16px 42px rgba(9, 42, 104, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.services-dropdown:hover .services-menu,
.services-dropdown:focus-within .services-menu,
.services-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.services-menu a {
  display: block;
  min-height: auto;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--menu-text);
  -webkit-text-fill-color: var(--menu-text);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.services-menu a:hover,
.services-menu a:focus {
  padding-left: 18px;
  background: var(--menu-hover-bg);
  color: var(--menu-blue);
  -webkit-text-fill-color: var(--menu-blue);
  outline: none;
}

/* =========================
   RIGHT AREA / LANGUAGE
========================= */

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
  margin-left: 28px;
  overflow: visible;
  background: transparent;
}

.language {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  height: 44px;
  overflow: visible;
  background: transparent;
}

.language::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  min-width: 128px;
  height: 44px;
  padding: 0 14px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--menu-blue-deep);
  background: var(--menu-blue-deep);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.language-btn:hover,
.language-btn:focus {
  background: #0047c2;
  border-color: #0047c2;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  outline: none;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 9999;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--menu-bg-solid);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.language:hover .dropdown,
.language:focus-within .dropdown,
.language.is-open .dropdown,
.dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language.lang-closed .dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
}

.dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--menu-text);
  -webkit-text-fill-color: var(--menu-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.dropdown button:hover,
.dropdown button.active-lang {
  background: rgba(0, 95, 232, 0.08);
  color: var(--menu-blue);
  -webkit-text-fill-color: var(--menu-blue);
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 26px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: #2b2b2b;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  display: none;
  width: calc(100vw - 28px);
  max-width: 430px;
  max-height: calc(100vh - 110px);
  margin: 12px auto 0;
  padding: 20px 22px;
  position: relative;
  z-index: 100000;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 222, 211, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-nav,
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  position: static;
  background: transparent;
}

 #mobileMenu a,
 #mobileMenu button,
 #mobileMenu .mobile-services-title {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #2b2b2b;
  -webkit-text-fill-color: #2b2b2b;
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}

#mobileMenu a:hover,
#mobileMenu button:hover {
  color: var(--menu-blue);
  -webkit-text-fill-color: var(--menu-blue);
}

#mobileMenu .mobile-services {
  display: block;
}

#mobileMenu .mobile-services-title {
  padding-top: 12px;
  color: var(--menu-blue);
  -webkit-text-fill-color: var(--menu-blue);
  font-weight: 800;
}

#mobileMenu .mobile-services a {
  display: none;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 500;
}

#mobileMenu .mobile-services.active a {
  display: block;
}

#mobileMenu hr {
  width: 100%;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid #e5ded3;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .desktop-menu {
    gap: 22px;
  }

  .desktop-menu a,
  .services-btn {
    font-size: 14px;
  }

  .nav-right {
    margin-left: 18px;
  }

  .services-menu {
    left: 50%;
    transform: translate(-50%, 12px) scale(0.98);
  }

  .services-dropdown:hover .services-menu,
  .services-dropdown:focus-within .services-menu,
  .services-menu:hover {
    transform: translate(-50%, 0) scale(1);
  }
}

@media (max-width: 992px) {
   header {
    height: auto;
    padding: 14px;
    z-index: 99999;
    overflow: visible;
  }

  .navbar {
    padding: 14px 18px;
    border-radius: 26px;
    position: relative;
    z-index: 100001;
  }

  .desktop-menu,
  .language {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 105px;
    max-width: 105px;
    padding: 2px;
  }
}

@media (max-width: 480px) {
   header {
    padding: 14px 12px;
  }

  .navbar {
    padding: 14px 16px;
  }
}
