/* ==========================================================================
   WITS BRAND VARIABLES & GLOBAL SETUP
   ========================================================================== */
:root {
  /* Brand Core Colors */
  --wits-purple: #7B0680;
  --wits-purple-hover: #630467;
  --wits-purple-light: #F8EBF9;
  --wits-green: #28B438;
  --wits-green-hover: #21992E;
  --wits-green-light: #EBF8EC;

  /* Typography & Theme Colors */
  --wits-navy: #0F172A;
  --wits-text-muted: #64748B;
  --wits-border-light: #E2E8F0;
  --wits-bg-light: #F8FAFC;
}

/* Global Font Override: Plus Jakarta Sans */
body, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings & Brand Navigation */
h1, h2, h3, h4, h5, h6, .navbar-nav .nav-link, .brand-font {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Header Links */
.navbar-nav .nav-link {
  color: var(--wits-navy) !important;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--wits-purple) !important;
}

/* ==========================================================================
   UTILITY CLASSES & BRAND BUTTONS
   ========================================================================== */
.tracking-wider { letter-spacing: 0.08em; }
.fs-7 { font-size: 0.8rem; }
.fs-8 { font-size: 0.725rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-85 { max-width: 85%; }
.p-2-5 { padding: 0.65rem 0.85rem; }

/* Color Utilities */
.text-brand-purple { color: var(--wits-purple) !important; }
.text-brand-green { color: var(--wits-green) !important; }
.bg-brand-purple { background-color: var(--wits-purple) !important; }
.bg-brand-green { background-color: var(--wits-green) !important; }
.bg-brand-purple-subtle { background-color: var(--wits-purple-light) !important; }
.bg-brand-green-subtle { background-color: var(--wits-green-light) !important; }

/* Border Utilities */
.border-brand-purple-subtle { border-color: rgba(123, 6, 128, 0.25) !important; }
.border-brand-green-subtle { border-color: rgba(40, 180, 56, 0.25) !important; }

/* Primary Purple Button */
.btn-brand-purple {
  background-color: var(--wits-purple) !important;
  border-color: var(--wits-purple) !important;
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.btn-brand-purple:hover {
  background-color: var(--wits-purple-hover) !important;
  border-color: var(--wits-purple-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 6, 128, 0.25) !important;
}

/* Outline Purple Button */
.btn-outline-brand-purple {
  border-color: var(--wits-purple) !important;
  color: var(--wits-purple) !important;
  transition: all 0.25s ease;
}

.btn-outline-brand-purple:hover,
.btn-outline-brand-purple.active-tab {
  background-color: var(--wits-purple) !important;
  border-color: var(--wits-purple) !important;
  color: #ffffff !important;
}

/* Primary Green Button */
.btn-brand-green {
  background-color: var(--wits-green) !important;
  border-color: var(--wits-green) !important;
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.btn-brand-green:hover {
  background-color: var(--wits-green-hover) !important;
  border-color: var(--wits-green-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 180, 56, 0.3) !important;
}

/* ==========================================================================
   BACKGROUND PATTERNS & AMBIENT LIGHTING
   ========================================================================== */

/* Light Ambient Mesh Background (Hero) */
.whatsapp-hero-light-mix {
  background: linear-gradient(120deg, #FAF4FC 0%, #FFFFFF 50%, #F2FAF3 100%);
  position: relative;
  overflow: hidden;
}

/* AI Cyber Grid Matrix Background (Demo & Feature Sections) */
.whatsapp-demo-tech-grid {
  background-color: #fcfbfe;
  background-image: 
    linear-gradient(rgba(123, 6, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 6, 128, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(123, 6, 128, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(40, 180, 56, 0.06) 0%, transparent 40%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  position: relative;
  overflow: hidden;
}

/* Soft Floating Brand Glow Blobs */
.brand-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.blob-purple {
  width: 400px;
  height: 400px;
  background: var(--wits-purple);
  top: -10%;
  left: -5%;
}

.blob-green {
  width: 420px;
  height: 420px;
  background: var(--wits-green);
  bottom: -15%;
  right: -5%;
}

/* ==========================================================================
   DYNAMIC CHATBOT & INTERACTIVE SIMULATOR STYLES
   ========================================================================== */

/* Expanded Dynamic Chat Container */
.whatsapp-chat-expanded {
  border-color: rgba(123, 6, 128, 0.15) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  background-color: #ffffff;
}

.whatsapp-chat-expanded:hover {
  box-shadow: 0 12px 30px rgba(123, 6, 128, 0.08) !important;
  border-color: rgba(123, 6, 128, 0.3) !important;
}

/* Chat Canvas Background Pattern */
.wa-chat-body {
  background-color: var(--wits-bg-light);
  background-image: radial-gradient(#cbd5e1 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}

/* Message Bubbles & Pop-In Animation */
.wa-bubble {
  max-width: 82%;
  animation: waPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(8px);
}

@keyframes waPopIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-bubble-user {
  background-color: #ffffff;
  color: var(--wits-navy);
  border: 1px solid var(--wits-border-light);
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.wa-bubble-agent {
  background-color: var(--wits-green-light);
  color: var(--wits-navy);
  border: 1px solid rgba(40, 180, 56, 0.25);
  align-self: flex-end;
  border-top-right-radius: 4px;
}

/* Action Box inside Agent Bubble */
.wa-action-box {
  background: #ffffff;
  border: 1px solid rgba(123, 6, 128, 0.2);
  border-radius: 8px;
}

/* Status Pulse Indicators */
.pulse-dot-green {
  width: 8px;
  height: 8px;
  background-color: var(--wits-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(40, 180, 56, 0.6);
  animation: waPulseGreen 1.6s infinite;
}

@keyframes waPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(40, 180, 56, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(40, 180, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 180, 56, 0); }
}

/* Subtle Shadows */
.shadow-xs {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Hover Lift Effect */
.hover-shadow {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}


/* Interactive Integration Selector Cards */
.integration-card {
  transition: all 0.25s ease;
  border-left: 4px solid transparent !important;
  background-color: #F8FAFC !important; /* Soft light neutral background */
}

.integration-card:hover {
  transform: translateX(4px);
  background-color: #FFFFFF !important; /* Highlights on hover */
  border-color: var(--wits-border-light, #E2E8F0) !important;
}

.integration-card.active-integration {
  border-left-color: var(--wits-purple) !important;
  background-color: #FFFFFF !important; /* Pure white active card background */
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

.integration-card.active-integration i.bi-chevron-right {
  color: var(--wits-purple) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Workflow Canvas Area - Full Light Neutral Gradient */
.workflow-canvas {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border: 1px solid #E2E8F0 !important;
}



/* Dynamic Feature Cards */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease, 
              background-color 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;
}

/* Hover Accent Effects */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 6, 128, 0.3) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
  background-color: #ffffff !important;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.feature-preview-box {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover .feature-preview-box {
  background-color: #FAF4FC !important;
  border-color: rgba(123, 6, 128, 0.2) !important;
}


/*******************************End Of Core Features Section************************************************** */



/* ==========================================================================
   CORE FEATURES SECTION (DARK TECH THEME)
   ========================================================================== */

/* Section Dark Background */
#features {
  background-color: #0A0D14 !important; /* Deep dark navy/black background */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Feature Cards in Dark Theme */
#features .feature-card {
  background-color: #121824 !important; /* Elevated dark card background */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease,
              background-color 0.3s ease;
}

/* Text Overrides for Dark Background */
#features h2, 
#features h3 {
  color: #FFFFFF !important;
}

#features p.text-secondary {
  color: #94A3B8 !important; /* Muted slate text for high contrast */
}

/* Card Hover Effects */
#features .feature-card:hover {
  transform: translateY(-6px);
  background-color: #161F30 !important;
  border-color: rgba(123, 6, 128, 0.5) !important; /* Brand Purple Border Highlight */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

/* Micro-console / Preview Box Inside Dark Card */
#features .feature-preview-box {
  background-color: #0A0D14 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

#features .feature-card:hover .feature-preview-box {
  border-color: rgba(123, 6, 128, 0.3) !important;
  background-color: rgba(123, 6, 128, 0.1) !important;
}

/* Badges in Dark Theme */
#features .badge.bg-light {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #CBD5E1 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/*******************************End Of Core Features Section************************************************** */


/* ==========================================================================
   BUSINESS USE CASES (DARK THEME STYLES)
   ========================================================================== */

/* Dark Background Palette */
.bg-dark-theme {
  background-color: #0A0D14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-dark-card {
  background-color: #121824 !important;
}

.bg-dark-header {
  background-color: #161F30 !important;
}

.border-dark-subtle {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.text-slate-300 { color: #CBD5E1 !important; }
.text-slate-400 { color: #94A3B8 !important; }

.bg-brand-green-subtle-dark {
  background-color: rgba(40, 180, 56, 0.12) !important;
}

/* Tab Button Styling for Dark Theme */
.btn-outline-dark-tab {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #CBD5E1 !important;
  background-color: transparent !important;
  transition: all 0.25s ease;
}

.btn-outline-dark-tab:hover,
.btn-outline-dark-tab.active-tab {
  background-color: var(--wits-purple) !important;
  border-color: var(--wits-purple) !important;
  color: #ffffff !important;
}

/* Chat Message Styles for Dark Phone Canvas */
.uc-msg-user {
  background-color: #1E293B;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  max-width: 85%;
  border-top-left-radius: 4px;
}

.uc-msg-agent {
  background-color: rgba(40, 180, 56, 0.15);
  color: #F8FAFC;
  border: 1px solid rgba(40, 180, 56, 0.3);
  align-self: flex-end;
  max-width: 85%;
  border-top-right-radius: 4px;
}

.uc-action-btn {
  border: 1px solid rgba(123, 6, 128, 0.4);
  color: #E2E8F0;
  background-color: #121824;
  transition: all 0.2s ease;
}

.uc-action-btn:hover {
  background-color: var(--wits-purple);
  color: #ffffff;
}

/* Animated Typing Indicator Dots */
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--wits-green, #28B438);
  border-radius: 50%;
  animation: typingBlink 1.4s infinite both;
  margin-right: 3px;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}



/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

   /* Model Card Styling (Light Theme) */
.model-card {
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 6, 128, 0.3) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.model-badge-icon {
  transition: transform 0.3s ease;
}

.model-card:hover .model-badge-icon {
  transform: scale(1.1) rotate(4deg);
}

/* Subtle Vertical Bounce Animation for Routing Arrow */
.animate-bounce {
  animation: bounceLight 2s infinite;
}

@keyframes bounceLight {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}


/* ==========================================================================
   END OF WHATSAPP ASSISTANT CUSTOM STYLES
   ========================================================================== */

   /* Final CTA Box Hover Lift */
#cta-section .rounded-5 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cta-section .rounded-5:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(123, 6, 128, 0.08) !important;
}

/* Gap Helper Utility */
.gap-1-5 { gap: 0.375rem !important; }