: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;
  --footer-height: 30px; /*#6b21a8 or whatever the real footer height is */
}

/* =========================================================
   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: #0f172a;
  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: 28px;
  max-height: 30px;
  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;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0c1843;
  color: #e2e8f0;
  background-image:
    radial-gradient(circle at 75% 25%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  
    /* Added for fixed header/footer layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensures body fills viewport */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

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;
}

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 {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding: 12px;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
  min-height: 0;
}

.message.user {
  align-self: flex-end;
  background-color: #eafbdd;
  color: #000000;
  padding: 8px 10px;
  border-radius: 16px 16px 0 16px;
  margin: 6px 0;
  max-width: 90%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.message.bot {
  align-self: flex-start;
  background-color: #e7f5ff;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 16px 16px 16px 0;
  margin: 6px 0;
  max-width: 90%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  animation: scaleIn 1s ease-out forwards;
}

@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;
}

@keyframes hoverPulse {
  0%   { background-color: #0f172a; box-shadow: 0 0 6px #ff709e; }
  99%  { background-color: #e1171a; box-shadow: 0 0 9px #0f172a; }
  100% { background-color: #0f172a; box-shadow: 0 0 6px #ff709e; }
}

.chat-toggle {
  position: fixed;
  top: calc(var(--header-height) + 1rem); /* Positions it just below the header */
  right: 2rem;
  z-index: 999;
  padding: 8px 8px;
  background: #ff709e;
  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;
  animation: hoverPulse 8s ease-in-out infinite;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.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: #0f172a;
  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;
}

.footer-content {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.7s ease;
}

.footer-content.opacity-100 {
  opacity: 1;
}

.footer-content.translate-y-0 {
  transform: translateY(0);
}

.hero-section {
  background-image: url('../assets/hero/hero-bg.png'); /* Fallback for older browsers */
  background-image: image-set(
    url('../assets/hero/hero-bg.webp') type('image/webp'),
    url('../assets/hero/hero-bg.png') type('image/png')
  ); /* Use WebP if supported */
  background-position: center center;
  background-size: 100% 100%; 
  background-repeat: no-repeat;
  height: calc(100vh - var(--header-height) - var(--footer-height)); /* Full viewport height minus header/footer */
  width: 100%;
  position: relative; /* Keep if needed for overlay or other child elements */
  display: flex;
  align-items: flex-start;  /* align at the top, not middle */
}

/* Hero Headline Styles */
.hero-title {
  font-size: 2.5rem;            /* Large on mobile */
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;       /* prevents wrapping */
}

.hero-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-sub-subtitle {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
}
  
/* Responsive adjustments */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 2.5rem;
  }
  .hero-sub-subtitle {
    font-size: 2.5rem;
  }
}

.hero-section.menu-content-mode {
  background: none;
  display: flex;
  align-items: flex-start;
  padding: 2rem;
  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; }
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: -1;
}

.cta-button {
  background-color: #0ea5e9;
  padding: 14px 28px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: background 0.3s ease;
  text-decoration: none;
}
.cta-button:hover {
  background-color: #38bdf8;
}
.card-group {
  display: flex;
  gap: 20px;
}
.ai-card {
  background-color: #1e3a8a;
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transform: translateY(40px);
  opacity: 0;
  animation: slideUp 1s ease forwards;
}
.ai-card:nth-child(2) {
  animation-delay: 0.4s;
}
.ai-card:nth-child(3) {
  animation-delay: 0.8s;
}

.ai-card {
  background: #1e3a8a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  min-width: max-content;
  transition: transform 0.3s ease;
}
.ai-card:hover {
  transform: scale(1.05);
}

@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;
}

.see-all-card {
  display: flex; align-items: center; justify-content: center;
}
.see-all-roles {
  padding: 1.2rem 0; color: #b5fae2; text-align: center;
  font-size: 1.11rem; opacity: .74;
}
.see-all-roles i { color: #7c3aed; margin-bottom: 0.5rem; display: block; }

.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;
}

/* === Fixed footer layout === */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: #0f172a; /* match your theme background */
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--logo-purple);
  z-index: 50;
}

/* === Themed Scrollbar: Applies everywhere site-wide === */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--logo-blue) #0f172a; /* 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 #0f172a;
}

*::-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;            /* take 70% of screen */
  margin: 2rem auto 0;   /* center horizontally */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* full-bleed centering trick */
}

.aiw-feature-box {
  flex: 0 0 auto;
  width: 250px;
  height: 120px;             /* fixed height, smaller than old 180px */
  margin: 0 0.75rem;
  padding: 0.75rem;

  background-size: contain;  /* fit whole image */
  background-repeat: no-repeat;
  background-position: center;

  border-radius: 1rem;
  color: #fff;
  position: relative;
  text-align: center;
  opacity: 0.9;
}


.aiw-feature-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  z-index: 1;
  position: relative;
  opacity: 1;

  line-height: 1.3;
  min-height: 2.6em;              /* reserve ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.aiw-feature-desc {
  font-size: 0.85rem;
  color: #eee;
  z-index: 1;
  position: relative;
  opacity: 1; /* keep text crisp */
}

.aiw-feature-box::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0,0,0,0.4);  overlay for readability */
  border-radius: inherit;
  z-index: 0;
}

/* 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;
}

.aiw-feature-box,
.aiw-feature-desc {
  display: block;
}

.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: #0f172a;
	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;
}

.cost-card {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
.sales-card { 
  background-color: #0f172a !important;
  color: #ffffff !important; 
}
.time-card { 
  background-color: #0f172a !important;
  color: #ffffff !important; 
}
.cx-card {
  background-color: #0f172a !important;
  color: #ffffff !important; 
}
.insights-card {
  background-color: #0f172a !important;
  color: #ffffff !important; 
}

.cost-card::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3e%3ctext x='38' y='70' font-family='Arial, sans-serif' font-size='60' font-weight='bold' fill='%23e1171a' text-anchor='middle'%3e₹%3c/text%3e%3cpath d='M75 35v30' fill='none' stroke='%23e1171a' stroke-width='5' stroke-linecap='round'/%3e%3cpath d='M65 55l10 10l10-10' fill='none' stroke='%23e1171a' stroke-width='5' stroke-linecap='round'/%3e%3c/svg%3e");
}
.sales-card::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M25 75 L45 55 L65 65 L80 40" fill="none" stroke="%23e1171a" stroke-width="4"/><path d="M70 40 L80 40 L80 50" fill="none" stroke="%23e1171a" stroke-width="4"/></svg>');
}
.time-card::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="35" fill="none" stroke="%23e1171a" stroke-width="4"/><path d="M50 50 L50 25 M50 50 L70 50" fill="none" stroke="%23e1171a" stroke-width="4"/></svg>');
}
.cx-card::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 25 h60 v40 h-20 l-10 10 v-10 h-30 z" fill="none" stroke="%23e1171a" stroke-width="4"/><circle cx="40" cy="45" r="0" stroke="%23e1171a" stroke-width="4" /><circle cx="60" cy="45" r="0" stroke="%23e1171a" stroke-width="4" /><path d="M40 55 q10 5 20 0" fill="none" stroke="%23e1171a" stroke-width="4"/></svg>');
}
.insights-card::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30 75 V 45 M 50 75 V 25 M 70 75 V 55" fill="none" stroke="%23e1171a" stroke-width="6"/><path d="M20 78 H 80" fill="none" stroke="%23e1171a" stroke-width="4"/></svg>');
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.benefit-subtitle {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.benefit-description {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.4;
}

.highlight {
    color: #4299E1;
    font-weight: 700;
}

.color-header1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.color-header2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #e1171a;
    line-height: 1.2;
}

.color-header3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* === HOW IT WORKS MODAL === */
#howItWorksModal [role="dialog"] {
  border-radius: 1rem;       /* smooth rounded corners */
  background: #fff;
  overflow: hidden;
  animation: fadeInScale 0.3s ease; /* subtle entry animation */
}

/* modal entry animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* === STEP CARDS === */
#howItWorksModal .step-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#howItWorksModal .step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

#howItWorksModal .step-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
}

#howItWorksModal .step-card-content {
  position: relative;
  padding: 1.25rem;
  color: #fff;
  text-align: left;
}

/* step number badge */
#howItWorksModal .step-num {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.9); /* Indigo 600 */
  color: #fff;
  font-weight: bold;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* step title */
#howItWorksModal .step-card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #facc15; /* Yellow 400 (gold accent) */
  margin-bottom: 0.25rem;
}

/* step text */
#howItWorksModal .step-card-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.95;
}

.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 {
  position: absolute;
  top: calc(var(--header-height) + 10px);
  left: 20px;
  color: #041384; /* Indigo tone */
  font-weight: 700;
  z-index: 10;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Kill outer vertical scrollbar */
}

main {
  height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: hidden; /* Prevents outer scroll */
}

.fullpage-section {
  background-image: url('../assets/hero/hero-bg.png'); /* Fallback for older browsers */
  background-image: image-set(
    url('../assets/hero/hero-bg.webp') type('image/webp'),
    url('../assets/hero/hero-bg.png') type('image/png')
  ); /* Use WebP if supported */
  background-position: center center;
  background-size: 100% 100%; 
  background-repeat: no-repeat;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  width: 100%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}

.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 */
  justify-content: center;   /* center the whole grid */
}

.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;
}

/* ===== Hire AI Workforce — single column / stacked cards ===== */
#hireWorkforce .aiworkforce-grid {
  display: grid;
  grid-template-columns: 1fr;           /* FORCE single column (vertical stack) */
  gap: 1.25rem;                         /* space between cards */
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

/* 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: #0f172a;
  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: #0f172a !important; }
#hireWorkforce .aiworkforce-subtitle { color: #374151; } /* muted dark */
#hireWorkforce .aiworkforce-roles li::before { color: #10b981; } /* green checkmark if you like */

@media (min-width: 1200px) {
  #hireWorkforce .aiworkforce-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

#hireWorkforce .aiworkforce-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a; /* warm gold */
  margin-bottom: 0.2rem;
}

#hireWorkforce .aiworkforce-subtitle {
  font-size: 1rem;
  color: #0f172a;
  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: #0f172a;
  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: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}

#hireWorkforce .aiworkforce-btn.hire:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

#hireWorkforce .aiworkforce-btn.salary {
  background: #f3f4f6;
  color: #1f2937;
}
#hireWorkforce .aiworkforce-btn.salary:hover {
  background: #e5e7eb;
}

#hireWorkforce .aiworkforce-btn.demo {
  background: #0ea5e9;
  color: #fff;
}
#hireWorkforce .aiworkforce-btn.demo:hover {
  background: #0284c7;
}

#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 (Corrected Layout) === */

/* 3. The cards themselves:
   - 'flex: 1' allows them to grow and fill available space.
   - 'min-width' ensures they don't get too small before wrapping. */
.benefit-card {
    flex: 1; /* Allows each card to grow equally */
    min-width: 200px; /* Sets a minimum width before the card wraps */
    max-width: 260px; /* Optional: Prevents cards from becoming too wide on large screens */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* Keep the pseudo-element for background images */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Keep the z-index fix for card content */
.benefit-card > * {
    position: relative;
    z-index: 2;
}

.benefit-slider .benefit-card {
  display: flex;
  flex-direction: column;     /* stack text vertically */
  justify-content: flex-start;
}

/* ---------- HERO: equal-height, aligned cards (grid-based, robust) ---------- */
/* Put this at the end of styles.css to override prior conflicting rules */

/* ====== HERO BENEFIT: center wrapped rows reliably (flex) ====== */
.benefit-section {
  width: 100%;
  padding: 0 1rem;
  margin: 2rem auto 0rem auto; /* top=2rem, sides auto, bottom=0.5rem */
  box-sizing: border-box;
  display: block;
}

/* track: use flex with wrapping and center each row */
.benefit-slider .slider-track {
  display: flex;
  flex-wrap: wrap;              /* allow new rows */
  justify-content: center;      /* center items in each row */
  align-items: stretch;         /* equal heights */
  gap: 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* each card: fixed basis so wrapping is predictable */
.benefit-card {
  flex: 0 0 220px;              /* width of each card (change if you want wider/narrower) */
  max-width: 260px;             /* keep a sensible cap */
  box-sizing: border-box;

  /* Replace existing styling for padding / visuals — keep these from your previous style */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;               /* reduced vertical padding to save height */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* content layering */
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  z-index: 0;
}
.benefit-card > * { position: relative; z-index: 2; }

/* responsive: 1 card per row on narrow screens */
@media (max-width: 640px) {
  .benefit-card { flex: 0 0 100%; max-width: 100%; padding: 14px; }
  .benefit-slider .slider-track { gap: 0.8rem; }
}

/* slightly tighter for small laptops/tablets: 2-per-row */
@media (min-width: 641px) and (max-width: 900px) {
  .benefit-card { flex: 0 0 45%; max-width: 48%; }
}


.benefit-slider .slider-track {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  justify-content: center !important;
}

/* Make each card fill its grid column and use column layout for internal lines */
.benefit-slider .benefit-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: 100% !important;      /* stretch to the shared row height */
  padding: 22px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;      /* important for grid children to shrink properly */
}

.benefit-card .benefit-title {
  line-height: 1.2 !important;
  min-height: 2.4em !important; /* enough for 2 lines */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2; /* show max 2 lines */
  -webkit-box-orient: vertical;
}

/* SUBTITLE: reserve same vertical space across cards (so line 2 starts same height) */
.benefit-card .benefit-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1rem) !important;
  line-height: 1.15 !important;
  min-height: 5em !important; /* reserve 2.2 x font-size space — adjust slightly if you want */
  margin-bottom: 1rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* DESCRIPTION: reserve same vertical space for multiline description (line 3 alignment) */
.benefit-card .benefit-description {
  min-height: 3.6em !important; /* 3 lines at ~1.2em line-height */
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* ensure icon/background pseudo remains behind content */
.benefit-card::before { z-index: 0 !important; }
.benefit-card > * { z-index: 2 !important; }

/* Responsive: on very small screens allow grid to wrap to a more readable layout */
@media (max-width: 1100px) {
  .benefit-slider .slider-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
  .benefit-card .benefit-subtitle { min-height: 2.0em !important; }
  .benefit-card .benefit-description { min-height: 2.8em !important; }
}

@media (max-width: 640px) {
  .benefit-slider .slider-track {
    grid-template-columns: 1fr; /* single column on small screens */
    gap: 1rem;
  }
  .benefit-card .benefit-title { font-size: clamp(0.95rem, 4.2vw, 1.1rem) !important; }
  .benefit-card .benefit-subtitle { min-height: 1.6em !important; }
  .benefit-card .benefit-description { min-height: 2.2em !important; }
}

/* ==================================
   HOW IT WORKS (OVERLAY STYLE)
   ================================== */

/* Main container styles are unchanged */
#how-it-works-content .section-title {
  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;
}

#how-it-works-content .section-subtitle {
  font-size: 1.1rem;
  color: #1e3a8a;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

#how-it-works-content .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* === CARD STYLING - THIS IS WHERE THE MAGIC HAPPENS === */

/* 1. The main card container */
.step-card {
  position: relative; /* This is crucial for layering */
  border-radius: 1rem;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 320px; /* Give cards a consistent height */
  color: #ffffff; /* Default text color is now white */
  
  /* Use flexbox to push content to the bottom */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 2. The image container becomes the background */
.step-image-container {
  position: absolute;
  inset: 0; /* Shorthand for top:0, left:0, bottom:0, right:0 */
  z-index: 0; /* Place it behind the content */
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.step-card:hover .step-image {
  transform: scale(1.05);
}

/* 3. The overlay gets a stronger gradient for readability */
.step-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.1) 70%);
}

.step-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  padding-top: 3.5rem; /* This is the key change */
}

.step-number {
  position: absolute;
  top: 1.5rem; /* Positioned relative to the card itself */
  left: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff; /* White text */
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Add a shadow to make it pop */
}

.step-description {
  color: #e2e8f0; /* A soft, off-white */
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #how-it-works-content .section-title {
    font-size: 2rem;
  }
  #how-it-works-content .section-subtitle {
    font-size: 1rem;
  }
}

/* Fix benefit cards wrapping & centering */
.benefit-slider .slider-track {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;  /* center each wrapped row */
  align-items: stretch !important;
  gap: 1rem !important;
}

.benefit-card {
  flex: 0 0 220px !important;  /* adjust card width as needed */
  max-width: 260px !important;
}

/* reduce extra vertical space after rotator */
#aiwFeatureRotator {
  margin-bottom: 0.5rem !important; /* was 2rem auto in .aiw-rotator */
  min-height: 140px !important;     /* shrink from 220px if you want tighter */
}

/* 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: #0f172a;
  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 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 160px;
  max-width: 260px;
  padding: 2.8rem 0.8rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
}

/* step title directly below number */
.hiw-title {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.2;
  margin: 0.2rem 0 0.3rem 0;
}

/* description directly below title */
.hiw-desc {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.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: #0f172a !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: #0f172a;  /* dark background */
  color: #ffffff;             /* bright red text */
  display: inline-block;      /* background wraps only around the text */
  padding: 0.25rem 0.75rem;   /* some breathing room */
  border-radius: 6px;         /* optional, softer edges */
}

.consult-link {
  color: #e1171a !important;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;

  /* Nuclear compact frosted glass */
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.1rem 0.1rem;
  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);
}


/* Smooth modal fade */
#hireConfirmationModal {
  transition: opacity 0.3s ease;
}

#hireConfirmationModal.show {
  display: flex !important;
  opacity: 1;
}

#hireConfirmationModal.hidden {
  opacity: 0;
}

/* === Custom Solutions Styling (reuse workforce look) === */

/* Make sure the grid matches aiworkforce */
#customSolutions .aiworkforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Card appearance (same as aiworkforce-card) */
#customSolutions .aiworkforce-card {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left; /* so labels align properly */
  background: rgba(255, 255, 255, 0.5); /* light bg so text is readable */
  color: #0f172a;
}

#customSolutions .aiworkforce-card h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

#customSolutions .aiworkforce-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #444;
}

#customSolutions .aiworkforce-roles li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #0f172a;
}

#customSolutions .aiworkforce-roles input[type="checkbox"] {
  margin-right: 0.4rem;
}

/* Form fields styling */
#customSolutions input[type="text"],
#customSolutions input[type="email"],
#customSolutions textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.6rem;
  width: 100%;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
}

#customSolutions label {
  color: #0f172a;
}

#customSolutions .aiworkforce-btn {
  background-color: #e1171a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#customSolutions .aiworkforce-btn:hover {
  background-color: #0f172a;
}

#customSolutionsForm input,
#customSolutionsForm textarea {
  color: #0f172a;           /* Dark font */
  background-color: #ffffff; /* White background */
}

/* 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);
}


/* Stack the cards vertically instead of side by side */
.aiworkforce-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;   /* space between cards */
  max-width: 700px;  /* keep it nicely centered */
  margin: 0 auto;    /* center align */
}

/* Make cards take full width inside the stack */
.aiworkforce-stack .aiworkforce-card {
  width: 100%;
}

.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: #0f172a; /* 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;
}
