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

/* Webkit scrollbar for premium feel */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0b14; 
}
::-webkit-scrollbar-thumb {
  background: #334155; 
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569; 
}

/* Base resets handled by Tailwind CDN, but custom logic below */
body {
  background-color: #0a0b14;
  color: #f8fafc;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-headline {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* Selection Color */
::selection {
  background-color: rgba(99, 102, 241, 0.3);
  color: white;
}

/* Custom Gradients and Styles */
.gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #ffffff, #c7d2fe, #e9d5ff);
}

.glass-panel {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.animate-mesh {
  background-color: #0a0b14;
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
  background-size: 200% 200%;
  animation: meshShift 25s ease infinite alternate;
}

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

/* Intersection Observer Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Custom Animations for Dashboard Preview */
.chart-line-animate {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-glow {
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 5px #818cf8);
  }
  to {
    filter: drop-shadow(0 0 15px #818cf8);
  }
}

.stroke-dasharray-animate {
  stroke-dashoffset: 100;
  animation: fillCircle 1.5s ease-out forwards;
  animation-delay: 0.8s;
}

.stroke-dasharray-animate-alt {
  stroke-dashoffset: 100;
  animation: fillCircle 1.5s ease-out forwards;
  animation-delay: 1.0s;
}

@keyframes fillCircle {
  to {
    stroke-dashoffset: 0;
  }
}
