header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  transition: var(--transition);
}

header.scrolled {
  padding: 15px 0;
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 5px 30px rgba(0, 168, 255, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  margin-left: -1%;
}

.logo img {
  transition: transform 0.8s ease, color 0.8s ease;
  margin: 0 -10px 4px 0px;
}

.logo:hover img {
  transform: rotate(360deg) scale(1.2);
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
  position: relative;
}

.logo span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.logo:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-right: -8%;
}

.nav-links a:not(.cta-button) {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links > a:not(.cta-button)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:not(.cta-button):hover {
  color: var(--primary);
}

.nav-links > a:not(.cta-button):hover::before {
  width: 100%;
}

.nav-links .cta-button {
  padding: 7px 27px;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-dropdown .dropdown-toggle svg {
  transition: transform 0.25s cubic-bezier(0.42, 0, 0.2, 1.38);
}

.nav-dropdown:focus-within .dropdown-toggle,
.nav-dropdown:hover .dropdown-toggle {
  color: var(--primary);
}

.nav-dropdown:focus-within .dropdown-toggle svg,
.nav-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 14, 23, 0.97);
  border: 1px solid var(--primary);
  border-radius: 16px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.3, 1.4, 0.5, 1),
    transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
  z-index: 100;
}

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

.nav-dropdown .dropdown-menu li {
  list-style: none;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 14px 28px;
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
  border-radius: 8px;
  position: relative;
  padding-left: 38px;
}

.nav-dropdown .dropdown-menu a:hover,
.nav-dropdown .dropdown-menu a:focus {
  background: var(--primary);
  color: var(--dark);
  outline: none;
}

.nav-dropdown .dropdown-menu a:hover::before,
.nav-dropdown .dropdown-menu a:focus::before {
  background: var(--dark);
  opacity: 1;
}

.nav-dropdown .dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--primary, #00f0ff);
  border-radius: 50%;
  opacity: 0.7;
  transition: background 0.15s;
}

.cta-button {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: var(--dark);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
  text-decoration: none;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.6);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button.plan-cta {
  white-space: nowrap;
  overflow-x: auto;
  text-align: center;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  margin-left: 2%;
}

.language-switcher-mobile {
  margin-top: 6px;
}

@media (max-width: 1348px) {
  .nav-links {
    gap: 23px;
    margin-right: -1%;
  }

  .language-switcher-mobile {
    margin-top: 1px;
  }

  .logo {
    font-size: 26px;
  }

  .nav-links .cta-button {
    padding: 7px 20px;
  }
}

@media (max-width: 1024px) {
  .nav-dropdown {
    position: relative;
    width: 100%;
  }

  .nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    background: #10131b;
    border-radius: 0 0 12px 12px;
    min-width: 210px;
    width: 93vw;
    margin: 0 auto;
    box-shadow: 0 4px 24px 0 rgba(0, 240, 255, 0.1);
    padding: 7px 0 7px 0;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block !important;
    animation: dropdownSlideDown 0.17s cubic-bezier(0.42, 0, 0.2, 1.38);
  }

  .nav-dropdown .dropdown-menu li {
    list-style: none;
  }

  .nav-dropdown .dropdown-menu a {
    padding: 12px 24px;
    border-radius: 8px;
    width: 100%;
    display: block;
    text-align: left;
    font-size: 1rem;
    color: var(--light);
    transition: background 0.14s, color 0.14s;
    font-weight: 400;
    background: transparent;
    position: relative;
  }

  .nav-dropdown .dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 20px;
    width: 4px;
    height: 4px;
    background: var(--primary, #00f0ff);
    border-radius: 50%;
    opacity: 0.37;
    display: inline-block;
  }

  .nav-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: var(--light) !important;
    padding-left: 20px !important;
  }

  .nav-dropdown {
    text-align: center;
  }

  .nav-dropdown .dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .nav-dropdown.open .dropdown-toggle {
    border-bottom: 2px solid var(--primary, #00f0ff);
    display: inline-block;
    width: auto;
    color: var(--primary, #00f0ff) !important;
  }

  .nav-dropdown .dropdown-toggle .dropdown-arrow {
    transition: transform 0.22s cubic-bezier(0.4, 1, 0.6, 1);
    transform: rotate(0deg) !important;
  }

  .nav-dropdown.open .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg) !important;
  }

  @keyframes dropdownSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media screen and (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .logo {
    font-size: 25px;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links .language-switcher {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .language-switcher-mobile {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
  }

  .lang-options a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 600;
  }

  .lang-options a:hover {
    color: #00f0ff;
  }

  .lang-divider {
    width: 40%;
    margin: 1.5rem auto 0.8rem;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .cta-button.plan-cta {
    padding: 10px 15px;
  }
}
@media (max-width: 360px) {
  .logo {
    font-size: 20px !important;
  }
}
@media (max-width: 576px) {
  .logo {
    font-size: 22px;
    margin-left: -5%;
  }
}

@media (min-width: 1024px) {
  .lang-divider {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-3d-container #webzone-3d {
    width: 160% !important;
    height: 160% !important;
  }
  .logo {
    font-size: 20px !important;
  }
  .nav-links a {
    font-size: 15px !important;
  }
}