:root {
  --logo-blue: #2563eb;
  --logo-dark-blue: #1e40af;
  --logo-purple: #7c3aed;
  --neon-glow: 0 0 10px rgba(124, 58, 237, 0.7);
  --header-height: 44px;
  --section-gap: 1.2rem;
}

/* =========================================================
   HEADER LAYOUT & EFFECTS
   ========================================================= */
header,
header * {
  box-sizing: border-box;
}

header {
  display: flex;
  align-items: center; /* Vertically center all items */
  justify-content: space-between; /* Logo/name left, nav right */
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 0 1rem;
  background-color: #13111c;
  border-bottom: 1px solid #6b21a8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  overflow: hidden;
  box-sizing: border-box;
}

header::before,
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -50px;
  width: 50px;
  height: 1px;
  background: radial-gradient(circle, #ffd270 25%, transparent 50%);
  box-shadow:
    0 0 4px #ffd270,
    0 0 8px #ffd270,
    0 0 12px #ffd270;
  animation: sparkleFly 2s linear infinite;
}

header::before {
  animation-delay: 0s;
}

header::after {
  animation-delay: 1s;
}

@keyframes sparkleFly {
  0% { left: -50px; opacity: 0.7; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0.7; }
}

/* Left: logo + company name */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--header-height);
}

.header-left img,
header img,
header svg {
  height: 20px;
  max-height: 22px;
  width: auto;
  display: block;
  vertical-align: middle;
}

/* Navigation on right side */
nav {
  margin-left: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.top-menu-item,
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 0.75rem;
  height: 70%;
  display: flex;
  align-items: center;
  line-height: 1;
  background: none;
  border: none;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--logo-blue), var(--logo-purple));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

header > * {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header .header-left {
  margin-left: 0;
  padding-left: 0;
}

/* ADD THIS CONSOLIDATED BLOCK */
html {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
  
  /* Background styles */
  background-image: image-set(
    url('./assets/hero/hero-bg.webp') type('image/webp'),
    url('./assets/hero/hero-bg.png') type('image/png')
  );
  background-color: #13111c; /* Fallback color */
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  /* Flexbox layout for sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  margin-top: var(--header-height);
  margin-bottom: 0;
  overflow-y: auto;
}

main.content-mode {
  margin-bottom: 0;
  overflow-y: auto; /* allows scroll only when needed */
}

a:focus, button:focus {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  outline-radius: 4px;
}
a:not(:focus-visible), button:not(:focus-visible) {
  outline: none;
}

.dropdown-container, .nested-dropdown {
  position: relative;
}
.dropdown-menu, .nested-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(21, 30, 51, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 100;
  white-space: nowrap;
}
.nested-dropdown-menu {
  left: 100%;
  top: -10px;
}
.nested-dropdown-menu.flip-left {
  left: auto;
  right: 100%;
  top: -10px;
}

.dropdown-container:hover .dropdown-menu,
.nested-dropdown:hover .nested-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item, .nested-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #e2e8f0;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  cursor: pointer;
}
.nested-dropdown-item { font-size: 0.85rem; padding: 8px 20px 8px 15px; }
.dropdown-item:hover,
.nested-dropdown-item:hover,
.dropdown-item:focus,
.nested-dropdown-item:focus {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
}
.dropdown-item i, .nested-dropdown-item i {
  width: 20px;
  margin-right: 12px;
  font-size: 0.9rem;
}

#chatMessages {
  background-color: #ffffff; /* Keep current */
  /* Copy styling from .chat-log */
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #444;
}

/* Make user/bot messages look like chat bubbles */
.message.user {
  background: #0078d4;
  color: white;
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 16px 16px 0 16px;
  max-width: 70%;
  margin: 4px 0;
}

.message.bot {
  background: #f0f0f0;
  color: #333;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 0;
  max-width: 70%;
  margin: 4px 0;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.chat-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #0078d4;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#chat-close {
  font-size: 30px;
  cursor: pointer;
  margin-left: auto;
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 320px;
  background-color: #ffffff;
  overflow: hidden;
}

.chat-log {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #444;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  background-color: #0078d4;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#chatInput {
  color: #333333;
  background-color: #ffffff;
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.chatSubmit {
  margin-left: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 8px 8px;
  background: #e1171a;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 40px 40px 40px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.chatbot-container {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  right: 4vw;
  width: 60vw;
  height: calc(80vh - var(--footer-height)); 
  flex-direction: column;
  background: rgba(21, 30, 51, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  visibility: hidden;
}
 
.chatbot-container.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
  animation: scaleIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.user-msg {
  background: #3b82f6;
  color: white;
  align-self: flex-end;
}

.bot-msg {
  background: #334155;
  color: #ddd;
  align-self: flex-start;
}

.inline-wrapper {
  display: inline;
  word-break: break-word;
  white-space: normal; /* allows wrapping */
}

.show-more-btn {
  all: unset;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0078d4;
  text-decoration: underline;
  cursor: pointer;
  display: inline;
  margin-left: 4px;
  vertical-align: baseline;
}

@media (max-width: 767px) {
  .dropdown-menu,
  .nested-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown-menu.open,
  .nested-dropdown-menu.open {
    max-height: 500px;
  }

  #mobileMenu {
    max-height: 100vh;
    overflow-y: auto;
  }
}

.solutions {
  padding: 4rem 1.5rem;
  background-color: #1e293b;
}

.solutions h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
  text-align: center;
}

.solutions .bg-slate-900 {
  background-color: #13111c;
  border-color: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.solutions .p-6 {
  padding: 1.5rem;
}

.solutions .flex {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.solutions img {
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.solutions h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.solutions ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.solutions ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
}

.solutions ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #7c3aed;
  font-weight: 900;
}

.hero-section {
  width: 100%;
  position: relative;
  min-height: calc(100vh - var(--header-height));
  height: auto;
  display: block;
  overflow: visible;
  background: transparent;
}

.hero-section.menu-content-mode {
  background: none;
  display: flex;
  align-items: flex-start;
  color: white;
  height: auto;                 /* fully flexible height */
  min-height: 0;                 /* remove viewport clamping */
  overflow: visible;             /* allow children to extend height */
  width: 100%;
}

.hero-section:not(.menu-content-mode) {
  height: calc(100vh - var(--header-height) - var(--footer-height));
  margin: 0;
  padding: 0;
}

.menu-content-mode > div {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-group {
  display: flex;
  gap: 20px;
}

@keyframes cardHover {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.card {
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  background-color: #ffffff;
  border: 1px solid #0078d4;
  border-radius: 12px;
  height: auto;
  width: auto;
  max-width: none;
  margin: 12px auto;
  display: block;
  align-items: center;
  justify-content: center;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
  padding: 6px 12px;                /* Add some internal spacing */
  white-space: nowrap;             /* Prevent wrapping inside cards */
}

.card:hover,
.card:active {
  background-color: #f1f3f5;
  animation: cardHover 0.4s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px)
}

#chatMenuRoot {
  display: flex;
  flex-direction: column;     /* Stack cards vertically */
  align-items: flex-start;    /* Align cards to the left */
  margin-top: 12px;           /* Optional spacing above cards */
}

@media (max-width: 600px) {
  .card {
    font-size: 14px;
    height: 42px;
    max-width: 100%;
    margin: 10px auto;
  }
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loader:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #0078d4;
  border-color: #0078d4 transparent #0078d4 transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.message.loading em {
  opacity: 0.1;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.1; }
  50% { opacity: 1; }
  100% { opacity: 0.; }
}

/* Glass effect utility */
.glass {
  background: rgba(25, 20, 52, 0.4);
  backdrop-filter: blur(9px) saturate(140%);
  border: 1.5px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 6px 36px 0 rgba(37,99,235,0.12);
}
.neon-text {
  color: #fad676;
  text-shadow: 0 0 8px #fedc91, 0 0 40px #7c3aed66;
}
.gradient-text {
  background: linear-gradient(90deg, #38bdf8 30%, #7c3aed 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.neon-accent { color: #7c3aed; }

.role-img {
  width: 64px; height: 64px; margin-bottom: 14px; filter: drop-shadow(0 1px 20px #7c3aed55);
  border-radius: 11px; background: #23295b29; padding: 0.4rem;
}
.role-title {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #89faff;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.features {
  flex: 1;
  list-style: none;
  padding: 0; margin: 0 0 1.2rem 0;
}
.features li {
  text-align: left;
  font-size: 0.99rem;
  color: #a0aec0;
  margin-bottom: 0.3em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-btn {
  margin-top: auto;
  min-width: 100px;
}

.price-card {
  min-width: 230px;
  padding: 1.3rem 2.1rem;
  border-radius: 1.0em;
  text-align: center;
  color: #e0e9ff;
  font-weight: 500;
  margin-bottom: 7px;
}
.price-card .card-title {
  font-size: 1.08rem;
  margin-bottom: 0.7em;
  color: #fae3fe;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.price-card .card-price {
  font-size: 2rem; font-weight: bold; color: #7c3aed;
  letter-spacing: -2px;
  text-shadow: 0 2px 16px #7c3aed21;
  margin-bottom: 0.1em;
}
.price-card .card-desc {
  color: #b4daff;
  font-size: 1.01rem;
}
.price-card.glow-blue {
  box-shadow: 0 0 18px 0 #38bdf890;
  border: 2px solid #38bdf8cc;
}
.price-card.glow-purple {
  box-shadow: 0 0 18px 0 #7c3aed80;
  border: 2px solid #7c3aedcc;
}
.price-card.highlight {
  background: linear-gradient(99deg, #7c3aed1e 30%, #38bdf829 80%);
}
.price-card:not(.highlight) {
  background: linear-gradient(99deg, #1e283b 25%, #23295b 80%);
}

.big-btn-glow:hover, .main-btn:hover {
  background: linear-gradient(90deg, #7c3aed 45%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 6px 32px #7c3aed29, 0 2px 14px #38bdf85a;
}
.cta-note { color: #b9f9f5; opacity: 0.78; font-size: 1.01rem; }

/* Buttons – role cards */
.main-btn {
  background: linear-gradient(90deg, #7c3aed 25%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.54em 1.6em;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 0 16px #6be2fa13;
  transition: background 0.23s, color 0.23s;
  cursor: pointer;
}

/* Initially hide for SPA swap */
.hidden {
  display: none;
}

/* === Themed Scrollbar: Applies everywhere site-wide === */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--logo-blue) #13111c; /* Firefox */
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.85);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--logo-blue), var(--logo-purple));
  border-radius: 6px;
  border: 2px solid #13111c;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa, #a78bfa);
}

/* Make injected menu content inside hero full width */
.hero-section.menu-content-mode > * {
  width: 100%;
  max-width: none;  /* removes any width cap */
}

/* === AI Workforce (final, single source of truth) === */
.ai-workforce { width: 100%; color: #e5e7eb; }

.aiw-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.aiw-slider-viewport {
  overflow: hidden;
  width: 80vw;
  margin: 2rem auto 0;   /* center horizontally */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* full-bleed centering trick */
}

/* Reset hero-style bleed for AI hero-cta */
#ai-workforce {
  background: none !important;
  padding-bottom: 5rem; /* A larger value to fix the overlap */
}

.hero-cta {
  gap: 5rem;
  margin-top: 0rem; /* already exists? just adjust value */
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* stacks nicely on mobile */
}

/* primary button */
.btn-primary {
  background: #0a1b9c;
  color: #ffffff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(230,0,74,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  color: #0a1b9c;
  background: #ffffff;
}

/* secondary button (subtle glassy effect) */
.btn-secondary {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  color: #0a1b9c;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

/* AI Workforce Header */
.aiw-header {
  position: relative;
  z-index: 2;                 /* keep above slider */
  text-align: center;
  margin-top: -1.5rem; 
  line-height: 1.4;
  margin-bottom: 2.25rem;
}

.aiw-heading-line1,
.aiw-heading-line2,
.aiw-heading-line3 {
  display: block !important; /* Add !important here */
  text-align: center;
  margin: 0.5rem 0;
  color: #fff;                /* white text */
}

.aiw-heading-line1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.aiw-heading-line2 {
  font-size: 1rem;
  font-weight: 800;
}

.aiw-heading-line3 {
  font-size: 1.8rem;
  font-weight: 900;
}

.recruit-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #e6004a;
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 5px 10px;
	border: 2px dotted #e6004a; /* Red dotted border */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 14px rgba(230, 0, 74, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
	margin-top: 1rem;
	animation: fadeIn 0.5s ease-in forwards;
}

.recruit-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recruit-cta:hover {
    transform: translateY(-2px);
	color: #13111c;
	border: 1px solid #e6004a;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.recruit-cta:hover::before {
    opacity: 1;
}

.recruit-cta:active {
    transform: translateY(0);
}

.recruit-cta span {
    position: relative;
    z-index: 1;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.quick-btn {
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.quick-btn:hover {
  background: #005fa3;
}

.highlight {
    color: #4299E1;
    font-weight: 700;
}

.color-header1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.color-header2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e1171a;
    line-height: 1.2;
}

.color-header3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.active-menu {
  background-color: #e5e5e5; /* bright silver */
  color: #1f2937 !important; /* dark gray (your site's theme text) */
  font-weight: 600;
  border-radius: 0.5rem;
}

/* === Fix: Back to Home button unified position === */
.back-home {
  display: inline-flex; /* Changed from position: absolute */
  align-items: center;
  margin-left: 1rem;
  padding: 0.25rem 0.75rem;
  color: #a78bfa; /* A lighter purple to match nav highlights */
  font-weight: 600;
  background-color: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 9999px; /* Pill shape */
  transition: all 0.2s ease;
  z-index: 10;
}

.back-home:hover {
  background-color: rgba(124, 58, 237, 0.2);
  color: #e2e8f0; /* Lighter text on hover */
}

main {
  min-height: calc(100vh - var(--header-height) - var(--footer-height)) !important;
  overflow: visible !important;
}

.fullpage-section {
  background-image: image-set(
    url('../assets/hero/hero-bg.webp') type('image/webp'),
    url('../assets/hero/hero-bg.png') type('image/png')
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; 

  width: 100%;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
  flex-grow: 1; 
}

.fullpage-section .content-wrapper {
  transform-origin: top center;
  transform: scale(1);
  display: block;       /* full width, not shrinking */
  width: 100%;          /* occupy the entire section */
  max-width: 100%;      /* don’t let it be capped */
}

.fullpage-section .section-header {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

/* Option A: subtle white card with blur (recommended for dark text) */
.fullpage-section .section-header {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

/* make Hire AI Workforce cards look like Custom Solutions (white + translucent) */
#hireWorkforce .aiworkforce-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  display: flex;            /* keep flex column inside each card */
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  color: #13111c;
  box-shadow: 0 6px 20px rgba(2,6,23,0.06);
  width: 100%;
}

#hireWorkforce .aiworkforce-grid {
  gap: 1rem;               /* space between cards */
  grid-template-columns: 1fr;     /* ONLY ONE column */
  align-items: center;     /* center cards horizontally if they’re smaller than container */
}

#hireWorkforce .aiworkforce-grid .card {
  width: auto;              /* minimal width based on content */
  max-width: 300px;         /* adjust this as you like */
  padding: 1rem;
  box-sizing: border-box;
}

#hireWorkforce .aiworkforce-title,
#hireWorkforce .aiworkforce-title { color: #13111c !important; }
#hireWorkforce .aiworkforce-subtitle { color: #374151; } /* muted dark */
#hireWorkforce .aiworkforce-roles li::before { color: #10b981; } /* green checkmark if you like */

#hireWorkforce .aiworkforce-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #13111c; /* warm gold */
  margin-bottom: 0.2rem;
}

#hireWorkforce .aiworkforce-subtitle {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#hireWorkforce .aiworkforce-roles {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

#hireWorkforce .aiworkforce-roles li {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  position: relative;
  padding-left: 1.2rem;
}

#hireWorkforce .aiworkforce-roles li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 0.8rem;
}

#hireWorkforce .aiworkforce-training {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}

#hireWorkforce .aiworkforce-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;  /* spread buttons evenly */
}

#hireWorkforce .aiworkforce-btn {
  flex: 1 1 50%;       /* each button ~30% width, fits 3 per row */
  max-width: 50%;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;   /* slightly smaller text */
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
}

#hireWorkforce .aiworkforce-btn.hire {
  background: #13111c;
  color: #ffffff;
}

#hireWorkforce .aiworkforce-btn.hire:hover {
  background: #ffffff;
  color: #13111c;
}

#hireWorkforce .aiworkforce-btn.salary {
  background: #13111c;
  color: #ffffff;
}
#hireWorkforce .aiworkforce-btn.salary:hover {
  background: #ffffff;
  color: #13111c;
}

#hireWorkforce .aiworkforce-btn.demo {
  background: #13111c;
  color: #ffffff;
}
#hireWorkforce .aiworkforce-btn.demo:hover {
  background: #ffffff;
  color: #13111c;
}

#hireWorkforce .aiworkforce-footer-cta {
  text-align: center;
  margin-top: 2rem;
}

#hireWorkforce .aiworkforce-footer-cta .aiworkforce-btn.consult {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
}
#hireWorkforce .aiworkforce-footer-cta .aiworkforce-btn.consult:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Add these new styles to your css/styles.css file */

.chat-form-container {
  background-color: #f0f2f5;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  max-width: 90%;
  align-self: flex-start;
  border: 1px solid #e0e0e0;
}

.chat-form-container form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-form-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}
.chat-form-input:focus {
  outline: 2px solid #0078d4;
  border-color: #0078d4;
}

.chat-form-submit {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.chat-form-submit:hover {
  background-color: #005a9e;
}

.chat-form-submit:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

.chat-form-error {
  font-size: 12px;
  color: #d9534f;
  margin-top: 4px;
}

.chat-action-buttons button {
    flex: 1 1 auto;
    padding: 6px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid #0078d4;
    background-color: #e7f5ff;
    color: #005a9e;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-action-buttons button:hover {
    background-color: #d0e9ff;
}

/* blinking typing dots (WhatsApp-like) */
.typing-dots {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.95em;
  color: #666;
  animation: blink 1s steps(1, start) infinite;
}

/* make the aiValue label look nice */
.message.bot strong {
  margin-right: 6px;
  font-weight: 600;
  color: #0b66ff; /* tweak to your brand color */
}

/* subtle bubble/content spacing (optional) */
.message .bot-content {
  display: inline;
}

/* blink animation */
@keyframes blink { 
  50% { opacity: 0; } 
}

/* small responsive tweak to ensure long messages wrap nicely */
#chatMessages .message { 
  word-wrap: break-word;
  white-space: pre-wrap; /* preserve line breaks if any */
}
/* AIW Rotator (2 cards desktop, 1 card mobile) */
.aiw-rotator {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  text-align: center;
  min-height: 220px;

  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.aiw-rotator .aiw-feature-box {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  flex: 0 0 48%;   /* desktop: 2 per row */
}

.aiw-rotator .aiw-feature-box.active {
  display: block;
  opacity: 1;
  z-index: 1;
}

/* On small screens: show one card at a time */
@media (max-width: 768px) {
  .aiw-rotator {
    flex-wrap: nowrap;
  }
  .aiw-rotator .aiw-feature-box {
    flex: 0 0 100%; /* full width */
  }
}

/* === HERO BENEFIT CARDS – CLEANED AND OPTIMIZED === */

.benefit-section {
  width: 100%;
  margin: 2rem auto 1rem auto;
  display: flex;
  justify-content: center;
  padding: 0 1rem; /* ADDED: Horizontal padding for spacing */
  box-sizing: border-box; /* ADDED: Ensures padding is calculated correctly */
}

/* ADD THIS NEW RULE */
.benefit-slider {
  width: 100%;
}

.benefit-slider .slider-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Card container */
.benefit-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 10px; /* minimal padding — maximizes usable width */
  text-align: left; /* better alignment for long text */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  
  flex: 0 1 205px; /* Don't grow, shrink if needed, with a base width of 220px */
  max-width: 100%;
}

/* Card text styles */
.benefit-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #13111c;
  margin-bottom: 6px;
  line-height: 1.2;
}

.benefit-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #13111c;
  margin-bottom: 6px;
  line-height: 1.2;
}

.benefit-description {
  font-size: 1.2rem;
  color: #13111c;
  font-weight: 600;
  line-height: 1.2;
}

/* Responsive tightening for small screens */
@media (max-width: 900px) {
  .benefit-slider .slider-track {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .benefit-card {
    padding: 14px 8px;
  }
  .benefit-title { font-size: 1rem; }
  .benefit-subtitle { font-size: 0.85rem; }
}

@media (max-width: 600px) {
  .benefit-slider .slider-track {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    padding: 12px 10px;
  }
}

/* === Fix for background images on benefit cards === */
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 100% 100%; /* fills card fully, even if distorted */
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.benefit-card > * {
  position: relative;
  z-index: 2;
}

/* Light overlay to make text readable */
.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* make sure card allows absolutely positioned background */
.benefit-card {
  position: relative;
  overflow: hidden;
}

.cost-card::before {
  background-image: url("../assets/benefits/cut-costs.webp");
}
.sales-card::before {
  background-image: url("../assets/benefits/boost-sales.webp");
}
.time-card::before {
  background-image: url("../assets/benefits/save-time.webp");
}
.cx-card::before {
  background-image: url("../assets/benefits/improve-cx.webp");
}
.insights-card::before {
  background-image: url("../assets/benefits/insights.webp");
}
.scale-card::before {
  background-image: url("../assets/benefits/scale-card.webp");
}
.operate24-card::before {
  background-image: url("../assets/benefits/operate24-card.webp");
}
.accuracy-card::before {
  background-image: url("../assets/benefits/accuracy-card.webp");
}
.predict-card::before {
  background-image: url("../assets/benefits/predict-card.webp");
}
.one-time-setup-card::before {
  background-image: url("../assets/benefits/one-time-setup-card.webp");
}
.no-hr-card::before {
  background-image: url("../assets/benefits/no-hr-card.webp");
}
.ai-workforce-card::before {
  background-image: url("../assets/benefits/ai-workforce-card.webp");
}
.productivity-card::before {
  background-image: url("../assets/benefits/productivity-card.webp");
}

@media (max-width: 900px) {
  .benefit-card::before {
    background-size: contain;
  }
}

/* HOW IT WORKS – requested tweaks */

.hiw-step {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;          /* <-- now with horizontal gap too */
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #13111c;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

.hiw-card {
    display: flex;
    flex-direction: column;
    /* Optional: Set a max-width for better display on large screens */
    max-width: 300px;
    /* Ensure no text overflows the card boundaries */
    overflow: hidden; 
    text-align: center;
    padding: 1rem; /* Adjust padding as needed */
}

/* Media Query to adjust for very small screens */
@media (max-width: 480px) {
    .hiw-card {
        padding: 0.75rem; /* Reduce padding on tiny screens */
    }
}

/* step title directly below number */
.hiw-title {
  font-size: clamp(0.8rem, 1.5vw + 0.2rem, 1rem);
  color: #13111c;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.2rem 0 0.3rem 0;
}

/* description directly below title */
.hiw-desc {
  font-size: clamp(0.7rem, 1.5vw + 0.1rem, 0.9rem);
  font-size: 0.9rem;
  font-weight: 800;
  color: #13111c;
  line-height: 1.35;
  margin: 0;
}

/* Make the title text responsive (e.g., "Free AI Consultation") */
.hiw-card .hiw-title {
    /* Fluid size: min 1.1rem, preferred 1.5vw + 0.6rem, max 1.3rem */
    font-size: clamp(1.1rem, 1.5vw + 0.6rem, 1.3rem);
    font-weight: 700;
    margin-top: 0.5rem; /* Add some space above the title */
    line-height: 1.3;
}

/* Make the description text responsive (the detail text) */
.hiw-card .hiw-desc {
    /* Fluid size: min 0.8rem, preferred 1vw + 0.4rem, max 0.95rem */
    font-size: clamp(0.8rem, 1vw + 0.4rem, 0.95rem);
    font-weight: 400;
    line-height: 1.4;
    /* Optional: Ensure text content can scroll if card height is fixed and content is long */
    /* If the cards have a fixed height, consider using overflow: hidden or adjusting height. */
}

.hiw-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ===== Ensure badge sits with horizontal gap (highest-confidence fix) ===== */
.hiw-card { 
  position: relative !important; /* ensure badge positions relative to card */
  overflow: hidden;              /* keep badge inside rounded card */
}

/* apply to any placement of the badge inside the card */
.hiw-card .hiw-step {
  position: absolute !important;
  top: 12px !important;   /* ~0.75rem vertical gap */
  left: 12px !important;  /* ~0.75rem horizontal gap */
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #13111c !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
  z-index: 50 !important;
  pointer-events: none; /* avoids accidental clicks on the badge */
}

.hiw-card .hiw-bg {
  position: absolute;
  inset: 0;                  /* stretch to fill card */
  width: 100%;
  height: 100%;
  object-fit: fill;           /* ignore aspect ratio, always fit */
  z-index: 0;                 /* behind content */
}

.hiw-card > *:not(.hiw-bg) {
  position: relative;
  z-index: 1;                 /* content above image */
}

.hiw-heading {
  background-color: #13111c;
  color: #ffffff;
  display: inline-block;
  padding: 0.5rem 1rem; /* Slightly larger padding for better appearance */
  border-radius: 6px;
  
  /* Enhanced responsive font sizing */
  font-size: clamp(1.25rem, 4vw + 0.5rem, 2.25rem);
  line-height: 1.3;
  font-weight: 700;
  
  /* Ensure text scales smoothly */
  text-align: center;
  margin: 1rem auto;
  width: auto;
  max-width: 90%; /* Prevent overflow on small screens */
  
  /* Smooth transitions for resizing */
  transition: font-size 0.3s ease;
}

/* Specific breakpoint adjustments */
@media (max-width: 640px) {
  .hiw-heading {
    font-size: 1.5rem !important;
    padding: 0.4rem 0.8rem;
    margin: 0.5rem auto;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hiw-heading {
    font-size: 1.8rem !important;
  }
}

@media (min-width: 1025px) {
  .hiw-heading {
    font-size: 2rem !important;
  }
}

.consult-link {
  color: #13111c !important;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;

  /* Nuclear compact frosted glass */
  background: #ffffff;
  border-radius: 12px;
  padding: 0.2rem 0.2rem;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);

  transition: all 0.3s ease;
}

.consult-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 17, 26, 0.7),
              0 0 28px rgba(255, 119, 255, 0.5),
              0 0 40px rgba(0, 180, 255, 0.3);
}

/* === Custom Solutions Styling (reuse workforce look) === */

/* Stack & width control */
/* Make Custom Solutions behave like Hire Workforce */
.customsolutions-stack {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers children like hireWorkforce grid */
  gap: 1.5rem;
  width: 100%;           /* allow full width container */
  margin-top: 2rem;
}

/* Card width & layout match exactly */
.customsolutions-card {
  width: 80%;
  background-color: #ffffff;
  color: #13111c;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-sizing: border-box;
}

/* Mobile behavior: same as hireWorkforce (90% or 100%) */
@media (max-width: 768px) {
  .customsolutions-card {
    width: 90%;
    max-width: none;
  }
}


/* Titles & subtitles */
.customsolutions-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.customsolutions-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #444;
}

/* List items */
.customsolutions-roles li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.customsolutions-roles input[type="checkbox"] {
  margin-right: 0.4rem;
}

.customsolutions-formbox {
  background-color: #ffffff;
  color: #13111c;
  border-radius: 16px;
  padding: 1.5rem;
  width: 80%;
  max-width: 800px;     /* ✅ same cap */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .customsolutions-formbox {
    width: 90%;
    max-width: none;
  }
}

/* Inputs */
#customSolutions input,
#customSolutions textarea {
  color: #13111c;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Button */
.customsolutions-btn {
  background-color: #13111c;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.customsolutions-btn:hover {
  background-color: #ffffff;
  color: #13111c;
}

/* Container & stack */
.partnerWithUs-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

/* Card base */
.partnerWithUs-card {
  width: 100%;
  background-color: #ffffff; /* fallback */
  color: #13111c;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;

  /* SAME HEIGHT ENFORCED */
  min-height: 320px;           /* final ideal height (desktop) */
  height: 320px;               /* make them explicit same height */

  /* Background image (cover & center) */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

/* Overlay to ensure text readability on images */
.partnerWithUs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px;
}

/* Internal content sits above overlay */
.partnerWithUs-content,
.partnerWithUs-actions {
  position: relative;
  z-index: 1;
}

/* Titles & copy */
.partnerWithUs-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #13111c;
}

.partnerWithUs-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

/* CTA container */
.partnerWithUs-actions {
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.partnerWithUs-btn {
  background: #13111c;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* Modal styles */
.partner-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.partner-modal-panel {
  width: 90%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.partner-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Inputs */
.partner-input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 0.25rem;
  box-sizing: border-box;
}

/* Submit */
.partner-submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  background: #e1171a;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Confirmation */
.partner-confirm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
}

.partner-confirm-panel {
  width: 90%;
  max-width: 420px;
  background: #fff;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.partner-confirm-close {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #13111c;
  color: #fff;
  border-radius: 8px;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .partnerWithUs-card {
    width: 90%;
    height: auto;
    min-height: 300px; /* slightly shorter on mobile */
  }
  .partnerWithUs-stack { gap: 1rem; }
  .partnerWithUs-actions { justify-content: center; }
}

/* Container & stack */
.services-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

/* Card base */
.services-card {
  width: 80%;
  background-color: #ffffff; /* fallback */
  color: #13111c;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;

  /* SAME HEIGHT ENFORCED */
  min-height: auto;           /* final ideal height (desktop) */
  height: auto;               /* make them explicit same height */

  /* Background image (cover & center) */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

/* Overlay to ensure text readability on images */
.services-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px;
}

/* Internal content sits above overlay */
.services-content,
.services-actions {
  position: relative;
  z-index: 1;
}

/* Titles & copy */
.services-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #13111c;
  text-align: center; /* center horizontally */
}

.services-subtitle {
  font-size: 1.20rem;
  font-weight: 700;
  color: #13111c;
  margin-bottom: 0.5rem;
}

.services-roles {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.services-content-full {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.services-roles li {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  position: relative;
  font-weight: 500;
  padding-left: 1.2rem;
}

.services-content-full li {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  position: relative;
  font-weight: 500;
  padding-left: 1.2rem;
}

.services-roles li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #13111c;
  font-size: 0.8rem;
}

.services-content-full li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #13111c;
  font-size: 0.8rem;
}

/* CTA container */
.services-actions {
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.services-training {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  font-weight: 500;

  /* make container inline-flex for vertical alignment */
  display: inline-flex;
  align-items: center;
}

.services-training::before {
  content: "👉"; 
  margin-right: 0.5rem;
  font-size: 1rem; /* bigger hand */
  line-height: 1; /* ensures vertical centering */
}

.services-efforts {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.services-efforts::before {
  content: "⚡"; 
  margin-right: 0.5rem;
  font-size: 1rem; /* bigger hand */
  line-height: 1; /* ensures vertical centering */
}

.services-pricing {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.services-pricing::before {
  content: "🏷️"; 
  margin-right: 0.5rem;
  font-size: 1rem; /* bigger hand */
  line-height: 1; /* ensures vertical centering */
}

.services-lifetime {
  font-size: 1rem;
  color: #13111c;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.services-lifetime::before {
  content: "📅"; 
  margin-right: 0.5rem;
  font-size: 1rem; /* bigger hand */
  line-height: 1; /* ensures vertical centering */
}

.services-disclaimer {
  font-size: 1rem;
  color: #e1171a;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.services-disclaimer::before {
  content: "ℹ️"; 
  margin-right: 0.5rem;
  font-size: 1rem; /* bigger hand */
  line-height: 1; /* ensures vertical centering */
}

.services-btn {
  background: #13111c;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.services-btn:hover {
  background: #ffffff;
  color: #13111c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modal styles */
.services-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.services-modal-panel {
  width: 90%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.services-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Inputs */
.services-input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 0.25rem;
  box-sizing: border-box;
}

/* Submit */
.services-submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  background: #e1171a;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Confirmation */
.services-confirm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
}

.services-confirm-panel {
  width: 90%;
  max-width: 420px;
  background: #fff;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.services-confirm-close {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #13111c;
  color: #fff;
  border-radius: 8px;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .services-card {
    width: 90%;
    height: auto;
    min-height: 300px; /* slightly shorter on mobile */
  }
  .services-stack { gap: 1rem; }
  .services-actions { justify-content: center; }
}

/* Frosted blur background for custom solutions form area */
.blurred-box {
  background: rgba(255, 255, 255, 0.5); /* semi-transparent white */
  backdrop-filter: blur(10px);           /* blur the background behind it */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.careers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Reuse hiw-card style but tone it down */
.about-values .hiw-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.about-values .hiw-card,
#aboutUs .hiw-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.about-card {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem; /* rounded corners */
  overflow: hidden;
  padding: 2rem;
  color: #13111c; /* dark text for contrast */
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay tint for readability */
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8); /* semi-transparent white overlay */
  backdrop-filter: blur(4px); /* frosted effect */
  z-index: 0;
}

.about-card > * {
  position: relative;
  z-index: 1;
}


/* Container for the scrolling area */
.aiw-features-container {
    overflow: hidden; /* Hide scrollbars for a clean look, or use 'auto' to show them */
    padding: 20px 0; /* Add some vertical space if needed */
}

/* =========================================================
   AI WORKFORCE CARD STACK & HORIZONTAL SCROLL (Final CSS)
   ========================================================= */

/* =========================================================
   AI WORKFORCE CARD STACK & HORIZONTAL SCROLL (Strict 1-Card View)
   ========================================================= */

/* The horizontal scroll wrapper */
.aiw-features-list {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory; /* Enforce snapping to a card */
    gap: 0; /* REMOVE GAP */
    
    /* REMOVE ALL HORIZONTAL PADDING (0 left/right) */
    padding: 20px 0;
	overflow-y: hidden;
    
    /* Hide scrollbar visually */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.aiw-features-list::-webkit-scrollbar {
    display: none;
}

/* Individual Feature Box / Card */
.aiw-feature-box {
    /* CRITICAL: Make card take up 100% of the container width */
    width: 100%; 
    max-width: 100%; /* Ensure it respects the parent's width */
    flex-shrink: 0; 
    
    min-height: 150px; /* Prevents the box from becoming too flat */
    height: auto;      /* Allows the box height to grow with content */
    /* REMOVED: height: 200px; */
	
    padding: 1rem;
    border-radius: 12px;
    color: #13111c;
	background : #2a2832;
    text-align: left;
	
	display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center;
	align-items: center;
    overflow: hidden;
	
    /* CRITICAL: Snap to the start position now that there is no padding/margin */
    scroll-snap-align: start; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    
    /* REMOVE STACK EFFECT SCALING/OPACITY */
    transform: scale(1);
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1;
	
}

/* The active card effect is now redundant, but keep for smooth transitions if scrolling manually */
.aiw-feature-box.current-card {
    transform: scale(1);
    opacity: 1;
    z-index: 10; 
}

/* Ensure no margins are left over from previous attempts */
.aiw-feature-box:first-child,
.aiw-feature-box:last-child {
    margin: 0 !important;
}

/* Style for the inner strong/title text */
.aiw-feature-box strong {
    display: block;
    font-weight: 700;
	line-height: 1.2;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.1); /* Helps text stand out on image */
}

/* Style for the main feature title (First line) */
.aiw-feature-title {
    /* Adjust this value to control the gap below the first line */
    margin-bottom: 1rem;
}

.aiw-feature-title strong {
    /* Increase Font Size for the first line */
    font-size: clamp(1.2rem, 3vw + 0.5rem, 2rem); 
    font-weight: 900; /* Extra Bolder */
    line-height: 1.1;
    display: block;
}

.aiw-feature-desc {
    /* Adjust this value to control the gap below the first line */
    margin-bottom: .5rem; 
}

/* Style for the descriptive text */
.aiw-feature-desc strong {
	font-size: clamp(0.9rem, 2vw + 0.4rem, 1.5rem);
    font-weight: 700;
	flex-grow: 1;
    line-height: 1.1;
    display: block;
}

.aiw-text-wrapper {
    /* 1. Ensure the wrapper takes up the full available width, 
          ignoring the parent's align-items: center */
    width: 100%;
    align-self: stretch; 
    
    /* 2. Center the text horizontally inside the wrapper */
    text-align: center;
    
    /* 3. Ensure the text elements within the wrapper inherit center alignment */
}

/* Optional: To remove the default left-alignment and use center alignment */
.aiw-feature-box {
    /* Set text-align to center to make the text align to the center 
       of the card's available space */
    text-align: center; 
    /* Keep justify-content: center and align-items: center for vertical and block centering */
}

/* =========================================================
   FOOTER MOBILE STYLING FIX (Targeting max-width 767px)
   ========================================================= */

#ai-demo-widget {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  height: 95vh;
  max-width: 1400px;
  max-height: 900px;
  min-width: 320px;
  min-height: 400px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: white;
}

#ai-demo-widget:not(.hidden) {
  display: flex;
}

/* Header with close button */
#ai-chat-header {
  background: #13111c;
  color: white;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}

#ai-chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Close button */
.demo-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.demo-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Body container */
#ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9fafb;
}

/* Primary buttons */
.demo-primary-btn,
#demo-start-btn,
#marketing-start-btn,
#platforms-next-btn,
#budget-confirm-btn,
#launch-campaigns-btn,
#refresh-performance-btn {
  background: #13111c !important;
  color: white !important;
}

.demo-primary-btn:hover,
#demo-start-btn:hover,
#marketing-start-btn:hover,
#platforms-next-btn:hover,
#budget-confirm-btn:hover,
#launch-campaigns-btn:hover,
#refresh-performance-btn:hover {
  background: #2a2735 !important;
}

/* Budget sliders */
.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #13111c;
  cursor: pointer;
  transition: transform 0.2s;
}

.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.budget-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #13111c;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.budget-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Platform selection cards */
.platform-card {
  transition: all 0.2s;
}

.platform-card:hover {
  border-color: #13111c !important;
  box-shadow: 0 2px 8px rgba(19, 17, 28, 0.1);
}

.platform-checkbox:checked {
  accent-color: #13111c;
}

/* Dashboard navigation */
.dashboard-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
}

.dashboard-nav-item {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
  white-space: nowrap;
}

.dashboard-nav-item:hover {
  color: #13111c;
}

.dashboard-nav-item.active {
  color: #13111c;
  border-bottom-color: #13111c;
}

/* Chart container */
/* Chart container */
.chart-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Passphrase display */
.passphrase-display {
  background: #13111c;
  color: white;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.passphrase-code {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 10px 0;
}

/* Mobile phone input */
.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-prefix {
  background: #13111c;
  color: white;
  padding: 10px 16px;
  border-radius: 8px 0 0 8px;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #ai-demo-widget {
    width: 95vw;
    height: 90vh;
  }
  
  .dashboard-nav {
    flex-wrap: wrap;
  }
}

/* Loading spinner with brand color */
.spinner-border {
  border-color: #13111c;
  border-right-color: transparent;
}

/* Modal overlay for login message */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.demo-modal {
  background: white;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-modal h3 {
  color: #13111c;
  margin-bottom: 12px;
}

.demo-modal button {
  background: #13111c;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 16px;
}

.demo-modal button:hover {
  background: #2a2735;
}

#hireWorkforce .aiworkforce,
#partnerWithUs .partnerWithUs-card,
#careers .career-card {
  width: 80%;
  margin: 0 auto 1.5rem auto;
  display: block;
}

#hireWorkforce .aiworkforce-grid,
#partner .partner-grid,
#careers .careers-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-inline {
  width: 100%;
  position: relative;
  background: transparent;
  /*padding: 1rem 2rem; ✨ Single-card centered layout */
  padding-top: 6px;
  padding-bottom: 6px;
  color: #e5e5e5;
  z-index: 20;
  box-sizing: border-box;
  border-top: 1px solid #6b21a8;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  opacity: 1 !important;
  transform: none !important;
}

.footer-left { font-size: 0.85rem; font-weight: 400; text-align: left; flex: 1; }

.section-bg {
  /* Background styles */
  background-image: image-set(
    url('../assets/hero/hero-bg.webp') type('image/webp'),
    url('../assets/hero/hero-bg.png') type('image/png')
  );
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Custom CSS for the image replacing the hero text */
.hero-image-replacement {
    display: block; /* Ensures it behaves like a block element */
    max-width: 100%; /* Guarantees it stays within the container */
    height: 40px; /* Maintains the 5:3 aspect ratio */
    margin-left: auto;
    margin-right: auto; /* Ensures horizontal centering within the flex container */
}

.hero-image-squashed {
    height: 100px; /* Keeping your desired squashed height */
    object-fit: contain;
    width: auto;
    
    /* Ensure the image remains centered on the screen */
    margin-left: auto;
    margin-right: auto;
}


/* hero container fine-tune */
.hero-section .container {
  padding-top: 0 !important;
  margin-bottom: 0.8rem !important; /* minimal gap below hero image */
}

/* shrink spacing above/below benefits */
.benefit-section {
  margin-top: 0.4rem !important;
  margin-bottom: 0.8rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* tighten gap between benefits and AIW features */
.aiw-features-container {
  margin-top: 0.6rem !important;
  padding-top: 0 !important;
}

/* Give hero-content breathing room from header and next section */
.hero-section {
  margin-bottom: var(--section-gap);
}

/* fine-tune the content wrapper (if it’s adding unwanted padding) */
.hero-section .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero-content {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

/* tighten benefit section — equal to hero gaps */
.benefit-section {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* reduce the big gap before AIW features to match same rhythm */
.aiw-features-container {
  margin-top: var(--section-gap);
  padding-top: 0 !important;
}

/* 🩹 override nested containers that may add extra top margin */
.aiw-features-container .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.aiw-features-container .fade-in {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.aiw-features-container .aiw-features-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* also remove any hidden vertical padding from slider/benefit track */
.benefit-slider{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.slider-track {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ADD THIS NEW RULE for mobile screens */
@media (max-width: 640px) {
  .hero-image-squashed {
    width: 95%; /* Makes the image much wider on small screens */
    height: auto; /* Let height be automatic on mobile for better proportion */
  }
}

/* ===== aiv component styles (non-destructive) ===== */
/* ===== aiv modal + faq drawer + accordion (Option B, style C) ===== */

/* CTA buttons — kept as before for consistent styling */
.aiv-cta-btn {
  background: linear-gradient(90deg,#7c3aed,#38bdf8);
  color:#ffffff;
  border:none;
  box-shadow: 0 10px 30px rgba(124,58,237,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.aiv-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(2,6,23,0.06); }

/* Modal */
.aiv-modal { display: none; }
.aiv-modal.open { display: block; }
.aiv-modal-backdrop { opacity: 1; transition: opacity .2s ease; }

.aiv-modal-panel {
  will-change: transform, opacity;
  transform-origin: center center;
  transition: transform .22s cubic-bezier(.22,.9,.34,1), opacity .18s ease;
  opacity: 1;
}

/* =========================
   aiv: FAQ polish — backdrop, height-aware, CTA active, accordion micro-interactions
   Replace previous aiv-faq CSS with this block
   ========================= */

/* =========================
   aiv: FAQ FINAL styling - header, section bars, colors, no inner scroll
   ========================= */

/* =========================
   FINAL aiv FAQ CSS (replace previous aiv-faq CSS)
   - wiki links embedded as inline links (handled in HTML)
   - header and section bars forced white on #13111c
   - no inner scrollbar, page scrolls naturally
   ========================= */

.aiv-faq-drawer {
  overflow: hidden;
  max-height: 0;
  pointer-events: none;
  opacity: 0;
  transition: max-height 420ms cubic-bezier(.2,.9,.3,1), opacity 260ms ease;
  position: relative;
  margin-top: 0.75rem; /* gap under CTA buttons */
}

.aiv-faq-drawer.open {
  max-height: none !important;
  opacity: 1;
  pointer-events: auto;
  position: relative; /* just to be safe */
}

/* backdrop (visual only) */
.aiv-faq-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.03), rgba(15,23,42,0.02));
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 850;
}
.aiv-faq-backdrop.open { opacity: 1; }

/* panel, wrap */
.aiv-faq-wrap { max-width: 96rem; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
.aiv-faq-panel {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.06);
  border: 1px solid rgba(2,6,23,0.04);
  overflow: visible;
}

/* main header (left-aligned title) */
.aiv-faq-header { border-radius: 16px 16px 0 0; }
.aiv-faq-title { color: #ffffff !important; font-weight:700; }

/* section bars for each column (centered white text on dark bg, rounded) */
.aiv-section-bar {
  background: #13111c;
  color: #ffffff !important;
  text-align: center;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* body: NO internal scroll; contents will flow with page scroll */
.aiv-faq-body {
  padding: 1.5rem;
  overflow: visible;
  max-height: none;
}

/* CTA active: white bg and dark text; no translateY when active */
.aiv-cta-active {
  background: #ffffff !important;
  color: #13111c !important;
  border: 1px solid rgba(19,17,28,0.06) !important;
  box-shadow: 0 10px 28px rgba(2,6,23,0.06);
  transform: none !important; /* ensure no transform while active */
}

/* CTA hover when inactive only */
.aiv-cta-btn:not(.aiv-cta-active):hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2,6,23,0.06); }

/* Force question & answer text color to #13111c */
.aiv-qa-q, .aiv-qa-answer, .aiv-section-bar, .aiv-faq-title, .aiv-faq-body h4, .aiv-faq-body p {
  color: #13111c !important;
}

/* Accordion cards */
.aiv-accordion .aiv-qa {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15,23,42,0.06);
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms ease;
}
.aiv-accordion .aiv-qa + .aiv-qa { margin-top: 10px; }

/* active item lift */
.aiv-qa.open { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(15,23,42,0.08); }

/* question button */
.aiv-qa-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  background: linear-gradient(180deg,#ffffff,#fbfbfd);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.98rem;
}
.aiv-qa-q:hover { background: linear-gradient(180deg,#fbfbff,#f8f9fb); }

/* icon */
.aiv-qa-icon {
  width: 28px; height: 28px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; background:#f3f4f6; color:#374151; transition: transform 260ms cubic-bezier(.2,.9,.3,1), background 180ms ease;
  transform-origin:center;
}
.aiv-qa.open .aiv-qa-icon { transform: rotate(180deg); background:#eef2ff; }

/* answer area - initially collapsed */
.aiv-qa-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(.2,.9,.3,1), padding 180ms ease;
  color: #13111c;
  font-size: 0.95rem;
  line-height: 1.6;
}
.aiv-qa.open .aiv-qa-answer { padding: 12px 18px 18px 18px; }

/* responsive tweaks */
@media (max-width: 640px) {
  .aiv-faq-wrap { padding: 0 0.8rem; }
  .aiv-qa-q { padding: 14px 14px; font-size:0.96rem; }
}

/* Define a consistent gap variable for hero section */
:root {
  --hero-gap: 1.5rem; /* Adjust this value as needed; 1.5rem = 24px feels balanced */
}

/* Ensure main starts right below fixed header without extra gap */
main {
  margin-top: var(--header-height) !important; /* Keep this to clear the fixed header */
}

/* Hero section: Remove uneven padding/margin, add consistent gap below content */
.hero-section {
  margin-top: 0 !important; /* No extra top margin; main's margin-top handles the header clearance */
  margin-bottom: 0 !important; /* No bottom margin on the section itself */
}

.hero-section .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important; /* Override any existing bottom margin */
}

.hero-content {
  margin-top: 0 !important; /* No extra top inside */
  margin-bottom: var(--hero-gap) !important; /* Uniform gap below hero image to next block */
}

/* Benefit section: Uniform top margin (gap from hero content) */
.benefit-section {
  margin-top: var(--hero-gap) !important;
  margin-bottom: var(--hero-gap) !important; /* Gap to AIW features */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* AIW features: Uniform top margin (gap from benefit section) */
.aiw-features-container {
  margin-top: var(--hero-gap) !important;
  margin-bottom: var(--hero-gap) !important; /* Gap to CTAs */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* CTAs: Uniform top margin (gap from AIW features) */
.aiv-ctas {
  margin-top: var(--hero-gap) !important;
  margin-bottom: 1.5rem !important; /* Optional: Extra bottom for section end; adjust if needed */
}

/* Remove any conflicting overrides (these were causing unevenness) */
.hero-section .container {
  margin-bottom: 0 !important; /* Override the 0.8rem */
}

.benefit-section {
  margin-top: var(--hero-gap) !important; /* Override the 0.4rem */
}

.aiw-features-container {
  margin-top: var(--hero-gap) !important; /* Override the 0.6rem */
}

/* Mobile adjustments: Tighten gaps slightly for smaller screens */
@media (max-width: 640px) {
  :root {
    --hero-gap: 1rem; /* Smaller gaps on mobile for better flow */
  }
  
  .hero-image-squashed {
    width: 95% !important; /* Keep your existing mobile width */
    margin-bottom: var(--hero-gap) !important; /* Ensure image doesn't squeeze gaps */
  }
}

/* =========================
  UI POLISH: modal + CTAs + FAQ tweaks
  Paste at end of styles.css to override earlier rules
   ========================= */

/* ---------- WHY MODAL: single-column, no internal scroll, header + close button white ---------- */
#aiv-why-modal .aiv-modal-dialog,
#aiv-why-modal .aiv-modal-content {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 1.25rem auto !important;
  box-sizing: border-box;
  overflow: visible !important; /* let content flow naturally */
}

/* modal inner body: stack items vertically, full width */
#aiv-why-modal .aiv-modal-body,
#aiv-why-modal .aiv-why-body {
  display: block !important;
  width: 100% !important;
  padding: 1.25rem 1.5rem !important;
  box-sizing: border-box;
  overflow: visible !important;
}

/* remove inner scrollbar */
#aiv-why-modal .aiv-modal-body * { overflow: visible !important; }

/* header: dark bg, white text, close button white */
#aiv-why-modal .aiv-modal-header {
  background: #13111c !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-radius: 12px 12px 0 0 !important;
}
#aiv-why-modal .aiv-modal-header h2,
#aiv-why-modal .aiv-modal-header h3 {
  color: #ffffff !important;
  margin: 0 !important;
}

/* make modal close icons/text white */
#aiv-why-modal .aiv-modal-close,
#aiv-why-close,
#aiv-why-close-2,
#aiv-why-modal .close {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* hide bottom footer strip (buttons) inside modal (visual removal) */
#aiv-why-modal .aiv-modal-footer,
#aiv-why-modal .modal-footer,
#aiv-why-modal .aiv-why-footer {
  display: none !important;
}

/* force modal content to single column children */
#aiv-why-modal .aiv-why-columns,
#aiv-why-modal .aiv-why-grid {
  display: block !important;
}

/* items inside modal should be full width and stacked */
#aiv-why-modal .aiv-why-item {
  width: 100% !important;
  display: block !important;
  margin-bottom: 0.85rem !important;
}

.aiv-ctas {
  width: 80% !important;
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* inner flex: distribute horizontally, each button flex:1, gap small */
.aiv-ctas .flex {
  display: flex !important;
  gap: .6rem !important;
  align-items: center;
  justify-content: center;
}

/* each CTA fills evenly */
.aiv-ctas .aiv-cta-btn {
  flex: 1 1 0%;
  min-width: 0;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

/* hover: white background and dark text (#13111c) */
.aiv-ctas .aiv-cta-btn:hover {
  background: #ffffff !important;
  color: #13111c !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2,6,23,0.06);
}

/* active CTA (when FAQ open) should be white bg + dark text and NO translate */
.aiv-ctas .aiv-cta-btn.aiv-cta-active {
  background: #ffffff !important;
  color: #13111c !important;
  transform: none !important;
  box-shadow: 0 12px 36px rgba(2,6,23,0.07);
}

/* ensure buttons look good on small screens: stack vertically under 640px */
@media (max-width: 640px) {
  .aiv-ctas { width: 92% !important; }
  .aiv-ctas .flex { flex-direction: column !important; gap: .6rem !important; }
  .aiv-ctas .aiv-cta-btn { width: 100%; }
}

/* ---------- FAQ tweaks: heading colors, link style, no internal scrollbar ---------- */

/* main drawer title & section bars forced white on dark bg */
.aiv-faq-header .aiv-faq-title,
.aiv-section-bar {
  color: #ffffff !important;
}

/* ensure section-bar bg stays dark */
.aiv-section-bar { background: #13111c !important; }

/* FAQ header (top title) forced white */
.aiv-faq-title { color: #ffffff !important; }

/* Answers and questions text: force #13111c */
.aiv-qa-q, .aiv-qa-answer, .aiv-faq-body p, .aiv-faq-body li, .aiv-faq-body ul, .aiv-faq-body h4 {
  color: #13111c !important;
}

/* wiki link style inside FAQ — typical blue + underline */
.aiv-faq-body a {
  color: #1a0dab !important; /* standard Google blue */
  text-decoration: underline !important;
}
/* if link appears on dark background (section-bar), make sure it's visible */
.aiv-section-bar a { color: #ffffff !important; text-decoration: none !important; }

/* remove any internal scrollbars inside faq body or modal */
.aiv-faq-panel, .aiv-faq-body, #aiv-why-modal .aiv-modal-body { overflow: visible !important; }

/* small spacing tweak for readability */
.aiv-faq-body ul { margin-left: 1.1rem; }
.aiv-faq-body p { margin-bottom: 0.6rem; line-height: 1.6; }

/* ensure accordion expanded answers don't clip: allow 'none' after transition via JS */
.aiv-qa-answer { transition: max-height 360ms cubic-bezier(.2,.9,.3,1), padding 180ms ease; }

/* minor mobile tweaks for section bar */
@media (max-width: 900px) {
  .aiv-section-bar { font-size: 0.98rem; padding: 9px 10px; }
}

/* =========================
  PATCH: modal border, uniform icons, CTA layout, and FAQ link styling
  Paste at end of styles.css to override previous rules
   ========================= */

/* --- Modal: white border for the entire panel --- */
.aiv-modal-panel,
#aiv-why-modal .aiv-modal-panel,
#aiv-why-modal .aiv-modal-panel {
  border: 4px solid #ffffff !important;
  box-sizing: border-box;
}

/* --- Icons inside modal: fixed uniform size and centered two-letter labels --- */
.aiv-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
}

/* ensure two-letter content doesn't overflow */
.aiv-icon > * { display:inline-block; text-align:center; }

.aiv-ctas {
  width: 80% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1100px;
}

.aiv-ctas .flex {
  display: flex !important;
  gap: 0.75rem !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* buttons fit text, do NOT stretch; they look balanced across the container */
.aiv-ctas .aiv-cta-btn {
  flex: 0 0 auto;           /* don't grow, don't shrink */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;      /* comfortable text fit */
  white-space: nowrap;
  min-width: 0;
}

/* hover behavior: white bg + dark text */
.aiv-ctas .aiv-cta-btn:hover {
  background: #ffffff !important;
  color: #13111c !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2,6,23,0.06);
}

/* active CTA (FAQ open): white bg + dark text, no translate */
.aiv-ctas .aiv-cta-btn.aiv-cta-active {
  background: #ffffff !important;
  color: #13111c !important;
  transform: none !important;
  box-shadow: 0 12px 36px rgba(2,6,23,0.07);
}

/* responsive: stack when narrow */
@media (max-width: 640px) {
  .aiv-ctas { width: 92% !important; }
  .aiv-ctas .flex { flex-direction: column; gap: 0.75rem; }
  .aiv-ctas .aiv-cta-btn { width: 100%; }
}

/* --- FAQ link styling: inline, blue, underlined --- */
.aiv-faq-body a {
  color: #1a0dab !important;
  text-decoration: underline !important;
}

/* ensure section headers (on dark bg) remain white */
.aiv-section-bar,
.aiv-faq-title {
  color: #ffffff !important;
}

/* ensure FAQ content color */
.aiv-qa-q, .aiv-qa-answer, .aiv-faq-body p, .aiv-faq-body li {
  color: #13111c !important;
}

/* small spacing and unclipped answers */
.aiv-qa-answer { transition: max-height 360ms cubic-bezier(.2,.9,.3,1), padding 180ms ease; }

/* ensure modal items stay same icon sizing even if other CSS interferes */
#aiv-why-modal .aiv-icon { width:48px !important; height:48px !important; }

/* Make sure modal panel allows natural page scroll if content is tall (not locked center) */
.aiv-modal-panel { position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 2rem auto !important; }


/* =========================================================
   HIRE AI WORKFORCE - LAYOUT & STYLE CHANGES (October 2025) - CORRECTED
   ========================================================= */

/* --- Industry Sub-menu Tabs --- */
.industry-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.industry-tab:hover {
  background-color: rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

.industry-tab.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* --- Card Grid & Width --- */
#hireWorkforce .aiworkforce-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* --- FIX 2: Card Layout for side-by-side content and buttons --- */
#hireWorkforce .aiworkforce-card {
  width: 80%;
  margin: 0;
  background: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), 0 8px 32px rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  
  /* Flexbox for side-by-side layout */
  display: flex;
  flex-direction: row; /* Horizontal layout */
  justify-content: space-between; /* Pushes content and buttons apart */
  align-items: flex-start; /* Aligns items to the top */
  gap: 1rem; /* Space between content and buttons */
  
    /* Background image (cover & center) */
    background-image: url('../assets/ai-employees/ai-workforce.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  overflow: hidden;
}

/* New wrapper for the text content on the left */
.aiworkforce-content {
  flex-grow: 1; /* Allows the content to take up available space */
}

/* --- Button Styling & Right-Alignment --- */
#hireWorkforce .aiworkforce-actions {
  /* Aligns buttons vertically and to the right */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  
  /* Prevents the button container from shrinking */
  flex-shrink: 0;
  
  /* Removed margin-top: auto as it's no longer needed */
  padding-top: 0;
}

#hireWorkforce .aiworkforce-btn {
  /* Resetting flex properties from previous attempts */
  flex: none;
  max-width: none;
  
  /* Size reduction */
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  
  /* Default Colors & Border */
  background: #13111c;
  color: #ffffff;
  border: 2px solid #13111c;
  transition: all 0.2s ease-in-out;
}

/* Hover State */
#hireWorkforce .aiworkforce-btn:hover {
  background: #ffffff;
  color: #13111c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #hireWorkforce .aiworkforce-card {
    width: 90%;
    flex-direction: column; /* Stack content and buttons on mobile */
    align-items: stretch; /* Make items full width */
  }
  
  #hireWorkforce .aiworkforce-actions {
    flex-direction: row; /* Buttons side-by-side on mobile */
    justify-content: flex-end; /* Align to the right */
    margin-top: 1rem;
  }

  .industry-tab {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
  .text-center { text-align: center; }

  .section-subhead {
    color: #ffffff;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
  }

  .section-intro {
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    font-size: 1.15rem;
  }
  /* HERO GLASS CARD */
  .about-hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(8,10,20,0.45);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.25rem;
    color: #0f1724;
    position: relative;
    overflow: hidden;
	
  background-size: 100% 100%;  /* STRETCH to fit both width & height */
  background-position: center;
  background-repeat: no-repeat;

  }

  /* subtle diagonal accent */
  .about-hero::after {
    content: "";
    position: absolute;
    right: -40%;
    top: -30%;
    width: 120%;
    height: 120%;
    background: linear-gradient(120deg, rgba(56,189,248,0.06), rgba(99,102,241,0.04));
    transform: rotate(15deg);
    pointer-events: none;
  }

  .about-hero-content {
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .about-hero-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 0.35rem 0;
    color: #13111c;
	text-align: center;
  }
  .about-hero-tagline {
    margin: 0 0 0.75rem 0;
    color: #13111c;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .about-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .about-hero-list li {
    font-size: 1rem;
	font-weight: 700;
    margin-bottom: 0.35rem;
    color: #13111c;
    position: relative;
    padding-left: 1.2rem;
  }
  .about-hero-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #60a5fa; /* soft blue check */
    font-size: 0.9rem;
  }

  /* Stats box (right side) */
  .about-hero-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
    z-index: 1;
  }
  .about-hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
  }
  .about-hero-stats .stat-num {
    font-size: 1.125rem;
    font-weight: 900;
    color: #071029;
  }
  .about-hero-stats .stat-label {
    font-size: 0.75rem;
    color: #334155;
    margin-top: 0.15rem;
    font-weight: 700;
  }
  .about-hero-stats .divider {
    color: rgba(7,16,41,0.18);
    font-weight: 900;
    font-size: 1.25rem;
  }

  /* VALUES GRID */
  .about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .about-value-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,252,0.98));
    border-radius: 12px;
    padding: 0.95rem 1rem;
    box-shadow: 0 6px 18px rgba(8,10,20,0.06);
    border: 1px solid rgba(8,10,20,0.04);
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .value-title {
    font-size: 1rem;
    font-weight: 800;
    color: #071029;
    margin: 0 0 0.25rem 0;
	text-align: center;
  }
  .value-text {
    font-size: 0.92rem;
    color: #334155;
    margin: 0;
    font-weight: 600;
    line-height: 1.25;
  }

  /* NOTE / final tribute */
  .about-note {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(8,10,20,0.04);
    box-shadow: 0 6px 18px rgba(8,10,20,0.06);
    text-align: center;
  }
  .about-note p {
    margin: 0;
    color: #0f1724;
    font-weight: 700;
    font-size: 0.95rem;
  }

.about-subhead {
  font-size: 1.1rem; /* or 1.2rem/1.25rem as needed */
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.about-hero,
.about-values,
.about-note {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .about-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .about-hero-stats { margin-left: 0; width: 100%; justify-content: flex-start; gap: 1rem; }
    .about-values { grid-template-columns: 1fr; }
  }

  @media (max-width: 480px) {
    .about-title { font-size: 1.35rem; }
    .about-hero { padding: 1rem; border-radius: 10px; }
    .about-hero-stats .stat-num { font-size: 1rem; }
    .about-value-card { padding: 0.8rem; }
  }
  
/* Co-partner Section */
.copartner-section {
  width: 80%;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.copartner-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.copartner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.copartner-item {
  flex: 0 1 calc(10% - 1rem);
  max-width: 120px;
}

.copartner-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === HERO BENEFIT CARDS – ANIMATED CARD STACK === */

.benefit-section {
  width: 100%;
  margin: 2rem auto 1rem auto;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}

.benefit-slider {
  width: 95%; /* Occupy 80% of width */
  margin: 0 auto;
}

.benefit-slider .slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* <-- THIS IS THE FIX. */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Card container - stacked positioning */
.benefit-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center to flex-start */
  align-items: flex-start; /* Changed from center to flex-start */
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 32px 24px; /* More top padding for better positioning */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  
  /* Initial state - hidden and scaled down */
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: none;
}

/* Active card - visible */
.benefit-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
  animation: cardEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Exiting card animation */
.benefit-card.exiting {
  z-index: 5;
  animation: cardExit 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

/* Enter animation - from within */
@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    filter: blur(8px);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Exit animation - fade and scale out */
@keyframes cardExit {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: scale(1.15) translateY(-20px);
    filter: blur(6px);
  }
}

/* Unified CTA Button Styles - matching Hire Now aesthetic */
.unified-cta-btn{
  background: #2563eb;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unified-cta-btn:hover {
  background: #ffffff;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Demo window text color fixes */
.demo-message.bot,
.demo-message.assistant,
#demo-chat-state,
#demo-chat-state p,
#demo-chat-state div,
#demo-chat-state span,
#demo-chat-state label,
#demo-chat-state h1,
#demo-chat-state h2,
#demo-chat-state h3,
#demo-chat-state h4 {
  color: #13111c !important;
}

.demo-message.bot p,
.demo-message.assistant p {
  color: #13111c !important;
}

/* Ensure backgrounds with #13111c have white text */
[style*="background:#13111c"],
[style*="background: #13111c"],
.bg-\[\#13111c\] {
  color: #ffffff !important;
}

/* --- V5 STYLES - FLUID & WRAPPING TEXT --- */

/* Glow container remains the same */
.glow-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}
.section-header-glow-dark {
  position: relative;
  text-align: center;
  padding: clamp(0.6rem, 3vw, 1.2rem);
  background: rgba(255, 255, 255, 0.08); /* translucent glass */
  color: #f4f4f7;
  border-radius: 18px;
  width: 88%;
  max-width: 900px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 10px rgba(255, 255, 255, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.3); /* faint depth, not heaviness */
  backdrop-filter: blur(14px) saturate(160%);
  transition: all 0.3s ease;
}

.section-header-glow-dark h2 {
  font-weight: 700;
  font-size: clamp(0.9rem, 4vw, 1.3rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(90deg, #e0e0e0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.section-header-glow-dark .subhead {
  font-weight: 500;
  color: #d0d0d8;
  font-size: clamp(0.75rem, 3vw, 1.1rem);
}

.section-header-glow-dark .intro {
  font-weight: 600;
  color: #f5f5fa;
  font-size: clamp(0.85rem, 3vw, 1.2rem);
}

/* refine glow container to be whisper-light */
.glow-container::before {
  inset: -40px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  filter: blur(40px);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

@keyframes blinkRare {
  0%, 100% { color: #ffffff; }
  50% { color: #e1171a; }
}

.blink-rare {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  animation: blinkRare 1.5s ease-in-out infinite;
}

#services { overflow-x: hidden; }
#hero { overflow-x: hidden; }
#hireWorkforce { overflow-x: hidden; }
#aboutUs { overflow-x: hidden; }
#partnerWithUs { overflow-x: hidden; }
#aiFellowship { overflow-x: hidden; }
#customSolutions { overflow-x: hidden; }

.bg-white ul {
  margin: 8px 0;
  padding-left: 20px;
}

.bg-white li {
  margin: 4px 0;
  list-style-type: disc;
}

.bg-white strong {
  font-weight: 600;
  color: #13111c;
}

.bg-white p {
  margin: 8px 0;
  line-height: 1.5;
}

/* =========================================================
   MOBILE FIX - PROPER SLIDER IMAGE VISIBILITY
   ========================================================= */

/* Mobile adjustments: Maintain proper aspect ratio and visibility */
@media (max-width: 768px) {
  /* Keep the aspect ratio container working properly */
  .benefit-slider .slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  /* Ensure benefit cards display properly */
  .benefit-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1rem;
  }
  
  /* Fix background for mobile - ensure full coverage */
  .benefit-card::before {
    background-size: 100% 100% !important; /* Force stretch to fill on mobile */
  }
  
  /* Adjust text sizing for mobile readability */
  .benefit-title {
    font-size: 1.2rem;
  }
  
  .benefit-subtitle {
    font-size: 1rem;
  }
  
  .benefit-description {
    font-size: 0.95rem;
  }
  
  /* AI Workforce feature cards */
  .aiw-features-list {
    padding: 1rem 0;
  }
  
  .aiw-feature-box {
    min-height: 180px;
    background-size: cover;
    background-position: center;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .benefit-card {
    padding: 1.25rem 0.875rem;
  }
  
  .benefit-title {
    font-size: 1.1rem;
  }
  
  .benefit-subtitle {
    font-size: 0.95rem;
  }
  
  .benefit-description {
    font-size: 0.9rem;
  }
}

.ultra-section {
  padding: 90px 20px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.ultra-heading {
  text-align: center;
  margin-bottom: 60px;
}

.ultra-heading h2 {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.ultra-heading p {
  font-size: 1.2rem;
  color: #666;
  margin-top: 12px;
}

.ultra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
}

.ultra-card {
  position: relative;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(18px);
  padding: 32px 28px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.35s ease;
  transform-style: preserve-3d;
}

/* neon gradient border */
.ultra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(120deg, #06b6d4, #8b5cf6, #ec4899, #06b6d4);
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderflow 5s linear infinite;
  pointer-events: none;
}

@keyframes borderflow {
  0% { background-position: 0% 0%; }
  50% { background-position: 200% 200%; }
  100% { background-position: 0% 0%; }
}

/* floating glow orb */
.blur-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 70%);
  top: -80px;
  right: -80px;
  opacity: 0.25;
  filter: blur(40px);
  z-index: 0;
  transition: transform 0.5s ease;
}

.stack-section {
  padding: 16px 0;
  max-width: 900px;
  margin: 0 auto;
}

.stack-header {
  text-align: center;
  margin-bottom: 16px;
}

.stack-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff !important;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  
  padding: 18px 20px;
  color: #ffffff;
  
  transition: 0.25s ease;
}
.stack-card:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

.stack-card:hover h3,
.stack-card:hover .stack-desc,
.stack-card:hover .stack-icon {
  color: #000000 !important;
  filter: none !important;
}

.stack-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stack-icon {
  color: #ffffff !important;
  font-size: 1.7rem;
  filter: brightness(1.8);
}


.stack-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.stack-desc {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 6px;
  padding-left: 40px;
}


.stack-wrapper-container {
  background: rgba(255, 255, 255, 0.06); /* soft transparent glass */
  border: 1px solid rgba(255, 255, 255, 0.85); /* subtle white border */
  backdrop-filter: blur(12px); /* light glass effect */
  
  border-radius: 22px;
  
  max-width: 940px;
  margin: 0 auto;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25); /* soft depth, consistent with theme */
}


/* --------------------------
   CUSTOMER SUPPORT CHAT FIX
   -------------------------- */

#cs-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;

  background: #ffffff;
  padding: 12px;
  border-radius: 12px;

  overflow-y: auto;
  max-height: 65vh;
}

/* user (right bubble) */
.demo-message.user {
  align-self: flex-end;
  background: #0078d4;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 16px 16px 0 16px;
  max-width: 75%;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ai (left bubble) */
.demo-message.ai {
  align-self: flex-start;
  background: #f2f2f2;
  color: #333;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 0;
  max-width: 75%;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* make markdown output pretty */
.demo-message.ai ul {
  padding-left: 20px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.demo-message.ai li {
  list-style-type: disc;
  margin-bottom: 4px;
}

/* Ensure flex column children can shrink and scroll properly */
#demo-chat-state,
#demo-chat-state > .flex {
  min-height: 0;
}

/* Make chat area behave like a real chat window */
.cs-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px; /* safe */
}


/* Force override for the customer support chat window */
#cs-chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 12px !important;
}

/* USER bubble */
.demo-message.user {
  align-self: flex-end !important;
  background: #0078d4 !important;
  color: #fff !important;
  padding: 10px 14px !important;
  border-radius: 16px 16px 0 16px !important;
  max-width: 75% !important;
}

/* AI bubble */
.demo-message.ai {
  align-self: flex-start !important;
  background: #f2f2f2 !important;
  color: #333 !important;
  padding: 10px 14px !important;
  border-radius: 16px 16px 16px 0 !important;
  max-width: 75% !important;
}


#demo-chat-state {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

#demo-chat-state > div {
  max-width: 100% !important;
  width: 100% !important;
}


.demo-message.user {
  text-align: right !important;
  justify-content: flex-end !important;
}

.demo-message.user {
  display: inline-block !important;
}


.demo-message.user {
  width: auto !important;
  max-width: 75% !important;
}

/* Typing indicator row */
.typing-row {
  display: flex !important;
  justify-content: flex-start !important;
  padding-left: 4px;
}

/* Bubble for typing dots */
.typing-bubble {
  background: #e5e7eb;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Animated 3 dots */
.typing-dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  animation: typing-blink 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}


/* === CHAT FINAL TWEAKS (paste at end of styles.css) === */

/* Ensure chat area uses full width and stable layout */
#demo-chat-state > div { max-width: 100% !important; width: 100% !important; }

/* CHAT MESSAGES container */
#cs-chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial !important;
}

/* Base bubble rules (both ai & user) */
.demo-message {
  display: inline-block !important;
  width: auto !important;
  max-width: 72% !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  line-height: 1.35 !important;
  font-size: 0.95rem !important;
  -webkit-font-smoothing: antialiased !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
  margin: 6px 0 !important;
}

/* AI bubble (left) */
.demo-message.ai {
  align-self: flex-start !important;
  background: #f5f6f8 !important;
  color: #111827 !important;
  border-radius: 16px 16px 16px 4px !important;
}

/* USER bubble (right) - bubble container alignment & sizing */
.demo-message.user {
  align-self: flex-end !important;
  background: linear-gradient(180deg,#0ea5e9,#0369a1) !important;
  color: #ffffff !important;
  border-radius: 16px 16px 4px 16px !important;
  max-width: 68% !important;
  text-align: right !important;            /* bubble-level alignment */
}

/* Ensure the *inner text element* is right aligned too */
.demo-message.user .chat-text,
.demo-message.user p,
.demo-message.user span {
  display: inline-block !important;
  text-align: right !important;
  margin: 0 !important;
  width: auto !important;
}

/* Prevent the bubble from occupying the full width (Tailwind reset defense) */
#cs-chat-messages > .demo-message {
  box-sizing: border-box !important;
}

/* Typing row - make it inherit AI bubble style for visibility but unique class */
.typing-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 6px 0 !important;
}

/* Typing bubble visual */
.typing-row .typing-bubble {
  background: #f5f6f8 !important;
  color: #111827 !important;
  padding: 8px 12px !important;
  border-radius: 16px 16px 16px 4px !important;
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
}

/* animated dots */
.typing-dot {
  width: 6px;
  height: 6px;
  background: #9aa4b2;
  border-radius: 50%;
  opacity: 0.25;
  animation: typing-blink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.14s; }
.typing-dot:nth-child(3) { animation-delay: 0.28s; }

@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Ensure the pinned input area stays at bottom (if you use .cs-chat-container) */
.cs-chat-container { display: flex !important; flex-direction: column !important; height: 100% !important; }
.cs-chat-container > .flex { margin-top: auto !important; }


/* === REAL CHAT (PERSISTENT CHAT) OVERRIDES === */

/* Force full chat width */
#persistent-chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow-y: auto !important;
}

/* AI bubble (left) */
#persistent-chat-messages .ai-msg {
  align-self: flex-start !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
  padding: 10px 14px !important;
  border-radius: 16px 16px 16px 4px !important;
  max-width: 99% !important;
  width: auto !important;
  display: inline-block !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

/* USER bubble (right) */
#persistent-chat-messages .user-msg {
  align-self: flex-end !important;
  background: linear-gradient(180deg,#0ea5e9,#0369a1) !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 16px 16px 4px 16px !important;
  max-width: 99% !important;
  width: auto !important;
  display: inline-block !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  text-align: right !important;
}

/* Ensure inner text is right-aligned */
#persistent-chat-messages .user-msg * {
  text-align: right !important;
}

/* Typing indicator */
#persistent-chat-messages .typing-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#persistent-chat-messages .typing-bubble {
  background: #e5e7eb !important;
  padding: 8px 12px !important;
  border-radius: 16px 16px 16px 4px !important;
  display: inline-flex !important;
  gap: 6px !important;
}


.typing-dot {
  width: 6px;
  height: 6px;
  background: #9aa4b2;
  border-radius: 50%;
  opacity: 0.25;
  animation: typingBlink 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes typingBlink {
  0%,80%,100% { opacity: 0.2; }
  40%        { opacity: 1; }
}

/* ================================================
   PREMIUM CHAT BUBBLE THEME FOR aiValue
   (applies to persistent chat)
   ================================================ */

/* container */
#persistent-chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 18px !important;
  overflow-y: auto !important;
  font-family: 'Inter', sans-serif !important;
  scroll-behavior: smooth !important;
}

/* smooth fade + slide */
.ai-msg, .user-msg, .typing-row {
  animation: msgFadeIn 0.28s ease both;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------
   AI BUBBLE
------------------------------------ */
.ai-msg {
  align-self: flex-start !important;
  background: #f6f7f9 !important;
  color: #1f2937 !important;
  padding: 12px 16px !important;
  border-radius: 18px 18px 18px 4px !important;
  max-width: 75% !important;
  width: fit-content !important;
  line-height: 1.45 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-size: 0.96rem !important;
}

/* links inside AI messages */
.ai-msg a {
  color: #0ea5e9 !important;
  text-decoration: underline !important;
}

/* ------------------------------------
   USER BUBBLE
------------------------------------ */
.user-msg {
  align-self: flex-end !important;
  background: linear-gradient(135deg,#0ea5e9,#0369a1) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  border-radius: 18px 18px 4px 18px !important;
  max-width: 70% !important;
  width: fit-content !important;
  text-align: right !important;
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.user-msg .chat-text {
  display: inline-block !important;
  text-align: right !important;
}

/* ------------------------------------
   TYPING INDICATOR (premium version)
------------------------------------ */

.typing-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding-left: 0 !important;
}

.typing-bubble {
  background: #eceef1 !important;
  padding: 10px 14px !important;
  border-radius: 18px 18px 18px 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #9ca3af;
  border-radius: 50%;
  opacity: 0.25;
  animation: typingBlink 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: .18s; }
.typing-dot:nth-child(3) { animation-delay: .36s; }

@keyframes typingBlink {
  0%,80%,100% { opacity: 0.2; transform: translateY(0); }
  40%        { opacity: 1; transform: translateY(-3px); }
}

/* subtle scrollbar */
#persistent-chat-messages::-webkit-scrollbar {
  width: 6px;
}
#persistent-chat-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
#persistent-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.thinking-bar {
  width: 40%;
  height: 6px;
  margin-top: -6px;
  background: linear-gradient(90deg, #d1d5db 0%, #f3f4f6 50%, #d1d5db 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ai-msg, .user-msg {
  animation: bubblePop 0.18s ease-out;
}

@keyframes bubblePop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1.0); opacity: 1; }
}


/* =========================
   aiValue — Premium Chat UI
   (paste at end of styles.css)
   ========================= */

/*************************************************
 * aiValue Premium Chat — Final Clean CSS
 *************************************************/

/* MAIN CHAT MESSAGE CONTAINER */
#persistent-chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px !important;
  overflow-y: auto !important;
  background: transparent !important;
  scroll-behavior: smooth !important;

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* ROW LAYOUT */
.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  width: 100%; /* important */
}

.msg-row.user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

/*************************************************
 * AVATAR (AI ONLY — favicon)
 *************************************************/

.msg-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #ffffff;
  display: block;
  overflow: hidden;
  object-fit: cover;

  border: 1px solid rgba(0,0,0,0.05);
  box-shadow:
      0 3px 8px rgba(0,0,0,0.08),
      inset 0 0 0 1px rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-bottom: 4px;
}

/*************************************************
 * MESSAGE BUBBLES
 *************************************************/

/* AI bubble – clean glass */
.ai-msg {
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 6px;
  max-width: 100%;
  border: 1px solid rgba(15,23,42,0.05);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
      0 4px 14px rgba(0,0,0,0.04),
      inset 0 0 0 0 rgba(255,255,255,0.6);

  line-height: 1.48;
  font-size: 0.96rem;
  word-break: break-word;
}


/* user bubble – gradient */
.user-msg {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 16px 16px 6px 16px;
  max-width: 100%;

  line-height: 1.48;
  font-size: 0.96rem;
  text-align: right;

  box-shadow:
    0 10px 28px rgba(2,132,199,0.25),
    inset 0 0 0 0 rgba(255,255,255,0.2);

  word-break: break-word;
}


/*************************************************
 * TIMESTAMP
 *************************************************/

.msg-meta {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #94a3b8;
  padding: 0 4px;

  opacity: 0.9;
}


/*************************************************
 * TYPING INDICATOR
 *************************************************/

.typing-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-bubble {
  background: rgba(245,247,250,0.95);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(8,15,40,0.05);
  display: flex;
  gap: 8px;
  align-items: center;
}


.typing-dot {
  width: 6px;
  height: 6px;
  background: #9aa4b2;
  border-radius: 50%;
  opacity: 0.25;
  animation: typingBlink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0);}
  40% { opacity: 1; transform: translateY(-3px);}
}

/*************************************************
 * MESSAGE ANIMATION
 *************************************************/

.ai-msg, .user-msg, .typing-row {
  animation: msgFade 0.25s ease;
}

@keyframes msgFade {
  from { 
    opacity: 0; 
    transform: translateY(8px) scale(0.98);
    filter: blur(2px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


/*************************************************
 * VISIONOS INPUT BAR
 *************************************************/

.persistent-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;

  padding: 12px 14px;
  background: rgba(255,255,255,0.75);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 16px;
  border: 1px solid rgba(15,23,36,0.08);

  box-shadow:
    0 20px 50px rgba(8,15,40,0.09),
    inset 0 0 0 1px rgba(255,255,255,0.6);

  margin-top: 12px;
}


/* Textarea (multiline) */
#persistent-chat-input {
  flex: 1;
  resize: none;
  overflow-y: hidden !important;
  min-height: 40px;
  max-height: 140px;

  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;

  border: 1px solid rgba(15,23,36,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

#persistent-chat-input::-webkit-scrollbar {
  display: none !important;
}

#persistent-send-btn {
  background: linear-gradient(135deg,#0ea5e9,#0369a1);
  color: #fff;

  border-radius: 12px;
  padding: 10px 18px;

  border: none;
  font-size: 0.92rem;
  font-weight: 500;

  box-shadow:
    0 10px 24px rgba(3,105,161,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.3);

  transition: 0.15s ease;
}

#persistent-send-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(3,105,161,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.4);
}


/*************************************************
 * THINKING BAR (thin shimmer)
 *************************************************/

.thinking-bar {
  width: 40%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg,#e5e7eb,#f3f4f6,#e5e7eb);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/*************************************************
 * MOBILE TWEAKS
 *************************************************/

@media (max-width: 640px) {
  .msg-row { max-width: 100%; }
  .msg-avatar { width: 24px; height: 24px; }
}

.msg-row > .ai-msg,
.msg-row > .user-msg {
  margin-bottom: 2px;
}

/* Pulsing (breathing) aiValue logo loader */
.ai-loader {
  width: 38px;
  height: 38px;
  opacity: 0.85;
  animation: ai-breathe 1.6s ease-in-out infinite;
}

@keyframes ai-breathe {
  0% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.75; }
}

/* Up-arrow send button */
.send-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  font-size: 20px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;

  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.send-arrow-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.send-arrow-btn:active {
  transform: scale(0.9);
}


#persistent-chat-messages,
.persistent-input-wrap {
  width: 95% !important;
  margin: 0 auto !important;
}


.label-bar { padding: 6px 0; }
/* Sexy, tempting label buttons */
.label-btn {
  background-color: #3F7BFF;        /* Deep inviting blue */
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  margin: 6px 6px;
  cursor: pointer;
  transition: all 0.20s ease;
  box-shadow: 0 4px 10px rgba(63, 123, 255, 0.28); /* soft "boob-like" glow */
  white-space: nowrap;
}

/* Hover: slight lift + brighter = irresistible */
.label-btn:hover {
  background-color: #316bf0;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(63, 123, 255, 0.38);
}

/* Pressed: soft squish (yes, THIS is the boob effect) */
.label-btn:active {
  transform: scale(0.96);
  background-color: #285bd4;
  box-shadow: 0 3px 8px rgba(63, 123, 255, 0.25);
}

/* MOBILE: stack vertically, more thumb-friendly */
@media (max-width: 760px) {
  .label-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .label-btn {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}


/* 5) Replace send button visuals (arrow) */
.send-arrow-btn {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
}

/* 6) Thinking loader: tiny pulsing logo */
.ai-loader {
  width: 28px;
  height: 28px;
  display: block;
  animation: ai-pulse 1s ease-in-out infinite;
}
@keyframes ai-pulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.85; }
}

/* 7) label bar responsive wrap */
.label-bar { gap: 8px; display:flex; flex-wrap:wrap; }


/* compact styles for embedded chart within chat messages */
.ai-chart-wrap {
  display: block;
  max-width: 560px;
  width: 100%;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  background: #fff;
}
.ai-chart-wrap .chart-inner {
  padding: 12px;
}
.ai-chart-placeholder {
  font-size: 13px;
  color: #6b7280;
  padding: 12px;
}

/* --- PATCH-DEC-6-1130-2 START --- */

/* 1. Layout Fixes: Remove Cramped Margins & Maximize Space */
#demo-chat-state {
    padding: 2px !important; /* Negligible padding as requested */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#demo-chat-state > .flex-1 {
    padding: 0 !important;
    height: 100% !important;
}

#persistent-chat-messages {
    padding: 10px 12px 80px 12px !important; /* Bottom padding for input area */
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Input Area - Pinned to bottom with minimal margin */
.persistent-input-wrap {
    position: absolute !important;
    bottom: 4px !important;
    left: 4px !important;
    right: 4px !important;
    width: auto !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05) !important;
    z-index: 20 !important;
}

/* 2. Send Button - Visible White Arrow */
#persistent-send-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    border-radius: 10px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#persistent-send-btn svg {
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
    width: 22px !important;
    height: 22px !important;
}

/* 3. Labels: Default Blue Gradient, Hover White */
.label-bar {
    gap: 8px !important;
    padding: 4px 0 !important;
}

.label-btn {
    /* Default: Blue Gradient */
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
    white-space: normal !important;
    text-align: left !important;
}

.label-btn:hover {
    /* Hover: White with Blue Text */
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15) !important;
}

.label-btn.selected {
    background: #1e293b !important; /* Dark for selected */
    color: #ffffff !important;
    border-color: #1e293b !important;
}

.label-btn.disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    filter: grayscale(100%) !important;
}

/* 5a. Avatar Fix - Left Side Only */
.msg-row {
    display: flex !important;
    align-items: flex-end !important; /* Align to bottom of bubble */
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 4px !important;
}

.msg-row.assistant {
    flex-direction: row !important; /* Avatar left, Bubble right */
    justify-content: flex-start !important;
}

.msg-row.user {
    flex-direction: row-reverse !important; /* Bubble right, No avatar */
    justify-content: flex-start !important;
}

.msg-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important; /* Align with bottom of text */
}

/* Hide avatar for user */
.msg-row.user .msg-avatar {
    display: none !important;
}

/* 5b. Sleek Typing Animation (Wave) */
.typing-row {
    margin-left: 36px !important; /* Indent to match text bubble (28px avatar + 8px gap) */
}

.typing-bubble {
    background: rgba(241, 245, 249, 0.8) !important;
    padding: 12px 16px !important;
    border-radius: 18px 18px 18px 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    min-height: 20px !important;
}

.typing-dot {
    width: 6px !important;
    height: 6px !important;
    background: #2563eb !important; /* Brand Blue */
    border-radius: 50% !important;
    animation: sleekWave 1.4s infinite ease-in-out both !important;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s !important; }
.typing-dot:nth-child(2) { animation-delay: -0.16s !important; }

@keyframes sleekWave {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* 6. Typewriter Cursor */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #2563eb;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Chat Bubbles Polish */
.ai-msg {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px 18px 18px 4px !important;
    padding: 12px 16px !important;
    max-width: 80% !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.user-msg {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 12px 16px !important;
    max-width: 80% !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    text-align: left !important; /* Reset text align */
}

/* Hide old thinking bar */
#thinking-bar { display: none !important; }

/* --- PATCH-DEC-6-1130-2 END --- */

/* --- PATCH-DEC-7-AVATAR-REMOVAL START --- */

/* 1. Remove Avatar completely */
.msg-avatar {
    display: none !important;
}

/* 2. Reset Row Alignment (No gap for avatar) */
.msg-row {
    gap: 0 !important;
    margin-bottom: 8px !important;
}

.msg-row.assistant {
    justify-content: flex-start !important;
    padding-left: 0 !important;
}

/* 3. Reset Typing Row Indent */
.typing-row {
    margin-left: 0 !important;
    padding-left: 4px !important;
}

/* 4. Typewriter Cursor */
.typewriter-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: #2563eb;
    margin-left: 2px;
    vertical-align: middle;
    animation: blinkCursor 0.8s infinite;
    border-radius: 2px;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- PATCH-DEC-7-AVATAR-REMOVAL END --- */

/* --- PATCH-DEC-7-0116 START --- */

/* 1. Thinking Text Animation */
.thinking-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #64748b; /* Slate-500 */
    font-weight: 500;
    font-style: italic;
    padding: 0 4px;
    animation: breatheText 1.5s ease-in-out infinite;
}

@keyframes breatheText {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

/* Ensure typing bubble container fits text */
.typing-bubble {
    min-width: 80px;
    justify-content: center;
}

/* --- PATCH-DEC-7-0116 END --- */

/* --- PATCH-DEC-7-DARK-TEAL START --- */

/* 1. The Stage: Deep Charcoal Background */
#demo-chat-state {
    background: #0f172a !important; /* Slate-900 (Deep Dark) */
    position: relative !important;
    z-index: 1 !important;
}

/* 2. The Container: Dark Glass Card */
.chatbot-container {
    background: rgba(15, 23, 42, 0.95) !important; /* Almost opaque dark */
    border: 1px solid rgba(51, 65, 85, 0.5) !important; /* Subtle slate border */
    border-radius: 24px !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5), /* Deep shadow */
        0 0 0 1px rgba(255,255,255,0.05) inset !important; /* Inner highlight */
    overflow: hidden !important;
}

/* 3. The Header: Transparent Dark */
.chat-header {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    color: #f8fafc !important; /* White Text */
    font-weight: 700 !important;
    padding: 18px 24px !important;
}

/* 4. AI Bubbles: "Stealth" Grey */
.ai-msg {
    background: #1e293b !important; /* Slate-800 */
    color: #e2e8f0 !important; /* Slate-200 Text */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px 20px 20px 4px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    font-weight: 400 !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* 5. User Bubbles: Teal Glass */
.user-msg {
    /* 1. Change Background to Semi-Transparent Teal */
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.7), rgba(45, 212, 191, 0.7)) !important;
    
    /* 2. Add Glass Border */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    
    /* 3. Add Blur Effect */
    backdrop-filter: blur(5px) !important;
    
    /* 4. Force White Text */
    color: #ffffff !important;
    
    /* Keep existing shape/shadow */
    border-radius: 20px 20px 4px 20px !important;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3) !important;
    font-weight: 600 !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
}

/* 6. Input Area: Floating Dark Pill */
.persistent-input-wrap {
    background: #1e293b !important; /* Slate-800 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 100px !important; /* Full Pill */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
    margin: 16px !important;
    width: calc(100% - 32px) !important;
    bottom: 0 !important;
    padding: 8px 8px 8px 20px !important;
}

#persistent-chat-input {
    background: transparent !important;
    font-size: 1rem !important;
    color: #f8fafc !important; /* White Input Text */
}

#persistent-chat-input::placeholder {
    color: #64748b !important; /* Slate-500 Placeholder */
}

/* 7. Send Button: Teal Circle */
#persistent-send-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4) !important; /* Glow */
    border: none !important;
    transition: all 0.2s ease !important;
}

#persistent-send-btn svg {
    stroke: #0f172a !important; /* Dark Icon for contrast on bright button */
    stroke-width: 3px !important;
}

#persistent-send-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6) !important;
}

/* 8. Labels: Ghost Teal Pills */
.label-btn {
    background: rgba(6, 182, 212, 0.1) !important; /* Very subtle teal tint */
    border: 1px solid rgba(6, 182, 212, 0.4) !important; /* Teal border */
    color: #22d3ee !important; /* Bright Teal Text */
    border-radius: 24px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.label-btn:hover {
    background: #06b6d4 !important; /* Solid Teal */
    color: #ffffff !important; /* White Text */
    border-color: #06b6d4 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4) !important;
    transform: translateY(-2px) !important;
}

.label-btn.selected {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
}

/* 9. Typing Animation: Teal Dots */
.typing-bubble {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.thinking-text {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    font-style: italic !important;
}

/* 10. Scrollbar: Dark Mode Friendly */
#persistent-chat-messages::-webkit-scrollbar {
    width: 6px;
}
#persistent-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#persistent-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* --- PATCH-DEC-7-DARK-TEAL END --- */

/* --- PATCH-DEC-7-POLISH-V2 START --- */

/* 1. Outer Container: The White Shell */
#ai-demo-widget {
    padding: 4px !important; /* Uniform white border thickness */
    border-radius: 24px !important; /* Outer curve */
    background: #ffffff !important; /* The white border color */
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important; /* Creates the white strip between header and body */
    overflow: hidden !important;
    border: none !important; /* Remove any old borders */
}

/* 2. Header: Rounded Bottom Edges + Concentric Math */
#ai-chat-header {
    /* Math: 24px (Outer) - 4px (Padding) = 20px (Inner) */
    border-radius: 20px !important; 
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Ensure it keeps the dark theme background */
    background: rgba(15, 23, 42, 0.95) !important; 
}

/* 3. Chat Body: Rounded Corners + Concentric Math */
#demo-chat-state {
    /* Math: 24px (Outer) - 4px (Padding) = 20px (Inner) */
    border-radius: 20px !important; 
    margin: 0 !important;
    width: 100% !important;
    flex: 1 !important; /* Fill remaining height */
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 4. Reset Intermediate Wrappers */
/* This ensures no extra spacing creeps in from the HTML structure */
#ai-chat-body {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* 5. Send Button Disabled State (Retained from previous patch) */
#persistent-send-btn:disabled {
    background: #334155 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6 !important;
}
#persistent-send-btn:disabled svg {
    stroke: #94a3b8 !important;
}

/* --- PATCH-DEC-7-POLISH-V2 END --- */

/* --- PATCH-DEC-7-FIX-VISIBILITY START --- */

/* Fix: Ensure the widget respects the hidden class */
#ai-demo-widget.hidden {
    display: none !important;
}

/* --- PATCH-DEC-7-FIX-VISIBILITY END --- */

/* --- PATCH-DEC-7-COMPACT-SCROLL START --- */

/* 1. Compact Vertical Spacing */
#persistent-chat-messages {
    gap: 8px !important; /* Reduced from 16px */
    padding-top: 12px !important;
}

.msg-row {
    margin-bottom: 2px !important; /* Minimal margin between bubbles */
}

/* 2. Fix Scroll Bleeding (Prevent background scroll) */
.chatbot-container,
#persistent-chat-messages,
#demo-chat-state {
    overscroll-behavior: contain !important;
}

/* 3. Ensure User Bubbles (History) look connected */
.msg-row.user + .msg-row.user {
    margin-top: 2px !important;
}

/* --- PATCH-DEC-7-COMPACT-SCROLL END --- */

/* --- PATCH-DEC-7-FONTS START --- */

/* 1. Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 2. Global Font Settings & Rendering */
body, html, button, input, textarea, select, .tooltip, .popover {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* 3. Headers (Weight 700, Spacing -0.5px) */
h1, h2, h3, h4, h5, h6, 
.chat-header, 
.section-header-glow-dark h2,
.benefit-title,
.services-title,
.aiworkforce-title,
.partnerWithUs-title {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* 4. Normal Text & Chat Bubbles (Weight 400, Spacing -0.2px) */
p, li, span, 
.ai-msg, 
.user-msg, 
.benefit-description,
.services-subtitle,
.aiworkforce-subtitle,
.partnerWithUs-subtitle {
    font-weight: 400 !important;
    letter-spacing: -0.2px !important;
}

/* 5. User Input (Weight 500, Spacing -0.2px) */
input, textarea, 
#persistent-chat-input, 
.persistent-input-wrap {
    font-weight: 500 !important;
    letter-spacing: -0.2px !important;
}

/* 6. Buttons & Labels (Weight 600, Spacing -0.3px) */
button, 
.label-btn, 
.unified-cta-btn, 
.aiworkforce-btn,
.services-btn,
.partnerWithUs-btn,
#persistent-send-btn {
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
}

/* 7. Specific Tweaks for Chat Elements to match Premium Density */
.chat-header {
    font-size: 1rem !important; 
}

.ai-msg, .user-msg {
    font-size: 0.95rem !important; 
    line-height: 1.55 !important; /* Slightly taller line height for Inter readability */
}

.label-btn {
    font-size: 0.85rem !important;
}

/* --- PATCH-DEC-7-FONTS END --- */

/* --- PATCH-DEC-9-VISIBILITY START --- */

/* 3. Labels: Pure White Text */
.label-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important; /* Slight glass background */
}

.label-btn:hover {
    background: #ffffff !important;
    color: #2563eb !important; /* Blue text on white hover */
}

/* 4. User Message: Pure White Text */
.user-msg {
    color: #ffffff !important;
}

/* --- PATCH-DEC-9-VISIBILITY END --- */

/* --- PATCH-DEC-9-VISUAL-FIX START --- */

/* 1. Background: Dark with Blurred Teal/Blue Blobs (Glossy Feel) */
#demo-chat-state {
    background-color: #0f172a !important; /* Deep Slate Base */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.15) 0%, transparent 50%), /* Teal Blob */
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%) !important; /* Blue Blob */
}

/* 2. User Message: Glassy Teal + White Text */
.user-msg {
    /* Semi-transparent Teal */
    background: rgba(20, 184, 166, 0.75) !important; 
    /* Subtle Gradient Overlay */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0)) !important;
    /* Glass Blur */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    /* White Border for Glass Edge */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Force White Text */
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* 3. Send Button: Teal Background */
#persistent-send-btn {
    background: #14b8a6 !important; /* Teal-500 */
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4) !important; /* Teal Glow */
}

/* --- PATCH-DEC-9-VISUAL-FIX END --- */

/* --- PATCH-DEC-9-FORCE-TEAL START --- */

/* Use ID selector to override previous styles */
#persistent-chat-messages .user-msg {
    /* 1. Teal Gradient Background */
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
    
    /* 2. Glassy Border */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    
    /* 3. White Text */
    color: #ffffff !important;
    
    /* 4. Teal Glow Shadow */
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4) !important;
}

/* Ensure text inside is also white */
#persistent-chat-messages .user-msg * {
    color: #ffffff !important;
}

/* --- PATCH-DEC-9-FORCE-TEAL END --- */