/* ============================================
   OMNEXA AI - Brand Theme Modernization
   Galaxy Dots, ReactBits Animations, Brand Colors
   ============================================ */

/* ============================================
   1. Galaxy Dots Particles Effect
   ============================================ */

.galaxy-dots-bg {
  position: relative;
  overflow: hidden;
}

.galaxy-dots-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image:
    radial-gradient(circle at 20% 30%, rgba(253, 184, 30, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(40, 41, 115, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(253, 184, 30, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(40, 41, 115, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(253, 184, 30, 0.06) 0%, transparent 50%); */
  animation: galaxyDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes galaxyDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  33% {
    transform: translate(-2%, 1%) scale(1.02);
    opacity: 0.9;
  }

  66% {
    transform: translate(1%, -2%) scale(1.01);
    opacity: 0.95;
  }

  100% {
    transform: translate(-1%, 0%) scale(1);
    opacity: 1;
  }
}

/* Twinkling star particles */
.galaxy-dots-bg .particle-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FDB81E;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ============================================
   2. ReactBits-Inspired Modern Animations
   ============================================ */

/* Text Scramble Reveal */
.text-scramble {
  display: inline-block;
}

.text-scramble.scrambled {
  animation: none;
}

/* Spotlight Card Hover - Glow follows cursor */
.spotlight-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(253, 184, 30, 0.15),
      transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: inherit;
}

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

.spotlight-card>* {
  position: relative;
  z-index: 1;
}

/* Magnetic Button - Enhanced */
.btn-magnetic-enhanced {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-magnetic-enhanced:hover {
  box-shadow: 0 0 30px rgba(253, 184, 30, 0.4), 0 0 60px rgba(40, 41, 115, 0.2);
}

/* Enhanced magnetic pull area */
.btn-magnetic-enhanced::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  z-index: -1;
  cursor: pointer;
}

/* Text Gradient Slide */
@keyframes gradientSlide {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.text-gradient-slide {
  background: linear-gradient(90deg, #282973, #FDB81E, #282973, #FDB81E);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSlide 6s ease-in-out infinite;
}

/* Floating Chaos - Random floating elements */
@keyframes floatChaos {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(3deg);
  }

  50% {
    transform: translateY(-25px) rotate(-2deg);
  }

  75% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.float-chaos {
  animation: floatChaos 6s ease-in-out infinite;
}

.float-chaos:nth-child(2n) {
  animation-delay: -1.5s;
  animation-duration: 7s;
}

.float-chaos:nth-child(3n) {
  animation-delay: -3s;
  animation-duration: 5s;
}

/* Shader-like Gradient Border */
.gradient-border-shader {
  position: relative;
  background: white;
  border-radius: 16px;
}

.gradient-border-shader::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #282973, #FDB81E, #282973);
  background-size: 200% 200%;
  animation: gradientSlide 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Blur-in reveal on scroll */
@keyframes blurInReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.blur-in-reveal {
  animation: blurInReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger word reveal */
@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.word-reveal .word {
  display: inline-block;
  opacity: 0;
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.word-reveal .word:nth-child(1) {
  animation-delay: 0s;
}

.word-reveal .word:nth-child(2) {
  animation-delay: 0.08s;
}

.word-reveal .word:nth-child(3) {
  animation-delay: 0.16s;
}

.word-reveal .word:nth-child(4) {
  animation-delay: 0.24s;
}

.word-reveal .word:nth-child(5) {
  animation-delay: 0.32s;
}

.word-reveal .word:nth-child(6) {
  animation-delay: 0.40s;
}

.cosmic-pulse {
  animation: cosmicPulse 4s ease-in-out infinite;
}

@keyframes cosmicPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(40, 41, 115, 0.2),
      0 0 40px rgba(253, 184, 30, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(40, 41, 115, 0.3),
      0 0 80px rgba(253, 184, 30, 0.2);
  }
}

/* ============================================
   3. Brand Color Utilities (new)
   ============================================ */

.text-brand-gold {
  color: #FDB81E;
}

.text-brand-navy {
  color: #282973;
}

.bg-brand-gold {
  background-color: #FDB81E;
}

.bg-brand-navy {
  background-color: #282973;
}

.border-brand-gold {
  border-color: #FDB81E;
}

.border-brand-navy {
  border-color: #282973;
}

.gradient-brand-text {
  background: linear-gradient(135deg, #282973, #FDB81E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-brand-gold {
  box-shadow: 0 0 20px rgba(253, 184, 30, 0.3),
    0 0 40px rgba(253, 184, 30, 0.15);
}

.glow-brand-navy {
  box-shadow: 0 0 20px rgba(40, 41, 115, 0.3),
    0 0 40px rgba(40, 41, 115, 0.15);
}

/* ============================================
   4. Service Cards - Modern Glass Morphism v2
   ============================================ */

.glass-v2 {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(40, 41, 115, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(253, 184, 30, 0.08), transparent);
  transition: left 0.8s ease;
}

.glass-v2:hover::before {
  left: 100%;
}

.glass-v2:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(40, 41, 115, 0.12),
    0 0 60px rgba(253, 184, 30, 0.1);
  border-color: rgba(253, 184, 30, 0.2);
}

/* Hover float effect on cards */
.hover-float {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-float:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(40, 41, 115, 0.15);
}

/* ============================================
   5. Navigation Enhanced
   ============================================ */

.navbar-enhanced {
  padding: 16px 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
}

.navbar-enhanced.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(40, 41, 115, 0.08);
  padding: 10px 0;
}

.nav-link-enhanced {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-enhanced::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #FDB81E;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-enhanced:hover::after,
.nav-link-enhanced.active::after {
  transform: translateX(-50%) scale(1);
}

/* ============================================
   6. Hero Section - Cosmic Vibes
   ============================================ */

.hero-cosmic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F8FAFF 0%, rgba(40, 41, 115, 0.03) 50%, #F8FAFF 100%);
  overflow: hidden;
}

.hero-cosmic .orbital-element {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orbit 30s linear infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

/* Animated background gradient mesh */
.hero-cosmic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(253, 184, 30, 0.08) 0%, transparent 70%);
  animation: floatOrb 15s ease-in-out infinite;
}

.hero-cosmic::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(40, 41, 115, 0.06) 0%, transparent 70%);
  animation: floatOrb 12s ease-in-out infinite reverse;
}

/* ============================================
   7. Counter Stats - New Style
   ============================================ */

.stat-glow {
  position: relative;
}

.stat-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 184, 30, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: statGlowPulse 4s ease-in-out infinite;
}

@keyframes statGlowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* ============================================
   8. Marquee Text Banner
   ============================================ */

.marquee-banner {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-banner .marquee-content {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   9. Comparison Table - Enhanced
   ============================================ */

.comparison-row-animate {
  animation: tableRowReveal 0.5s ease forwards;
  opacity: 0;
}

@keyframes tableRowReveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.comparison-row-animate:nth-child(1) {
  animation-delay: 0.1s;
}

.comparison-row-animate:nth-child(2) {
  animation-delay: 0.2s;
}

.comparison-row-animate:nth-child(3) {
  animation-delay: 0.3s;
}

.comparison-row-animate:nth-child(4) {
  animation-delay: 0.4s;
}

.comparison-row-animate:nth-child(5) {
  animation-delay: 0.5s;
}

.comparison-row-animate:nth-child(6) {
  animation-delay: 0.6s;
}

.comparison-row-animate:nth-child(7) {
  animation-delay: 0.7s;
}

/* ============================================
   10. Loading Skeleton / Shimmer
   ============================================ */

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

  100% {
    transform: translateX(100%);
  }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmerWave 2s ease-in-out infinite;
}

/* ============================================
   11. Scroll Progress Indicator
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #282973, #FDB81E);
  z-index: 9999;
  transform-origin: left;
  transition: width 0.1s linear;
}

/* ============================================
   12. Testimonial Cards - Enhanced
   ============================================ */

.testimonial-enhanced {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(40, 41, 115, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(40, 41, 115, 0.06);
}

.testimonial-enhanced:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(40, 41, 115, 0.1);
  border-color: rgba(253, 184, 30, 0.15);
}

.testimonial-enhanced .quote-icon {
  color: #FDB81E;
  font-size: 3rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.testimonial-enhanced:hover .quote-icon {
  opacity: 0.6;
}

/* ============================================
   13. Process Steps - Modern Timeline
   ============================================ */

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #282973, #FDB81E, #282973);
  z-index: 0;
}

.process-timeline .step-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  border: 3px solid #282973;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(40, 41, 115, 0.15);
}

.process-timeline .step-node:hover {
  border-color: #FDB81E;
  box-shadow: 0 0 30px rgba(253, 184, 30, 0.3),
    0 4px 15px rgba(40, 41, 115, 0.15);
  transform: scale(1.1);
}

/* ============================================
   14. Footer - Cosmic Theme
   ============================================ */

.footer-cosmic {
  background: #0A0F24;
  position: relative;
  overflow: hidden;
}

.footer-cosmic::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(253, 184, 30, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cosmic::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(40, 41, 115, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   15. Chatbot - Modern Style
   ============================================ */

.chatbot-modern .chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 2px solid #FDB81E;
  color: #282973;
  box-shadow: 0 4px 20px rgba(253, 184, 30, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-modern .chatbot-button:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(253, 184, 30, 0.3);
  border-color: #282973;
}

/* ============================================
   16. Section Universe Background
   ============================================ */

.section-universe {
  background: #F8FAFF;
  position: relative;
}

.section-universe .universe-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(253, 184, 30, 0.3), transparent),
    radial-gradient(2px 2px at 30% 60%, rgba(40, 41, 115, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 50% 40%, rgba(253, 184, 30, 0.25), transparent),
    radial-gradient(2px 2px at 70% 80%, rgba(40, 41, 115, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 50%, rgba(253, 184, 30, 0.2), transparent),
    radial-gradient(2px 2px at 20% 80%, rgba(40, 41, 115, 0.15), transparent),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(253, 184, 30, 0.2), transparent);
  animation: universeDrift 25s ease-in-out infinite alternate;
}

@keyframes universeDrift {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-5px, 5px);
  }

  100% {
    transform: translate(5px, -5px);
  }
}

/* ============================================
   17. Responsive Galaxy Dots
   ============================================ */

@media (max-width: 768px) {
  .galaxy-dots-bg::before {
    animation-duration: 40s;
  }

  .section-universe .universe-dots {
    animation-duration: 40s;
  }

  .process-timeline::before {
    display: none;
  }

  .process-timeline {
    flex-direction: column;
    gap: 30px;
  }
}

/* ============================================
   18. Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  .galaxy-dots-bg::before,
  .section-universe .universe-dots,
  .float-chaos,
  .cosmic-pulse {
    animation: none;
  }

  .glass-v2 {
    transition: none;
  }
}

/* ============================================
   19. Dynamic Typewriter Animation & Cursor
   ============================================ */
.typewriter-cursor {
  font-weight: 300;
  color: var(--brand-orange, #FDB81E);
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 4px;
  display: inline-block;
}

@keyframes cursorBlink {
  from, to { opacity: 0 }
  50% { opacity: 1 }
}

.hero-base-text {
  color: var(--deep-blue, #282973);
}