:root {
  --brand-blue: #0ea5e9;
  --brand-indigo: #4f46e5;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
}

/* ===========================
         NAVBAR STYLES (FIXED)
    =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.navbar-container {
  max-width: 1352px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.navbar-logo img {
  height: 64px;
  width: auto;
  transition: opacity 0.3s ease;
}

.navbar-logo img:hover {
  opacity: 0.8;
}

/* Desktop Menu */
.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 0.5rem 0;
  /* Add padding to create hover area */
}

.menu-link:hover {
  color: #6366f1;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.menu-item:hover .chevron-icon {
  transform: rotate(180deg);
}

.megamenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.menu-item:hover .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.megamenu-content {
  background: white;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
  min-width: 400px;
}

.megamenu-body {
  padding: 1.5rem;
}

.megamenu-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.megamenu-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.megamenu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.megamenu-item:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.megamenu-item-card {
  border: 1px solid #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.megamenu-item-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(to bottom right, white, rgba(99, 102, 241, 0.03));
}

.megamenu-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.megamenu-item-card:hover .megamenu-icon-wrapper {
  transform: scale(1.1);
}

.megamenu-icon {
  width: 20px;
  height: 20px;
}

/* FIX: Add specific icon colors */
.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-50 svg {
  color: #3b82f6;
}

.bg-emerald-50 {
  background-color: #ecfdf5;
}

.bg-emerald-50 svg {
  color: #10b981;
}

.bg-sky-50 {
  background-color: #f0f9ff;
}

.bg-sky-50 svg {
  color: #0ea5e9;
}

.bg-violet-50 {
  background-color: #f5f3ff;
}

.bg-violet-50 svg {
  color: #8b5cf6;
}

.bg-amber-50 {
  background-color: #fffbeb;
}

.bg-amber-50 svg {
  color: #f59e0b;
}

.bg-rose-50 {
  background-color: #fff1f2;
}

.bg-rose-50 svg {
  color: #f43f5e;
}

.bg-cyan-50 {
  background-color: #ecfeff;
}

.bg-cyan-50 svg {
  color: #06b6d4;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.bg-purple-50 svg {
  color: #a855f7;
}

.bg-pink-50 {
  background-color: #fdf2f8;
}

.bg-pink-50 svg {
  color: #ec4899;
}

.bg-orange-50 {
  background-color: #fff7ed;
}

.bg-orange-50 svg {
  color: #f97316;
}

.megamenu-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.3;
}

.megamenu-item:hover .megamenu-text {
  color: #6366f1;
}

.megamenu-footer {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.megamenu-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.megamenu-footer-link:hover {
  color: #4f46e5;
}

.arrow-right {
  transition: transform 0.2s ease;
}

.megamenu-footer-link:hover .arrow-right {
  transform: translateX(4px);
}

/* CTA Button */
.navbar-cta {
  display: block;
}

.btn-primary-get {
  padding: 0.625rem 1.25rem;
  background-color: var(--brand-indigo);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary-get:hover {
  background-color: #4f46e5e6;
}

.demo-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* CTA Button */
.navbar-cta {
  display: block;
}

.btn-primary {
  padding: 0.625rem 1.25rem;
  background-color: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #0ea5e9e6;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  padding: 0;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  padding-top: calc(64px + 1.5rem);
  width: 100vw;
  margin: 0;
  box-sizing: border-box;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 1.5rem;
}

.mobile-menu-section {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.mobile-section-header svg {
  transition: transform 0.3s ease;
}

.mobile-section-header.active svg {
  transform: rotate(180deg);
}

.mobile-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-section-content.active {
  max-height: 2000px;
}

.mobile-submenu {
  padding: 0.5rem 0;
}

.mobile-submenu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--gray-900);
  transition: background-color 0.2s ease;
}

.mobile-submenu-item:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.mobile-icon-wrapper {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

/* Icon Colors for Mobile */
.icon-indigo {
  color: #6366f1;
}

.icon-green {
  color: #10b981;
}

.icon-yellow {
  color: #f59e0b;
}

.icon-purple {
  color: #a855f7;
}

.icon-blue {
  color: #3b82f6;
}

.icon-emerald {
  color: #10b981;
}

.icon-sky {
  color: #0ea5e9;
}

.icon-violet {
  color: #8b5cf6;
}

.icon-orange {
  color: #f97316;
}

.icon-red {
  color: #ef4444;
}

.icon-pink {
  color: #ec4899;
}

.icon-lime {
  color: #84cc16;
}

.mobile-submenu-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-cta {
  padding: 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .navbar-menu {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-logo img {
    height: 48px;
  }
}

/* Navbar Ends in here */
