/* ==========================================================================
   CURA HEALTH MODERN REDESIGN - CUSTOM RESPONSIVE STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-navy: #053C61;
  --brand-navy-dark: #04253d;
  --brand-blue: #0f6cbd;
  --brand-blue-light: #e0f0fe;
  --brand-orange: #FF9933;
  --brand-orange-hover: #F5921F;
  --brand-cyan: #0B7A75;
  --brand-cyan-light: #DFFAF8;
  --brand-rose: #CC2B58;
  --brand-rose-light: #FCE5EC;
  --brand-mint: #1A6033;
  --brand-mint-light: #EAF7EE;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-700: #334155;
  --slate-900: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  color: #1e293b;
  background-color: #fafbfc;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  position: relative;
}

/* Persistent Fixed Header on Scroll */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(5, 60, 97, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* ==========================================
   Claim IQ Atmosphere & Grid
   ========================================== */
.claimiq-atmosphere {
  background: radial-gradient(circle at 50% 0%, rgba(15, 108, 189, 0.08) 0%, rgba(255, 153, 51, 0.03) 45%, transparent 70%);
}

.claimiq-grid {
  background-size: 36px 36px;
  background-image:
    linear-gradient(to right, rgba(5, 60, 97, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 60, 97, 0.04) 1px, transparent 1px);
}

/* ==========================================
   Chikitsa Glowing Blobs & Glassmorphism
   ========================================== */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  transition: all 0.5s ease;
}

.bg-blob.cyan {
  background: radial-gradient(circle, rgba(110, 231, 224, 0.45) 0%, rgba(11, 122, 117, 0.15) 70%, transparent 100%);
}

.bg-blob.rose {
  background: radial-gradient(circle, rgba(204, 43, 88, 0.35) 0%, rgba(142, 23, 66, 0.1) 70%, transparent 100%);
}

.bg-blob.mint {
  background: radial-gradient(circle, rgba(43, 217, 128, 0.35) 0%, rgba(26, 96, 51, 0.1) 70%, transparent 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(5, 60, 97, 0.1);
}

.glass-card-dark {
  background: rgba(5, 60, 97, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================
   Animations & Transitions
   ========================================== */
@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatElement {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: floatElement 5s ease-in-out infinite;
}

/* Circular Score Ring */
.score-circle {
  transition: stroke-dashoffset 1s ease-in-out;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Mobile Navigation Drawer */
.mobile-nav-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-nav-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
}

@media (min-width: 768px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ==========================================
   Responsive Utilities & Fine-Tuning
   ========================================== */
@media (max-width: 640px) {
  .hero-headline {
    font-size: 1.75rem !important;
    line-height: 1.22 !important;
    word-break: break-word;
  }

  .dashboard-widget-wrapper {
    padding: 1rem !important;
  }

  .score-gauge-box {
    flex-direction: column !important;
    text-align: center !important;
  }

  .lifecycle-step-card {
    padding: 1.25rem !important;
  }

  .leader-card-grid {
    grid-template-columns: 1fr !important;
  }

  .command-center-canvas {
    min-height: auto !important;
    padding: 0.75rem 0.5rem !important;
  }

  .telemetry-glass-card {
    max-width: 100% !important;
    padding: 0.5rem 0.5rem !important;
  }

  /* Prevent background glow blobs from causing overflow on mobile */
  .bg-blob {
    max-width: 90vw !important;
    max-height: 90vw !important;
    opacity: 0.3 !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-headline {
    font-size: 2.75rem !important;
  }
}

/* ==========================================================================
   Holographic Glass Telemetry Hub Animations & Effects
   ========================================================================== */

@keyframes radar-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.85;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.65);
    opacity: 0;
  }
}

.animate-radar-1 {
  animation: radar-pulse 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.animate-radar-2 {
  animation: radar-pulse 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.6s;
}

@keyframes laser-dash {
  to {
    stroke-dashoffset: -40;
  }
}

.laser-beam {
  stroke-dasharray: 6 12;
  animation: laser-dash 1.4s linear infinite;
}

.cyber-grid {
  background-image: 
    radial-gradient(rgba(110, 231, 224, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(ellipse at 50% 50%, rgba(11, 122, 117, 0.25) 0%, transparent 70%),
    linear-gradient(145deg, #031422 0%, #061e31 50%, #081522 100%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
}

.telemetry-glass-card {
  background: rgba(10, 25, 41, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.telemetry-glass-card:hover {
  border-color: rgba(110, 231, 224, 0.55);
  background: rgba(13, 33, 54, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(11, 122, 117, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.core-pulse-glow {
  box-shadow: 0 0 50px rgba(11, 122, 117, 0.45), 0 0 20px rgba(204, 43, 88, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.progress-glow-bar {
  position: relative;
  overflow: hidden;
}

.progress-glow-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: progress-shimmer 2.4s infinite;
}

/* Cyber Scanline Effect */
@keyframes scanline-sweep {
  0% {
    top: -5%;
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

.cyber-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.85), rgba(52, 211, 153, 0.85), transparent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7), 0 0 4px rgba(52, 211, 153, 0.5);
  pointer-events: none;
  z-index: 5;
  animation: scanline-sweep 4.5s ease-in-out infinite;
}

/* ECG Heartbeat Wave Animation */
@keyframes ecg-dash {
  0% {
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.ecg-pulse-line {
  stroke-dasharray: 60 240;
  animation: ecg-dash 2.2s linear infinite;
}

/* Active Highlight for Laser Paths when Node is Clicked/Hovered */
.laser-active-beam {
  stroke-width: 4 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px #00e5ff) !important;
}

.node-active-highlight {
  border-color: #00e5ff !important;
  background: rgba(13, 33, 54, 0.95) !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================
   Claim IQ Executive Intelligence Cockpit
   ========================================== */
.claimiq-cockpit-shell {
  background: #ffffff;
  border: 1px solid rgba(15, 108, 189, 0.2);
  box-shadow: 0 25px 60px -15px rgba(5, 60, 97, 0.18), 0 12px 30px -8px rgba(15, 108, 189, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.claimiq-cockpit-shell:hover {
  box-shadow: 0 30px 75px -15px rgba(5, 60, 97, 0.24), 0 16px 36px -8px rgba(15, 108, 189, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.claimiq-gauge-circle {
  transition: stroke-dasharray 0.85s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.claimiq-progress-fill {
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.claimiq-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: progress-shimmer 2.4s infinite;
}

.phase-btn-active {
  background: linear-gradient(135deg, #FF9933 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(255, 153, 51, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  border-color: #FF9933 !important;
  transform: translateY(-1px);
}

@keyframes live-beacon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.35;
  }
}

.animate-live-beacon {
  animation: live-beacon-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Chikitsa Category Filter Buttons */
.chikitsa-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chikitsa-filter-btn:not(.active):hover {
  background-color: #f1f5f9 !important;
  color: #053C61 !important;
  border-color: #cbd5e1 !important;
}

/* Active State - overrides hover so text is always crystal clear on mobile tap */
.chikitsa-filter-btn.active,
.chikitsa-filter-btn.active:hover,
.chikitsa-filter-btn.active:focus {
  background-color: #053C61 !important;
  color: #ffffff !important;
  border-color: #053C61 !important;
  box-shadow: 0 4px 14px rgba(5, 60, 97, 0.35) !important;
}

/* Hide scrollbar utility for single line overflow containers */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
