:root {
  --bg-dark: #03060f;
  --bg-panel: rgba(12, 18, 34, 0.7);
  --neon-blue: #38bdf8;
  --neon-green: #22c55e;
  --text-main: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 80% -10%, rgba(34, 197, 94, 0.15), transparent 30%), radial-gradient(circle at -10% 20%, rgba(56, 189, 248, 0.2), transparent 28%), var(--bg-dark);
  color: var(--text-main);
}

.glass {
  background: var(--bg-panel);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(14px);
}

.neon-glow {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 0 24px rgba(56, 189, 248, 0.2);
}

.gradient-text {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #01030a;
  transition: opacity 0.4s ease;
}

.loader-core {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--neon-blue);
  border-bottom-color: var(--neon-green);
  animation: spin 0.9s linear infinite;
}

.loader-core::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 16px;
  border-radius: 999px;
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-left-color: var(--neon-green);
  animation: spin-reverse 1.4s linear infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.18);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}
