/* styles.css - Custom Premium Styles & Transitions */

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

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #f5faf7; /* Premium light mint-cream background */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5faf7;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1; /* slate-300 */
  border-radius: 9999px;
  border: 2px solid #f5faf7;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* slate-400 */
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(16, 185, 129, 0.25); /* brand-teal focus/hover */
  box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.08), 0 4px 12px -2px rgba(16, 185, 129, 0.02);
  transform: translateY(-2px);
}

/* Dark Glassmorphism for Mockup Dashboard Widgets */
.dark-glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dark-glass-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.dark-glass-card:hover {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.15);
}

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

.preserve-3d {
  transform-style: preserve-3d;
}

.card-3d {
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform: rotateX(0deg) rotateY(0deg) translateZ(0px);
}

.card-3d:hover {
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.12);
}

/* Ambient Radial Glows (Stripe/Vercel style) */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.04) 50%, rgba(255, 255, 255, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.ambient-glow-teal {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Linear-style Card Spotlights */
.glow-card-container {
  position: relative;
}

.glow-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(16, 185, 129, 0.06),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

/* Custom Text Gradients */
.text-gradient-blue-teal {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Marquee Speed Adjustments */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Custom chart animations */
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.chart-point {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  animation: showPoint 0.5s ease-out forwards;
}

@keyframes showPoint {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating animation delays */
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }
.delay-4 { animation-delay: 4s; }

/* Custom Badge Pulse */
.badge-pulse {
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  z-index: -1;
  opacity: 0.6;
  filter: blur(4px);
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; filter: blur(4px); }
  50% { opacity: 0.8; filter: blur(8px); }
}
