/* New Design Navigation Styles */

.nd-header {
  background: #040507;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0 max(20px, calc((100vw - 1256px) / 2));
  z-index: 1000;
}

.nd-header > * {
  flex: 1;
}

/* Logo Styles */
.nd-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.nd-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.nd-logo-link:hover {
  transform: translateY(-1px);
}

.nd-logo-link:hover .nd-logo-icon svg {
  transform: scale(1.05);
}

.nd-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.nd-nav-item {
  position: relative;
}

.nd-nav-item > a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 8px 0;
  position: relative;
}

.nd-nav-item > a:hover {
  color: var(--nd-primary-color);
}

/* Navigation Dropdown Styles */
.nd-nav-item-dropdown > a svg {
  transition: transform 0.2s ease;
}

.nd-nav-item-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.nd-dropdown {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a2332 0%, #0f1621 100%);
  border-radius: 16px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: calc(100% - 200px);
  max-width: 1240px;
}

.nd-dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.nd-nav-item-dropdown:hover .nd-dropdown {
  opacity: 1;
  visibility: visible;
}

.nd-dropdown-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
}

.nd-dropdown-content > .nd-dropdown-section {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.nd-dropdown-large .nd-dropdown-content {
  justify-content: space-between;
  padding: 0;
}

.nd-dropdown-left,
.nd-dropdown-middle {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
}

.nd-dropdown-left-container,
.nd-dropdown-right {
  flex: 1;
}

.nd-dropdown-left-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.nd-dropdown-left {
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.nd-dropdown-middle {
  flex: 1;
  min-width: 512px;
}

.nd-dropdown-right {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  align-self: stretch;
}

.nd-dropdown-right > div {
  flex: 1 1 0;
  width: 100%;
}

.nd-dropdown-right > *:first-child {
  background: linear-gradient(to bottom, #5F87B2 0%, #D9E3EC 100%);
}

.nd-dropdown-right > *:last-child {
  background: linear-gradient(to top, #5F87B2 0%, #D9E3EC 100%);
}

.nd-dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nd-dropdown-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #8E97AB;
  margin-bottom: 12px;
  line-height: 18px;
}

.nd-dropdown-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: block;
}

.nd-dropdown-link:hover {
  color: #30C5FF;
  transform: translateX(4px);
}

.nd-dropdown-link-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
}

.nd-dropdown-link-with-icon:hover {
  color: #30C5FF;
  background: linear-gradient(to right, #AAC0D61C 11%, #5964701A 100%);
}

.nd-dropdown-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CADDEF;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nd-dropdown-icon-light {
  background: #CADDEF;
}

.nd-industries-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  min-width: 512px;
  min-height: 476px;
}

.nd-industries-image-card {
  flex: 1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-image: url('nav_bg_1437253929.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  align-self: stretch;
}

.nd-industries-image-card-overlay {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nd-dropdown-card {
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.nd-dropdown-card:hover {
  border-color: rgba(0, 168, 232, 0.3);
  transform: translateY(-2px);
}

.nd-dropdown-card-dark {
  background: rgba(255, 255, 255, 0.08);
}

.nd-dropdown-card-light {
  background: linear-gradient(to right, #FFFFFF0F 6%, #FFFFFF1A 100%);
}

.nd-dropdown-card-gradient {
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.8) 0%, rgba(0, 138, 191, 0.9) 100%);
  border-color: rgba(0, 168, 232, 0.4);
}

.nd-dropdown-card-community {
  background: linear-gradient(135deg, rgba(95, 135, 178, 0.3) 0%, rgba(75, 115, 158, 0.3) 100%);
}

.nd-dropdown-card-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
}

.nd-dropdown-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 24px;
}

.nd-dropdown-card-description {
  font-size: 16px;
  font-weight: 500;
  color: #8E97AB;
  margin: 0;
  line-height: 20px;
}

.nd-dropdown-right {
  .nd-dropdown-card-title:last-child {
    color: #131927;
  }
  .nd-dropdown-card-description {
    color: #ffffff;
  }
}

.nd-dropdown-card-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  line-height: 24px;
}

.nd-dropdown-card-btn-white {
  background: #FFFFFF;
  color: #131927;
  padding: 16px 0;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  font-weight: 700;
  margin-top: auto;
}

.nd-dropdown-card-btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Header Actions */
.nd-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Search Icon */
.nd-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.nd-action-icon:hover {
  background: rgba(0, 168, 232, 0.08);
  color: #30C5FF;
}

/* Language Selector */
.nd-language-selector {
  position: relative;
  cursor: pointer;
}

.nd-language-current {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nd-language-current:hover {
  background: rgba(0, 168, 232, 0.08);
  border-color: rgba(0, 168, 232, 0.15);
  color: #30C5FF;
}

.nd-language-dropdown {
  z-index: 100;
  position: absolute;
  top: calc(100% + 8px);
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.nd-language-selector:hover .nd-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nd-language-dropdown a {
  display: block;
  padding: 12px 18px;
  color: #030406;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nd-language-dropdown a:hover {
  background: rgba(0, 168, 232, 0.08);
  border-left-color: #30C5FF;
  color: #30C5FF;
  padding-left: 22px;
}

.nd-language-dropdown a.active {
  background: rgba(0, 168, 232, 0.05);
  color: #30C5FF;
}

/* Book a Demo Button */
.nd-btn-demo {
  background: #FFFFFF;
  color: #030406;
  border: none;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 168, 232, 0.2);
  white-space: nowrap;
}

.nd-btn-demo:hover {
  background: #e0dede;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.nd-btn-demo:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
#nd-mobile-menu-checkbox {
  display: none;
}

.nd-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: #FFFFFF;
  border: none;
  border-radius: 8px;
  z-index: 10000;
  width: 48px;
  height: 48px;
}

.nd-mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: #131927;
  transition: all 0.3s ease;
  border-radius: 1px;
  display: block;
}

#nd-mobile-menu-checkbox:checked ~ .nd-header .nd-mobile-menu-toggle span {
  background: #131927;
}

#nd-mobile-menu-checkbox:checked ~ .nd-header .nd-mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nd-mobile-menu-checkbox:checked ~ .nd-header .nd-mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#nd-mobile-menu-checkbox:checked ~ .nd-header .nd-mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.nd-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 10000;
  overflow-y: auto;
  flex-direction: column;
}

#nd-mobile-menu-checkbox:checked ~ .nd-mobile-nav {
  display: flex;
}

.nd-mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nd-mobile-logo img {
  height: 48px;
  width: auto;
}

.nd-mobile-close {
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.nd-mobile-close:hover {
  color: #30C5FF;
}

.nd-mobile-nav-content {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nd-mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nd-mobile-nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 24px;
  font-weight: 400;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nd-mobile-nav-link:hover {
  color: #30C5FF;
}

.nd-mobile-nav-item > a.nd-mobile-nav-link {
  display: flex;
}

.nd-mobile-dropdown-arrow {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.nd-mobile-nav-item-dropdown.active .nd-mobile-dropdown-arrow {
  transform: rotate(0deg);
}

.nd-mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #131927;
  border-radius: 24px;
  padding: 0 12px;
}

.nd-mobile-nav-item-dropdown.active .nd-mobile-dropdown {
  max-height: 2000px;
  padding: 16px 12px;
}

.nd-mobile-dropdown-section {
  padding: 24px 12px;
}

.nd-mobile-dropdown-section-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.nd-mobile-dropdown-link {
  display: block;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nd-mobile-dropdown-link:hover {
  color: #30C5FF;
}

.nd-mobile-dropdown-link-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 0 14px 8px;
  transition: color 0.2s ease;
}

.nd-mobile-dropdown-link-with-icon:hover {
  color: #30C5FF;
}

.nd-mobile-icon {
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-mobile-icon svg {
  width: 24px;
  height: 24px;
}

.nd-mobile-dropdown-card {
  margin: 0 12px;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nd-mobile-card-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.nd-mobile-card-developer {
  background: url("./mobile-nav-developer-nav.png");
  background-size: cover;
  height: 214px;
}

.nd-mobile-card-developer .nd-mobile-card-description {
  color: #FFFFFF;
}

.nd-mobile-card-developer .nd-mobile-card-btn,
.nd-mobile-card-community .nd-mobile-card-btn {
  background: #FFFFFF;
  padding: 16px;
  color: #131927;
  line-height: 24px;
  border-radius: 8px;
  text-align: center;
  margin-top: 8px;
}

.nd-mobile-card-community {
  background: linear-gradient(0deg, rgba(4, 5, 7, 0.08) 0%, #5F87B2 40%, #D9E3EC 100%);
  height: 232px;
}

.nd-mobile-card-community .community-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nd-mobile-card-community .nd-mobile-card-description {
  color: #131927;
}

.nd-mobile-card-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nd-mobile-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 30px;
  margin: 0;
}

.nd-mobile-card-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  max-width: 254px;
  color: #8E97AB;
}

.nd-mobile-card-btn {
  display: flex;
  align-items: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 24px;
}

.nd-mobile-card-btn:hover {
  color: #30C5FF;
}

.nd-mobile-nav-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nd-mobile-nav-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nd-mobile-language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.nd-mobile-search {
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.nd-mobile-search:hover {
  color: #30C5FF;
}

.nd-mobile-btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: #FFFFFF;
  color: #000000;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nd-mobile-btn-primary:hover {
  background: #E0E0E0;
}

.nd-mobile-btn-secondary {
  display: block;
  width: 100%;
  padding: 16px;
  background: transparent;
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #FFFFFF;
  transition: all 0.2s ease;
}

.nd-mobile-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .nd-nav {
    gap: 28px;
  }

  .nd-dropdown {
    padding: 32px 40px !important;
    width: calc(100% - 80px);
  }

  .nd-dropdown-content {
    gap: 32px;
  }

  .nd-dropdown-left,
  .nd-dropdown-middle,
  .nd-dropdown-right {
    min-width: 180px;
  }
}

/* Large Desktop - 1536px */
@media (min-width: 1536px) {
  .nd-header {
    padding: 0 max(24px, calc((100vw - 1480px) / 2));
  }

  .nd-nav {
    gap: 48px;
  }

  .nd-nav-item > a {
    font-size: 16px;
  }

  .nd-dropdown {
    max-width: 1400px;
  }
}

/* Full HD - 1920px */
@media (min-width: 1920px) {
  .nd-header {
    padding: 0 max(28px, calc((100vw - 1720px) / 2));
  }

  .nd-nav {
    gap: 52px;
  }

  .nd-nav-item > a {
    font-size: 17px;
  }

  .nd-dropdown {
    max-width: 1640px;
  }

  .nd-btn-demo {
    padding: 14px 32px;
    font-size: 15px;
  }
}

/* 2K - 2560px */
@media (min-width: 2560px) {
  .nd-header {
    padding: 0 max(32px, calc((100vw - 2280px) / 2));
  }

  .nd-nav {
    gap: 60px;
  }

  .nd-nav-item > a {
    font-size: 18px;
  }

  .nd-dropdown {
    max-width: 2180px;
  }

  .nd-btn-demo {
    padding: 16px 38px;
    font-size: 16px;
  }
}

/* 4K - 3840px */
@media (min-width: 3840px) {
  .nd-header {
    padding: 0 max(40px, calc((100vw - 3400px) / 2));
  }

  .nd-nav {
    gap: 80px;
  }

  .nd-nav-item > a {
    font-size: 20px;
  }

  .nd-dropdown {
    max-width: 3240px;
  }

  .nd-btn-demo {
    padding: 18px 44px;
    font-size: 18px;
  }
}

/* Desktop - 1440px */
@media (max-width: 1440px) {
  .nd-header {
    padding: 0 max(20px, calc((100vw - 1360px) / 2));
  }

  .nd-nav {
    gap: 42px;
  }

  .nd-dropdown {
    max-width: 1280px;
  }
}

/* Desktop - 1280px */
@media (max-width: 1280px) {
  .nd-header {
    padding: 0 max(20px, calc((100vw - 1200px) / 2));
  }

  .nd-nav {
    gap: 36px;
  }

  .nd-nav-item > a {
    font-size: 14px;
  }

  .nd-dropdown {
    max-width: 1120px;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .nd-header {
    padding: 0 20px;
  }

  .nd-nav {
    gap: 20px;
  }

  .nd-nav-item > a {
    font-size: 14px;
    display: flex;
    align-items: center;
  }

  .nd-dropdown {
    max-width: 920px;
    width: calc(100% - 100px);
  }

  .nd-btn-demo {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
  .nd-header {
    padding: 16px;
    height: auto;
    justify-content: space-between;
  }

  .nd-header > * {
    flex: 0 0 auto;
  }

  .nd-mobile-nav {
    padding: 8px 16px;
  }

  .nd-logo {
    width: 48px;
    height: 48px;
    background: #30C5FF;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
  }

  .nd-logo img {
    width: 48px;
    height: 48px;
  }

  .nd-logo-link {
    margin-top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .nd-nav {
    display: none;
  }

  .nd-dropdown {
    display: none !important;
  }

  .nd-header-actions {
    display: none;
  }

  .nd-mobile-menu-toggle {
    display: flex;
  }
}

/* Small Tablet */
@media (max-width: 600px) {
  .nd-header {
    padding: 16px;
  }
}

/* Large Phone */
@media (max-width: 480px) {
  .nd-header {
    padding: 16px;
  }
}

/* Mobile - 375px */
@media (max-width: 375px) {
  .nd-header {
    padding: 16px;
  }

  .nd-logo {
    width: 48px;
    height: 48px;
  }

  .nd-mobile-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .nd-mobile-nav {
    padding: 16px;
  }
}
