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

:root {
  --color-brand-primary: #4f46e5;
  --color-brand-primary-hover: #4338ca;
  --color-brand-primary-glow: rgba(79, 70, 229, 0.08);
  --color-bg-light: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-subtle);
  color: var(--color-text-main);
  overflow-x: hidden;
}

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

/* Technical Blueprints & Grids */
.tech-grid {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

.dots-grid {
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

/* Light Mode Glassmorphism & Panel Styling */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Modern Floating Capsule Nav */
.floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 72rem;
  z-index: 50;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.floating-nav:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Custom Indigo Button Styles */
.btn-neon {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.btn-neon:hover {
  background-color: var(--color-brand-primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  color: var(--color-text-main);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Custom Slider styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
  transition: transform 0.1s ease;
}

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

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--color-brand-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
  transition: transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Glow Elements */
.indigo-glow-box {
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.05);
}

.indigo-border-focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.15);
}

/* World Map Pulse Animations */
@keyframes pulseBlue {
  0% {
    transform: scale(0.5);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes pulseIndigo {
  0% {
    transform: scale(0.5);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.pulse-dot-blue {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseBlue 2s infinite ease-out;
}

.pulse-dot-indigo {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseIndigo 2.2s infinite ease-out;
}

/* Animations */
@keyframes softPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.03);
  }
}

.animate-soft-pulse {
  animation: softPulse 3s infinite ease-in-out;
}

/* Tab Transitions */
.tab-content {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tab-content.hidden-fade {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.tab-content.active-fade {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* Accordion Transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

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

::-webkit-scrollbar-track {
  background: var(--color-bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Timeline Custom Styles */
.timeline-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-brand-primary);
  opacity: 0.2;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
