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

/* Custom Premium Global Styles */
html {
  scroll-behavior: smooth;
  background-color: #020205;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: #020205;
  color: #f3f4f6;
  overflow-x: hidden;
}

/* Support Default Cursor on Desktop */
@media (pointer: fine) {
  body, a, button, select, input, [role="button"] {
    cursor: auto !important;
  }
}

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

.font-display {
  font-family: 'Outfit', sans-serif !important;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Premium Glassmorphism */
.glass-card {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  background: rgba(10, 15, 30, 0.65);
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 15px 50px -15px rgba(0, 102, 255, 0.25);
  transform: translateY(-4px) scale(1.01);
}

.glass-nav {
  background: rgba(2, 2, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-badge {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Custom Cursor styling */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: #00d2ff;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Active Hover effects for custom cursor */
.cursor-hovering .custom-cursor {
  width: 14px;
  height: 14px;
  background: #0066ff;
}

.cursor-hovering .custom-cursor-follower {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

/* Custom Scrollbar for Premium Dark Aesthetic */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 2px solid #020205;
}

::-webkit-scrollbar-thumb:hover {
  background: #0066ff;
}

/* Infinite text marquee animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

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

/* Glowing text */
.text-glow-blue {
  text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Animated Particles Background styling */
.space-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Fade in animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.animate-pulse-slow {
  animation: pulseSlow 4s infinite ease-in-out;
}
