/* ==========================================================================
   ZENKAI WEB SOLUTION — Premium Animations & Live Visual Effects
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

@keyframes pulseRadar {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 92, 255, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(46, 92, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 92, 255, 0);
  }
}

@keyframes pulseGreenRadar {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes shimmerLight {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes flowLineGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --------------------------------------------------------------------------
   2. Scroll Reveal Transitions
   -------------------------------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* --------------------------------------------------------------------------
   3. Floating Badges & Live Status Indicators
   -------------------------------------------------------------------------- */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(11, 27, 58, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse-green-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseGreenRadar 2s infinite;
}

.pulse-blue-dot {
  width: 8px;
  height: 8px;
  background-color: var(--blue);
  border-radius: 50%;
  animation: pulseRadar 2s infinite;
}

/* --------------------------------------------------------------------------
   4. Hero Visual Container & Floating Card Frame
   -------------------------------------------------------------------------- */
.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 60px -16px rgba(11, 27, 58, 0.22),
              0 8px 24px rgba(11, 27, 58, 0.08);
  border: 1px solid rgba(230, 233, 242, 0.9);
  background: #0B1B3A;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 70px -16px rgba(46, 92, 255, 0.28),
              0 12px 30px rgba(11, 27, 58, 0.12);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-frame:hover img {
  transform: scale(1.025);
}

/* Live dynamic overlay banner on hero image */
.hero-live-overlay-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(11, 27, 58, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  z-index: 5;
  transition: all 0.3s ease;
}

.overlay-status-title {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.overlay-status-desc {
  font-size: 0.71875rem;
  color: var(--cyan);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Interactive Solution Dock Floating Behavior
   -------------------------------------------------------------------------- */
.solution-dock.floating-effect {
  animation: floatGentle 5s infinite ease-in-out;
}

.solution-dock.floating-effect:hover {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   6. gpage.in Mobile Showcase Image Frame
   -------------------------------------------------------------------------- */
.gpage-image-showcase {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(26, 115, 232, 0.22),
              0 8px 24px rgba(11, 27, 58, 0.08);
  border: 1px solid var(--line);
  background: #FFFFFF;
  animation: floatSlow 6s infinite ease-in-out;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gpage-image-showcase:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 32px 64px -12px rgba(26, 115, 232, 0.32);
}

.gpage-image-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   7. Card Live Hover Light Glow Effect
   -------------------------------------------------------------------------- */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   8. Approach Animated Connecting Line
   -------------------------------------------------------------------------- */
.approach-flow .flow-arrow-divider {
  animation: floatSlow 3s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   9. Numbers Counter Glow
   -------------------------------------------------------------------------- */
.trust-value.counter-active {
  color: var(--blue);
  transition: color 0.4s ease;
}
