/* Custom Animations & Interactive Visual Styling for C-Zentrix Missed Call Service */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-brand: #3858f9;
  --primary-dark: #090e1c;
  --cyan-glow: #00d2ff;
  --accent-green: #10b981;
}

body {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  overflow-x: hidden;
  background-color: #f8fafc;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html.dark body {
  color: #f1f5f9;
  background-color: #080d1a;
}

.bg-slate-850 {
  background-color: #f1f5f9;
}

html.dark .bg-slate-850 {
  background-color: #0d1527;
}

.hover\:bg-slate-850:hover {
  background-color: #e2e8f0;
}

html.dark .hover\:bg-slate-850:hover {
  background-color: #111a30;
}

/* Theme-Aware SVG Palette Rules */
html:not(.dark) .svg-themed-card {
  fill: #ffffff !important;
  stroke: #e2e8f0 !important;
}

html:not(.dark) .svg-themed-node {
  fill: #f8fafc !important;
}

html:not(.dark) .svg-themed-inner {
  fill: #ffffff !important;
  stroke: #e2e8f0 !important;
}

html:not(.dark) .svg-themed-text-title {
  fill: #0f172a !important;
}

html:not(.dark) .svg-themed-text-sub {
  fill: #475569 !important;
}

html:not(.dark) .svg-themed-text-muted {
  fill: #64748b !important;
}

html:not(.dark) .svg-themed-grid {
  stroke: #e2e8f0 !important;
  opacity: 0.8 !important;
}

html:not(.dark) .svg-themed-banner {
  fill: #f8fafc !important;
  stroke: #e2e8f0 !important;
}

html.dark .svg-themed-card {
  fill: #070c18 !important;
  stroke: #1e293b !important;
}

html.dark .svg-themed-node {
  fill: #0c1527 !important;
}

html.dark .svg-themed-inner {
  fill: #090e1c !important;
  stroke: #1e293b !important;
}

html.dark .svg-themed-text-title {
  fill: #ffffff !important;
}

html.dark .svg-themed-text-sub {
  fill: #cbd5e1 !important;
}

html.dark .svg-themed-text-muted {
  fill: #94a3b8 !important;
}

html.dark .svg-themed-grid {
  stroke: #ffffff !important;
  opacity: 0.08 !important;
}

html.dark .svg-themed-banner {
  fill: #0b1329 !important;
  stroke: #1e293b !important;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* Gradient Mesh and Ambient Lights */
.ambient-glow-blue {
  background: radial-gradient(circle at 50% 50%, rgba(56, 88, 249, 0.22) 0%, rgba(56, 88, 249, 0) 70%);
}

.ambient-glow-cyan {
  background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.18) 0%, rgba(0, 210, 255, 0) 70%);
}

/* Float Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

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

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

.animate-float-reverse {
  animation: floatReverse 4.5s ease-in-out infinite;
}

/* Wave Sound / Call Ring Pulse */
@keyframes ringPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 88, 249, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 35px rgba(56, 88, 249, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 88, 249, 0);
  }
}

.animate-ring-pulse {
  animation: ringPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Process Connecting Track & Animated Flow Dot */
.process-track {
  background: linear-gradient(90deg, #3858f9 0%, #00d2ff 50%, #10b981 100%);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
}

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

/* Shimmer Highlight on Cards */
.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

/* Sound Wave Bars Animation */
.sound-bar {
  display: inline-block;
  width: 4px;
  background-color: #3858f9;
  border-radius: 9999px;
  animation: soundBounce 1.2s ease-in-out infinite alternate;
}

.sound-bar:nth-child(1) { height: 16px; animation-delay: 0.1s; }
.sound-bar:nth-child(2) { height: 28px; animation-delay: 0.25s; }
.sound-bar:nth-child(3) { height: 42px; animation-delay: 0.4s; }
.sound-bar:nth-child(4) { height: 24px; animation-delay: 0.15s; }
.sound-bar:nth-child(5) { height: 36px; animation-delay: 0.3s; }
.sound-bar:nth-child(6) { height: 18px; animation-delay: 0.45s; }

@keyframes soundBounce {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}


/* Scroll reveal utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   SVG Telephony Flow & Process Animation Styles
   ========================================================================= */

/* Animated Signal Cables (Flowing dashed lines) */
.svg-flow-line {
  stroke-dasharray: 8 6;
  animation: svgFlow 1.2s linear infinite;
}

.svg-flow-line-fast {
  stroke-dasharray: 6 4;
  animation: svgFlow 0.8s linear infinite;
}

.svg-flow-line-reverse {
  stroke-dasharray: 8 6;
  animation: svgFlowReverse 1.2s linear infinite;
}

@keyframes svgFlow {
  from {
    stroke-dashoffset: 28;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes svgFlowReverse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 28;
  }
}

/* Radar & Signal Wave Radiations */
@keyframes radarRipples {
  0% {
    r: 12px;
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    r: 48px;
    opacity: 0;
  }
}

.animate-radar-ring-1 {
  animation: radarRipples 2.2s cubic-bezier(0.1, 0.4, 0.2, 1) infinite;
}

.animate-radar-ring-2 {
  animation: radarRipples 2.2s cubic-bezier(0.1, 0.4, 0.2, 1) infinite 0.7s;
}

.animate-radar-ring-3 {
  animation: radarRipples 2.2s cubic-bezier(0.1, 0.4, 0.2, 1) infinite 1.4s;
}

/* Signal Packet Pulsing Glow */
@keyframes packetBeacon {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #3858f9);
  }
  50% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 16px #00d2ff);
  }
}

.animate-packet-beacon {
  transform-origin: center;
  animation: packetBeacon 1.8s ease-in-out infinite;
}

/* 1-Ring Cut Disconnect Flash */
@keyframes scissorSlash {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px #ef4444);
  }
}

.animate-cut-pulse {
  transform-origin: center;
  animation: scissorSlash 1.4s ease-in-out infinite;
}

/* Equalizer Spectrum Wave Animation for Dialer */
@keyframes eqWave1 { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@keyframes eqWave2 { 0%, 100% { height: 18px; } 50% { height: 8px; } }
@keyframes eqWave3 { 0%, 100% { height: 10px; } 50% { height: 26px; } }
@keyframes eqWave4 { 0%, 100% { height: 24px; } 50% { height: 12px; } }
@keyframes eqWave5 { 0%, 100% { height: 14px; } 50% { height: 20px; } }

.animate-eq-1 { animation: eqWave1 0.8s ease-in-out infinite alternate; }
.animate-eq-2 { animation: eqWave2 0.7s ease-in-out infinite alternate 0.1s; }
.animate-eq-3 { animation: eqWave3 0.9s ease-in-out infinite alternate 0.2s; }
.animate-eq-4 { animation: eqWave4 0.6s ease-in-out infinite alternate 0.15s; }
.animate-eq-5 { animation: eqWave5 0.75s ease-in-out infinite alternate 0.25s; }

/* SVG Chart Bar Grow */
@keyframes svgBarGrow {
  0% {
    transform: scaleY(0.1);
  }
  100% {
    transform: scaleY(1);
  }
}

.animate-bar-grow {
  transform-origin: bottom;
  animation: svgBarGrow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SVG Gauge Needle Pivot */
@keyframes svgGaugeNeedle {
  0% {
    transform: rotate(-70deg);
  }
  50% {
    transform: rotate(35deg);
  }
  100% {
    transform: rotate(20deg);
  }
}

.animate-gauge-needle {
  transform-origin: 100px 100px;
  animation: svgGaugeNeedle 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

/* Interactive SVG Diagram Node Hover & Active Classes */
.svg-pipeline-node {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-pipeline-node:hover {
  filter: drop-shadow(0 0 16px rgba(56, 88, 249, 0.6));
}

.svg-pipeline-node.is-active {
  filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.85));
}

.svg-pipeline-node.is-active .node-base {
  stroke: #00d2ff !important;
  stroke-width: 2.5px !important;
}

/* Floating SVG Tooltip */
#svg-flow-tooltip {
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Custom Interactive Slider Styling */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  border-radius: 9999px;
  height: 6px;
  outline: none;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00d2ff;
  cursor: pointer;
  box-shadow: 0 0 10px #00d2ff;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Keypad Dial Button Styling */
.keypad-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.keypad-btn:hover {
  background: rgba(56, 88, 249, 0.25);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-1px);
}

.keypad-btn:active {
  transform: scale(0.92);
  background: rgba(56, 88, 249, 0.4);
}

/* Subtle Gradient Grid Pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Premium Luminous Glow Borders */
.glow-card-cyan {
  box-shadow: 0 0 30px -10px rgba(0, 210, 255, 0.2);
}

.glow-card-brand {
  box-shadow: 0 0 30px -10px rgba(56, 88, 249, 0.25);
}

.glow-card-emerald {
  box-shadow: 0 0 30px -10px rgba(16, 185, 129, 0.2);
}

/* =========================================================================
   User-Friendly UI Components: Quick Dock, Tooltips & Stage Progress
   ========================================================================= */


/* Plain-English Interactive Glossary Tooltips */
.glossary-tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(0, 210, 255, 0.6);
  display: inline-flex;
  align-items: center;
}

.glossary-tooltip-trigger .tooltip-bubble {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  background: #0f172a;
  color: #e2e8f0;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.glossary-tooltip-trigger:hover .tooltip-bubble,
.glossary-tooltip-trigger:focus .tooltip-bubble {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Stage Progress Bar */
.sim-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.sim-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3858f9, #00d2ff, #10b981);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

/* Sound Feedback Toggle Button */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(56, 88, 249, 0.2);
  color: #ffffff;
  border-color: rgba(0, 210, 255, 0.4);
}

.sound-toggle-btn.is-muted {
  color: #94a3b8;
  opacity: 0.65;
}

/* Industry Scenario Tab Styling */
.industry-tab-btn {
  background-color: #ffffff;
  border-color: #e2e8f0;
  transition: all 0.25s ease;
}

html.dark .industry-tab-btn {
  background-color: #0d1527;
  border-color: #1e293b;
}

.industry-tab-btn:hover {
  transform: translateY(-2px);
  border-color: #3858f9;
}

.industry-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 88, 249, 0.08) 0%, rgba(0, 210, 255, 0.05) 100%);
  border-color: #3858f9;
  box-shadow: 0 10px 25px -5px rgba(56, 88, 249, 0.2);
}

html.dark .industry-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 88, 249, 0.2) 0%, rgba(13, 21, 39, 0.9) 100%);
  border-color: #3858f9;
  box-shadow: 0 10px 25px -5px rgba(56, 88, 249, 0.3);
}

/* Channel Comparison Filter Pills */
.channel-comp-btn {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

html.dark .channel-comp-btn {
  background-color: #0f172a;
  border-color: #1e293b;
  color: #94a3b8;
}

.channel-comp-btn:hover {
  border-color: #3858f9;
  color: #3858f9;
}

html.dark .channel-comp-btn:hover {
  border-color: #3858f9;
  color: #ffffff;
}

.channel-comp-btn.active {
  background-color: #3858f9;
  border-color: #3858f9;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(56, 88, 249, 0.3);
}

/* Interactive FAQ Nav Buttons */
.faq-nav-btn {
  background-color: #ffffff;
  border-color: #e2e8f0;
  transition: all 0.25s ease;
}

html.dark .faq-nav-btn {
  background-color: #0d1527;
  border-color: #1e293b;
}

.faq-nav-btn:hover {
  transform: translateY(-2px);
  border-color: #3858f9;
}

.faq-nav-btn.active {
  background: linear-gradient(135deg, rgba(56, 88, 249, 0.08) 0%, rgba(0, 210, 255, 0.05) 100%);
  border-color: #3858f9;
  box-shadow: 0 10px 25px -5px rgba(56, 88, 249, 0.2);
}

html.dark .faq-nav-btn.active {
  background: linear-gradient(135deg, rgba(56, 88, 249, 0.2) 0%, rgba(13, 21, 39, 0.9) 100%);
  border-color: #3858f9;
  box-shadow: 0 10px 25px -5px rgba(56, 88, 249, 0.3);
}

.faq-nav-btn.active .faq-active-indicator {
  display: inline-block !important;
}




