:root {
  /* Core palette */
  --rb-bg: #05040a;
  --rb-bg-alt: #0b0614;
  --rb-surface: #14121f;
  --rb-surface-alt: #1d1828;

  --rb-primary: #6f3ff2;        /* neon purple */
  --rb-primary-soft: rgba(111, 63, 242, 0.18);
  --rb-primary-strong: #aa7bff;

  --rb-brown: #8a5a30;          /* warm accent */
  --rb-brown-deep: #3a2414;

  --rb-neon-green: #62ff9c;     /* tron wires */
  --rb-teal: #22f0ff;

  --rb-text: #f5f2ff;
  --rb-text-muted: #bf9b9b;

  --rb-border-subtle: rgba(255, 255, 255, 0.06);
  --rb-border-strong: rgba(111, 63, 242, 0.8);

  --rb-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
  --rb-glow-purple: 0 0 18px rgba(111, 63, 242, 0.75);
  --rb-glow-neon: 0 0 22px rgba(98, 255, 156, 0.75);

  /* Hook into Bootstrap 5 */
  --bs-body-bg: var(--rb-bg);
  --bs-body-color: var(--rb-text);
  --bs-primary: var(--rb-primary);
  --bs-secondary: var(--rb-brown);
  --bs-link-color: var(--rb-neon-green);
  --bs-link-hover-color: var(--rb-primary-strong);
}

/* Global body styling */
body {
  background-color: var(--rb-bg);
  color: var(--rb-text);
  font-smooth: antialiased;
  -webkit-font-smoothing: antialiased;
}

/* Tron-style animated background grid */
body.tron-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 20%, rgba(111, 63, 242, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(98, 255, 156, 0.18), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(34, 240, 255, 0.2), transparent 60%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.96),
      rgba(0, 0, 0, 0.98)
    );
  pointer-events: none;
}

/* Grid overlay */
body.tron-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 240, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 240, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

/* Navbar tweaks */
.navbar {
  background: linear-gradient(
    90deg,
    rgba(5, 4, 10, 0.95),
    rgba(20, 18, 31, 0.98)
  );
  border-bottom: 1px solid var(--rb-border-subtle);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar-brand img {
  filter: drop-shadow(var(--rb-glow-purple));
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rb-text-muted) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--rb-neon-green) !important;
}

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

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

/* Panels / cards */
.neo-panel,
.card.neo {
  background: radial-gradient(circle at top left, rgba(111, 63, 242, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(98, 255, 156, 0.09), transparent 60%),
              var(--rb-surface);
  border-radius: 18px;
  border: 1px solid var(--rb-border-subtle);
  box-shadow: var(--rb-shadow-soft);
}

.neo-panel--highlight {
  border-color: var(--rb-border-strong);
  box-shadow: var(--rb-shadow-soft), var(--rb-glow-purple);
}

/* Buttons */
.btn-neo-primary {
  --bs-btn-bg: var(--rb-primary);
  --bs-btn-border-color: var(--rb-primary);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--rb-primary-strong);
  --bs-btn-hover-border-color: var(--rb-primary-strong);
  --bs-btn-focus-shadow-rgb: 111, 63, 242;
  box-shadow: var(--rb-glow-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.btn-neo-outline {
  border-radius: 999px;
  border-width: 1px;
  border-color: var(--rb-neon-green);
  color: var(--rb-neon-green);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.btn-neo-outline:hover {
  background: rgba(98, 255, 156, 0.1);
  box-shadow: var(--rb-glow-neon);
  color: var(--rb-text);
}

/* Section headings */
.section-title {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--rb-text-muted);
}

.section-title-accent {
  color: var(--rb-neon-green);
}

/* Tags / chips (e.g. tech stack items) */
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(20, 18, 31, 0.9);
  border: 1px solid rgba(197, 149, 255, 0.3);
  color: var(--rb-text-muted);
}

.tech-chip--primary {
  border-color: rgba(111, 63, 242, 0.7);
  color: var(--rb-primary-strong);
}

/* Subtle scanline effect for hero/sections if desired */
.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  mix-blend-mode: soft-light;
  opacity: 0.15;
  pointer-events: none;
}

/* Brown accent usage for “grounding” areas, e.g. work history */
.section-brown {
  background: radial-gradient(circle at top, rgba(138, 90, 48, 0.24), transparent 65%),
              #150f0a;
  border-radius: 18px;
  border: 1px solid rgba(138, 90, 48, 0.5);
}
