@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 {
  --primary-dark: #0B1120;
  --secondary-dark: #111827;
  --accent-blue: #3B82F6;
  --accent-neon: #00F0FF;
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-main);
}

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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-hover:hover {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(to right, #3B82F6, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Buttons */
.btn-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #00F0FF 100%);
  color: white;
  transition: all 0.3s ease;
  background-size: 200% auto;
}
.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #3B82F6;
  color: #3B82F6;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #3B82F6;
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-neon);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--accent-neon);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero Background Animation */
.bg-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
}

/* Fix AOS overflow issues */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}
