/* ==========================================================================
   Hexa Info Soft — Modern AI Enterprise Stylesheet (hexainfosoft.com)
   Harmonized with Official Hexa Info Soft Brand Palette:
   - Deep Midnight: #0A293F
   - Hexa Cyan:     #0099DB
   - AI Indigo:     #4F46E5
   - Emerald Pulse: #10B981
   ========================================================================== */

:root {
  --hexa-midnight: #0A293F;
  --hexa-obsidian: #060B14;
  --hexa-cyan: #0099DB;
  --hexa-cyan-bright: #0EA5E9;
  --hexa-indigo: #4F46E5;
  --hexa-emerald: #10B981;
  --hexa-amber: #F5A600;
  --hexa-crimson: #E31E24;
  --surface-light: #FAFCFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--surface-light);
  color: #0F172A;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Seamless Logo Blending on White/Light Surfaces */
.logo-blend {
  mix-blend-mode: multiply;
}

/* Luminous AI Hero Canvas & Animated Aurora Blobs */
.hero-canvas-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 153, 219, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(79, 70, 229, 0.10), transparent 65%),
    radial-gradient(ellipse 45% 40% at 10% 35%, rgba(16, 185, 129, 0.08), transparent 65%),
    linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 100%);
}

.aurora-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  will-change: transform;
  animation: auroraDrift 14s ease-in-out infinite alternate;
}

.aurora-blob-1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 153, 219, 0.32), transparent 70%);
  top: -120px;
  left: -80px;
}

.aurora-blob-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.24), transparent 70%);
  top: 40px;
  right: -120px;
  animation-delay: -5s;
  animation-duration: 18s;
}

.aurora-blob-3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
  bottom: -60px;
  left: 35%;
  animation-delay: -9s;
  animation-duration: 16s;
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(30px, -25px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-20px, 25px, 0) scale(0.96);
  }
}

/* Flowing AI Gradient Text */
.text-ai-gradient {
  background: linear-gradient(110deg, #0A293F 0%, #0099DB 35%, #4F46E5 68%, #0099DB 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s linear infinite;
}

.text-ai-gradient-light {
  background: linear-gradient(110deg, #38BDF8 0%, #818CF8 45%, #34D399 80%, #38BDF8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 7s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Animated Gradient Pill Border */
.ai-badge-border {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -6px rgba(0, 153, 219, 0.18);
}

.ai-badge-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(90deg, #0099DB, #4F46E5, #10B981, #F5A600, #0099DB);
  background-size: 250% 100%;
  animation: gradientFlow 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Floating Micro-Cards */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

.animate-float {
  animation: floatSlow 5.5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 6.5s ease-in-out 1.8s infinite;
}

/* Shimmer Primary Button */
.btn-ai-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A293F 0%, #007BB5 55%, #0099DB 100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.btn-ai-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s ease;
}

.btn-ai-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0, 153, 219, 0.45);
}

.btn-ai-primary:hover::after {
  left: 140%;
}

/* Dark Obsidian AI Grid Band */
.obsidian-ai-surface {
  background-color: var(--hexa-obsidian);
  background-image:
    radial-gradient(ellipse 65% 50% at 50% 0%, rgba(0, 153, 219, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 85%, rgba(79, 70, 229, 0.16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

/* Spotlight Cursor-Tracking Bento Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 153, 219, 0.10),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -18px rgba(10, 41, 63, 0.14);
  border-color: rgba(0, 153, 219, 0.38);
}

.spotlight-card-dark::before {
  background: radial-gradient(
    460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.16),
    transparent 65%
  );
}

/* Infinite Smooth Marquee */
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Live Pulse Dot */
.live-dot {
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0.5;
  animation: pingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 0.75; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}

/* Product Filter Transitions */
.product-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card.is-hidden {
  display: none;
}

/* Active Pills & Chips */
.chip-active {
  background: linear-gradient(135deg, #0A293F, #0099DB) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px -4px rgba(0, 153, 219, 0.4);
}

.tab-active-dark {
  background: rgba(0, 153, 219, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #FFFFFF;
}

/* Floating WhatsApp Hover Box */
.wa-widget-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
}

.wa-hover-box {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.28s ease;
}

.wa-widget-wrap:hover .wa-hover-box,
.wa-widget-wrap:focus-within .wa-hover-box,
.wa-widget-wrap.wa-open .wa-hover-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Invisible hover bridge so cursor moving from button to box never closes it */
.wa-hover-bridge {
  height: 14px;
  width: 100%;
}

/* Custom Subtle Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob,
  .text-ai-gradient,
  .text-ai-gradient-light,
  .animate-float,
  .animate-float-delayed,
  .marquee-track {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
