:root {
  --bg-dark: #050816;
  --bg-card: rgba(255, 255, 255, 0.08);
  --primary: #00d4ff;
  --secondary: #7c3cff;
  --accent: #ffd166;
  --text-light: #f8f9ff;
  --text-muted: #aab0c5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

#services,
#products,
#vision,
#contact {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 60, 255, 0.22), transparent 35%),
    var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
  overflow-y: auto;

}

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999 !important;
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(5, 8, 22, 0.96) !important;
  padding: 8px 0 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff !important;
}



/* LOGO */

.navbar-brand {
  text-decoration: none;
}

.navbar-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(0,212,255,.35));
  transition: transform .3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: white;
}

.logo-subtext {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--primary);
  margin-top: 5px;
}


.brand-dot {
  color: var(--primary);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: 0.3s;
}

.nav-link:hover {
  color: white !important;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  color: #bdf5ff;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  line-height: 1.7;
}

.hero-carousel {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-carousel-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-carousel-text {
  min-height: 3.2rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-wrap;
}

.hero-cursor {
  display: inline-block;
  margin-left: 0.2rem;
  opacity: 1;
  animation: blinkCursor 1s step-start infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-carousel-actions .btn {
  min-width: 170px;
}

/* BUTTONS */

.btn-neon {
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 44px rgba(124, 60, 255, 0.42);
  color: white;
}

.btn-outline-glass {
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  text-decoration: none;
}

.btn-outline-glass:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

/* AI ORB */

.ai-orb-wrap {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-orb {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%,
      #ffffff,
      var(--primary) 20%,
      var(--secondary) 55%,
      #10132b 78%);
  box-shadow:
    0 0 80px rgba(0, 212, 255, 0.45),
    inset 0 0 55px rgba(255, 255, 255, 0.18);
  animation:
    floatOrb 5s ease-in-out infinite,
    pulseGlow 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  animation: rotateOrbit 18s linear infinite;
}

.orbit.one {
  width: 430px;
  height: 430px;
}

.orbit.two {
  width: 520px;
  height: 260px;
  transform: rotate(35deg);
  animation-duration: 24s;
}

.orbit.three {
  width: 260px;
  height: 520px;
  transform: rotate(-35deg);
  animation-duration: 20s;
}

.node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px var(--primary);
}

.orbit.one .node {
  top: 35px;
  left: 70px;
}

.orbit.two .node {
  right: 70px;
  top: 40px;
}

.orbit.three .node {
  left: 110px;
  bottom: 35px;
}

/* FLOATING CARDS */

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: floatCard 4.5s ease-in-out infinite;
  z-index: 3;
}

.floating-card i {
  color: var(--primary);
  margin-right: 8px;
}

.card-one {
  top: 70px;
  left: 0;
}

.card-two {
  right: 0;
  bottom: 120px;
  animation-delay: 0.8s;
}

.card-three {
  left: 60px;
  bottom: 35px;
  animation-delay: 1.4s;
}

/* SECTIONS */

section {
  padding: 90px 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* GLASS CARDS */

.glass-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 30px;
  backdrop-filter: blur(18px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 24px 70px rgba(0, 212, 255, 0.12);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(0, 212, 255, 0.18),
      rgba(124, 60, 255, 0.22)
    );
  color: var(--primary);
  font-size: 1.4rem;
}

.glass-card h3 {
  font-weight: 800;
  margin-bottom: 12px;
}

.glass-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* PRODUCT PANEL */

.product-panel {
  background:
    linear-gradient(
      135deg,
      rgba(0, 212, 255, 0.12),
      rgba(124, 60, 255, 0.12)
    );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  padding: 46px;
  overflow: hidden;
  position: relative;
}

.product-cards-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.product-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 212, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover .learn-more i {
  transform: translateX(5px);
}

.dashboard-mockup {
  border-radius: 24px;
  background: rgba(9, 13, 35, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.mockup-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.progress-line {
  height: 8px;
  width: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 76%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: scanLine 2.5s ease-in-out infinite;
}

/* CTA */

.cta-box {
  border-radius: 34px;
  padding: 54px 30px;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 212, 255, 0.18),
      rgba(124, 60, 255, 0.09),
      rgba(255, 255, 255, 0.04)
    );
  border: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

/* FOOTER */

footer {
  padding: 36px 0;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ANIMATIONS */

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 80px rgba(0, 212, 255, 0.45),
      inset 0 0 55px rgba(255,255,255,.18);
  }

  50% {
    box-shadow:
      0 0 120px rgba(124, 60, 255, 0.55),
      inset 0 0 65px rgba(255,255,255,.22);
  }
}

@keyframes rotateOrbit {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes scanLine {
  0%, 100% {
    width: 38%;
  }

  50% {
    width: 92%;
  }
}

/* RESPONSIVE */

@media (max-width: 991px) {

  .hero {
    text-align: center;
  }

  .hero p {
    margin: 0 auto;
  }

  .ai-orb-wrap {
    height: 420px;
    margin-top: 45px;
  }

  .ai-orb {
    width: 230px;
    height: 230px;
  }

  .orbit.one {
    width: 320px;
    height: 320px;
  }

  .orbit.two {
    width: 370px;
    height: 190px;
  }

  .orbit.three {
    width: 190px;
    height: 370px;
  }

  .floating-card {
    font-size: 0.85rem;
  }

  .card-one {
    left: 16px;
  }

  .card-two {
    right: 16px;
  }

  .card-three {
    left: 34px;
  }
}

/* NEXT LEVEL BACKGROUND */

.neural-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.neural-bg span {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  filter: blur(4px);
  animation: neuralFloat 16s ease-in-out infinite;
}

.neural-bg span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.neural-bg span:nth-child(2) {
  top: 25%;
  right: 10%;
  animation-delay: 2s;
  background: radial-gradient(circle, rgba(124, 60, 255, 0.2), transparent 70%);
}

.neural-bg span:nth-child(3) {
  bottom: 15%;
  left: 18%;
  animation-delay: 4s;
}

.neural-bg span:nth-child(4) {
  bottom: 8%;
  right: 20%;
  animation-delay: 6s;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.12), transparent 70%);
}

.neural-bg span:nth-child(5) {
  top: 55%;
  left: 45%;
  animation-delay: 8s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

/* STATS */

.stat-card {
  height: 100%;
  padding: 28px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
}

.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* PRICING */

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #bdf5ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-card ul {
  padding-left: 0;
  margin-top: 20px;
  margin-bottom: 0;
  list-style: none;
}

.pricing-card li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-right: 10px;
}

.featured-price {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.12);
}

.featured-price::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.16),
    transparent,
    rgba(124, 60, 255, 0.18)
  );
  z-index: -1;
}

/* CONTACT FORM */

.contact-panel {
  max-width: 720px;
  margin-top: 30px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.form-control-glass {
  background-color: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: white !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

.form-control-glass::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-control-glass:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.15) !important;
  border-color: rgba(0, 212, 255, 0.55) !important;
}

.form-select.form-control-glass option {
  background: #050816;
  color: white;
}

/* EXTRA ANIMATIONS */

@keyframes neuralFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(40px, -35px, 0) scale(1.15);
  }
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0,212,255,0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
}

.navbar-scrolled{
  background: rgba(5, 8, 22, 0.92);
  padding: 8px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: auto;
}

body > *:not(#particles-js):not(.neural-bg):not(.grid-overlay) {
  position: relative;
  z-index: 1;
}

/* CLICKABLE SERVICE CARDS */

.service-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 212, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.learn-more i {
  transition: transform 0.25s ease;
}

.service-card:hover .learn-more i {
  transform: translateX(5px);
}

/* SERVICE MODAL */

.service-modal .modal-content {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 60, 255, 0.16), transparent 40%),
    rgba(5, 8, 22, 0.96);
  color: white;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.service-modal .modal-header {
  padding: 30px 30px 10px;
}

.service-modal .modal-body {
  padding: 20px 30px 10px;
}

.service-modal .modal-footer {
  padding: 20px 30px 30px;
}

.modal-service-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #bdf5ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-modal .modal-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #fff, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-example-box {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.modal-example-box h5 {
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.modal-example-box h5 i {
  color: var(--accent);
}

.modal-example-box p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.modal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.075);
  border: 1px solid rgba(0, 212, 255, 0.14);
  color: var(--text-light);
  font-weight: 600;
}

.modal-feature-item i {
  color: var(--primary);
}

.service-modal .btn-close {
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
  opacity: 0.9;
}

.service-modal .btn-close:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  .modal-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-modal .modal-content {
    border-radius: 22px;
  }

  .service-modal .modal-header,
  .service-modal .modal-body,
  .service-modal .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
}

.modal:not(.show) {
  display: none !important;
}

.modal-backdrop {
  z-index: 999998 !important;
}

.service-modal .modal-dialog {
  margin: 1.75rem auto !important;
}


/* INTERACTIVE AI CHAT DEMO */

#ai-demo {
  padding-top: 110px;
}

.demo-benefits {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.demo-benefits li {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.demo-benefits li::before {
  content: "✦";
  color: var(--primary);
  margin-right: 10px;
}

.ai-chat-widget {
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 60, 255, 0.18), transparent 38%),
    rgba(5, 8, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-agent-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.35);
}

.ai-chat-header h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ai-chat-header span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.ai-chat-header span i {
  color: #39ff88;
  font-size: 0.55rem;
  margin-right: 6px;
}

.ai-chat-messages {
  height: 380px;
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 999px;
}

.ai-message {
  display: flex;
  margin-bottom: 16px;
}

.ai-message.user {
  justify-content: flex-end;
}

.ai-message.bot {
  justify-content: flex-start;
}

.bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 0.96rem;
}

.ai-message.bot .bubble {
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border-bottom-left-radius: 6px;
}

.ai-message.user .bubble {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.22);
}

.quick-prompts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px 18px;
}

.quick-prompts button {
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: #bdf5ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.quick-prompts button:hover {
  background: rgba(0, 212, 255, 0.16);
  transform: translateY(-2px);
}

.ai-chat-form {
  display: flex;
  gap: 12px;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
  color: white;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.ai-chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.ai-chat-form input:focus {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.12);
}

.ai-chat-form button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.28);
}

.typing-bubble {
  display: flex;
  gap: 6px;
  align-items: center;
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingDots 1s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-bubble span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingDots {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .ai-chat-messages {
    height: 330px;
    padding: 18px;
  }

  .bubble {
    max-width: 90%;
  }

  .ai-chat-form {
    padding: 16px;
  }
}

/* FLOATING AI ASSISTANT */

.floating-ai-button {

  position: fixed !important;

  left: 20px !important;
  bottom: 20px !important;

  width: 64px;
  height: 64px;

  border-radius: 22px;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  color: white;

  font-size: 1.5rem;

  cursor: pointer;

  z-index: 99999999;

  box-shadow:
    0 0 40px rgba(0,212,255,.35),
    0 20px 50px rgba(0,0,0,.28);

  animation:
    floatingPulse 3s infinite ease-in-out;

  transition:
    transform .25s ease;
}

.floating-ai-button:hover {
  transform: scale(1.05);
}

.floating-ai-button:hover {
  transform: scale(1.05);
}

.floating-ai-chat {

  position: fixed !important;

  left: 20px !important;
  bottom: 95px !important;

  width: 360px;
  max-width: calc(100vw - 24px);

  height: 520px;

  border-radius: 28px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(0,212,255,.16),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124,60,255,.18),
      transparent 35%
    ),
    rgba(5,8,22,.96);

  border:
    1px solid rgba(255,255,255,.12);

  backdrop-filter: blur(24px);

  box-shadow:
    0 40px 120px rgba(0,0,0,.45);

  z-index: 99999999;

  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;

  transform:
    translateY(20px)
    scale(.96);

  transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s ease;
}

.floating-ai-chat.active {

  opacity: 1;
  visibility: visible;

  transform:
    translateY(0)
    scale(1);
}

.floating-chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.floating-chat-agent {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
  color: white;
}

.floating-chat-header h5 {
  margin: 0;
  font-weight: 800;
}

.floating-chat-header span {
  color: var(--text-muted);
  font-size: .82rem;
}

.floating-close-btn {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,.08);
  color: white;
}

.floating-whatsapp-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: #25d366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(37, 211, 102, .25);
}

.floating-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.floating-chat-form {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.floating-chat-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: white;
  border-radius: 999px;
  padding: 14px 16px;
  outline: none;
}

.floating-chat-form button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );
  color: white;
}

@keyframes floatingPulse {

  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media(max-width:768px){

  .floating-ai-chat{
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 100px;
    height: 75vh;
  }

  .floating-ai-button{
    right: 18px;
    bottom: 18px;
  }
}

/* FORCE FLOATING AI FIXED */

html,
body {
  overflow-x: hidden;
}

.floating-ai-button,
.floating-ai-chat {
  position: fixed !important;
  transform-style: preserve-3d;

  z-index: 99999999 !important;
}

/* ROBOT BUTTON */

.floating-ai-button {
  right: 24px !important;
  bottom: 24px !important;
}

/* CHAT WINDOW */

.floating-ai-chat {
  right: 24px !important;
  bottom: 110px !important;
}

/* PREVENT PARENT TRANSFORM ISSUES */

body > .floating-ai-button,
body > .floating-ai-chat {
  position: fixed !important;
}

@media(max-width:768px){

  .floating-ai-chat{

    left: 12px !important;
    right: 12px !important;

    width: auto;

    height: 68vh;

    bottom: 85px !important;

    border-radius: 24px;
  }

  .floating-ai-button{

    left: 14px !important;
    bottom: 14px !important;

    width: 58px;
    height: 58px;

    font-size: 1.3rem;
  }

}

/* VOICE AI */

.voice-agent-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.voice-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  color: white;

  display: grid;
  place-items: center;

  box-shadow:
    0 0 20px rgba(0,212,255,.25);

  transition: .25s ease;
}

.voice-btn:hover {
  transform: scale(1.05);
}

.voice-btn.recording {
  animation: recordingPulse 1s infinite;
}

.voice-status {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}

@keyframes recordingPulse {

  0%,100% {
    box-shadow:
      0 0 0 rgba(255,0,0,0);
  }

  50% {
    box-shadow:
      0 0 30px rgba(255,0,0,.65);
  }
}

.subservice-details-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 20px;

  margin-top: 28px;
}

.subservice-detail-card {

  background:
    rgba(255,255,255,.05);

  border:
    1px solid rgba(255,255,255,.08);

  border-radius: 20px;

  padding: 22px;
}

.subservice-detail-card h5 {

  margin-bottom: 18px;

  font-weight: 700;
}

.subservice-detail-card ul {

  padding: 0;

  margin: 0;

  list-style: none;
}

.subservice-detail-card li {

  margin-bottom: 12px;

  color: var(--text-muted);

  line-height: 1.5;
}

.subservice-demo-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,212,255,.18);
}

.mini-chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subservice-live-demo {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,212,255,.18);
}

.live-demo-messages {
  height: 260px;
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  margin-bottom: 14px;
}

.live-demo-form {
  display: flex;
  gap: 10px;
}

.live-demo-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 13px 16px;
  outline: none;
}

.live-demo-form button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.demo-chat-floating {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(80vh, 560px);
  max-height: calc(100vh - 40px);

  transform: translate(-50%, -50%) scale(.96);
  z-index: 2147483647 !important;

  pointer-events: auto !important;

  border-radius: 30px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(0,212,255,.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124,60,255,.18), transparent 35%),
    rgba(5,8,22,.98);

  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);

  display: flex;
  flex-direction: column;

  min-width: 320px;
  min-height: 360px;
  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

.demo-chat-floating.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.demo-chat-floating * {
  pointer-events: auto !important;
}

.demo-chat-floating .floating-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-height: calc(100% - 172px) !important;
  overflow-y: auto !important;
  height: auto;
}

.demo-chat-floating .floating-chat-form {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(5,8,22,.98);
  z-index: 2;
}

@media(max-width:768px) {
  .demo-chat-floating {
    top: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(.96);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 56px);
    min-height: 420px;
    border-radius: 24px;
  }

  .demo-chat-floating.active {
    transform: translateX(-50%) scale(1);
  }
}

body.demo-chat-open #subserviceModal .modal-content {
  opacity: .35;
  pointer-events: none;
}