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

:root {
  /* Primary Brand Colors */
  --color-primary: #D80A1E;
  --color-primary-light: #e63946;
  --color-primary-dark: #a00818;

  /* Business Blue Accent */
  --color-accent-blue: #4a90e2;
  --color-accent-blue-light: #6ba3e8;
  --color-accent-cyan: #5eb3d6;

  /* Background System - Deep Blue Gray */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #151b2e;
  --color-bg-tertiary: #1a2235;
  --color-bg-card: #1e2840;
  --color-bg-elevated: #242d45;

  /* Text Colors */
  --color-text: #e8f4fd;
  --color-text-secondary: #9ca9bd;
  --color-text-tertiary: #6b7a92;

  /* Border & Dividers */
  --color-border: rgba(74, 144, 226, 0.12);
  --color-border-light: rgba(74, 144, 226, 0.06);
  --color-divider: rgba(156, 169, 189, 0.1);

  /* Dark backgrounds */
  --color-dark-1: #0f1419;
  --color-dark-2: #1a1f2e;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg-primary);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Subtle Blue-tinted Background Gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 144, 226, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(94, 179, 214, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(216, 10, 30, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Global Spotlight Effect - Blue tinted */
.spotlight {
  position: fixed;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  mix-blend-mode: screen;
  filter: blur(80px);
  transition: opacity 0.3s;
}

/* Enhanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes wave {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-25%) translateY(-10px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes aurora {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.1);
  }
}

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

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, #D80A1E 0%, #4a90e2 50%, #5eb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #4a90e2 0%, #5eb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(30, 40, 64, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-border-light);
}

.glass-effect-strong {
  background: rgba(30, 40, 64, 0.85);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--color-border);
}

.glow-red {
  box-shadow: 0 0 20px rgba(216, 10, 30, 0.4),
              0 0 40px rgba(216, 10, 30, 0.2);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4),
              0 0 40px rgba(74, 144, 226, 0.2);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(94, 179, 214, 0.4),
              0 0 40px rgba(94, 179, 214, 0.2);
}

/* Selection */
::selection {
  background: var(--color-accent-blue);
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent-blue) 0%, var(--color-accent-cyan) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent-blue-light) 0%, var(--color-accent-cyan) 100%);
}

/* Performance optimizations */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
}
