/**
 * NOBITA 3D Cyberpunk & Futuristic Design System
 * Primary Color: Neon Red #FF003C
 * Secondary Color: Deep Red #8B0000
 * Background: #050505 | Card: #0A0A0A
 * Accent: #FFFFFF | Text: #D1D5DB
 */

:root, [data-bs-theme="dark"] {
  --bg-core: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(14, 14, 18, 0.85);
  --bg-glass: rgba(18, 18, 24, 0.75);
  --primary: #ff003c;
  --primary-glow: rgba(255, 0, 60, 0.45);
  --primary-glow-lg: 0 0 25px rgba(255, 0, 60, 0.6), 0 0 50px rgba(255, 0, 60, 0.3);
  --secondary: #8b0000;
  --secondary-glow: rgba(139, 0, 0, 0.4);
  --accent: #ffffff;
  --text-main: #d1d5db;
  --text-muted: #838a95;
  --border-neon: rgba(255, 0, 60, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-sub: 'Rajdhani', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Bootstrap 5 Theme Overrides */
  --bs-body-bg: #050505;
  --bs-body-color: #d1d5db;
  --bs-primary: #ff003c;
  --bs-primary-rgb: 255, 0, 60;
  --bs-danger: #ff003c;
  --bs-danger-rgb: 255, 0, 60;
  --bs-link-color: #ff003c;
  --bs-link-hover-color: #ffffff;
  --bs-border-color: rgba(255, 0, 60, 0.25);
  --bs-card-bg: rgba(14, 14, 18, 0.85);
}

/* Base Reset & Cyber Atmosphere */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-core);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #2a0b12;
  border: 1px solid var(--border-neon);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Links Global */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--primary-glow);
}

/* Dynamic Fullscreen Background Engine (Wallpapers & Video Loops) */
.site-global-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-core, #050505);
}

.site-bg-image-element {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.site-bg-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.site-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 5, 8, 0.45) 0%, rgba(5, 5, 8, 0.88) 100%),
              linear-gradient(to bottom, rgba(5, 5, 8, 0.6) 0%, transparent 20%, transparent 80%, rgba(5, 5, 8, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Three.js Canvas Container */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Background Cyber Grid & Scanlines */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(rgba(255, 0, 60, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 60, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 2;
}

.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.55;
}

.main-content-wrapper {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 160px);
}

/* Typography */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

h4, h5, h6, .font-sub {
  font-family: var(--font-sub);
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-main);
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.text-neon {
  color: var(--primary) !important;
  text-shadow: 0 0 10px var(--primary-glow);
}

.text-white {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Cybernetic Neon Glow Borders & Clip-path shapes */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  position: relative;
  padding: 1.75rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  pointer-events: none;
}

.cyber-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  pointer-events: none;
}

.cyber-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(255, 0, 60, 0.25);
  transform: translateY(-4px);
}

/* Futuristic HUD Buttons */
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--primary);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px var(--primary-glow);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #ff1a4f 0%, #a00000 100%);
  color: #ffffff !important;
  box-shadow: var(--primary-glow-lg);
  transform: translateY(-2px);
}

.btn-cyber-primary:active {
  transform: translateY(0);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 0, 60, 0.05);
  color: var(--primary) !important;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.btn-cyber-outline:hover {
  background: rgba(255, 0, 60, 0.18);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-cyber-outline:active {
  transform: translateY(0);
}

/* Cyber Header & Auto-Sizing Navigation */
.cyber-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-neon);
  transition: background var(--transition-fast);
}

.cyber-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem clamp(0.75rem, 1.5vw, 2rem);
  gap: clamp(0.5rem, 1vw, 1.5rem);
}

.cyber-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  line-height: 1;
}

.brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-glitch {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1.25rem, 1.5vw, 1.6rem);
  font-weight: 900;
  color: var(--accent, #ffffff);
  letter-spacing: clamp(1.5px, 0.2vw, 3px);
  position: relative;
  text-shadow: 0 0 10px var(--primary-glow, rgba(255, 0, 60, 0.4));
  line-height: 1;
}

.brand-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary, #FF003C);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary, #FF003C), 0 0 4px var(--primary, #FF003C);
  margin-top: 5px;
  margin-left: 2px;
  animation: cyberPulse 2s infinite ease-in-out;
}

/* Dynamic Brand Logo Images */
.site-header-logo-img {
  max-height: 38px;
  max-width: 175px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--primary-glow, rgba(255, 0, 60, 0.4)));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.site-header-logo-img:hover {
  filter: drop-shadow(0 0 16px var(--primary, #FF003C));
  transform: scale(1.02);
}

.site-drawer-logo-img {
  max-height: 34px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow, rgba(255, 0, 60, 0.35)));
}

.site-footer-logo-img {
  max-height: 42px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--primary-glow, rgba(255, 0, 60, 0.3)));
  transition: filter var(--transition-fast);
}

.site-footer-logo-img:hover {
  filter: drop-shadow(0 0 18px var(--primary, #FF003C));
}

/* Cyber Video Card & Player Animations */
.video-thumbnail-box:hover .video-thumb-img {
  transform: scale(1.06);
}
.video-thumbnail-box:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.25) !important;
}
.video-thumbnail-box:hover .play-btn-pulse {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(255, 0, 60, 1) !important;
}
.play-btn-pulse {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Center Desktop Navigation (Auto-Sizing) */
.cyber-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 clamp(0.25rem, 0.8vw, 1.5rem);
}

.cyber-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.55vw, 14px);
  list-style: none !important;
  margin-bottom: 0;
  padding: 0.25rem clamp(0.25rem, 0.5vw, 0.75rem) !important;
  width: 100%;
  max-width: 950px;
  flex-wrap: nowrap;
}

.cyber-nav-item {
  flex: 0 1 auto;
  min-width: 0;
}

.cyber-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem clamp(5px, 0.65vw, 12px);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-width: 0;
  white-space: nowrap;
  gap: 3px;
}

.cyber-nav-link .nav-icon {
  font-size: clamp(0.85rem, 0.95vw, 1.1rem);
  line-height: 1;
  color: #d1d5db;
  transition: all 0.2s ease;
}

.cyber-nav-link .nav-label {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(0.58rem, 0.65vw, 0.72rem);
  font-weight: 700;
  letter-spacing: clamp(0.5px, 0.08vw, 1.2px);
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1;
  transition: all 0.2s ease;
}

.cyber-nav-link:hover {
  background: rgba(255, 0, 60, 0.08);
  transform: translateY(-1px);
}

.cyber-nav-link:hover .nav-icon {
  color: var(--primary, #FF003C);
  filter: drop-shadow(0 0 6px var(--primary, #FF003C));
}

.cyber-nav-link:hover .nav-label {
  color: #ffffff;
}

.cyber-nav-link.active {
  background: rgba(255, 0, 60, 0.14);
  box-shadow: inset 0 0 12px rgba(255, 0, 60, 0.2), 0 0 10px rgba(255, 0, 60, 0.15);
  border-radius: 6px;
}

.cyber-nav-link.active .nav-icon {
  color: var(--primary, #FF003C);
  filter: drop-shadow(0 0 8px var(--primary, #FF003C));
}

.cyber-nav-link.active .nav-label {
  color: var(--primary, #FF003C);
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 0, 60, 0.65);
}

.cyber-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--primary, #FF003C);
  box-shadow: 0 0 10px var(--primary, #FF003C), 0 0 4px #ffffff;
  border-radius: 2px;
}

/* Nav Action Buttons */
.cyber-nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.6vw, 0.75rem);
  flex-shrink: 0;
}

.btn-cyber-console {
  background: linear-gradient(135deg, #FF003C 0%, #b8002b 100%);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  color: #ffffff !important;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(0.7rem, 0.78vw, 0.85rem);
  padding: 0.5rem clamp(0.85rem, 1.1vw, 1.35rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-cyber-console:hover {
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.85);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-cyber-power {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 0, 60, 0.35);
  border-radius: 6px;
  color: var(--primary, #FF003C) !important;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-cyber-power:hover {
  border-color: var(--primary, #FF003C);
  color: #ffffff !important;
  background: rgba(255, 0, 60, 0.25);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
  transform: scale(1.05);
}

/* Mobile Nav Drawer Core Styles */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-neon);
  color: var(--primary);
  font-size: 1.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: rgba(255, 0, 60, 0.15);
  box-shadow: 0 0 10px var(--primary-glow);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(10, 10, 14, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-neon);
  z-index: 10000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0 !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-neon);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.mobile-drawer-close:hover {
  color: var(--primary);
}

.mobile-nav-links {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary) !important;
  background: rgba(255, 0, 60, 0.12);
  padding-left: 1rem;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero-cyber-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 15;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 0, 60, 0.1);
  border: 1px solid var(--border-neon);
  border-radius: 50px;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 25px rgba(255, 0, 60, 0.4);
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-main);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  letter-spacing: 0.5px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Telemetry Grid / Stat Boxes */
.stats-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Terminal & Code Blocks */
.cyber-terminal {
  background: #060608;
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
  margin: 1.5rem 0;
  overflow: hidden;
}

.terminal-header {
  background: #0f0f14;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #777;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
}

/* Copy Button & Category Filter Pills */
.btn-copy-code {
  background: rgba(255, 0, 60, 0.05);
  border: 1px solid var(--border-neon);
  color: var(--primary);
  padding: 0.4rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-copy-code:hover {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 0 12px var(--primary-glow);
}

.btn-copy-code.copied {
  background: #27c93f !important;
  border-color: #27c93f !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(39, 201, 63, 0.5) !important;
}

/* Category Filter Pills Active */
.category-filter-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px var(--primary-glow) !important;
}

/* Form Controls & Inputs (Dark Red Cyber Styling) */
.form-control, .form-select {
  background-color: #08080c !important;
  border: 1px solid var(--border-neon) !important;
  color: #ffffff !important;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: #626973 !important;
}

.form-control:focus, .form-select:focus {
  background-color: #0d0d14 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px var(--primary-glow) !important;
  color: #ffffff !important;
}

/* Tables Styling */
.table {
  color: var(--text-main) !important;
  border-color: rgba(255, 0, 60, 0.15) !important;
}
.table > :not(caption) > * > * {
  background-color: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: inherit !important;
}
.table tbody tr:hover td {
  background-color: rgba(255, 0, 60, 0.05) !important;
}

/* Pulse Animation */
@keyframes cyberPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

/* Section Header */
.section-cyber-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Footer */
.cyber-footer {
  position: relative;
  z-index: 10;
  background: #040404;
  border-top: 1px solid var(--border-neon);
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(39, 201, 63, 0.1);
  border: 1px solid rgba(39, 201, 63, 0.3);
  border-radius: 4px;
  color: #27c93f;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 6px #27c93f;
  animation: cyberPulse 2s infinite ease-in-out;
}

/* Progress Bars */
.progress {
  background-color: #0a0a0e;
  border: 1px solid rgba(255, 0, 60, 0.2);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #8b0000 0%, #ff003c 100%) !important;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #webgl-container {
    opacity: 0.3;
  }
}

.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

/* Team Squad Avatar Polish */
.team-avatar-img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.cyber-card:hover .team-avatar-img {
  transform: scale(1.08);
  filter: contrast(1.05) brightness(1.05);
}
