/* Navbar Styles - Extracted from index.html */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10000 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eaeaea !important;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 80px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  position: relative !important;
}

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

.logo-text {
  display: flex;
  align-items: center;
  font-size: 24px;
}

.logo-text .normal {
  font-weight: 400;
  color: #697d92;
}

.logo-text .bold {
  font-weight: 700;
  color: #8f52e7;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 30px !important;
  margin: 0 auto !important;
  flex: 1 !important;
  white-space: nowrap !important;
}

.nav-item {
  font-size: 13px;
  font-weight: 600;
  color: #052649;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-item:hover {
  color: #8f52e7;
}

.cta-button-green {
  background: #8f52e7 !important;
  color: white !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.mobile-toggle {
  display: none !important;
}

.mobile-demo-btn {
  display: none !important;
}

.cta-button-green:hover {
  background: #7a45d1 !important;
  transform: translateY(-1px);
}

/* Mobile responsive navbar */
@media (max-width: 1023px) {
  .nav-menu {
    display: none !important;
    position: absolute !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 30px 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-left: 0 !important;
    gap: 20px !important;
    z-index: 1001 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    justify-content: flex-start !important;

    /* Full height additions */
    height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  /* Increase nav item font size on mobile */
  .nav-item {
    font-size: 18px !important;
    padding: 10px 0 !important;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .mobile-toggle {
    display: flex !important;
    background: transparent !important;
    width: 28px !important;
    height: 28px !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1002;
  }

  /* Icon toggle logic moved here to cover all mobile breakpoints */
  .mobile-toggle .icon-close {
    display: none;
  }

  .mobile-toggle.active .icon-menu {
    display: none;
  }

  .mobile-toggle.active .icon-close {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-demo-btn {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) {
  .cta-button-green {
    margin-left: 48px;
  }
}

/* Scrolled State: Compact Header */
.header.scrolled .nav-container {
  height: 60px;
  padding: 0 24px;
}

.header.scrolled .cta-button-green {
  padding: 10px 24px;
  font-size: 13px;
  border-radius: 100px;
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 540px;
  z-index: 1200;
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-menu .dropdown.open .dropdown-menu {
  display: grid;
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(32px) scale(1);
}

.nav-menu .dropdown .dropdown-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  color: #052649;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-menu .dropdown .dropdown-item:hover {
  background: #f8f9fa;
  border-color: #f1f3f5;
}

.dd-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-menu .dropdown .dropdown-item:hover .dd-icon-box {
  background: #8f52e7;
  color: white !important;
}

.dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-title {
  font-size: 14px;
  font-weight: 600;
  color: #052649;
  line-height: 1.2;
}

.dd-desc {
  font-size: 11px;
  color: #6c798f;
  font-weight: 500;
  line-height: 1.4;
}

.nav-menu .dropdown .dropdown-item:hover .dd-title {
  color: #8f52e7;
}

@media (max-width: 768px) {
  /* Mobile Menu Container already handled at 1023px breakpoint */

  .nav-menu .dropdown .dropdown-menu {
    position: static;
    min-width: unset;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    box-shadow: none;
    padding: 8px;
    border-radius: 0;
    gap: 8px;
    align-items: start;
    margin-top: 8px;
  }

  .nav-menu .dropdown {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .nav-menu .dropdown .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    cursor: pointer;
  }

  .nav-menu .dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-menu .dropdown .dropdown-item {
    padding: 8px;
    border: 1px solid #eee;
    gap: 8px;
    align-items: flex-start;
    min-height: 60px;
  }

  .nav-menu .dropdown .dropdown-item .dd-desc {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    margin-top: 2px;
    color: #6c798f;
  }

  .nav-menu .dropdown .dropdown-item .dd-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .nav-menu .dropdown .dropdown-item .dd-icon-box svg {
    width: 14px;
    height: 14px;
  }

  .nav-menu .dropdown .dropdown-item .dd-title {
    font-size: 11px;
    font-weight: 700;
    margin: 0;
  }

  .mobile-demo-btn {
    display: inline-flex !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 100px !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: 12px !important;
  }

  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
    position: relative !important;
  }

  .logo img {
    height: 30px !important;
    width: auto !important;
  }

  .logo-text {
    font-size: 20px !important;
  }

  .mobile-toggle {
    /* Styles moved to 1023px breakpoint for consistency */
  }
}

@media (max-width: 400px) {
  .header .logo-text {
    display: none !important;
  }
}