/* ============================================================================
   MGR Ventures - Retro Arcade Theme
   Pixel fonts, neon on dark, chunky borders, 8-bit energy, CRT glow
   ============================================================================ */

:root {
  --black: #0a0a12;
  --black-light: #10101e;
  --black-card: #12122a;
  --neon-yellow: #ffff00;
  --neon-green: #39ff14;
  --neon-cyan: #00ffff;
  --neon-magenta: #ff00ff;
  --neon-orange: #ff6600;
  --neon-red: #ff2222;
  --pixel-blue: #4488ff;

  --text-primary: #f0f0ff;
  --text-secondary: #9999bb;
  --text-muted: #555577;
  --bg-primary: var(--black);
  --bg-secondary: var(--black-light);

  --font-pixel: "Press Start 2P", monospace;
  --font-primary: "Chakra Petch", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --section-padding: 100px;
  --border-chunky: 3px solid;
  --transition-fast: 100ms ease;
  --transition-base: 250ms ease;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
}

/* ============================================================================
   Base
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal overflow without creating weird scroll containers */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  image-rendering: pixelated;
}

::selection {
  background: var(--neon-yellow);
  color: var(--black);
}

/* Scanline overlay */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 6px
  );
}

a {
  text-decoration: none !important;
}

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  padding: 0;
  background: var(--black) !important;
  border-bottom: var(--border-chunky) var(--neon-yellow);
  transition: all var(--transition-base);
  box-shadow:
    0 3px 0 var(--neon-yellow),
    0 4px 20px rgba(255, 255, 0, 0.1);
}

.navbar.scrolled {
  background: var(--black) !important;
  border-bottom-color: var(--neon-cyan);
  box-shadow:
    0 3px 0 var(--neon-cyan),
    0 4px 20px rgba(0, 255, 255, 0.1);
}

.navbar-brand {
  padding: 0.6rem 1.25rem;
  margin: 0;
}

.brand-logo {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-yellow) !important;
  -webkit-text-fill-color: var(--neon-yellow) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  text-shadow:
    0 0 10px rgba(255, 255, 0, 0.5),
    0 0 30px rgba(255, 255, 0, 0.2);
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 0.75rem 0.9rem !important;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-arrow {
  color: var(--neon-green);
  margin-right: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.navbar-nav .nav-link:hover .nav-arrow {
  opacity: 1;
}

.navbar-nav .nav-link:hover {
  color: var(--neon-yellow) !important;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

.navbar-nav .nav-link::before {
  display: none;
}

.nav-cta {
  color: var(--neon-green) !important;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--black);
    border: var(--border-chunky) var(--neon-yellow);
    border-top: none;
    padding: 1rem;
    margin-top: 0;
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Pixel stars background */
.pixel-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, var(--neon-yellow) 100%, transparent),
    radial-gradient(1px 1px at 30% 70%, var(--neon-cyan) 100%, transparent),
    radial-gradient(1px 1px at 50% 10%, var(--neon-magenta) 100%, transparent),
    radial-gradient(1px 1px at 70% 40%, var(--neon-green) 100%, transparent),
    radial-gradient(1px 1px at 90% 80%, var(--neon-yellow) 100%, transparent),
    radial-gradient(1px 1px at 15% 55%, var(--neon-cyan) 100%, transparent),
    radial-gradient(1px 1px at 85% 15%, var(--neon-magenta) 100%, transparent),
    radial-gradient(1px 1px at 45% 85%, var(--neon-green) 100%, transparent),
    radial-gradient(2px 2px at 25% 35%, var(--neon-yellow) 100%, transparent),
    radial-gradient(2px 2px at 65% 60%, var(--neon-cyan) 100%, transparent),
    radial-gradient(1px 1px at 55% 45%, var(--neon-yellow) 100%, transparent),
    radial-gradient(1px 1px at 80% 25%, var(--neon-green) 100%, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--neon-magenta);
  top: -15%;
  right: -10%;
  opacity: 0.06;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  bottom: -15%;
  left: -10%;
  opacity: 0.05;
  animation-delay: 7s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-yellow);
  top: 50%;
  left: 50%;
  opacity: 0.03;
  animation-delay: 14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 0, 0.05);
  border: 2px solid var(--neon-yellow);
  margin-bottom: 2rem;
  box-shadow:
    0 0 10px rgba(255, 255, 0, 0.15),
    inset 0 0 10px rgba(255, 255, 0, 0.05);
}

.badge-pixel-icon {
  color: var(--neon-yellow);
  font-size: 0.8rem;
  animation: pulse-star 1.5s infinite;
}

@keyframes pulse-star {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-badge span:last-child {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--neon-yellow);
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.title-row {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.gradient-text {
  color: var(--neon-yellow) !important;
  -webkit-text-fill-color: var(--neon-yellow) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  text-shadow:
    0 0 10px rgba(255, 255, 0, 0.6),
    0 0 30px rgba(255, 255, 0, 0.3),
    0 0 60px rgba(255, 255, 0, 0.15);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--neon-yellow);
  color: var(--black);
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 2px;
  border: 3px solid var(--neon-yellow);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 15px rgba(255, 255, 0, 0.3),
    0 4px 0 #b3b300;
  border-radius: 0;
}

.btn-icon {
  font-size: 0.7rem;
}

.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(255, 255, 0, 0.5),
    0 6px 0 #b3b300;
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--neon-cyan);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 2px;
  border: 3px solid var(--neon-cyan);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.15),
    0 4px 0 #009999;
  border-radius: 0;
}

.btn-outline-white:hover {
  background: var(--neon-cyan);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.4),
    0 6px 0 #009999;
}

.hero-trust-line {
  margin-top: 0;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-primary);
}
.pixel-heart {
  color: var(--neon-red);
  font-size: 0.8rem;
}
.trust-item i {
  display: none;
} /* replaced by pixel hearts */

/* Arcade Screen */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.arcade-screen {
  width: 100%;
  max-width: 420px;
  background: var(--black-card);
  border: 4px solid var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 40px rgba(0, 255, 255, 0.03),
    0 8px 0 #005555;
  overflow: hidden;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 255, 255, 0.05);
  border-bottom: 2px solid var(--neon-cyan);
}

.screen-title {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

.screen-score {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.5);
}

.screen-body {
  padding: 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

.screen-footer {
  padding: 0.6rem;
  text-align: center;
  border-top: 2px solid var(--neon-cyan);
  background: rgba(0, 255, 255, 0.03);
}

.blink-text {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-yellow);
  letter-spacing: 2px;
  animation: blink-arcade 1.2s step-end infinite;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

@keyframes blink-arcade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--neon-yellow);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.2);
}
.mouse::before {
  content: "";
  width: 3px;
  height: 6px;
  background: var(--neon-yellow);
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
  box-shadow: 0 0 4px rgba(255, 255, 0, 0.5);
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================================================
   Section Common
   ============================================================================ */

section {
  padding: var(--section-padding) 0;
  position: relative;
}
.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 0, 0.05);
  border: 2px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.1);
  border-radius: 0;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.section-desc {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================================
   Tech Stack
   ============================================================================ */

.tech-logos-section {
  padding: 70px 0;
  background: var(--black-light);
  border-top: 3px solid var(--neon-magenta);
  border-bottom: 3px solid var(--neon-magenta);
  box-shadow:
    inset 0 3px 20px rgba(255, 0, 255, 0.05),
    inset 0 -3px 20px rgba(255, 0, 255, 0.05);
}

.tech-logos-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tech-logos-wrapper .section-label {
  margin-bottom: 0.75rem;
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  background: rgba(255, 0, 255, 0.05);
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.3);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.1);
}
.tech-logos-wrapper h3 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.tech-category-row {
  margin-bottom: 1.75rem;
  text-align: center;
}

.tech-category-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-green);
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--neon-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.3);
}

.tech-stack-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 900px;
  margin: 0 auto;
}

.badge-large {
  background: rgba(255, 255, 0, 0.04);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 2px solid rgba(255, 255, 0, 0.15);
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
  border-radius: 0;
}

.badge-large:hover {
  background: var(--neon-yellow);
  color: var(--black);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.3);
  transform: translateY(-2px);
}

/* Badge morph */
.badge-large.tech-badge-morphable {
  min-width: 90px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-large .badge-text {
  display: inline-block;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.badge-large .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-large .badge-icon i {
  font-size: 1.2rem;
  color: var(--black);
}
.badge-large .badge-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.badge-large.tech-badge-morphable:hover .badge-text {
  opacity: 0;
  transform: scale(0.8);
}
.badge-large.tech-badge-morphable:hover .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.badge-large.tech-badge-morphable:focus {
  outline: 2px solid var(--neon-yellow);
  outline-offset: 2px;
}
.badge-large.tech-badge-morphable:focus .badge-text {
  opacity: 0;
}
.badge-large.tech-badge-morphable:focus .badge-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================================
   Services
   ============================================================================ */

.services-section {
  background: var(--bg-primary);
}

.service-card {
  height: 100%;
  padding: 2rem;
  background: var(--black-card);
  border: 3px solid rgba(0, 255, 255, 0.15);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.card-level {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--neon-green);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--neon-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  box-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

.service-card:hover {
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 255, 255, 0.02);
  transform: translateY(-4px);
}

.service-card:hover .card-level {
  opacity: 1;
  color: var(--neon-yellow);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 255, 0.08);
  border: 2px solid rgba(0, 255, 255, 0.15);
  transition: all var(--transition-base);
  border-radius: 0;
}

.service-card:hover .icon-bg {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 255, 0.15);
}

.service-icon-wrapper i {
  position: relative;
  font-size: 1.5rem;
  color: var(--neon-cyan);
  -webkit-text-fill-color: var(--neon-cyan);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.service-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  line-height: 1.8;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}
.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.service-tags span {
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 0, 0.1);
  border-radius: 0;
}

/* ============================================================================
   Process
   ============================================================================ */

.process-section {
  background: var(--black-light);
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
}
.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 3.5rem;
  position: relative;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:not(:last-child) .timeline-connector {
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  width: 3px;
  height: calc(100% + 1.5rem);
  background: repeating-linear-gradient(
    180deg,
    var(--neon-magenta) 0px,
    var(--neon-magenta) 6px,
    transparent 6px,
    transparent 12px
  );
  z-index: 1;
  opacity: 0.3;
}

.timeline-content {
  flex: 1;
  padding: 2rem;
  background: var(--black-card);
  border: 2px solid rgba(255, 0, 255, 0.15);
  position: relative;
  z-index: 2;
  border-radius: 0;
}

.timeline-number {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--black);
  border: 3px solid var(--neon-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--neon-magenta);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
  text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
  border-radius: 0;
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -30px;
}
.timeline-item:nth-child(even) .timeline-number {
  left: -30px;
}

.timeline-content h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--neon-magenta);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  line-height: 1.8;
  text-shadow: 0 0 6px rgba(255, 0, 255, 0.3);
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================================
   Case Studies
   ============================================================================ */

.case-studies-section {
  background: var(--bg-primary);
}

.case-study-card {
  height: 100%;
  padding: 2rem;
  background: var(--black-card);
  border: 3px solid rgba(57, 255, 20, 0.12);
  transition: all var(--transition-base);
  border-radius: 0;
}

.case-study-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.08);
}
.case-study-header {
  margin-bottom: 1.25rem;
}

.case-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(57, 255, 20, 0.08);
  color: var(--neon-green);
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(57, 255, 20, 0.2);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.3);
  border-radius: 0;
}

.case-study-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 1.8;
}
.case-study-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.25rem 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

.metric {
  text-align: center;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 0, 0.08);
}

.metric-value {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--neon-yellow);
  -webkit-text-fill-color: var(--neon-yellow);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.3);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-primary);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-badge {
  padding: 0.2rem 0.5rem;
  background: rgba(0, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: 0;
}

.case-study-card.coming-soon {
  background: rgba(255, 255, 0, 0.02);
  border: 3px dashed var(--neon-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-content {
  text-align: center;
}
.coming-soon-content i {
  font-size: 2.5rem;
  color: var(--neon-yellow);
  margin-bottom: 1.25rem;
  opacity: 0.3;
  text-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}
.coming-soon-content h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--neon-yellow);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.3);
}
.coming-soon-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--neon-yellow);
  color: var(--black);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 2px;
  border: 3px solid var(--neon-yellow);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: 1rem;
  box-shadow: 0 4px 0 #b3b300;
  border-radius: 0;
}
.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 15px rgba(255, 255, 0, 0.3),
    0 6px 0 #b3b300;
  color: var(--black);
}

/* ============================================================================
   About
   ============================================================================ */

.about-section {
  background: var(--bg-primary);
}
.about-image {
  position: relative;
  height: 550px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black-card);
  display: flex;
  /* align-items: center; */
  justify-content: center;
  border: 4px solid var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.1),
    0 6px 0 #005555;
  border-radius: 0;
}

.image-placeholder i {
  font-size: 6rem;
  color: rgba(0, 255, 255, 0.06);
}

/* Inject real portrait into arcade frame */
.image-placeholder img.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.05) saturate(1.05);
  transition:
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 300ms ease;
}

.about-image:hover img.about-photo {
  transform: scale(1.04);
  filter: contrast(1.1) saturate(1.1);
}

/* CRT readability fade so the neon card stays legible */
.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.image-decoration {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  background: var(--black);
  padding: 1rem 1.25rem;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
  border-radius: 0;
}

.deco-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.deco-card i {
  font-size: 1.25rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}
.deco-title {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-green);
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(57, 255, 20, 0.3);
}
.deco-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-content {
  padding-left: 2.5rem;
}
.about-content .section-label {
  margin-bottom: 1.5rem;
}
.about-content .section-title {
  margin-bottom: 1.5rem;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.25rem;
  background: var(--black-card);
  border: 2px solid rgba(255, 255, 0, 0.1);
  border-radius: 0;
}
.stat-number {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-yellow);
  -webkit-text-fill-color: var(--neon-yellow);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.35rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.3);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
   Contact
   ============================================================================ */

.contact-section {
  background: var(--black-light);
}

.contact-form-wrapper {
  padding: 0;
  background: var(--black-card);
  border: 3px solid var(--neon-cyan);
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.08),
    0 6px 0 #005555;
  overflow: hidden;
  border-radius: 0;
}

.form-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(0, 255, 255, 0.05);
  border-bottom: 2px solid var(--neon-cyan);
}

.form-screen-header span:first-child {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

.form-status {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}

.contact-form-wrapper form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 0;
}
.form-group label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 2px solid rgba(0, 255, 255, 0.15);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  background: rgba(0, 255, 255, 0.03);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 0;
}

.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:focus {
  outline: none;
  border-color: var(--neon-yellow);
  box-shadow:
    0 0 0 2px rgba(255, 255, 0, 0.1),
    0 0 15px rgba(255, 255, 0, 0.08);
}
.form-control.is-invalid {
  border-color: var(--neon-red);
}
.invalid-feedback {
  display: none;
  color: var(--neon-red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-primary);
}
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}
.form-control option {
  background: var(--black-card);
  color: var(--text-primary);
}

.alert {
  padding: 1rem;
  margin-top: 1rem;
  border: 2px solid;
  font-family: var(--font-primary);
  border-radius: 0;
}
.alert-success {
  background: rgba(57, 255, 20, 0.05);
  color: var(--neon-green);
  border-color: var(--neon-green);
}
.alert-danger {
  background: rgba(255, 34, 34, 0.05);
  color: var(--neon-red);
  border-color: var(--neon-red);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  padding: 2rem 0;
  background: var(--black);
  border-top: 3px solid var(--neon-yellow);
  box-shadow: 0 -3px 0 var(--neon-yellow);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--neon-yellow);
  -webkit-text-fill-color: var(--neon-yellow);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-bottom: 0.35rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}
.footer-left p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.75rem;
}
.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.4);
}

.footer-credit {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  opacity: 0.4;
  margin-top: 1rem;
}

/* ============================================================================
   Responsive
   ============================================================================ */

/* Inline logo: hidden on desktop, shown only at ≤767px */
.hero-inline-logo {
  display: none;
}

/* ---- 768px–991px: keep arcade screen side-by-side with title, but smaller ---- */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section .row.align-items-center {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .hero-section .col-lg-7 {
    flex: 0 0 62% !important;
    max-width: 62% !important;
  }
  .hero-section .col-lg-5 {
    flex: 0 0 38% !important;
    max-width: 38% !important;
  }
  .hero-visual {
    margin-top: 0 !important;
  }
  .arcade-screen {
    max-width: 220px;
  }
  .screen-body {
    min-height: 130px;
    padding: 1rem;
  }
  .hero-logo {
    max-width: 160px;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 70px;
  }
  .hero-visual {
    margin-top: 2.5rem;
  }
  .arcade-screen {
    max-width: 100%;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }
  .timeline-item .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-bottom: 1rem;
  }
  .timeline-item:not(:last-child) .timeline-connector {
    display: none;
  }
  .about-content {
    padding-left: 0;
    margin-top: 2.5rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 767px) {
  /* Show the bare inline logo between title and subtitle */
  .hero-inline-logo {
    display: block;
    width: 368px;
    height: auto;
    margin-bottom: 2%;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-title {
    margin-top: 25%;
  }
  .hero-badge {
    margin-bottom: 0;
  }
  .btn-primary-glow,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
  .trust-logos {
    display: none;
  }
  .case-metrics {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .about-image {
    height: 300px;
  }
  .contact-form-wrapper form {
    padding: 1.25rem;
  }
  .badge-large {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }
  .badge-large.tech-badge-morphable {
    min-width: 75px;
    min-height: 34px;
  }
}

@media (max-width: 450px) {
  #mgr-invaders.mgrInv-docked {
    right: -9% !important;
  }
}

/* ============================================================================
   Utilities
   ============================================================================ */

.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.d-none {
  display: none;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.float-card {
  opacity: 1;
}

/* ================================
   Theme Switcher Floating Button
================================ */
.theme-switcher-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  border: var(--border-chunky) var(--neon-yellow);
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 700;
  font-family: var(--font-pixel);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  background: var(--neon-yellow);
  box-shadow:
    0 0 20px rgba(255, 255, 0, 0.5),
    inset 0 0 10px rgba(255, 255, 0, 0.3),
    0 3px 0 var(--neon-yellow),
    0 6px 0 var(--black);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-switcher-btn .btn-icon {
  font-size: 0.8rem;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.theme-switcher-btn:hover {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.7),
    inset 0 0 15px rgba(0, 255, 255, 0.4),
    0 3px 0 var(--neon-cyan),
    0 8px 0 var(--black);
}

/* ================================
   Theme Panel
================================ */
.theme-panel {
  background: var(--black);
  border-left: var(--border-chunky) var(--neon-yellow);
  box-shadow:
    -3px 0 0 var(--neon-yellow),
    -6px 0 0 var(--black),
    inset 0 0 30px rgba(255, 255, 0, 0.1);
}

.theme-panel .offcanvas-header {
  border-bottom: var(--border-chunky) var(--neon-yellow);
  padding: 1.5rem;
  background: var(--black-card);
  box-shadow: 0 3px 0 var(--neon-yellow);
}

.theme-panel .offcanvas-title {
  color: var(--neon-yellow);
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-shadow:
    0 0 10px rgba(255, 255, 0, 0.6),
    0 0 20px rgba(255, 255, 0, 0.3);
}

.theme-panel .btn-close {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.8;
}

.theme-panel .btn-close:hover {
  opacity: 1;
}

.theme-panel .offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.theme-list a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 1.25rem 1.5rem;
  border: none;
  border-bottom: var(--border-chunky) var(--black-card);
  background: var(--black-light);
  font-family: var(--font-pixel);
  font-weight: 400;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.5rem;
  letter-spacing: 1px;
  position: relative;
}

.theme-list a .theme-icon {
  font-size: 0.7rem;
  color: var(--neon-yellow);
}

.theme-list a .theme-name {
  flex: 1;
}

.theme-list a .theme-level {
  font-size: 0.45rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.theme-list a::before {
  content: "▶";
  position: absolute;
  left: -20px;
  color: var(--neon-cyan);
  font-size: 0.6rem;
  opacity: 0;
  transition: all var(--transition-fast);
}

.theme-list a:hover {
  background: var(--black-card);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  padding-left: 2rem;
  box-shadow:
    inset 3px 0 0 var(--neon-cyan),
    0 0 20px rgba(0, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.theme-list a:hover::before {
  opacity: 1;
  left: 0.75rem;
}

.theme-list a:hover .theme-icon {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.theme-list a:hover .theme-level {
  color: var(--neon-yellow);
}

.theme-footer {
  padding: 1rem 1.5rem;
  border-top: var(--border-chunky) var(--neon-yellow);
  background: var(--black-card);
  text-align: center;
  box-shadow: 0 -3px 0 var(--neon-yellow);
}

.theme-footer .pixel-text {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  animation: blink 1.5s step-start infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.3;
  }
}

/* ================================
   Page Transition
================================ */
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5000;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 0, 0.05),
      rgba(255, 255, 0, 0.05) 2px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(180deg, var(--black), var(--black-light));
  backdrop-filter: blur(0px);
  transition:
    opacity 0.2s ease,
    backdrop-filter 0.3s ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
  backdrop-filter: blur(5px);
}

/* Canonical MAIN hooks added for retro parity */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-yellow));
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.45);
  transform-origin: left;
  transition: width 0.08s linear;
}

.service-learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
}

.service-learn-more:hover {
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(255, 255, 0, 0.35);
}

.partner-section {
  background: var(--black-light);
}

.partner-callout {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 3px solid var(--neon-magenta);
  background: rgba(255, 0, 255, 0.04);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.12);
}

.partner-callout > * {
  position: relative;
  z-index: 1;
}

.partner-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../assets/images/SavorySuiteLogoNoBG.png");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: min(420px, 46%);
  opacity: 0.1;
  pointer-events: none;
}

.partner-badge,
.partner-note {
  font-family: var(--font-primary);
  color: var(--text-secondary);
}

.partner-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.partner-desc a {
  color: var(--neon-cyan);
}

@media (max-width: 768px) {
  .partner-callout::after {
    background-position: center 1.25rem;
    background-size: min(340px, 70%);
    opacity: 0.08;
  }
}

.brand-cta {
  position: relative;
  overflow: hidden;
  justify-content: center;
  text-align: center;
}

.brand-cta .cta-texts {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.brand-cta .cta-text {
  grid-area: 1 / 1;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease;
  white-space: nowrap;
}

.brand-cta .cta-hover {
  opacity: 0;
  transform: translateY(10px);
}

.brand-cta:hover .cta-default,
.brand-cta:focus-visible .cta-default {
  opacity: 0;
  transform: translateY(-10px);
}

.brand-cta:hover .cta-hover,
.brand-cta:focus-visible .cta-hover {
  opacity: 1;
  transform: translateY(0);
}
