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

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

body {
  font-family: var(--font-body) !important;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-title {
  font-family: var(--font-title) !important;
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
}

.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* Mesh Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
}

.dark .bg-dot-pattern {
  background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
}

/* Glow Blobs */
.glow-blob {
  filter: blur(80px);
  opacity: 0.15;
  transition: all 0.5s ease;
}

.dark .glow-blob {
  opacity: 0.25;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 8s ease-in-out infinite;
}

/* Hover shine effect for cards */
.shine-card {
  position: relative;
  overflow: hidden;
}

.shine-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%
  );
  transform: rotate(-45deg);
  transition: none;
  opacity: 0;
  pointer-events: none;
}

.shine-card:hover::after {
  animation: shine 1.2s ease-in-out;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Glassmorphism styling helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Active links glow */
.nav-link-active {
  color: #6366f1 !important;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.dark .nav-link-active {
  color: #818cf8 !important;
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.6);
}
