/* Base Settings */
:root {
  font-size: 16px;
}

body { 
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  background-color: #f8fafc;
}

/* Modern Gradient Background */
.gradient-bg {
  background: radial-gradient(circle at top right, #e0f2fe 0%, #f0f9ff 30%, #ffffff 60%, #f1f5f9 100%);
  background-attachment: fixed;
}

.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 50%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism 2.0 */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Modern Text Highlights */
.marker-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 60%; /* Start from lower part */
  bottom: 2px;
  left: -4px;
  right: -4px;
  background-color: #fde047; /* yellow-300 */
  transform: skewX(-12deg) rotate(-1deg);
  opacity: 0.5;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.group:hover .marker-highlight::before {
    top: 10%; /* Expands on hover if inside a group */
    opacity: 0.7;
}

.strike-highlight {
  position: relative;
  display: inline-block;
  color: #94a3b8; /* Slate-400 for the text itself to look faded */
}

.strike-highlight::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  right: -5px;
  height: 2px;
  background-color: #ef4444; /* red-500 */
  transform: rotate(-2deg);
  opacity: 0.8;
  border-radius: 99px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.4);
}


/* Mobile Menu */
#mobile-menu {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0.95);
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  transform: scaleY(1);
}

/* Gauge Animations */
.gauge-fill {
  stroke-dasharray: 452;
  stroke-dashoffset: 452;
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-fill.animate {
  stroke-dashoffset: 126;
}

/* Modern Gauge Override */
.gauge-fill.gauge-small {
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
}
.gauge-fill.gauge-small.animate {
  stroke-dashoffset: 74;
}

/* Pulse Slow */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  animation: spin 1s linear infinite;
}

/* Connecting Line - Data Beam Effect */
.step-line {
  height: 4px;
  /* Background track */
  background-color: #e2e8f0; 
  /* Beam gradient overlay */
  background-image: linear-gradient(
    90deg, 
    transparent 0%, 
    #38bdf8 20%, 
    #818cf8 50%, 
    #38bdf8 80%, 
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  width: 0;
  border-radius: 9999px;
  position: relative;
  /* Changed to linear for precise sync with steps */
  transition: width 2.5s linear;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.step-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px #818cf8;
  opacity: 0;
  transition: opacity 0.3s;
}

.step-line.animate {
  width: 75%;
}

.step-line.animate::after {
  opacity: 1;
}

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

/* Step Activation Animation */
.step-glow .w-24 {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1), 0 10px 25px -5px rgba(56, 189, 248, 0.15);
  border-color: #38bdf8; /* Sky-400 default */
  transform: translateY(-4px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Colors for Steps when Active - Theme Aligned (Blue/Teal/Cyan) */
.step-glow[data-step="1"] .w-24 { border-color: #3b82f6; } /* Blue-500 */
.step-glow[data-step="2"] .w-24 { border-color: #06b6d4; } /* Cyan-500 */
.step-glow[data-step="3"] .w-24 { border-color: #14b8a6; } /* Teal-500 */
.step-glow[data-step="4"] .w-24 { border-color: #6366f1; } /* Indigo-500 */

.step-glow[data-step="1"] .step-icon { color: #3b82f6; }
.step-glow[data-step="2"] .step-icon { color: #06b6d4; }
.step-glow[data-step="3"] .step-icon { color: #14b8a6; }
.step-glow[data-step="4"] .step-icon { color: #6366f1; }

/* Number Badge Activation */
.step-glow .step-badge {
  background-color: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.1);
}
.step-glow[data-step="2"] .step-badge { background-color: #06b6d4; border-color: #06b6d4; }
.step-glow[data-step="3"] .step-badge { background-color: #14b8a6; border-color: #14b8a6; }
.step-glow[data-step="4"] .step-badge { background-color: #6366f1; border-color: #6366f1; }



/* 3D Perspective */
.perspective-1000 {
  perspective: 1000px;
}

/* Shimmer Effect for Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn-shimmer:hover::after {
  animation: shimmer 1s;
}
@keyframes shimmer {
  100% { left: 100%; }
}

/* Floating Animation Removed */

/* Accordion */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.accordion-item.active .accordion-content {
  max-height: 20rem; /* approx 320px */
  opacity: 1;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Simple Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Eso-inspired Footer Background */
.eso-footer-bg {
  background-color: #0f172a; /* slate-900 base */
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  position: relative;
}
.eso-footer-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
}

/* Footer Link Underline Animation */
.footer-link-anim {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-link-anim::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #3b82f6; /* blue-500 */
  transition: width 0.3s ease-in-out;
}

.footer-link-anim:hover::after {
  width: 100%;
}

/* Custom Range Slider */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #10b981; /* emerald-500 matching the fill */
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  transition: all 0.2s;
  margin-top: -8px; /* Correct positioning */
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #10b981;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  transition: all 0.2s;
  box-sizing: border-box;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

/* Slider Track (Optional for consistency if Tailwind doesn't handle it well in all browsers) */
.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent; /* We use a separate div for the fill/track background usually */
    border-radius: 9999px;
}
