:root {
  --bg-dark: #05070a;
  --bg-alt: #080c12;
  --bg-teal: #021822;

  --accent-muted: #787273;
  --accent-gold: #e4cf64;
  --accent-teal: #00a6b8;
  --nav-glass-blue: rgba(0, 61, 80, 0.38);

  --warning-soft: rgba(255, 193, 7, 0.78);
  --warning-bright: #e4a11b;
  --light-muted: #dcf2f0;
}
/* ============================= */
/*            HERO               */
/* ============================= */

.hero {
  height: 100vh;
  position: relative;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  overflow: hidden;

  background-image: url("../img/hero.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 33%;
}

/* dark overlay over bg + matrix, but under content */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.17);
  z-index: 1;
  pointer-events: none;
}

/* HERO content wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* kicker styling */
.hero-kicker {
  letter-spacing: 0.22em;
}

/* logo */
.hero-logo {
  opacity: 0.88;
  filter:
    brightness(0.72)
    saturate(0.9)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  margin-left: -33px !important;
}

/* heading + roles */
.hero-title {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.16em;
  color: #e6e6e6; /* slightly dimmed vs pure white */
}

.hero-roles {
  font-family: 'Space Mono', monospace;
  opacity: 0.9;
}

/* rotating text animation */
.animated-text {
  display: inline-block;
}

.flipInX {
  animation: flipInX 0.9s ease-out both;
}

@keyframes flipInX {
  from {
    transform: perspective(500px) rotateX(80deg);
    opacity: 0;
  }
  50% {
    transform: perspective(500px) rotateX(-5deg);
    opacity: 1;
  }
  to {
    transform: perspective(500px) rotateX(0deg);
  }
}

/* lock line height so the rotator doesn't jump */
.rotator-line {
  display: inline-block;
  line-height: 1.1;
  height: 1.25em;
}

/* ============================= */
/*          GLASS BUTTONS        */
/* ============================= */

.btn-glass {
  position: relative;
  overflow: hidden;

  border-radius: 999px;
  padding-inline: 2.6rem;

  background: rgba(0, 61, 80, 0.32);
  border: 1px solid rgba(0, 195, 255, 0.4);
  color: #ffffff;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.btn-glass:hover,
.btn-glass:focus-visible {
  background: rgba(0, 61, 80, 0.55);
  border-color: rgba(0, 195, 255, 0.85);
  box-shadow: 0 0 24px rgba(0, 195, 255, 0.35);
  transform: translateY(-1px);
  color: var(--warning-soft);
}

/* subtle moving glare on hover */
.btn-glass::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.btn-glass:hover::before,
.btn-glass:focus-visible::before {
  transform: translateX(120%);
  opacity: 1;
}

/* ============================= */
/*      NAVBAR UNDER THE HERO    */
/* ============================= */

.hero-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;

  background: rgba(0, 61, 80, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* Brand */
.hero-navbar .navbar-brand {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.16em;
  color: #ffffff;
}

/* Links */
.hero-navbar .nav-link {
  color: #ffffff;
  font-family: 'Russo One', sans-serif;
  font-weight: 500;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.hero-navbar .nav-link:hover,
.hero-navbar .nav-link:focus-visible {
  color: #787273;
  opacity: 0.9;
}
/* ============================= */
/*           NAVBAR              */
/* ============================= */

/* Make the whole navbar use Russo */
.navbar {
  font-family: "Russo One", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Small logo on the left */
.navbar-logo {
  height: 32px;      /* tweak if too big/small */
  width: auto;
  display: block;
}

/* Right-side nav links */
.navbar-nav .nav-link {
  text-transform: uppercase;
  font-size: 0.85rem;            /* a bit smaller */
  letter-spacing: 0.08em;
  padding-inline: 0.75rem;
  color: var(--text-light, #f8f9fa);
  transition: color 0.2s ease, transform 0.15s ease;
}

/* Hover / focus: warning color + tiny lift */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--bs-warning, #ffc107);
  transform: translateY(-1px);
}

/* Optional: keep active link in warning as well */
.navbar-nav .nav-link.active {
  color: var(--bs-warning, #ffc107);
}
.nav-link.active {
  color: rgba(0, 195, 255, 0.85) !important;
  text-shadow: 0 0 6px rgba(255, 180, 0, 0.4);
}

/* ============================= */
/*        MATRIX OVERLAY         */
/* ============================= */

.matrix-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* under hero::before, under content */
}

/* ---- Horizontal shooting lines ---- */

.matrix-line {
  position: absolute;
  height: 2px;
  width: 40%;
  background: linear-gradient(
    to right,
    rgba(255, 220, 120, 0),
    rgba(255, 220, 120, 0.9),
    rgba(255, 220, 120, 0)
  );
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.7));
}

/* Staggered timings & positions */
.matrix-line.line-1 {
  top: 25%;
  left: -45%;
  animation: shootLine 9s infinite ease-in-out;
}

.matrix-line.line-2 {
  top: 55%;
  left: 105%;
  animation: shootLineReverse 11s infinite ease-in-out;
}

.matrix-line.line-3 {
  top: 70%;
  left: -60%;
  animation: shootLine 13s infinite ease-in-out;
}

/* Left-to-right streak with idle gap at end */
@keyframes shootLine {
  0%, 74%   { transform: translateX(0); opacity: 0; }
  76%       { opacity: 1; }
  82%       { transform: translateX(220%); opacity: 0.3; }
  90%,100%  { opacity: 0; }
}

/* Right-to-left streak */
@keyframes shootLineReverse {
  0%, 72%   { transform: translateX(0); opacity: 0; }
  74%       { opacity: 1; }
  81%       { transform: translateX(-220%); opacity: 0.3; }
  90%,100%  { opacity: 0; }
}

/* ---- Vertical shooting lines ---- */

.matrix-line-vert {
  position: absolute;
  width: 2px;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 220, 120, 0),
    rgba(255, 220, 120, 0.9),
    rgba(255, 220, 120, 0)
  );
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.7));
}

.matrix-line-vert.vline-1 {
  left: 30%;
  top: -60%;
  animation: shootLineDown 10s infinite ease-in-out;
}

.matrix-line-vert.vline-2 {
  right: 26%;
  top: 115%;
  animation: shootLineUp 14s infinite ease-in-out;
}

@keyframes shootLineDown {
  0%, 76%   { transform: translateY(0); opacity: 0; }
  78%       { opacity: 1; }
  85%       { transform: translateY(220%); opacity: 0.3; }
  93%,100%  { opacity: 0; }
}

@keyframes shootLineUp {
  0%, 78%   { transform: translateY(0); opacity: 0; }
  80%       { opacity: 1; }
  87%       { transform: translateY(-220%); opacity: 0.3; }
  95%,100%  { opacity: 0; }
}

/* ============================= */
/*       FLICKERING NODES        */
/* ============================= */

.matrix-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
  opacity: 0;
}

/* Positions + individual rhythms */
.matrix-node.node-1 {
  top: 18%;
  left: 28%;
  animation: nodeBlink1 7s infinite ease-in-out;
}

.matrix-node.node-2 {
  top: 35%;
  right: 22%;
  animation: nodeBlink2 8.5s infinite ease-in-out;
}

.matrix-node.node-3 {
  bottom: 24%;
  left: 42%;
  animation: nodeBlink3 6.5s infinite ease-in-out;
}

.matrix-node.node-4 {
  bottom: 18%;
  right: 30%;
  animation: nodeBlink4 9.5s infinite ease-in-out;
}

.matrix-node.node-5 {
  top: 50%;
  left: 15%;
  animation: nodeBlink5 10s infinite ease-in-out;
}

/* Each node visible a bit longer, then fades out */
@keyframes nodeBlink1 {
  0%, 55%, 100% { opacity: 0; transform: scale(0.5); }
  60%           { opacity: 1; transform: scale(1); }
  72%           { opacity: 0.4; transform: scale(0.9); }
}

@keyframes nodeBlink2 {
  0%, 50%, 100% { opacity: 0; transform: scale(0.5); }
  56%           { opacity: 1; transform: scale(1.05); }
  70%           { opacity: 0.4; transform: scale(0.9); }
}

@keyframes nodeBlink3 {
  0%, 48%, 100% { opacity: 0; transform: scale(0.5); }
  53%           { opacity: 1; transform: scale(1); }
  66%           { opacity: 0.4; transform: scale(0.9); }
}

@keyframes nodeBlink4 {
  0%, 60%, 100% { opacity: 0; transform: scale(0.5); }
  65%           { opacity: 1; transform: scale(1.05); }
  78%           { opacity: 0.4; transform: scale(0.9); }
}

@keyframes nodeBlink5 {
  0%, 58%, 100% { opacity: 0; transform: scale(0.5); }
  63%           { opacity: 1; transform: scale(1); }
  76%           { opacity: 0.4; transform: scale(0.9); }
}

/* ============================= */
/*         PARALLAX BANNER       */
/* ============================= */

.section-parallax {
  position: relative;
  overflow: hidden;

  /* same image as hero */
  background-image: url("../img/hero.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 40%;

  /* simple parallax (desktop); mobile fallback is normal bg */
  background-attachment: fixed;

  /* a bit taller than a normal slice */
  padding-block: 5rem 6rem;
}

/* subtle dark overlay behind inner banner */
.section-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
              rgba(0, 0, 0, 0.25) 0,
              rgba(0, 0, 0, 0.55) 70%);
  z-index: 0;
}

/* reuse matrix overlay, but a bit dimmer than hero */
.matrix-overlay--parallax {
  z-index: 1;
  opacity: 0.55;
}

/* soft glow for text */
.section-parallax h2,
.section-parallax p,
.section-parallax .mono {
  text-shadow:
    0 0 6px rgba(0, 255, 255, 0.18),
    0 0 2px rgba(0, 255, 255, 0.12);
}

.parallax-logo {
  max-width: 150px; /* smaller monogram */
  opacity: 0.95;
  filter:
    brightness(0.9)
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65));
}

.section-parallax .parallax-heading-group h2 {
  color: #f3f3f3 !important;
}
