:root {
  --primary: #005197;
  --accent: #f2006a;
  --dark: #0b1b2b;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  color: #222;
  font-family: 'Outfit', sans-serif;
  zoom: 95%;
}

.navbar {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
}

.hero {
  background: linear-gradient(135deg, rgba(0, 81, 151, .08), rgba(242, 0, 106, .08)), #fff;
  padding: 7rem 0 5rem;
}

.hero h1 {
  font-weight: 800;
  color: var(--dark);
}

.hero p.lead {
  color: #4a5568;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(.92);
  color: #fff;
}

.section-title {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-sub {
  color: #516173;
  margin-bottom: 2rem;
}

.badge-soft {
  background: rgba(0, 81, 151, .08);
  color: var(--primary);
  border: 1px solid rgba(0, 81, 151, .15);
}

.card {
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 81, 151, .1);
  color: var(--primary);
}

.footer {
  background: #0d1a29;
  color: #c7d1dc;
}

.footer a {
  color: #c7d1dc;
}

.footer .form-control,
.footer .form-select {
  background: #0f2136;
  border: 1px solid #16324d;
  color: #e6eef7;
}

.footer .btn-accent {
  background: var(--accent);
  border: 0;
}

.partner-logo {
  height: 50px;
  object-fit: contain;
}

.testimonial {
  font-size: 1.05rem;
  color: #2d3748;
}

/* Callout Section Styles */
.callout-stat {
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 120px;
}

.callout-stat small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.callout-content {
  padding: 2rem 1rem;
}


/* utilities */
.bg-primary-soft {
  background: rgba(0, 81, 151, .06);
}

.text-accent {
  color: var(--accent) !important;
}

a.nav-link:hover {
  color: var(--accent) !important;
}

.cta-ribbon {
  position: relative;
}

.cta-ribbon:after {
  content: "";
  position: absolute;
  right: -8px;
  top: -8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* --- Visual Upgrades --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(0, 81, 151, .15), rgba(0, 81, 151, 0));
  border-radius: 50%;
  filter: blur(2px);
}

.hero:after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(242, 0, 106, .12), rgba(242, 0, 106, 0));
  border-radius: 50%;
  filter: blur(2px);
}

.callout {
  position: relative;
}

.callout .image {
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.callout .tick li {
  margin-bottom: .5rem;
}

.gallery img {
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  transition: transform .25s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
}

.section-kicker {
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 81, 151, 0), rgba(0, 81, 151, .25), rgba(0, 81, 151, 0));
}

.badge-accent {
  background: rgba(242, 0, 106, .12);
  color: var(--accent);
  border: 1px solid rgba(242, 0, 106, .2);
}

/* --- Stripe-like Vibrant Hero --- */
.hero-vibrant {
  position: relative;
  width: 100%;
  min-height: 750px;
  /* Taller for impact */
  display: flex;
  align-items: flex-start;
  padding-top: 180px;
  overflow: hidden;
  /* White background like Stripe */
  background: #ffffff;

  /* Wavy/Angled Bottom Separation */
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-vibrant::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 1200px;
  top: -200px;
  right: -400px;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.4) 0%,
      rgba(168, 85, 247, 0.4) 25%,
      rgba(236, 72, 153, 0.4) 50%,
      rgba(251, 146, 60, 0.4) 75%,
      rgba(251, 191, 36, 0.4) 100%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  animation: float-gradient 20s ease-in-out infinite;
}

.hero-vibrant::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  bottom: -200px;
  right: -200px;
  background: linear-gradient(225deg,
      rgba(236, 72, 153, 0.3) 0%,
      rgba(251, 146, 60, 0.3) 50%,
      rgba(168, 85, 247, 0.3) 100%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: float-gradient-reverse 15s ease-in-out infinite;
}

@keyframes float-gradient {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 50px) scale(1.1);
  }
}

@keyframes float-gradient-reverse {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* Seamless Navbar Overrides - Dark Text for Light Background */
.navbar {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 1.5rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}



.navbar.scrolled .navbar-brand img {
  filter: none;
}

.navbar .nav-link {
  color: #0a2540 !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.show {
  color: var(--accent) !important;
}

.navbar.scrolled .nav-link {
  color: #0a2540 !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--accent) !important;
}

/* Mega Menu adjustment to push it down slightly */
.navbar .megamenu {
  margin-top: 15px !important;
  border-radius: 12px;
}

/* Navbar button - Solid for white background */
.navbar .btn-accent {
  background: #0d1a29 !important;
  border: 1px solid #0d1a29 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(13, 26, 41, 0.3) !important;
}

.navbar .btn-accent:hover {
  background: #ffffff !important;
  color: var(--primary) !important;
}

/* Scrolled state button */
.navbar.scrolled .btn-accent {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

.navbar.scrolled .btn-accent:hover {
  background: #d9005f !important;
  /* Darker accent */
  color: #ffffff !important;
}

/* Skewed background canvas effect - HIDDEN to prefer clip-path */
.hero-canvas-skew {
  display: none;
}

.hero-vibrant .container {
  position: relative;
  z-index: 2;
}

.hero-vibrant h1 {
  font-weight: 800;
  font-size: 5rem;
  letter-spacing: -2px;
  line-height: 0.95;
  color: #0a2540;
  /* Dark text on white */
  margin-bottom: 2rem;
}

.hero-vibrant .lead {
  color: #475569;
  /* Slate gray */
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* Mockup Container */
.mockup-perspective {
  width: 100%;
  perspective: 1200px;
}

.mockup-card-wrapper {
  position: relative;
  transform: rotateY(-12deg) rotateX(6deg) scale(0.9);
  transform-style: preserve-3d;
  box-shadow:
    50px 50px 100px -20px rgba(50, 50, 93, 0.25),
    30px 30px 60px -30px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-card-wrapper:hover {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-15px) scale(0.95);
}

.mockup-card-wrapper img {
  border-radius: 20px;
  width: 100%;
  display: block;
  background: white;
}

/* Floating Card Element */
.floating-ui-card {
  position: absolute;
  top: 25%;
  left: -60px;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  width: 240px;
  box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  transform: translateZ(60px);
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateZ(60px) translateY(0);
  }

  50% {
    transform: translateZ(60px) translateY(-20px);
  }
}

/* Updated Buttons for this theme (Gradient Hero Optimized) */
.btn-stripe-dark {
  background: #ffffff;
  color: var(--primary);
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid #e3e8ee;
  border: none;
}

.btn-stripe-dark:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  color: var(--accent);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.btn-stripe-link {
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-stripe-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* --- Stripe-like Nav --- */
body,
button,
input,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.navbar {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  padding: .75rem 0;
}

.navbar .navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1.25rem;
  letter-spacing: -.3px;
}

.navbar-nav .nav-link {
  padding: .5rem 1rem;
  font-weight: 500;
  color: #334155;
  position: relative;
  transition: color .2s;
}

.navbar-nav .nav-link:after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .25rem;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(3px);
  transition: all .25s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover {
  color: #000;
}

.navbar-nav .nav-link:hover:after {
  opacity: 1;
  transform: translateY(0);
}

.navbar .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: .375rem .75rem;
}

#industries .card {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 16px;
}

#industries .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

#industries .icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(0, 81, 151, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary);
}


/* Global font: Outfit */
body,
button,
input,
select,
textarea,
.navbar,
.btn,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}


@media (max-width: 768px) {
  .stat .num {
    font-size: 1.8rem;
  }

  .stat {
    margin-bottom: 20px;
  }
}

/* Product Suite Enhancements */
#products .card {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

#products .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1) !important;
}

.phase-tag {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.suite-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feature-list li i {
  font-size: 1rem;
  margin-right: 10px;
  color: var(--accent);
}

/* --- Infinite Logo Carousel --- */
.logo-ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
}

/* --- Stat Band Refinement --- */
.stat-band {
  background-color: var(--dark);
  color: #ffffff;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat .num {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  /* Slightly larger for the gradient effect */
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;

  /* --- Gradient Text Styling --- */
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Technical polish */
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.stat .lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.8;
  /* Subtle enough to not compete with the number */
  color: #ffffff;
  display: block;
}

/* Optional: Add a subtle glow to the numbers on hover */
.stat:hover .num {
  filter: drop-shadow(0 0 10px rgba(242, 0, 106, 0.3));
  transition: all 0.3s ease;
}

/* --- Unified Solutions Section --- */
#solutions {
  background: var(--dark);
  /* Seamless transition from the stat band */
  padding: 100px 0;
}

/* Standardized Solution Cards */
.solution-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.solution-box:hover {
  background: #ffffff;
  border-color: rgba(130, 112, 244, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(130, 112, 244, 0.15);
}

.solution-box i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #8270f4, #dd4578);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.solution-box h5 {
  color: #0a2540;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.solution-box p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive adjustment for both */
@media (max-width: 768px) {

  .stat-band,
  #solutions {
    padding: 60px 0;
  }

  .stat .num {
    font-size: 2.2rem;
  }

  .solution-box {
    padding: 1.5rem;
  }
}

/* Gradient fade on edges for a professional look */
.logo-ticker-container::before,
.logo-ticker-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.logo-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.logo-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.logo-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  /* Space between logos */
  animation: scroll 30s linear infinite;
}

.partner-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.hero-enhanced {
  /* Standardized gradient: Primary Blue to Dark */
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 10rem 0 10rem;
  position: relative;
  overflow: hidden;

  /* Optional: Add a subtle border at the bottom to transition to the next section */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add these to enhance the "Glow" effect for the text and dashboard */
.hero-enhanced::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 0, 106, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-enhanced .display-3 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-enhanced .lead {
  color: rgba(255, 255, 255, 0.8) !important;
}

.fw-extrabold {
  font-weight: 900;
  letter-spacing: -2px;
}

.hero-badge {
  background: rgba(242, 0, 106, 0.2);
  color: #f2006a;
  border: 1px solid rgba(242, 0, 106, 0.3);
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Dashboard Prominence Styling --- */
.dashboard-perspective-wrapper {
  perspective: 2000px;
  position: relative;
  z-index: 5;
}

.dashboard-glass-card {
  transform: rotateY(-15deg) rotateX(5deg) scale(1.1);
  /* Aggressive perspective */
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    -50px 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dashboard-glass-card:hover {
  transform: rotateY(-5deg) rotateX(0deg) scale(1.15);
  /* Pulls forward on hover */
}

.dashboard-img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(242, 0, 106, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Add a floating animation */
@keyframes floatDashboard {
  0% {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.1) translateY(0px);
  }

  50% {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.1) translateY(-20px);
  }

  100% {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.1) translateY(0px);
  }
}

.dashboard-glass-card {
  animation: floatDashboard 6s ease-in-out infinite;
}

.footer {
  background-color: var(--dark);
  /* #0b1b2b */
  color: #fff;
  border-radius: 30px 30px 0 0;
  /* Match the Solutions section curve */
}

.footer-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.footer .form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
}

.footer .form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent) !important;
  box-shadow: none;
}

.footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.contact-info-blocks a {
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-info-blocks a:hover {
  color: var(--accent) !important;
}

/* --- Branded CTA Card --- */
.contact-gradient-card {
  /* Gradient matching the Hero and active states */
  background: linear-gradient(135deg, #8270f4 0%, #dd4578 100%);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.contact-gradient-card .section-kicker {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Glassy Glow Effect */
.cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 0, 106, 0.1) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Button Refinement for CTA */
.contact-gradient-card .btn-accent {
  background: #ffffff;
  border: none;
  color: #0a2540;
  transition: all 0.3s ease;
}

.contact-gradient-card .btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(242, 0, 106, 0.4);
  filter: brightness(1.1);
}

/* Text Polish */
.contact-gradient-card h2 {
  letter-spacing: -1px;
}

/* --- High-Density Testimonial Grid --- */
.testimonial-compact {
  background: #fff;
  transition: all 0.3s ease;
}

.testimonial-compact:hover {
  background: var(--primary-soft);
}

.small-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.extra-small {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-brand-logo {
  height: 25px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.testimonial-compact:hover .testimonial-brand-logo {
  filter: grayscale(0%);
  opacity: 1;
}

#testimonials .border-top,
#testimonials .border-end,
#testimonials .border-bottom {
  border-color: rgba(0, 81, 151, 0.08) !important;
}

.stars {
  font-size: 0.7rem;
}

/* Ensure menu items have proper spacing */
.navbar-nav .nav-item {
  padding: 0 5px;
}

/* Specific styling for the Request Demo button in the menu */
.navbar .btn-accent {
  font-size: 0.85rem;
  text-transform: none;
  /* Keep it clean */
  letter-spacing: 0;
  transition: all 0.3s ease;
}

.navbar .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 0, 106, 0.3);
}

/* Remove underline effect from the button link */
.navbar-nav .nav-item .btn-accent:after {
  display: none;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar .btn-accent {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Halfway because we duplicate logos for seamless loop */
}

/* --- Modern Mega Menu --- */
.megamenu {
  padding: 0 !important;
  overflow: hidden;
}

.megamenu-modern-container {
  display: flex;
  padding-left: 3rem;
  padding-right: 3rem;
}

.megamenu-content {
  flex: 3;
  padding: 2rem;
}

.megamenu-sidebar {
  flex: 1;
  background-color: #f7f9fc;
  padding: 2rem;
  border-left: 1px solid #e6e6e6;
}

.megamenu-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8898aa;
  margin-bottom: 1.5rem;
  display: block;
}

.megamenu-item {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.megamenu-item:hover {
  transform: translateX(5px);
}

.megamenu-item:hover .megamenu-title {
  color: var(--primary);
}

.megamenu-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.megamenu-text {
  flex: 1;
}

.megamenu-title {
  display: block;
  font-weight: 600;
  color: #1a1f36;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.megamenu-desc {
  display: block;
  font-size: 0.85rem;
  color: #6b7c93;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.megamenu-sublinks {
  display: block;
  font-size: 0.8rem;
  color: #424770;
  font-weight: 500;
}

.megamenu-sublinks span {
  color: #8898aa;
  margin: 0 5px;
}

/* Sidebar Specifics */
.megamenu-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-sidebar-list li {
  margin-bottom: 0.75rem;
}

.megamenu-sidebar-link {
  color: #4f566b;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  transition: color 0.2s ease;
}

.megamenu-sidebar-link:hover {
  color: var(--primary);
}

/* Icon Colors */
.icon-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.icon-purple {
  background: #f3e5f5;
  color: #7b1fa2;
}

.icon-teal {
  background: #e0f2f1;
  color: #00695c;
}

.icon-orange {
  background: #fbe9e7;
  color: #d84315;
}

.icon-pink {
  background: #fce4ec;
  color: #c2185b;
}

.icon-indigo {
  background: #e8eaf6;
  color: #283593;
}

/* Grid adjustments for the content area */
.megamenu-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.megamenu-col {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

/* --- Mega Menu --- */
.navbar .nav-item.dropdown.position-static {
  position: static;
}

.navbar .nav-item.dropdown.position-static .dropdown-menu.megamenu {
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0;
  border-radius: 0 0 24px 24px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  padding: 3rem 0;
  background: #fff;
  display: block;
  /* For debug, later controlled by JS/Hover */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.navbar .nav-item.dropdown.position-static:hover .dropdown-menu.megamenu,
.navbar .nav-item.dropdown.position-static .dropdown-menu.megamenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Animate Dropdown Arrow */
/* Animate Dropdown Arrow */
.navbar .dropdown-toggle::after {
  display: none !important;
}

.dropdown-arrow {
  transition: transform 0.2s ease-in-out;
  display: inline-block;
  font-size: 0.75rem;
  /* Make it subtle */
  font-weight: bold;
}

.navbar .nav-item.dropdown.show .dropdown-arrow,
.navbar .nav-item.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.megamenu-header {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(242, 0, 106, 0.2);
  display: inline-block;
}

.megamenu-list {
  padding-left: 0;
  list-style: none;
}

.megamenu-list li {
  margin-bottom: 0.75rem;
}

.megamenu-list li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.megamenu-list li a i {
  margin-left: 8px;
  /* Arrow on right on hover maybe? */
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
  color: var(--accent);
}

.megamenu-list li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.megamenu-list li a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar .nav-link {
    color: #0a2540 !important;
    /* Dark text on mobile menu */
    padding: 10px 0;
  }

  /* Reset Megamenu for Mobile */
  /* Reset Megamenu for Mobile */
  .navbar .nav-item.dropdown.position-static .dropdown-menu.megamenu {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0;
    transition: none;
  }

  .navbar .nav-item.dropdown.position-static .dropdown-menu.megamenu.show {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .megamenu-modern-container {
    flex-direction: column;
  }

  .megamenu-sidebar {
    border-left: none;
    border-top: 1px solid #eee;
    margin-top: 1rem;
  }

  .megamenu-row {
    flex-direction: column;
  }

  .megamenu-col {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 1rem;
    /* Reduced margin */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-vibrant {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 4rem;
    align-items: center;
    /* Center content on mobile */
  }

  .hero-vibrant .row {
    flex-direction: column-reverse;
    /* Put mockup below text on mobile naturally or reverse if specified. Standard is text first. No change needed to row direction if column-reverse is removed. */
  }

  .mockup-perspective {
    margin-top: 3rem;
    transform: scale(0.9);
  }

  .hero-vibrant h1 {
    font-size: 3rem;
    /* Smaller font on mobile */
  }
}

/* Ensure purple text is readable on vibrant gradient */
.hero-vibrant .text-stripe-purple {
  color: rgb(223 39 113) !important;
}

/* Simple Megamenu List */
.megamenu-simple-list li {
  margin-bottom: 0.75rem;
}

.megamenu-simple-list li a {
  color: #0a2540;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.megamenu-simple-list li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Navigation Buttons - Stripe Style */
.btn-nav-light {
  background: #fff;
  color: #0a2540;
  border: 1px solid #e3e8ee;
  border-radius: 24px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nav-light:hover {
  background: #f6f9fc;
  border-color: #cbd6e2;
  color: #0a2540;
}

.btn-nav-primary {
  background: var(--dark);
  color: white;
  border: 1px solid var(--dark);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(99, 91, 255, 0.12);
}

.btn-nav-primary:hover {
  background: #5046e5;
  border-color: #5046e5;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
  transform: translateY(-1px);
}

/* Mobile App Section Styles */
.app-mockup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-screenshot {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon-small {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-badge-link {
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.app-badge-link img {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .phone-frame {
    width: 250px;
    margin: 0 auto;
  }

  #mobile-app .ps-lg-4 {
    padding-left: 0 !important;
    margin-top: 2rem;
  }
}

/* Utilities for inline style replacement */
.bg-stripe-dark {
  background-color: #0a2540 !important;
}

.text-stripe-purple {
  color: #635bff !important;
}

.ls-1 {
  letter-spacing: 1px;
}

.card.card-highlight {
  border: 1px solid rgba(0, 81, 151, 0.1) !important;
}

.h-6px {
  height: 6px;
}

.w-280px {
  width: 280px;
}

.h-40px {
  height: 40px;
}

.h-58px {
  height: 58px;
}

.z-2 {
  z-index: 2;
}

/* --- Styles Moved from Index.php --- */
.py-100 {
  padding: 100px 0;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

.leading-relaxed {
  line-height: 1.65;
}

.feature-item-v3 {
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Iconic Sophistication */
.feature-icon-v3 {
  min-width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 12px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

/* The Professional "Active" State (Shared by Default and Hover) */
.active-professional {
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 81, 151, 0.1);
  border-color: rgba(0, 81, 151, 0.1);
  transform: translateY(-5px);
}

.active-professional .feature-icon-v3 {
  background: #005197;
}

.active-professional .feature-icon-v3 i {
  color: #ffffff !important;
}

/* Transition utility */
.transition-all {
  transition: all 0.4s ease;
}

.icon-circle-lg-accent {
  width: 50px;
  height: 50px;
  background: rgba(242, 0, 106, 0.1);
  color: var(--accent);
}

.success-feedback-icon {
  font-size: 3rem;
  color: var(--accent);
}

.nav-logo {
  width: 150px;
}

/* --- Onsite Solutions Section (Wave-like Design) --- */
.bg-onsite-blue {
  background-color: #ffffff;
  /* Light Alice Blue */
}

.feature-highlight-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.feature-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.onsite-feature-item {
  margin-bottom: 2rem;
}

.onsite-feature-item h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.onsite-feature-item p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

.onsite-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2b3a4a;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.onsite-visual-container {
  background-color: #0a2540;
  /* Deep Blue like stripe/wave */
  border-radius: 20px;
  padding: 3rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.onsite-dashboard-img {
  transition: all 0.2s ease-in-out;
}

/* --- About Section Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 81, 151, 0.08);
  border-color: rgba(0, 81, 151, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #8270f4 0%, #dd4578 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0;
}

.onsite-dashboard-img {
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.onsite-visual-container:hover .onsite-dashboard-img {
  transform: scale(1.02);
}

.help-banner {
  background-color: #fff6e6;
  /* Light warm beige */
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.help-banner h4 {
  color: #2d3748;
  font-weight: 700;
}

.help-avatars img {
  border: 3px solid #fff6e6;
  margin-left: -15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-avatars img:first-child {
  margin-left: 0;
}

.btn-link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  transition: gap 0.2s ease;
}


.btn-link-arrow:hover {
  gap: 8px;
  color: var(--accent);
}

/* --- Device Mockup Frame --- */
.device-mockup-wrapper {
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.device-frame {
  background: #0f172a;
  /* Dark bezel color */
  padding: 12px;
  /* Bezel thickness */
  border-radius: 24px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    /* Deep shadow */
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  /* Subtle inner light reflection */
  max-width: 100%;
  width: 100%;
  position: relative;
  border: 1px solid #1e293b;
}

/* Optional Camera Hole */
.device-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: 4px;
  height: 50px;
  background: #334155;
  border-radius: 2px 0 0 2px;
  transform: translateY(-50%);
}

.device-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  width: 100%;
  /* Maintain aspect ratio */
  aspect-ratio: 4/3;
}


.onsite-dashboard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Remove previous styles that conflict */
  border-radius: 0;
  box-shadow: none;
}

/* --- Registration & Onsite Section Styles (Unified) --- */
.registration-option,
.onsite-option {
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.registration-option:hover,
.onsite-option:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  cursor: pointer;
}

.registration-option.active,
.onsite-option.active {
  background: linear-gradient(135deg, #8270f4 0%, #dd4578 100%);
  box-shadow: 0 4px 20px rgba(130, 112, 244, 0.3), 0 0 0 1px rgba(130, 112, 244, 0.2);
  border: 1px solid rgba(130, 112, 244, 0.3);
  transform: translateX(4px);
  color: #ffffff;
}


/* Icon styling when active - white color on gradient */
.registration-option.active .icon-wrapper i,
.onsite-option.active .icon-wrapper i {
  color: #ffffff !important;
}

/* Text color when active */
.registration-option.active h5,
.registration-option.active p,
.onsite-option.active h5,
.onsite-option.active p {
  color: #ffffff !important;
}

/* --- Floating Hero Stats --- */
.floating-stat-card {
  position: absolute;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 10;
  min-width: 200px;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  /* Glassy feel ifbg is transparent */
}

.floating-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating-stat-card .icon-box {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Positions relative to .mockup-perspective or .mockup-card-wrapper */
.pos-top-right {
  top: 5%;
  right: -10%;
}

.pos-bottom-left {
  bottom: 25%;
  left: -15%;
}

.pos-bottom-right {
  bottom: -5%;
  right: -5%;
}

/* Animations */
@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float-slow {
  animation: float-y 6s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-y 5s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-float-fast {
  animation: float-y 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Responsive adjustments for floating cards */
@media (max-width: 1200px) {
  .floating-stat-card {
    padding: 0.75rem 1rem;
    min-width: 160px;
    font-size: 0.9em;
  }

  .pos-top-right {
    right: -5%;
    top: 0;
  }

  .pos-bottom-left {
    left: -5%;
  }

}

/* Registration Section Desktop Styles */
@media (min-width: 992px) {

  .registration-section-responsive,
  .onsite-section-responsive {
    position: relative;
    height: 300vh;
  }

  .registration-sticky-wrapper,
  .onsite-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 120vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
}

/* Responsive Registration Section Mobile Styles */
@media (max-width: 991.98px) {

  .registration-section-responsive,
  .onsite-section-responsive {
    height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .registration-sticky-wrapper,
  .onsite-sticky-wrapper {
    position: static !important;
    height: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  .registration-section-responsive .container,
  .onsite-section-responsive .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    display: block !important;
  }

  /* Hide Image Column */
  /* Hide Image Column */
  .registration-section-responsive .col-lg-7,
  .onsite-section-responsive .col-lg-7 {
    display: none !important;
  }

  /* Feature List Container - Grid Layout */
  /* Feature List Container - Grid Layout */
  .registration-section-responsive .col-lg-5,
  .onsite-section-responsive .col-lg-5 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #registration-features-list,
  #onsite-features-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Apply Active/Gradient Style to ALL cards on mobile */
  /* Apply Active/Gradient Style to ALL cards on mobile */
  .registration-option,
  .onsite-option {
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
    height: auto !important;
    background: linear-gradient(135deg, #8270f4 0%, #dd4578 100%) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(221, 69, 120, 0.2) !important;
    display: block !important;
    border-radius: 12px !important;
  }

  .registration-option .d-flex,
  .onsite-option .d-flex {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
  }

  /* Icon Styling */
  .registration-option .icon-wrapper,
  .onsite-option .icon-wrapper {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    margin-right: 1.25rem !important;
    margin-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  .registration-option .icon-wrapper i,
  .onsite-option .icon-wrapper i {
    color: #ffffff !important;
  }

  .registration-option h5,
  .onsite-option h5 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700 !important;
  }

  .registration-option p,
  .onsite-option p {
    display: block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
  }




}

/* Event Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.item-wide {
  grid-column: span 2;
}

.item-tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .item-wide {
    grid-column: span 1;
  }

  .item-tall {
    grid-row: span 1;
  }

  .gallery-grid {
    grid-auto-rows: 200px;
    gap: 1rem;
  }
}

/* Event Marquee Gallery */
.gallery-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  background: transparent;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

.gallery-track-item {
  height: 240px;
  width: auto;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Minimal shadow */
}

.gallery-track-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

/* Animations */
.scroll-left-to-right {
  animation: marquee-ltr 40s linear infinite;
}

.scroll-right-to-left {
  animation: marquee-rtl 40s linear infinite;
}

@keyframes marquee-ltr {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-track-item {
    height: 160px;
  }

  .gallery-track {
    gap: 1rem;
  }
}

/* Random Gallery Orientations */
.gallery-track-item.w-portrait {
  width: 180px !important;
}

.gallery-track-item.w-landscape {
  width: 360px !important;
}

.gallery-track-item.w-square {
  width: 240px !important;
}

/* Ensure image covers the forced dimensions */
.gallery-track-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Mobile Adjustments for Gallery Marquee Items */
@media (max-width: 768px) {
  .gallery-track-item.w-portrait {
    width: 120px !important;
  }

  .gallery-track-item.w-landscape {
    width: 240px !important;
  }

  .gallery-track-item.w-square {
    width: 160px !important;
  }
}

/* Enhanced Mobile Menu Styling */
@media (max-width: 991px) {

  /* Cleaner Collapse Container */
  .navbar-collapse {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    padding: 1.5rem;
  }

  /* Full Width Buttons if not using utilities */
  /* Full Width Buttons if not using utilities - SCOPED TO NAVBAR */
  .navbar-collapse .btn-nav-light,
  .navbar-collapse .btn-nav-primary {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  /* Grid-like compact layout for megamenu items on mobile */
  .megamenu-item {
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s ease;
    margin-bottom: 0.25rem;
    text-decoration: none;
    /* Ensure no underline */
  }

  .megamenu-item:active {
    background-color: #f1f5f9;
  }

  .megamenu-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 81, 151, 0.05);
    border-radius: 10px;
    color: #005197;
  }

  /* Icon Color Variants */
  .megamenu-icon.icon-blue {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
  }

  .megamenu-icon.icon-orange {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
  }

  .megamenu-icon.icon-teal {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
  }

  .megamenu-icon.icon-purple {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
  }

  .megamenu-icon.icon-pink {
    background-color: rgba(214, 51, 132, 0.1);
    color: #d63384;
  }

  .megamenu-icon.icon-indigo {
    background-color: rgba(102, 16, 242, 0.1);
    color: #6610f2;
  }

  .megamenu-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
    /* Match icon height visually */
  }

  .megamenu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    letter-spacing: -0.01em;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .megamenu-desc {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
    display: block;
  }

  .megamenu-category-title {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    color: #8898aa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* Ultra Compact Mobile Menu Overrides for Maximum Density */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 0.75rem !important;
  }

  .megamenu-modern-container {
    padding: 0 !important;
  }

  .megamenu-col {
    margin-bottom: 0.75rem !important;
    gap: 0.25rem !important;
    /* row-gap handled by grid-template-columns logic in previous step */
  }

  .megamenu-item {
    padding: 0.4rem !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 6px !important;
    align-items: center !important;
  }

  .megamenu-item:active {
    background-color: #f1f5f9 !important;
  }

  .megamenu-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
    border-radius: 8px !important;
  }

  .megamenu-title {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  /* Hide description for compact view */
  .megamenu-desc {
    display: none !important;
  }

  .megamenu-category-title {
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.65rem !important;
    padding-left: 0.4rem !important;
    color: #8898aa !important;
    grid-column: 1 / -1 !important;
    /* Ensure title spans full width in grid */
  }
}

/* FINAL COMPACT MOBILE OPTIMIZATIONS */
@media (max-width: 991px) {

  /* Remove all container padding */
  .navbar-collapse {
    padding: 0 !important;
    overflow-x: hidden;
  }

  /* Reset Row Gutters completely */
  .megamenu-content .row {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Compact Columns */
  .megamenu-col {
    margin-bottom: 0.5rem !important;
    padding: 0 0.5rem !important;
  }

  /* Reduce Item Height */
  .megamenu-item {
    padding: 0.25rem !important;
    min-height: 36px !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
  }

  /* Smaller Icons */
  .megamenu-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    margin-right: 0.4rem !important;
    border-radius: 4px !important;
  }

  /* Compact Text */
  .megamenu-title {
    font-size: 0.8rem !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
  }

  /* Tighter Categories */
  .megamenu-category-title {
    margin-top: 0.5rem !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.65rem !important;
    padding-left: 0.25rem !important;
    color: #6c757d !important;
  }

  /* Dropdown Toggles */
  .nav-link {
    padding: 0.5rem 1rem !important;
    /* Standard touch target */
    font-size: 0.9rem !important;
  }

  /* Products / Solutions Headers */
  .nav-item.dropdown .nav-link {
    color: #005197 !important;
    /* Brand Blue */
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
}

/* Fix Solutions Sidebar on Mobile */
@media (max-width: 991px) {
  .megamenu-sidebar {
    padding: 1rem !important;
    background-color: #f8f9fa !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
    border: none !important;
    width: 100% !important;
  }

  .megamenu-sidebar-list {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
  }

  .megamenu-sidebar-link {
    display: block !important;
    padding: 0.5rem 0.25rem !important;
    color: #4a5568 !important;
    /* Slate color */
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
  }

  .megamenu-sidebar-link:last-child {
    border-bottom: none !important;
  }
}

/* STRIPE-STYLE MOBILE MENU OVERRIDES */
@media (max-width: 991px) {

  /* 1. Full Screen Canvas */
  .navbar-collapse {
    position: fixed;
    top: 60px;
    /* Adjust based on navbar height */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #ffffff !important;
    padding: 1.5rem 2rem !important;
    overflow-y: auto;
    border-radius: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    z-index: 1050;
  }

  /* 2. Push Buttons to Bottom */
  .navbar-nav {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .nav-item.mt-3.mt-lg-0 {
    /* Sign In Item */
    margin-top: auto !important;
    /* Push to bottom */
    width: 48%;
    display: inline-block;
  }

  .nav-item.mt-2.mt-lg-0.ms-lg-2 {
    /* Book Demo Item */
    margin-top: auto !important;
    /* Align with Sign In */
    width: 48%;
    display: inline-block;
    margin-left: 4% !important;
  }

  /* Fix button containers to be side-by-side */
  /* Actually, li are block. We need absolute positioning or flex tweaking.
     Let's try flex row for the last container if possible, but they are separate li.
     Alternative: Fixed positioning for buttons?
     Let's use a simpler stack with large buttons for now, as typical Stripe forms are also stacked or side-by-side. 
     Screenshot 2 shows them side-by-side.
  */

  /* Wrapper for buttons simulation */
  .navbar-nav {
    position: relative;
    padding-bottom: 80px;
    /* Space for buttons */
  }

  .nav-item:nth-last-child(2),
  .nav-item:nth-last-child(1) {
    position: fixed;
    bottom: 20px;
    width: calc(50% - 25px);
    z-index: 1060;
  }

  .nav-item:nth-last-child(2) {
    /* Sign in */
    left: 20px;
  }

  .nav-item:nth-last-child(1) {
    /* Book Demo */
    right: 20px;
    margin-left: 0 !important;
  }

  /* 3. Main Links Styling */
  .nav-link {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #0a2540 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #e6ebf1;
  }

  /* 4. Megamenu: Clean Text List (Stripe Style) */
  .megamenu-modern-container {
    padding: 0 !important;
  }

  .megamenu-col {
    display: block !important;
    /* Reset Grid */
    margin-bottom: 2rem !important;
  }

  .megamenu-item {
    display: block !important;
    /* Stacked */
    padding: 0.75rem 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .megamenu-icon {
    display: none !important;
    /* Hide Icons */
  }

  .megamenu-title {
    font-size: 1rem !important;
    color: #635bff !important;
    /* Stripe Purple */
    margin-bottom: 0.2rem !important;
    font-weight: 500 !important;
  }

  .megamenu-desc {
    display: block !important;
    font-size: 0.9rem !important;
    color: #425466 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .megamenu-category-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #0a2540 !important;
    margin-top: 1rem !important;
    padding-left: 0 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #635bff;
    /* Branding line */
    display: inline-block;
    padding-bottom: 0.25rem;
  }
}

/* CUSTOM MENU ICON (Stripe Style) */
.navbar-toggler {
  border: none !important;
  padding: 0 !important;
  width: 48px;
  height: 48px;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* STATE: OPEN (X Icon) */
.navbar-toggler[aria-expanded="true"] {
  background-color: #ededff;
  /* Light Purple Box */
}

/* STATE: CLOSED (Hamburger) */
.navbar-toggler[aria-expanded="false"] {
  background-color: #ffffff;
  /* White Box */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* The Icon Container */
.navbar-toggler-icon {
  background-image: none !important;
  /* Remove Bootstrap SVG */
  width: 20px;
  height: 2px;
  background-color: #635bff;
  /* Middle line (Open: Hidden, Closed: Visible) */
  position: relative;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Lines Top & Bottom */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #635bff;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
}

/* Positioning */
.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

/* TRANSFORMS FOR OPEN STATE (X) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
  /* Hide middle */
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #635bff;
  /* Purple X */
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #635bff;
  /* Purple X */
}

/* COLORS FOR CLOSED STATE (Hamburger) */
.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon {
  background-color: #ff7068;
  /* Orange-Pink Middle */
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon::before {
  background-color: #ff7068;
  /* Orange-Pink Top */
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-icon::after {
  background-color: #ff7068;
  /* Orange-Pink Bottom */
}

/* Force White Navbar on Mobile (Stripe Style) */
@media (max-width: 991px) {
  .navbar {
    background-color: #ffffff !important;
    box-shadow: none !important;
    /* Clean flat look or subtle border */
    border-bottom: 1px solid #f3f4fd;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Ensure logo looks good on white if it was white-text */
  /* Assuming logo-2.png is colored or dark. If it was light for dark bg, this might be an issue. 
     But snippet shows standard logo. */

  /* Adjust collapse top position if needed */
  .navbar-collapse {
    top: 72px;
    /* Approx height of navbar with padding */
    height: calc(100vh - 72px);
  }
}

/* Ensure Full Screen Coverage for Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding-top: 80px !important;
    /* Push content below fixed header */
    z-index: 1000 !important;
    /* Behind navbar (1030) */
    background-color: #ffffff !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    display: block;
    /* Override flex if set elsewhere for collapse */
    /* Bootstrap collapse toggles display block/none via JS/height transition. 
        Wait, forcing display:block breaks collapse logic? 
        Bootstrap adds .show class. 
        .navbar-collapse is hidden by default. 
        .navbar-collapse.show is block. 
        So I should target .navbar-collapse.show or stick to Bootstrap handling visibility 
        and just style positioning.
     */
  }

  /* Reset visibility */
  .navbar-collapse:not(.show) {
    display: none !important;
  }

  .navbar-collapse.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
    /* Fade in effect */
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

/* Stripe-like Buttons Position & Style */
@media (max-width: 991px) {

  /* Button Wrapper Fix */
  .nav-item:nth-last-child(2),
  .nav-item:nth-last-child(1) {
    position: fixed !important;
    bottom: 1.5rem !important;
    z-index: 1060 !important;
    width: calc(50% - 1.25rem) !important;
    /* Split width minus gaps */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Left Button (Sign in -> matches 'Contact sales' style) */
  .nav-item:nth-last-child(2) {
    left: 1rem !important;
  }

  /* Right Button (Book Demo -> matches 'Start now' style) */
  .nav-item:nth-last-child(1) {
    right: 1rem !important;
  }

  /* Button Core Styles */
  .nav-item .btn {
    width: 100% !important;
    border-radius: 6px !important;
    /* Stripe uses slight rounding */
    padding: 10px 0 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    letter-spacing: 0.3px;
  }

  /* Secondary Style: White bg, Purple Text (Sign In) */
  .nav-item:nth-last-child(2) .btn {
    background: #ffffff !important;
    color: #635bff !important;
    border: 1px solid #cfd7df !important;
  }

  /* Primary Style: Purple bg, White Text (Book Demo) */
  .nav-item:nth-last-child(1) .btn {
    background: #635bff !important;
    color: #ffffff !important;
    border: 1px solid #635bff !important;
  }

  /* Ensure hover states */
  .nav-item:nth-last-child(1) .btn:active {
    background: #4b45e6 !important;
  }
}

/* ROBUST FULL SCREEN FIX */
@media (max-width: 991px) {

  /* 1. Ensure Navbar Header stays on top and is white */
  .navbar {
    z-index: 1040 !important;
    /* Above everything */
    background-color: #ffffff !important;
  }

  /* 2. Menu Overlay - Fix all 4 sides */
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    background-color: #ffffff !important;
    z-index: 1035 !important;
    /* Below Navbar, Above Content */
    padding-top: 80px !important;
    padding-bottom: 120px !important;
    overflow-y: auto !important;
    transform: none !important;
    border: none !important;
    margin: 0 !important;
  }

  /* 3. Ensure Buttons are visible on top of menu bg */
  .nav-item:nth-last-child(2),
  .nav-item:nth-last-child(1) {
    z-index: 1038 !important;
    /* Above menu, Below navbar */
  }
}

/* --- EMERGENCY RESET: RESTORE BASIC CLEAN MOBILE MENU --- */
@media (max-width: 991px) {

  /* 1. Reset Container to Standard Dropdown Behavior */
  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    /* Below navbar */
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    /* Remove full height force */
    width: 100% !important;
    height: auto !important;
    max-height: 85vh !important;
    /* Prevent scroll trapping */
    background-color: #ffffff !important;
    padding: 1.5rem !important;
    z-index: 1020 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 0 12px 12px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    transform: none !important;
    display: none;
    /* Let Bootstrap toggle this via .show */
  }

  .navbar-collapse.show {
    display: block !important;
  }

  /* 2. Reset Buttons to Stacked Block (No Fixed Bottom) */
  .nav-item:nth-last-child(2),
  .nav-item:nth-last-child(1) {
    position: static !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    z-index: auto !important;
  }

  .nav-item .btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    background: inherit;
    /* Reset specific colors if needed, but keeping primary colors is good */
  }

  /* Restore Buttons Specific Colors */
  .nav-item:nth-last-child(2) .btn {
    /* Sign In */
    background: #f8f9fa !important;
    color: #005197 !important;
    border: 1px solid #e9ecef !important;
  }

  .nav-item:nth-last-child(1) .btn {
    /* Book Demo */
    background: #005197 !important;
    color: #ffffff !important;
    border: 1px solid #005197 !important;
  }

  /* 3. Restore Icons & Layout */
  .megamenu-icon {
    display: flex !important;
    /* Show icons */
    width: 32px !important;
    height: 32px !important;
    margin-right: 1rem !important;
    background-color: rgba(0, 81, 151, 0.05);
    /* Restore subtle bg */
    border-radius: 6px !important;
  }

  .megamenu-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
    background: transparent !important;
  }

  .megamenu-title {
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
  }

  .megamenu-desc {
    display: block !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  .megamenu-col {
    display: block !important;
    margin-bottom: 1.5rem !important;
  }

  .megamenu-category-title {
    border: none !important;
    padding-bottom: 0 !important;
    margin-top: 1rem !important;
    color: #6c757d !important;
  }
}

/* Side-by-Side Mobile Buttons (Left & Right) */
@media (max-width: 991px) {

  /* Use Grid for layout control */
  .navbar-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    /* Consistent gap */
    padding-bottom: 1rem;
  }

  /* Full width for menu items */
  .nav-item {
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Last two items (Buttons) share row */
  .nav-item:nth-last-child(2) {
    grid-column: 1 / 2;
    /* Left Column */
    margin-top: 1rem !important;
    /* Space from menu above */
  }

  .nav-item:nth-last-child(1) {
    grid-column: 2 / 3;
    /* Right Column */
    margin-top: 1rem !important;
  }

  /* Ensure buttons fill their cell */
  .nav-item .btn {
    width: 100% !important;
    padding: 0.6rem 0.25rem !important;
    /* Prevent text wrap if possible */
    white-space: nowrap;
    font-size: 0.9rem !important;
  }

  /* Restore Button Colors just in case */
  .nav-item:nth-last-child(2) .btn {
    background: #ffffff !important;
    color: #005197 !important;
    border: 1px solid #cfd7df !important;
  }

  .nav-item:nth-last-child(1) .btn {
    background: #005197 !important;
    color: #ffffff !important;
    border: 1px solid #005197 !important;
  }
}

/* Final Mobile Button Color Overrides */
@media (max-width: 991px) {

  /* Sign In: White Button, Dark Text */
  .nav-item:nth-last-child(2) .btn {
    background: #ffffff !important;
    color: #0f172a !important;
    /* Dark Slate/Navy */
    border: 1px solid #e2e8f0 !important;
    /* Visible border on white bg */
    border-radius: 12px !important;
    font-weight: 700 !important;
  }

  /* Book Demo: Dark Navy Button, White Text */
  .nav-item:nth-last-child(1) .btn {
    background: #0f172a !important;
    /* Dark Slate/Navy */
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }
}

/* Force Transparent Header on Mobile (Unless Scrolled) */
@media (max-width: 991px) {

  /* Default Transparent State */
  .navbar:not(.scrolled) {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  /* Scrolled State (White) */
  .navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}

/* Update Mobile Menu Link Colors */
@media (max-width: 991px) {

  .navbar-nav .nav-link,
  .megamenu-title,
  .dropdown-item,
  .megamenu-sidebar-link {
    color: #0a1b2b !important;
  }
}

/* Strict Color for Products/Solutions Links */
@media (max-width: 991px) {
  .navbar-nav .nav-item .nav-link {
    color: #0a1b2b !important;
    opacity: 1 !important;
    /* Ensure no transparency */
  }

  /* Ensure active/expanded state doesn't change color to blue */
  .navbar-nav .nav-item .nav-link.show,
  .navbar-nav .nav-item .nav-link[aria-expanded="true"] {
    color: #0a1b2b !important;
  }
}

/* Make Header White When Menu is Open */
@media (max-width: 991px) {

  /* Use :has() to target parent navbar when collapse is shown */
  .navbar:has(.navbar-collapse.show) {
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f1f3f5 !important;
  }
}

/* --- GLOBAL APP STORE BUTTON STYLE --- */
.btn-app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  /* Dark Navy Text */
  background-color: #ffffff;
  border: 1px solid #0f172a;
  /* Dark Navy Border */
  border-radius: 8px;
  /* Slightly rounded */
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 160px;
  /* Ensure decent width */
  height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  /* Subtle depth */
}

/* Hover State */
.btn-app-store:hover,
.btn-app-store:focus {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Lift effect */
}

/* Active State */
.btn-app-store:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  background-color: #f1f5f9;
}

/* Icon Styling */
.btn-app-store i {
  font-size: 1.25rem;
  margin-right: 0.6rem;
  margin-bottom: 2px;
  /* Visual alignment */
}

/* Specific Vendor Icons if needed */
.btn-app-store .bi-apple {
  font-size: 1.3rem;
}

.btn-app-store .bi-google-play {
  font-size: 1.1rem;
}

/* Mobile Stack override handled by parent flex usually, 
   but ensure full width if parent is small */
@media (max-width: 576px) {
  .app-badges .btn-app-store {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
    /* Center content on mobile buttons */
  }
}