/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Cutive+Mono&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --term-bg: #111;
  --term-fg: #fff;
  --term-dim: rgba(255, 255, 255, 0.45);
  --term-accent: #00ff00;
  --term-border: rgba(255, 255, 255, 0.15);
  --term-glow: rgba(255, 255, 255, 0.08);
  --header-height: 4.25rem;
}

body {
  background-color: var(--term-bg);
  color: var(--term-fg);
  font-family: "Noto Sans", sans-serif;
  overflow-x: hidden;
  padding-bottom: 2.5rem;
}

#main-site {
  position: relative;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* * {
  outline: 1px solid red;
} */
::selection {
  background: #fff;
  color: #111;
}

#loader h1 {
  font-family: "Cutive Mono", monospace;
}

.d-flex-non {
  display: flex;
}
.square-bracket {
  background: linear-gradient(to right, #fff 1px, transparent 1px) 0 0,
    linear-gradient(to right, #fff 1px, transparent 1px) 0 100%,
    linear-gradient(to left, #fff 1px, transparent 1px) 100% 0,
    linear-gradient(to left, #fff 1px, transparent 1px) 100% 100%,
    linear-gradient(to bottom, #fff 1px, transparent 1px) 0 0,
    linear-gradient(to bottom, #fff 1px, transparent 1px) 100% 0,
    linear-gradient(to top, #fff 1px, transparent 1px) 0 100%,
    linear-gradient(to top, #fff 1px, transparent 1px) 100% 100%;

  background-repeat: no-repeat;
  background-size: 20px 20px;
}
.min-vh-70 {
  min-height: 70vh;
}

.pfont {
  font-family: "Cutive Mono", monospace;
}
.logo {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 5px;
}
button.btn.btn-mono {
  background: #fff;
  color: #111;
  font-family: "Cutive Mono";
  font-weight: 700;
  border-radius: 0px;
  padding: 10px 30px;
  border: 1px solid #fff;
}

.btn-mono:hover,
.btn-mono:focus-visible {
  background: transparent !important;
  color: #fff !important;
  border-color: #fff;
}
.line {
  position: absolute;
  width: 1px;
  bottom: -3rem;
  left: -20px;
  height: 30px;
  background-color: #fff;
}
.line-top {
  position: absolute;
  width: 1px;
  top: -3rem;
  left: -20px;
  height: 30px;
  background-color: #fff;
}
.mw-100 {
  max-width: 100px !important;
}
.tech-logo {
  filter: brightness(0) invert(1);
}
.case-logo {
  filter: brightness(0) invert(1);
  max-height: 30px;
}
.minw-100 {
  width: 100px;
}
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #fff;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.team-img {
  /* Safari 6.0 - 9.0 */
  /* -webkit-filter: grayscale(100%); 
   filter: grayscale(100%);  */
  max-height: 250px;
}
#logo-reveal,
.hero-intro {
  margin-bottom: 1.5rem;
}

#logo-reveal > .logo {
  white-space: normal;
}
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  will-change: transform;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 10000;

  --b: 1px;
  --c: #fff;
  --w: 4px;
  border: var(--b) solid #0000;
  --_g: #0000 90deg, var(--c) 0;
  --_p: var(--w) var(--w) border-box no-repeat;
  background: conic-gradient(
        from 90deg at top var(--b) left var(--b),
        var(--_g)
      )
      0 0 / var(--_p),
    conic-gradient(from 180deg at top var(--b) right var(--b), var(--_g)) 100% 0 /
      var(--_p),
    conic-gradient(from 0deg at bottom var(--b) left var(--b), var(--_g)) 0 100% /
      var(--_p),
    conic-gradient(from -90deg at bottom var(--b) right var(--b), var(--_g))
      100% 100% / var(--_p);
}
.cursor {
  /* Existing styles */
  transition: all 0.07s ease; /* Add a transition for smooth changes */
}
.btn-hunt, .btn-hunt-modal {
  font-family: "Cutive Mono", monospace;
  color: #fff;
}

#duck {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 80px;
  opacity: 0;
  cursor: none;
  z-index: 3;
  will-change: top, left, transform;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hunt-explosion {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  max-width: 120px;
}
.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}
@media (max-width: 768px) {
  #logo-reveal > .logo {
    font-size: 1.65rem;
    letter-spacing: 3px;
  }
}
@media (max-width: 768px) {
  /* Adjust this breakpoint as needed */
  .cursor {
    opacity: 0; /* Initially hidden on mobile */
    transition: opacity 0.5s ease; /* Add a fade-out transition */
  }

  .cursor.active {
    opacity: 1; /* Visible when 'active' class is present */
  }
}

header,
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  min-height: var(--header-height);
}

.logo {
  font-size: 2rem;
}

nav {
  clip-path: none;
}
.nav-links {
  list-style-type: none;
}

.nav-links li {
  display: inline;
  padding: 0 0.25rem;
}

.nav-links a {
  padding: 0 0.25rem;
}

.mobile-menu-btn {
  display: none;
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.logo-nav {
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 900;
  z-index: 2;
}
.nav-links a {
  color: #fff;
  font-family: "Cutive Mono", monospace;
}
#explosion-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#stats-container {
  z-index: 1000;
  background-color: #000;
  height: 80px;
  width: 100%;
}

#death-background {
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  inset: 0;
  z-index: 4;
}
.mw-30p {
  width: 20% !important;
}
#death-background * {
  color: #ff0000;
  font-family: "Cutive Mono", monospace;
  letter-spacing: 5px;
  font-size: 10vw;
  font-weight: 400;
}
.stats {
  font-family: "Cutive Mono", monospace;
}
#remaining-shots-counter {
  font-family: "Cutive Mono", monospace;
  font-size: 2rem;
  font-weight: 900;
}
body.hunt-active {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.hunt-active .cursor {
  opacity: 0 !important;
}

.modal {
  z-index: 10050 !important;
}

body.modal-open .modal-backdrop {
  z-index: 10040 !important;
}

body.modal-open #status-bar {
  display: none;
}

.hunt-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  background: var(--term-bg);
  font-family: "Cutive Mono", monospace;
}

.hunt-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--term-border);
  background: rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.hunt-header-meta {
  margin-left: auto;
  font-size: 0.75rem;
}

.hunt-close {
  color: var(--term-fg) !important;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0;
  border: none;
}

.hunt-close:hover {
  color: var(--term-accent) !important;
}

.hunt-arena {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: none;
  background: #0a0a0a;
  transition: filter 0.05s ease;
}

.hunt-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hunt-wall-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(0, 255, 65, 0.18) 0%, transparent 52%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 255, 65, 0.03) 3px,
      rgba(0, 255, 65, 0.03) 4px
    ),
    linear-gradient(180deg, #0c140a 0%, #020604 100%);
}

.hunt-wall-secret {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.hunt-wall-secret-mark {
  font-size: clamp(3.5rem, 16vw, 10rem);
  color: rgba(0, 255, 65, 0.14);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
}

.hunt-wall-secret-line {
  margin: 0.35rem 0;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  color: rgba(0, 255, 65, 0.55);
  letter-spacing: 0.06em;
}

.hunt-wall-secret-duck {
  position: absolute;
  bottom: 12%;
  right: 10%;
  width: clamp(72px, 14vw, 140px);
  opacity: 0.4;
  filter: sepia(1) hue-rotate(65deg) brightness(0.75) drop-shadow(0 0 20px rgba(0, 255, 65, 0.35));
  animation: secret-duck-bob 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes secret-duck-bob {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-10px) rotate(4deg); }
}

.hunt-wall-face {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--term-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(0, 255, 0, 0.03) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.025) 3px,
      rgba(255, 255, 255, 0.025) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.06) 47px,
      rgba(255, 255, 255, 0.06) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.04) 47px,
      rgba(255, 255, 255, 0.04) 48px
    ),
    linear-gradient(180deg, #141414 0%, var(--term-bg) 45%, #0a0a0a 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.hunt-wall-face::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hunt-wall-rim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.18));
}

.hunt-wall-holes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hunt-wall-debris {
  position: absolute;
  width: 6px;
  height: 5px;
  margin: -2.5px 0 0 -3px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 255, 0, 0.15);
}

.hunt-arena.hunt-flash {
  filter: brightness(1.25);
}

#hunt-crosshair {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

#hunt-crosshair::before,
#hunt-crosshair::after {
  content: "";
  position: absolute;
  background: var(--term-accent);
  box-shadow: 0 0 6px var(--term-accent);
}

#hunt-crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#hunt-crosshair::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

#hunt-shotgun-rig {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  z-index: 5;
  pointer-events: none;
  transform-origin: 92% 100%;
  will-change: transform;
  width: min(34vw, 280px);
  height: min(32vh, 190px);
  padding-right: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  line-height: 0;
}

#hunt-shotgun-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: 100% 100%;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

#shot-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.hunt-shell {
  position: absolute;
  bottom: 72px;
  right: 28%;
  width: 10px;
  height: 18px;
  background: linear-gradient(180deg, #d4af37 0%, #8b6914 100%);
  border-radius: 1px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.35);
}

.hunt-puff {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hunt-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hunt-banner.active {
  opacity: 1;
}

.hunt-banner-inner {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--term-border);
}

.hunt-banner-text {
  font-size: clamp(2rem, 9vw, 4.5rem);
  letter-spacing: 0.15em;
  margin: 0;
  color: var(--term-fg);
}

.hunt-banner-sub {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.hunt-banner-clear .hunt-banner-text {
  color: var(--term-accent);
  text-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.hunt-banner-intro .hunt-banner-text {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#hunt-victory {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}

.hunt-victory-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hunt-victory-duck {
  position: absolute;
  width: 32px;
  top: -48px;
  opacity: 0.85;
  animation: victory-duck-fall 2.8s linear forwards;
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.15);
  pointer-events: none;
}

@keyframes victory-duck-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(420deg);
    opacity: 0;
  }
}

.hunt-victory-panel {
  position: relative;
  z-index: 2;
  width: min(520px, 94vw);
  text-align: left;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.hunt-victory-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--term-border);
  font-size: 0.7rem;
}

.hunt-victory-body {
  padding: 1.25rem 1rem 1rem;
}

.hunt-victory-title {
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  color: var(--term-accent);
  letter-spacing: 0.18em;
  text-shadow: 0 0 32px rgba(0, 255, 0, 0.45);
  margin: 0 0 1rem;
  text-align: center;
}

.hunt-victory-log {
  min-height: 6.5em;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hunt-victory-log .victory-line {
  margin: 0 0 0.35rem;
  min-height: 1.4em;
}

.hunt-victory-log .victory-line.dim {
  color: var(--term-dim);
}

.hunt-victory-log .victory-line.accent {
  color: var(--term-accent);
}

.hunt-victory-footer {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  text-align: center;
  border-top: 1px solid var(--term-border);
  padding-top: 0.75rem;
}

.hunt-victory-hero-duck {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  filter: sepia(1) saturate(5) hue-rotate(5deg) drop-shadow(0 0 18px rgba(255, 215, 0, 0.45));
  animation: victory-duck-bob 1.1s ease-in-out infinite alternate;
}

@keyframes victory-duck-bob {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-8px) rotate(6deg); }
}

.legend-parade-duck {
  position: fixed;
  bottom: 2.6rem;
  left: 0;
  z-index: 9997;
  pointer-events: none;
  width: 48px;
  filter: sepia(1) saturate(5) hue-rotate(5deg) drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

.legend-parade-duck img {
  width: 100%;
  display: block;
  animation: legend-duck-waddle 0.35s ease-in-out infinite alternate;
}

@keyframes legend-duck-waddle {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

body.legend-unlocked .btn-hunt .legend-spark,
body.legend-unlocked .btn-hunt-modal .legend-spark {
  color: var(--term-accent);
  margin-right: 0.15rem;
}

.hunt-fail-sub {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.hunt-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.hunt-stat-block span:last-child,
.hunt-ammo span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
}

#remaining-shots-counter {
  font-family: "Cutive Mono", monospace;
  font-size: 1.4rem;
  font-weight: 900;
  min-width: 1.5ch;
  text-align: center;
}

.hunt-stats {
  flex-shrink: 0;
  border-top: 1px solid var(--term-border);
  max-width: 100%;
}
@media (max-width: 767.98px) {
  .hero-buttons button {
    padding: 10px 20px !important;
  }
  .mw-30p {
    width: 50% !important;
  }
  #duck {
    max-width: 60px;
  }

  #hunt-shotgun-rig {
    width: min(42vw, 220px);
    height: min(26vh, 150px);
    padding-right: 8px;
  }

  #hunt-crosshair {
    width: 22px;
    height: 22px;
  }
  .hunt-stats {
    height: 70px;
  }
  .py-sm-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .my-sm-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  nav {
    position: static;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 3rem;
    align-items: flex-start !important;
  }

  #hero .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  #logo-reveal,
  .hero-intro {
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    gap: 1.25rem;
  }

  .hero-aside {
    padding: 1.25rem 0 0;
    border-left: none;
    border-top: 1px solid var(--term-border);
    margin-top: 0.5rem;
  }

  #hero .hero-buttons {
    margin-bottom: 0;
  }

  .hero-lead {
    margin-top: 1rem;
  }

  .hero-buttons {
    margin-top: 0 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .contact-terminal {
    margin-top: 0.5rem;
  }

  .hero-buttons .btn-mono {
    width: 100%;
    text-align: center;
  }

  .hero-buttons .btn-hunt {
    text-align: center;
    padding: 0.5rem 0;
  }

  .logo-nav {
    font-size: 1.35rem;
    letter-spacing: 2px;
  }

  .logo-nav .term-prompt {
    display: none;
  }

  .site-header {
    padding: 0.85rem 1rem;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.55rem;
    border: 1px solid var(--term-border);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
  }

  body.mobile-nav-open .mobile-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-menu-bar:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .mobile-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-nav-open .mobile-nav {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--term-bg);
    border-left: 1px solid var(--term-border);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.mobile-nav-open .mobile-nav-panel {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--term-border);
    font-size: 0.75rem;
    min-height: var(--header-height);
  }

  .mobile-nav-close {
    margin-left: auto;
    border: 1px solid var(--term-border);
    background: transparent;
    color: var(--term-fg);
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
  }

  .mobile-nav-close:hover {
    border-color: var(--term-accent);
    color: var(--term-accent);
  }

  .mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 1.25rem 2rem;
  }

  .mobile-nav-prompt {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .mobile-nav-prompt--spaced {
    margin-top: 2rem;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav-links li + li {
    margin-top: 0.35rem;
  }

  .mobile-nav-links a {
    display: block;
    padding: 0.85rem 0.75rem;
    color: var(--term-fg);
    text-decoration: none;
    font-size: 1.05rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }

  .mobile-nav-links a::before {
    content: none !important;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.nav-active {
    color: var(--term-accent);
    border-color: var(--term-border);
    background: rgba(255, 255, 255, 0.03);
  }

  .mobile-nav-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--term-border);
    font-size: 0.7rem;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .reveal-section {
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
  }
}
#myModal >.modal-content{
  background-color: #111 !important;
}

.grecaptcha-badge { 
  visibility: hidden;
  opacity: 0;
  outline: 0;
  border: 0;
  box-shadow: 0;
  
}
#loader {
  width: 100%;
  height: 100vh;
  background-color: var(--term-bg);
  font-family: "Cutive Mono", monospace;
  font-size: 4vw;
  z-index: 20000;
  position: fixed;
  inset: 0;
}

.boot-terminal {
  width: min(640px, 92vw);
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.boot-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--term-border);
  font-size: 0.75rem;
}

.boot-body {
  padding: 1rem;
  height: 220px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}

.boot-line {
  opacity: 0;
  animation: boot-fade-in 0.25s ease forwards;
}

@keyframes boot-fade-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.boot-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--term-border);
  font-size: 0.85rem;
}

.term-prompt { color: var(--term-accent); }
.term-accent { color: var(--term-accent); }
.term-dim { color: var(--term-dim); }

.term-cursor.blink {
  animation: cursor-blink 1s step-end infinite;
  margin-left: 4px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(255, 255, 255, 0.035) 0%, transparent 55%),
    radial-gradient(ellipse 35% 25% at 92% 98%, rgba(0, 255, 0, 0.02) 0%, transparent 70%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 50%, #080808 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.section-cmd {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.section-title {
  position: relative;
}

.terminal-panel {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.terminal-panel-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--term-border);
  display: flex;
  align-items: center;
  font-size: 0.7rem;
}

.term-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--term-fg);
  display: inline-block;
  margin-right: 4px;
}

.term-dot-dim {
  opacity: 0.35;
}

.terminal-panel-body {
  padding: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.7;
}

.term-line { min-height: 1.4em; }

.term-output {
  color: var(--term-dim);
  padding-left: 1rem;
  border-left: 1px solid var(--term-border);
  margin-top: 0.25rem;
}

#contact-typed-output,
.contact-terminal .term-output {
  color: rgba(255, 255, 255, 0.9);
  min-height: 3.5em;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-intro {
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 1rem 0 0;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-aside {
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 1px solid var(--term-border);
}

.hero-aside-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-aside-text {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.1rem;
}

.hero-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-aside-list li {
  padding-left: 0.85rem;
  position: relative;
}

.hero-aside-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--term-accent);
}

.hero-certs {
  margin-top: 0;
}

.contact-terminal {
  height: 100%;
}

.contact-terminal-email {
  color: var(--term-accent);
  text-decoration: none;
}

.contact-terminal-email:hover {
  text-decoration: underline;
}

.hero-certs-label {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.hero-certs-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-cert-btn {
  padding: 0;
  border: 1px solid var(--term-border);
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cert-btn:hover,
.hero-cert-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-cert-btn:focus-visible {
  outline: 2px solid var(--term-accent);
  outline-offset: 2px;
}

.hero-certs-list img {
  height: 72px;
  width: auto;
  display: block;
}

.cert-modal-dialog {
  max-width: 520px;
}

.cert-modal-content {
  background: var(--term-bg);
  color: var(--term-fg);
  font-family: "Cutive Mono", monospace;
}

.cert-modal-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--term-border);
  font-size: 0.7rem;
}

.cert-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.65;
}

.cert-modal-badge {
  height: 96px;
  width: auto;
  border: 1px solid var(--term-border);
}

.cert-modal-title {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.cert-modal-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.cert-modal-list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

.cert-modal-list li {
  margin-bottom: 0.35rem;
}

.cert-modal-list li::marker {
  color: var(--term-accent);
}

.cert-modal-issuer {
  font-size: 0.75rem;
  border-top: 1px solid var(--term-border);
  padding-top: 0.75rem;
}

@media (max-width: 767.98px) {
  .hero-certs {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .hero-certs-list img {
    height: 56px;
  }

  .cert-modal-body {
    padding: 1rem 1.15rem 1.25rem;
  }

  .cert-modal-badge {
    height: 72px;
  }
}

.hero-buttons {
  position: relative;
  z-index: 2;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 1;
}

.hero-buttons .btn-mono {
  color: #111;
}

.hero-buttons .btn-mono:hover,
.hero-buttons .btn-mono:focus-visible {
  color: #fff !important;
}

.hero-buttons .btn-hunt {
  color: #fff !important;
  text-decoration: none;
  opacity: 1;
}

.hero-buttons .btn-hunt:hover {
  color: var(--term-accent) !important;
}

.terminal-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--term-border);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.terminal-card:hover::before {
  opacity: 1;
}

.terminal-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: scan-line 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% { left: -60%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.service-card h3,
.case-study-card h3,
.contact-card h3 {
  font-family: "Cutive Mono", monospace;
  font-size: 1rem;
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--term-accent);
}

.glitch-text {
  position: relative;
}

.glitch-text.glitch-active::before,
.glitch-text.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch-text.glitch-active::before {
  color: var(--term-accent);
  animation: glitch-1 0.3s linear;
  clip-path: inset(20% 0 60% 0);
}

.glitch-text.glitch-active::after {
  color: rgba(255, 255, 255, 0.7);
  animation: glitch-2 0.3s linear;
  clip-path: inset(60% 0 10% 0);
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(3px, -1px); }
  75% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  25% { transform: translate(3px, -1px); }
  50% { transform: translate(-3px, 1px); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.tech-ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--term-border);
  border-bottom: 1px solid var(--term-border);
  padding: 0.75rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-ticker {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  font-size: 0.85rem;
  color: var(--term-dim);
}

.tech-ticker span:not(.term-dim) {
  color: var(--term-fg);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--term-border);
  font-size: 0.65rem;
  backdrop-filter: blur(8px);
}

.status-item {
  white-space: nowrap;
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::before {
  content: "./";
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--term-accent);
}

.nav-links a:hover::before,
.nav-links a.nav-active::before {
  opacity: 1;
}

.nav-links a.nav-active {
  color: var(--term-accent);
}

.nav-links a:hover {
  color: var(--term-accent);
}

.logo-nav .term-prompt {
  font-size: 0.55rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.testimonial-row {
  position: relative;
}

.testimonial-row .pfont:last-child {
  border-left: 2px solid var(--term-border);
  padding-left: 1rem;
}

.form-control {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid var(--term-border) !important;
  color: var(--term-fg) !important;
  font-family: "Cutive Mono", monospace;
  font-size: 0.85rem;
}

.form-control:focus {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: var(--term-accent) !important;
  box-shadow: 0 0 0 1px rgba(0, 255, 0, 0.2) !important;
  color: var(--term-fg) !important;
}

.form-label {
  font-family: "Cutive Mono", monospace;
  font-size: 0.8rem;
  color: var(--term-dim);
}

.member-card:hover .team-img {
  filter: grayscale(0);
  transform: scale(1.02);
}

.team-img {
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(30%);
}

header,
.site-header {
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(17, 17, 17, 0.75);
  border-bottom: 1px solid var(--term-border);
}

.hero-section {
  min-height: 100vh;
}

section {
  position: relative;
  z-index: 1;
}

.border-bottom,
.border-top {
  border-color: var(--term-border) !important;
}

.text-green {
  color: var(--term-accent) !important;
}

@media (max-width: 768px) {
  .boot-body {
    height: 180px;
    font-size: 0.7rem;
  }

  .status-bar {
    font-size: 0.55rem;
    padding: 0.3rem 0.5rem;
    gap: 0.5rem;
  }

  .terminal-panel-body {
    font-size: 0.7rem;
  }

  .tech-ticker {
    font-size: 0.75rem;
  }
}

footer.bg-dark {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tech-ticker,
  .terminal-card::after,
  .pulse-dot,
  .term-cursor.blink {
    animation: none !important;
  }

  .boot-line {
    opacity: 1;
    animation: none;
  }
}
