/* Custom styles to support the Graphite-inspired UI/UX */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(18, 19, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid mesh background with white dots and top gradients */
.grid-mesh {
  background-color: #07080a;
  background-image: 
    /* Subtle vertical grid lines */
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    /* Subtle horizontal grid lines */
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    /* White dots at line intersections */
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    /* Top subtle cyan/indigo glow starting at y=0 */
    radial-gradient(circle 900px at 50% 0px, rgba(6, 182, 212, 0.05), rgba(168, 85, 247, 0.04), transparent);
  background-size: 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, center 0;
}

.radial-glow {
  background: transparent;
}

/* Animated neon pipeline lines */
@keyframes flow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animated-dash-cyan {
  stroke-dasharray: 8, 16;
  animation: flow 1s linear infinite;
}

.animated-dash-purple {
  stroke-dasharray: 8, 16;
  animation: flow 1.5s linear infinite;
}

.animated-dash-pink {
  stroke-dasharray: 8, 16;
  animation: flow 2s linear infinite;
}

/* Pulse animation for node dots */
@keyframes node-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    filter: drop-shadow(0 0 6px currentColor);
  }
}

.pulse-dot {
  transform-origin: center;
  animation: node-pulse 2s infinite ease-in-out;
}

/* Glowing text */
.text-glow-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.text-glow-purple {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.text-glow-pink {
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

/* Custom transitions */
.transition-glow {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Smooth Page Transitions */
body {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
body.page-loaded {
  opacity: 1;
}
