/* Import elegant Google Fonts */
@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 {
  --bg-dark: #05070f;
  --bg-card: rgba(13, 20, 38, 0.45);
  --bg-card-hover: rgba(20, 30, 58, 0.6);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(6, 182, 212, 0.25);
  --color-primary: #1d4ed8;       /* Deep Blue */
  --color-primary-light: #3b82f6; /* Bright Blue */
  --color-accent: #06b6d4;        /* Cyan */
  --color-accent-hover: #22d3ee;  /* Bright Cyan */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glow-primary: rgba(37, 99, 235, 0.15);
  --glow-accent: rgba(6, 182, 212, 0.25);
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Background Canvas styling */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom Glassmorphism Card style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px 0 rgba(6, 182, 212, 0.1);
  transform: translateY(-4px);
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #f8fafc 30%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue-cyan {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-title {
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Glowing Effects */
.glow-button-primary {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px 0 var(--glow-primary);
  transition: all 0.3s ease;
}

.glow-button-primary:hover {
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.glow-button-accent {
  position: relative;
  background: linear-gradient(135deg, #0891b2 0%, var(--color-accent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px 0 var(--glow-accent);
  transition: all 0.3s ease;
}

.glow-button-accent:hover {
  box-shadow: 0 8px 25px 0 rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.glow-card-cyan {
  position: relative;
}

.glow-card-cyan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5) 0%, rgba(37, 99, 235, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.glow-card-cyan:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.3;
  }
}

.pulse-glow {
  animation: pulseGlow 6s infinite ease-in-out;
}

/* Grid & Layout Adjustments */
.grid-lines {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

/* Mobile Menu Transition */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}
.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms, transform 300ms;
}
.mobile-menu-exit {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 300ms, transform 300ms;
}
