/* ============================================
   HASEEN USMAN AHMED - Futuristic Cyber Security
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Palette v2 — refined duotone: deep azure + violet core,
     teal/amber/crimson reserved for semantic accents */
  --bg-primary: #04060f;
  --bg-secondary: #090d1d;
  --bg-card: rgba(9, 14, 34, 0.75);
  --bg-card-hover: rgba(13, 20, 48, 0.85);
  --neon-cyan: #00c8ff;
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-green: #2dd4bf;
  --neon-red: #ff2d55;
  --neon-orange: #fbbf24;
  --neon-matrix: #2dd4bf;
  --text-primary: #ccd6e8;
  --text-secondary: #8b9cc0;
  --text-heading: #f0f4ff;
  --border-glow: rgba(0, 200, 255, 0.14);
  --gradient-cyber: linear-gradient(135deg, #00c8ff, #3b82f6, #8b5cf6);
  --gradient-matrix: linear-gradient(180deg, #2dd4bf, #00c8ff);
  --gradient-threat: linear-gradient(135deg, #ff2d55, #fbbf24);
  --gradient-dark: linear-gradient(180deg, #04060f 0%, #090d1d 50%, #04060f 100%);
  --font-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Utility Classes --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '//';
  color: var(--neon-purple);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-title .highlight {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 50px;
}

/* --- Animated Background --- */
.cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Hex Grid */
.cyber-bg .grid-overlay {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

.cyber-bg .grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(0, 200, 255, 0.01) 1px, transparent 1px),
    linear-gradient(-60deg, rgba(0, 200, 255, 0.01) 1px, transparent 1px);
  background-size: 50px 86px;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Ambient Orbs */
.cyber-bg .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.cyber-bg .glow-orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  top: 5%;
  right: -150px;
  animation-delay: -5s;
}

.cyber-bg .glow-orb:nth-child(3) {
  width: 450px;
  height: 450px;
  background: var(--neon-purple);
  bottom: 15%;
  left: -120px;
  animation-delay: -12s;
}

.cyber-bg .glow-orb:nth-child(4) {
  width: 350px;
  height: 350px;
  background: var(--neon-blue);
  top: 45%;
  left: 40%;
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -50px) scale(1.15); }
  50% { transform: translate(-30px, 40px) scale(0.85); }
  75% { transform: translate(20px, -20px) scale(1.05); }
}

/* Matrix Rain Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
}

/* Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Circuit Lines */
.circuit-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.circuit-line {
  position: absolute;
  background: var(--neon-cyan);
  opacity: 0;
  animation: circuitPulse 8s ease-in-out infinite;
}

.circuit-line.horizontal {
  height: 1px;
  width: 100px;
}

.circuit-line.vertical {
  width: 1px;
  height: 100px;
}

.circuit-line:nth-child(1) { top: 15%; left: 0; width: 200px; animation-delay: 0s; }
.circuit-line:nth-child(2) { top: 35%; right: 0; width: 150px; animation-delay: -2s; }
.circuit-line:nth-child(3) { top: 55%; left: 10%; width: 180px; animation-delay: -4s; }
.circuit-line:nth-child(4) { top: 75%; right: 5%; width: 120px; animation-delay: -6s; }
.circuit-line:nth-child(5) { left: 20%; top: 0; height: 150px; width: 1px; animation-delay: -1s; }
.circuit-line:nth-child(6) { right: 25%; top: 10%; height: 200px; width: 1px; animation-delay: -3s; }
.circuit-line:nth-child(7) { left: 60%; bottom: 0; height: 120px; width: 1px; animation-delay: -5s; }
.circuit-line:nth-child(8) { right: 40%; top: 30%; height: 100px; width: 1px; animation-delay: -7s; }

@keyframes circuitPulse {
  0%, 100% { opacity: 0; }
  10% { opacity: 0.15; }
  20% { opacity: 0; }
  30% { opacity: 0.1; }
  40%, 100% { opacity: 0; }
}

/* Data Stream Lines */
.data-stream {
  position: fixed;
  width: 1px;
  height: 100%;
  top: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.data-stream::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
  animation: dataFlow 6s linear infinite;
  opacity: 0.08;
}

.data-stream:nth-child(1) { left: 10%; }
.data-stream:nth-child(1)::after { animation-delay: 0s; animation-duration: 5s; }
.data-stream:nth-child(2) { left: 25%; }
.data-stream:nth-child(2)::after { animation-delay: -1.5s; animation-duration: 7s; height: 60px; }
.data-stream:nth-child(3) { left: 45%; }
.data-stream:nth-child(3)::after { animation-delay: -3s; animation-duration: 6s; height: 100px; opacity: 0.05; }
.data-stream:nth-child(4) { left: 65%; }
.data-stream:nth-child(4)::after { animation-delay: -2s; animation-duration: 8s; height: 50px; }
.data-stream:nth-child(5) { left: 80%; }
.data-stream:nth-child(5)::after { animation-delay: -4s; animation-duration: 5.5s; height: 70px; }
.data-stream:nth-child(6) { left: 92%; }
.data-stream:nth-child(6)::after { animation-delay: -5s; animation-duration: 9s; height: 40px; opacity: 0.04; }

@keyframes dataFlow {
  0% { transform: translateY(-100px); }
  100% { transform: translateY(100vh); }
}

/* Radar Sweep */
.radar-sweep {
  position: fixed;
  bottom: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.04);
}

.radar-sweep::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.08), transparent);
  transform-origin: left center;
  animation: radarSweep 8s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scanline - enhanced */
.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 2px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 4px
  );
}

.scanline-overlay::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.03), transparent);
  animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
  0% { top: -3px; }
  100% { top: 100%; }
}

/* Threat Pulse Dots */
.threat-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.threat-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--neon-red);
  opacity: 0;
  animation: threatBlink 4s ease-in-out infinite;
}

.threat-dot:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.threat-dot:nth-child(2) { top: 28%; right: 15%; animation-delay: -1s; background: var(--neon-orange); }
.threat-dot:nth-child(3) { top: 52%; left: 22%; animation-delay: -2s; }
.threat-dot:nth-child(4) { top: 68%; right: 30%; animation-delay: -3s; background: var(--neon-green); }
.threat-dot:nth-child(5) { top: 85%; left: 45%; animation-delay: -0.5s; background: var(--neon-cyan); }
.threat-dot:nth-child(6) { top: 40%; left: 75%; animation-delay: -2.5s; }
.threat-dot:nth-child(7) { top: 20%; left: 55%; animation-delay: -1.5s; background: var(--neon-green); }
.threat-dot:nth-child(8) { top: 70%; right: 10%; animation-delay: -3.5s; background: var(--neon-cyan); }

@keyframes threatBlink {
  0%, 100% { opacity: 0; box-shadow: none; }
  50% { opacity: 0.6; box-shadow: 0 0 8px currentColor; }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

/* Blur lives on a pseudo-element: backdrop-filter on .navbar itself would
   become the containing block for the fixed fullscreen mobile menu. */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.scrolled::before {
  opacity: 1;
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border-glow);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  background:
    linear-gradient(145deg, rgba(0, 200, 255, 0.24), rgba(139, 92, 246, 0.18)),
    rgba(5, 5, 16, 0.92);
  border: 1px solid rgba(0, 200, 255, 0.48);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-heading);
  position: relative;
  box-shadow:
    inset 0 0 16px rgba(0, 200, 255, 0.14),
    0 0 22px rgba(37, 99, 235, 0.2);
}

.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: var(--gradient-cyber);
  z-index: -1;
  opacity: 0.42;
  filter: blur(10px);
}

.nav-logo .logo-text {
  display: grid;
  gap: 3px;
  color: var(--text-heading);
  letter-spacing: 0;
  line-height: 1;
}

.nav-logo .logo-text strong {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: var(--text-heading);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1;
}

.nav-logo .logo-text strong::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  animation: logoNameSheen 5.5s ease-in-out infinite;
}

.nav-logo .logo-text span,
.footer-logo-text span {
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.45);
}

.nav-logo .logo-text small {
  display: block;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 650;
  letter-spacing: 1.7px;
  line-height: 1;
  text-transform: uppercase;
}

@keyframes logoNameSheen {
  0%, 58%, 100% {
    left: -45%;
    opacity: 0;
  }

  68% {
    opacity: 0.9;
  }

  82% {
    left: 112%;
    opacity: 0;
  }
}

.footer-logo-text {
  display: grid;
  gap: 2px;
  color: var(--text-heading);
  line-height: 1;
}

.footer-logo-text strong {
  display: block;
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.footer-logo-text small {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a,
.nav-dropdown-toggle {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--neon-cyan);
  background: rgba(0, 200, 255, 0.05);
}

.nav-links a.active::after,
.nav-dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-cyber) !important;
  color: #000 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4) !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after,
.nav-dropdown > .nav-dropdown-toggle::after {
  content: '\ea4e';
  font-family: 'remixicon';
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s;
}

.nav-dropdown:hover > a::after,
.nav-dropdown:hover > .nav-dropdown-toggle::after,
.nav-dropdown.open > a::after,
.nav-dropdown.open > .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(8, 12, 30, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 8px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-links .nav-dropdown > a.active::after,
.nav-links .nav-dropdown > .nav-dropdown-toggle.active::after {
  display: inline-block !important;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  transition: all 0.2s !important;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 200, 255, 0.06) !important;
  color: var(--neon-cyan) !important;
}

.nav-dropdown-menu a::before,
.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a.active {
  background: rgba(0, 200, 255, 0.08) !important;
  color: var(--neon-cyan) !important;
}

.nav-dropdown-menu a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--neon-cyan);
  opacity: 0.7;
}

.nav-dropdown-menu a:hover i {
  opacity: 1;
}

.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border-glow);
  margin: 4px 8px;
}

/* --- Animated SVG Logo --- */
.nav-logo .logo-icon {
  position: relative;
  overflow: hidden;
}

.nav-logo .logo-icon svg {
  width: 100%;
  height: 100%;
}

.hu-logo-mark {
  overflow: visible;
}

.hu-logo-plate {
  fill: rgba(2, 8, 18, 0.88);
  stroke: rgba(0, 200, 255, 0.9);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.45));
}

.hu-logo-edge,
.hu-logo-cut {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hu-logo-edge {
  stroke: rgba(139, 92, 246, 0.62);
  stroke-width: 1.15;
}

.hu-logo-cut {
  stroke: rgba(0, 200, 255, 0.34);
  stroke-width: 1.1;
}

.hu-logo-letters {
  fill: #f7fbff;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
}

.nav-logo:hover .hu-logo-plate,
.nav-logo:focus-visible .hu-logo-plate {
  stroke: var(--neon-green);
}

.logo-svg-ring {
  fill: none;
  stroke: url(#logoGradient);
  stroke-width: 2;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: logoRingDraw 2s ease forwards, logoRingSpin 8s linear infinite 2s;
  transform-origin: center;
}

@keyframes logoRingDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes logoRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-svg-text {
  fill: #04060f;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
}

.nav-logo .logo-icon:hover .logo-svg-ring {
  animation: logoRingDraw 0.5s ease forwards, logoRingSpin 2s linear infinite 0.5s;
}

/* --- Hero Name Animation --- */
.hero-name-animated {
  display: inline-block;
  overflow: hidden;
}

.hero-name-animated .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: charReveal 0.5s ease forwards;
}

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-name-animated .space {
  display: inline-block;
  width: 0.3em;
}

.hero-name-glow {
  position: relative;
}

.hero-name-glow::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
  animation: nameGlow 3s ease-in-out infinite;
}

@keyframes nameGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.hero-title .cyber-text {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-cyber);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 200, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
}

/* Hero Visual — 3D holographic scene */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
}

.shield-container {
  position: relative;
  width: 380px;
  height: 380px;
  transform-style: preserve-3d;
  will-change: transform;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.15);
}

/* Two rings orbit in tilted 3D planes, the third spins flat */
.shield-ring:nth-child(1) {
  inset: 0;
  border-style: dashed;
  animation: orbitTiltA 16s linear infinite;
}

.shield-ring:nth-child(2) {
  inset: 30px;
  border-color: rgba(139, 92, 246, 0.22);
  animation: orbitTiltB 12s linear infinite;
}

.shield-ring:nth-child(3) {
  inset: 60px;
  border-color: rgba(0, 102, 255, 0.18);
  animation: rotateRing 25s linear infinite;
}

/* Comet dots riding each ring */
.shield-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan), 0 0 30px rgba(0, 200, 255, 0.5);
}

.shield-ring:nth-child(2)::before {
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple), 0 0 30px rgba(139, 92, 246, 0.5);
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitTiltA {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes orbitTiltB {
  from { transform: rotateY(65deg) rotateZ(0deg); }
  to { transform: rotateY(65deg) rotateZ(-360deg); }
}

.shield-core {
  position: absolute;
  inset: 90px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.1), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(50px);
}

.shield-icon {
  font-size: 4rem;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.3));
}

/* Floating stat nodes — each sits at a different Z depth so the
   scene tilt produces true parallax */
.hero-stat-node {
  --tz: 60px;
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(10px);
  animation: floatNode 6s ease-in-out infinite;
}

.hero-stat-node .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.hero-stat-node .stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-stat-node:nth-child(5) {
  top: 10%;
  right: -20px;
  --tz: 90px;
  animation-delay: -1s;
}

.hero-stat-node:nth-child(6) {
  bottom: 15%;
  left: -10px;
  --tz: 45px;
  animation-delay: -3s;
}

.hero-stat-node:nth-child(7) {
  bottom: 5%;
  right: 10%;
  --tz: 120px;
  animation-delay: -5s;
}

@keyframes floatNode {
  0%, 100% { transform: translateZ(var(--tz, 0px)) translateY(0); }
  50% { transform: translateZ(var(--tz, 0px)) translateY(-12px); }
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  background: rgba(0, 200, 255, 0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Cyber Card --- */
.cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cyber);
  opacity: 0;
  transition: var(--transition-smooth);
}

.cyber-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.08);
}

.cyber-card:hover::before {
  opacity: 1;
}

.cyber-card .card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.cyber-card:hover .card-icon {
  background: rgba(0, 200, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
}

.cyber-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.cyber-card .card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cyber-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.cyber-card .card-link:hover {
  gap: 10px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Service Category --- */
.service-category {
  margin-bottom: 60px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glow);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--neon-cyan);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: auto;
}

/* --- Service List Item --- */
.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.service-list-item:hover {
  border-color: rgba(0, 200, 255, 0.3);
  background: var(--bg-card-hover);
}

.service-list-item .service-bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.service-list-item .service-name {
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.service-list-item .service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Training Cards --- */
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.training-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.08);
}

.training-card .card-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.05), rgba(139, 92, 246, 0.05));
  border-bottom: 1px solid var(--border-glow);
}

.training-card .card-body {
  padding: 24px 28px;
}

.training-card .duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-green);
  background: rgba(45, 212, 191, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.training-card .modules-list {
  list-style: none;
  padding: 0;
}

.training-card .modules-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.training-card .modules-list li::before {
  content: '\e157';
  font-family: 'remixicon';
  color: var(--neon-cyan);
  font-size: 0.8rem;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  border-color: rgba(0, 200, 255, 0.3);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 32px;
  width: 14px;
  height: 14px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
}

.about-image-frame img {
  width: 100%;
  height: auto; /* the width/height attrs otherwise fix the height and stretch the photo */
  display: block;
}

/* Blend the studio backdrop into the dark theme */
.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(4, 6, 15, 0.38));
  pointer-events: none;
}

body.light-mode .about-image-frame::after {
  content: none;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(139, 92, 246, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(0, 200, 255, 0.2);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cert-badge {
  padding: 6px 14px;
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

/* --- Contact Section --- */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.contact-panel,
.contact-side {
  background: rgba(15, 15, 30, 0.72);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-primary {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(28px, 4vw, 48px);
}

.contact-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.16), transparent 34%);
}

.contact-primary > * {
  position: relative;
  z-index: 1;
}

.contact-primary h2 {
  max-width: 640px;
  margin: 16px 0 14px;
  color: var(--text-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
}

.contact-primary p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-email-hero {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 28px 0 24px;
  padding: 16px 18px;
  color: var(--text-heading);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 200, 255, 0.06);
  transition: var(--transition-smooth);
  overflow-wrap: anywhere;
}

.contact-email-hero span {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--neon-cyan);
  background: rgba(0, 200, 255, 0.1);
}

.contact-email-hero:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 200, 255, 0.42);
  transform: translateY(-2px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-actions .btn-primary,
.contact-actions .btn-secondary {
  min-height: 48px;
}

.contact-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.contact-proof-grid div {
  padding: 16px;
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 10px;
  background: rgba(5, 10, 24, 0.52);
}

.contact-proof-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.contact-proof-grid strong {
  color: var(--text-heading);
  font-size: 0.94rem;
}

.contact-side {
  padding: 22px;
}

.contact-side .contact-info-card:last-of-type {
  margin-bottom: 22px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.contact-info-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
}

.contact-info-card .contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0, 200, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
}

.contact-info-card .contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.contact-info-card .contact-value {
  font-weight: 600;
  color: var(--text-heading);
}

.contact-value-link {
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-value-link:hover {
  color: var(--neon-cyan);
}

.contact-brief {
  padding: 20px;
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.48);
}

.contact-brief h3 {
  margin-bottom: 14px;
  color: var(--text-heading);
  font-size: 1rem;
}

.contact-brief ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-brief li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-brief i {
  color: var(--neon-cyan);
  margin-top: 1px;
}

.contact-consult {
  background: rgba(0, 200, 255, 0.018);
}

.contact-consult-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  background: rgba(15, 15, 30, 0.55);
}

.contact-consult-inner .section-title {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.contact-consult-inner p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-step {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.42);
}

.contact-step .process-number {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.contact-step h3 {
  color: var(--text-heading);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-step p {
  font-size: 0.82rem;
}

.contact-alert {
  padding: 60px 0;
  background: rgba(255, 45, 85, 0.03);
  border-top: 1px solid rgba(255, 45, 85, 0.1);
  border-bottom: 1px solid rgba(255, 45, 85, 0.1);
}

.contact-alert-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 20px;
  color: var(--neon-red);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid rgba(255, 45, 85, 0.22);
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.08);
}

.contact-alert-badge i {
  animation: pulse 2s ease-in-out infinite;
}

.contact-alert h2 {
  margin-bottom: 12px;
  color: var(--text-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.contact-alert p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-emergency-btn {
  background: linear-gradient(135deg, #ff2d55, #fbbf24) !important;
}

.contact-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.contact-section-heading .section-label {
  justify-content: center;
}

.contact-section-heading .section-subtitle {
  margin: 0 auto;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-faq-card {
  min-height: 190px;
}

.contact-faq-card .card-title {
  font-size: 1rem;
  line-height: 1.35;
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glow);
  background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cyber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #000;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-column ul a:hover {
  color: var(--neon-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--neon-cyan);
  text-decoration: none;
}

/* --- Reveal Animations --- */
/* Hidden state only applies when JS is running (html.js set by main.js),
   so content stays visible for no-JS visitors, printing, and crawlers. */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Typing Cursor --- */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--neon-cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Glitch Effect --- */
.glitch {
  position: relative;
}

.glitch:hover {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

/* --- Scanline Effect --- */
.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 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  position: relative;
  text-align: center;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gradient-cyber);
  border-radius: 1px;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-cyber);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 200, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
  transform: translateY(-3px);
}

/* --- Animated Gradient Border on Hover --- */
.cyber-card.gradient-border:hover {
  border-color: transparent;
  background-clip: padding-box;
}

.cyber-card.gradient-border {
  position: relative;
}

.cyber-card.gradient-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-blue), var(--neon-cyan));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 4s ease infinite;
  pointer-events: none;
}

.cyber-card.gradient-border:hover::after {
  opacity: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Neon Glow Text Hover --- */
.neon-hover:hover {
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5), 0 0 20px rgba(0, 200, 255, 0.3), 0 0 40px rgba(0, 200, 255, 0.1);
  color: var(--neon-cyan) !important;
  transition: all 0.3s ease;
}

/* --- Service Category Quick Nav --- */
.category-nav {
  position: sticky;
  top: 70px;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav .container {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  flex-shrink: 0;
}

.category-pill i {
  font-size: 0.9rem;
}

.category-pill:hover,
.category-pill.active {
  color: var(--neon-cyan);
  border-color: rgba(0, 200, 255, 0.4);
  background: rgba(0, 200, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.1);
}

/* --- Page Transition --- */
.page-transition {
  animation: pageIn 0.5s ease-out;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Magnetic Hover Effect on Buttons --- */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* --- Card Shimmer Loading Effect --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.cyber-card .card-icon {
  position: relative;
  overflow: hidden;
}

.cyber-card:hover .card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: inherit;
}

/* --- Stat Number Glow on Hover --- */
.stat-item:hover .stat-number {
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.4));
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.stat-item .stat-number {
  transition: all 0.3s ease;
}

/* --- Enhanced Service List Item Hover --- */
.service-list-item:hover .service-bullet {
  transform: scale(1.5);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
}

.service-list-item .service-bullet {
  transition: var(--transition-smooth);
}

/* --- Floating Label on Section Headers --- */
.section-label {
  position: relative;
  overflow: hidden;
}

.section-label::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--neon-cyan);
  vertical-align: middle;
  margin-left: 10px;
  opacity: 0.5;
}

/* --- Training Card Ribbon --- */
.training-card .card-header {
  position: relative;
}

.training-card:hover .duration {
  background: rgba(45, 212, 191, 0.15);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.1);
}

/* --- Hero Shield Pulse + 3D Float --- */
.shield-core {
  animation: shieldPulse 3s ease-in-out infinite, coreFloat 7s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 255, 0); }
  50% { box-shadow: 0 0 40px 10px rgba(0, 200, 255, 0.08); }
}

@keyframes coreFloat {
  0%, 100% { transform: translateZ(50px) translateY(0); }
  50% { transform: translateZ(50px) translateY(-10px); }
}

/* --- Cyber Threat Ticker --- */
.threat-ticker-bar {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(5, 5, 16, 0.9);
  border-top: 1px solid rgba(0, 200, 255, 0.08);
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
  padding: 10px 0;
  z-index: 50;
}

.threat-ticker-bar .ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(5,5,16,1) 80%, transparent);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.threat-ticker-bar .ticker-label .pulse-icon {
  width: 6px;
  height: 6px;
  background: var(--neon-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.threat-ticker-track {
  display: flex;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}

.threat-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.ticker-item .ticker-icon {
  font-size: 0.85rem;
}

.ticker-item .ticker-icon.critical { color: var(--neon-red); }
.ticker-item .ticker-icon.warning { color: var(--neon-orange); }
.ticker-item .ticker-icon.info { color: var(--neon-cyan); }
.ticker-item .ticker-icon.success { color: var(--neon-green); }

.ticker-item .ticker-tag {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-tag.critical { background: rgba(255,45,85,0.15); color: var(--neon-red); }
.ticker-tag.high { background: rgba(251,191,36,0.15); color: var(--neon-orange); }
.ticker-tag.medium { background: rgba(0,200,255,0.12); color: var(--neon-cyan); }
.ticker-tag.low { background: rgba(45,212,191,0.12); color: var(--neon-green); }

.ticker-divider {
  color: rgba(0, 200, 255, 0.15);
  padding: 0 6px;
  font-size: 0.6rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Engagement Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), var(--neon-blue), transparent);
  opacity: 0.2;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.06);
  border: 2px solid rgba(0, 200, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-cyan);
  transition: var(--transition-smooth);
}

.process-step:hover .process-number {
  background: rgba(0, 200, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.2);
  transform: scale(1.1);
}

.process-step .step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.process-step .step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid::before { display: none; }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cursor Glow Follower --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s;
  opacity: 0;
}

.cursor-glow.visible {
  opacity: 1;
}

/* --- Card 3D Tilt + Glare --- */
.tilt-card {
  will-change: transform;
}

.tilt-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  transition: transform 0.09s ease-out;
}

/* Pointer-tracked glare as a background layer (both card pseudo-elements
   are already in use for the top bar and gradient border) */
.tilt-card:hover {
  background-image: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.07),
    transparent 46%
  );
  background-repeat: no-repeat;
}

/* --- Staggered Reveal Animations (JS-gated, see html.js note above) --- */
html.js .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

html.js .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

html.js .reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Text Gradient Shimmer on Headings --- */
.section-title .highlight {
  position: relative;
  background-size: 200% auto;
  animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Glassmorphism Enhancement --- */
.cyber-card {
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Smooth Number Odometer Style --- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* --- Hero Badge Glow Pulse --- */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 255, 0); }
  50% { box-shadow: 0 0 15px 2px rgba(0, 200, 255, 0.15); }
}

/* --- Navbar Link Underline Animation --- */
.nav-links a,
.nav-dropdown-toggle {
  position: relative;
}

.nav-links a::before,
.nav-dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--neon-cyan);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover::before,
.nav-links a.active::before,
.nav-dropdown-toggle:hover::before,
.nav-dropdown-toggle.active::before {
  width: 60%;
  left: 20%;
}

.nav-links a.active::after,
.nav-dropdown-toggle.active::after {
  display: none;
}

/* --- Category Header Hover Line --- */
.category-header {
  transition: var(--transition-smooth);
}

.category-header:hover {
  padding-left: 8px;
}

.category-header:hover .category-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
}

.category-icon {
  transition: var(--transition-smooth);
}

/* --- Footer Link Arrow Animation --- */
.footer-column ul a {
  position: relative;
}

.footer-column ul a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--neon-cyan);
  margin-right: 0;
  opacity: 0;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.footer-column ul a:hover::before {
  opacity: 1;
  margin-right: 6px;
}

.footer-column ul a:hover {
  padding-left: 0;
}

/* --- Contact Card Icon Bounce --- */
.contact-info-card:hover .contact-icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
}

/* --- Training Card Number Badge --- */
.training-card {
  counter-increment: training;
}

.training-card .card-header::before {
  content: counter(training, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 200, 255, 0.06);
  line-height: 1;
}

.training-grid {
  counter-reset: training;
}

/* --- Smooth Hover Lift for All Interactive --- */
.service-list-item,
.contact-info-card,
.training-card,
.cyber-card,
.category-pill {
  will-change: transform;
}

/* --- Loading Screen (optional) --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-glow);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 200, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
  transform: translateY(-3px);
}

/* --- Light Theme --- */
body.light-mode {
  --bg-primary: #f0f2f5;
  --bg-secondary: #e8eaed;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #334155;
  --text-secondary: #475569; /* slate-600: keeps muted text at >7:1 on the light bg */
  --text-heading: #0f172a;
  --border-glow: rgba(37, 99, 235, 0.15);
  --neon-cyan: #2563eb;
}

body.light-mode .cyber-bg,
body.light-mode #matrix-canvas,
body.light-mode #particles-canvas,
body.light-mode .circuit-lines,
body.light-mode .data-stream,
body.light-mode .radar-sweep,
body.light-mode .threat-dots,
body.light-mode .scanline-overlay {
  display: none;
}

body.light-mode .cursor-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04), transparent 70%);
}

body.light-mode .navbar::before {
  background: rgba(255, 255, 255, 0.92);
}

body.light-mode .navbar.scrolled {
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

/* Light-mode legibility: the logo tagline gradient is tuned for dark bg */
body.light-mode .nav-logo .logo-text small,
body.light-mode .footer-logo-text small {
  color: #475569;
  background: linear-gradient(90deg, #475569, #0f172a, #2563eb, #475569);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-mode .site-footer .footer-logo-text small {
  color: rgba(200, 214, 229, 0.74);
  background: linear-gradient(90deg, rgba(200, 214, 229, 0.7), #f0f4ff, #00c8ff, rgba(200, 214, 229, 0.7));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-mode .nav-logo .logo-text span,
body.light-mode .footer-logo-text span {
  text-shadow: none;
}

body.light-mode .hero-name-glow::after {
  opacity: 0.12;
  animation: none;
}

body.light-mode .nav-logo .logo-text {
  color: #0f172a;
}

body.light-mode .hero-badge {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}

body.light-mode .stats-bar {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.1);
}

body.light-mode .site-footer {
  background: rgba(15, 23, 42, 0.95);
  --text-primary: #ccd6e8;
  --text-secondary: #8b9cc0;
  --text-heading: #f0f4ff;
  --border-glow: rgba(0, 200, 255, 0.12);
}

body.light-mode .site-footer .footer-brand p,
body.light-mode .site-footer .footer-column ul a,
body.light-mode .site-footer .footer-bottom {
  color: #8b9cc0;
}

body.light-mode .site-footer .footer-column h4,
body.light-mode .site-footer .footer-logo .logo-text {
  color: #f0f4ff;
}

body.light-mode .cyber-card,
body.light-mode .service-list-item,
body.light-mode .training-card,
body.light-mode .contact-panel,
body.light-mode .contact-side,
body.light-mode .contact-consult-inner,
body.light-mode .contact-info-card,
body.light-mode .contact-brief,
body.light-mode .contact-step,
body.light-mode .contact-proof-grid div {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Professional Personal Brand Logo --- */
.nav-logo {
  gap: 12px;
}

.nav-logo .logo-icon,
.footer-logo .logo-icon {
  width: 48px;
  height: 48px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(0, 200, 255, 0.5);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(145deg, rgba(0, 200, 255, 0.2), rgba(139, 92, 246, 0.14)),
    rgba(5, 5, 16, 0.94);
  box-shadow:
    inset 0 0 18px rgba(0, 200, 255, 0.15),
    0 0 24px rgba(37, 99, 235, 0.22);
}

.nav-logo .logo-icon::before,
.footer-logo .logo-icon::before {
  position: absolute;
  inset: -4px;
  z-index: 0;
  content: "";
  padding: 2px;
  border-radius: 16px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 200, 255, 0.9) 42deg,
    transparent 86deg,
    transparent 180deg,
    rgba(139, 92, 246, 0.8) 224deg,
    transparent 270deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.68;
  animation: huHudRotate 6.5s linear infinite;
}

.nav-logo .logo-icon::after,
.footer-logo .logo-icon::after {
  position: absolute;
  inset: 4px;
  z-index: 1;
  content: "";
  border-radius: 10px;
  background:
    linear-gradient(115deg, transparent 0%, transparent 36%, rgba(0, 200, 255, 0.3) 48%, transparent 60%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
  opacity: 0.42;
  animation: huPanelSweep 3.7s ease-in-out infinite;
  pointer-events: none;
}

.nav-logo .logo-text {
  display: grid;
  gap: 3px;
  min-width: 224px;
  line-height: 1;
}

.nav-logo .logo-text strong,
.footer-logo-text strong {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.nav-logo .logo-text strong::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 32%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  transform: skewX(-18deg);
  animation: logoNameSheen 5.2s ease-in-out infinite;
}

.nav-logo .logo-text span,
.footer-logo-text span {
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.42);
}

.nav-logo .logo-text small,
.footer-logo-text small {
  display: block;
  width: max-content;
  max-width: 100%;
  color: rgba(200, 214, 229, 0.74);
  background: linear-gradient(90deg, rgba(200, 214, 229, 0.7), #f0f4ff, var(--neon-cyan), rgba(200, 214, 229, 0.7));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.15;
  position: relative;
  text-transform: uppercase;
  animation: huSloganSweep 6.4s ease-in-out infinite;
}

.nav-logo .logo-text small::before,
.footer-logo-text small::before {
  display: none;
  content: none;
}

.nav-logo .logo-text small::after,
.footer-logo-text small::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.9), rgba(139, 92, 246, 0.58), transparent);
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.38);
  transform: scaleX(0.2);
  transform-origin: left;
  animation: huSloganRail 4.8s ease-in-out infinite;
}

.hu-logo-mark {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hu-logo-aura {
  fill: rgba(2, 8, 18, 0.92);
  stroke: rgba(0, 200, 255, 0.94);
  stroke-width: 1.7;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.5));
  transform-origin: center;
  animation: huShieldPulse 4.6s ease-in-out infinite;
}

.hu-logo-inner {
  fill: rgba(0, 200, 255, 0.08);
  stroke: rgba(139, 92, 246, 0.62);
  stroke-width: 1.15;
  stroke-linejoin: round;
  transform-origin: center;
  animation: huInnerSignal 5.8s ease-in-out infinite;
}

.hu-logo-scan {
  fill: none;
  stroke: rgba(0, 200, 255, 0.72);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 10 38;
  animation: huScanLine 3.1s ease-in-out infinite;
}

.hu-logo-letters {
  fill: #f7fbff;
  font-family: var(--font-primary);
  font-size: 12.8px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
  animation: huLetterSignal 4.6s ease-in-out infinite;
}

.nav-logo:hover .hu-logo-aura,
.nav-logo:focus-visible .hu-logo-aura {
  stroke: var(--neon-green);
}

@keyframes huShieldPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.94;
    filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.44));
  }

  50% {
    transform: scale(1.035);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.68));
  }
}

@keyframes huScanLine {
  0%, 18% {
    stroke-dashoffset: 54;
    opacity: 0;
  }

  36%, 62% {
    opacity: 1;
  }

  84%, 100% {
    stroke-dashoffset: -54;
    opacity: 0;
  }
}

@keyframes huHudRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes huPanelSweep {
  0%, 18%, 100% {
    opacity: 0.2;
    transform: translateX(-8px);
  }

  46% {
    opacity: 0.58;
    transform: translateX(7px);
  }
}

@keyframes huInnerSignal {
  0%, 100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes huLetterSignal {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(0, 200, 255, 0));
  }

  44%, 52% {
    filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.75));
  }
}

@keyframes huSloganSweep {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.72;
    text-shadow: 0 0 0 rgba(0, 200, 255, 0);
  }

  48%, 62% {
    background-position: 100% 50%;
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.28);
  }
}

@keyframes huSloganRail {
  0%, 100% {
    opacity: 0.24;
    transform: scaleX(0.18);
  }

  48% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@media (max-width: 520px) {
  .nav-logo .logo-icon {
    width: 42px;
    height: 42px;
  }

  .nav-logo .logo-text {
    min-width: 0;
  }

  .nav-logo .logo-text strong {
    font-size: 1.05rem;
  }

  .nav-logo .logo-text small {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* --- Haseen Usman Wordmark Refinement --- */
.nav-logo .logo-text,
.footer-logo-text {
  position: relative;
}

.nav-logo .logo-text::after {
  position: absolute;
  top: 21px;
  left: 0;
  width: min(136px, 100%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 200, 255, 0), rgba(0, 200, 255, 0.85), rgba(139, 92, 246, 0.55), rgba(0, 200, 255, 0));
  box-shadow: 0 0 9px rgba(0, 200, 255, 0.38);
  transform-origin: left;
  animation: huWordmarkRail 4.8s ease-in-out infinite;
}

.nav-logo .logo-text strong {
  font-size: 1.24rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(240, 244, 255, 0.1);
}

.nav-logo .logo-text span {
  background: linear-gradient(90deg, var(--neon-cyan), #7be7ff, var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: huNamePulse 4.4s ease-in-out infinite;
}

.nav-logo .logo-text small {
  padding-top: 2px;
  color: rgba(200, 214, 229, 0.72);
}

.footer-logo-text strong {
  font-weight: 900;
}

@keyframes huWordmarkRail {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.64);
  }

  48% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes huNamePulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.2));
  }

  50% {
    filter: drop-shadow(0 0 11px rgba(0, 200, 255, 0.58));
  }
}

/* --- Final Logo Shield + Typing Slogan Override --- */
.nav-logo .logo-text::after,
.nav-logo .logo-text small::after,
.footer-logo-text small::after {
  content: none;
}

.nav-logo .logo-text small,
.footer-logo-text small {
  width: auto;
  max-width: 32ch;
  overflow: hidden;
  border-right: 1px solid rgba(0, 200, 255, 0.92);
  color: rgba(218, 231, 236, 0.88);
  background: none;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.14);
  white-space: nowrap;
  animation:
    huSloganTyping 8.2s steps(32, end) infinite,
    huTypingCaret 0.86s steps(2, end) infinite;
}

.hu-logo-aura {
  fill: rgba(2, 8, 18, 0.95);
  stroke: rgba(0, 200, 255, 0.96);
  stroke-width: 1.85;
  filter: drop-shadow(0 0 7px rgba(0, 200, 255, 0.58));
}

.hu-logo-inner {
  fill: rgba(0, 200, 255, 0.07);
  stroke: rgba(139, 92, 246, 0.72);
  stroke-width: 1.2;
}

.hu-logo-crown,
.hu-logo-left,
.hu-logo-right,
.hu-logo-corner {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hu-logo-crown,
.hu-logo-corner {
  stroke: rgba(0, 200, 255, 0.9);
  stroke-width: 1.35;
  animation: huCornerBlink 3.4s ease-in-out infinite;
}

.hu-logo-left,
.hu-logo-right {
  stroke: #f7fbff;
  stroke-width: 2.25;
  stroke-dasharray: 66;
  stroke-dashoffset: 66;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.56));
  animation: huMonogramDraw 5.8s ease-in-out infinite;
}

.hu-logo-right {
  animation-delay: 0.16s;
}

.hu-logo-scan {
  stroke: rgba(0, 200, 255, 0.78);
  stroke-width: 1.35;
  stroke-dasharray: 9 40;
  animation: huScanLine 2.9s ease-in-out infinite;
}

@keyframes huMonogramDraw {
  0%, 12% {
    stroke-dashoffset: 66;
    opacity: 0.24;
  }

  34%, 74% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  92%, 100% {
    stroke-dashoffset: -66;
    opacity: 0.32;
  }
}

@keyframes huCornerBlink {
  0%, 100% {
    opacity: 0.42;
  }

  44%, 62% {
    opacity: 1;
  }
}

@keyframes huSloganTyping {
  0%, 9% {
    max-width: 0;
    opacity: 0.78;
  }

  42%, 72% {
    max-width: 32ch;
    opacity: 1;
  }

  92%, 100% {
    max-width: 0;
    opacity: 0.78;
  }
}

@keyframes huTypingCaret {
  0%, 100% {
    border-color: transparent;
  }

  50% {
    border-color: rgba(0, 200, 255, 0.92);
  }
}

/* --- Professional Shield Crest Final Pass --- */
.nav-logo .logo-icon,
.footer-logo .logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(0, 200, 255, 0.16), rgba(139, 92, 246, 0.1)),
    rgba(4, 8, 18, 0.96);
  box-shadow:
    inset 0 0 16px rgba(0, 200, 255, 0.14),
    0 0 18px rgba(37, 99, 235, 0.18);
}

.nav-logo .logo-icon::before,
.footer-logo .logo-icon::before {
  opacity: 0.46;
  animation-duration: 9s;
}

.nav-logo .logo-icon::after,
.footer-logo .logo-icon::after {
  inset: 5px;
  opacity: 0.24;
  animation-duration: 5.8s;
}

.hu-logo-shadow {
  fill: rgba(0, 0, 0, 0.24);
  transform: translate(1px, 1.4px);
}

.hu-logo-aura {
  fill: rgba(5, 10, 24, 0.98);
  stroke: rgba(0, 200, 255, 0.98);
  stroke-width: 1.9;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.46));
  animation: huShieldBreath 5.6s ease-in-out infinite;
}

.hu-logo-inner {
  fill: rgba(0, 200, 255, 0.055);
  stroke: rgba(125, 231, 255, 0.62);
  stroke-width: 1.05;
  stroke-linejoin: round;
  animation: none;
}

.hu-logo-letters {
  fill: #f7fbff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.34));
  animation: huInitialGlow 5.6s ease-in-out infinite;
}

.hu-logo-scan {
  fill: none;
  stroke: rgba(0, 200, 255, 0.58);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 7 44;
  animation: huScanLine 4.2s ease-in-out infinite;
}

@keyframes huShieldBreath {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.38));
  }

  50% {
    filter: drop-shadow(0 0 9px rgba(0, 200, 255, 0.62));
  }
}

@keyframes huInitialGlow {
  0%, 100% {
    opacity: 0.94;
  }

  50% {
    opacity: 1;
  }
}

body.light-mode .back-to-top,
body.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.14);
  color: #2563eb; /* clear blue icon on white instead of washed-out cyan */
}

body.light-mode .theme-toggle:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

body.light-mode .scroll-progress {
  background: linear-gradient(90deg, #2563eb, #2563eb, #6366f1);
}

body.light-mode .category-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

body.light-mode .page-header::after {
  background: linear-gradient(90deg, #2563eb, #2563eb, #6366f1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-description { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-shell,
  .contact-consult-inner {
    grid-template-columns: 1fr;
  }
  .contact-primary {
    min-height: auto;
  }
  .contact-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to the fullscreen menu below 1140px — the link row
   (Cyber Services + AI Services) no longer fits tablet widths */
@media (max-width: 1140px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links .nav-dropdown {
    width: min(360px, 88vw);
    text-align: center;
  }
  .nav-links .nav-dropdown > a,
  .nav-links .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links .nav-dropdown-menu {
    position: static;
    left: auto;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 8px;
    margin-top: 0;
    border-color: transparent;
    background: rgba(8, 12, 30, 0.72);
    box-shadow: none;
  }
  .nav-links .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }
  .nav-links .nav-dropdown.open .nav-dropdown-menu {
    max-height: 520px;
    padding: 8px;
    margin-top: 8px;
    border-color: var(--border-glow);
  }
  .nav-toggle { display: flex; z-index: 1001; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .contact-proof-grid,
  .contact-steps,
  .contact-faq-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel,
  .contact-side,
  .contact-consult-inner {
    border-radius: 12px;
  }
  .contact-actions {
    flex-direction: column;
  }
  .contact-actions .btn-primary,
  .contact-actions .btn-secondary,
  .contact-consult-inner > .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .contact-email-hero {
    width: 100%;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   BACKGROUND ENGINE v2 — 3D neural field
   ============================================ */

/* Retired decorative layers: replaced by the depth-projected neural
   constellation on #particles-canvas (see Neural3D in main.js).
   Markup is still present on every page; hidden here so no per-page
   HTML edits are needed. */
.circuit-lines,
.data-stream,
.threat-dots,
.radar-sweep,
.scanline-overlay,
#matrix-canvas {
  display: none;
}

/* Typing line keeps its own reserved space so the rotating word never
   reflows the hero as it types and deletes */
.typing-line {
  display: block;
  min-height: 2.25em;
}

@media (max-width: 480px) {
  .typing-line {
    min-height: 3.35em;
  }
}

/* --- Reduced motion: static frame, no perpetual animation --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  html.js .reveal,
  html.js .reveal-up,
  html.js .reveal-scale,
  html.js .reveal-left,
  html.js .reveal-right {
    opacity: 1;
    transform: none;
  }

  .cyber-bg .grid-overlay,
  .cyber-bg .glow-orb {
    animation: none;
  }
}

/* Floating action buttons: tighter and smaller on mobile so they
   don't sit on top of hero copy */
@media (max-width: 768px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    bottom: 74px;
    right: 12px;
    font-size: 1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 24px;
    right: 12px;
    font-size: 1rem;
  }
}

/* --- Collapsible service categories (services directory) ---
   JS-gated: without JS every category stays fully expanded. */
html.js .service-category.collapsible .services-grid,
html.js .service-category.collapsible > .section-subtitle {
  display: none;
}

html.js .service-category.collapsible.open .services-grid {
  display: grid;
}

html.js .service-category.collapsible.open > .section-subtitle {
  display: block;
}

html.js .service-category.collapsible {
  margin-bottom: 18px;
}

html.js .service-category.collapsible .category-header {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

html.js .service-category.collapsible.open .category-header {
  margin-bottom: 30px;
}

html.js .service-category.collapsible .category-header::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--neon-cyan);
  border-bottom: 2px solid var(--neon-cyan);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 14px;
  flex-shrink: 0;
}

html.js .service-category.collapsible.open .category-header::after {
  transform: rotate(225deg);
}

/* Collapsed sections tighten up so the directory scans as a list */
html.js .section:has(.service-category.collapsible:not(.open)) {
  padding: 26px 0;
}

/* --- Logo mark v4: filled gradient shield, H knocked out (negative space) ---
   The shield path carries its own inline gradient fill + mask (see the SVG),
   so CSS only handles the hover glow. Container chrome is disabled below. */
.hu-logo-mark {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .hu-logo-mark,
.footer-logo:hover .hu-logo-mark {
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.55));
  transform: scale(1.05);
}

/* Strip the old container chrome: glow box, conic sweep, sheen */
.nav-logo .logo-icon,
.footer-logo .logo-icon,
.footer-brand .footer-logo .logo-icon {
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.nav-logo .logo-icon::before,
.nav-logo .logo-icon::after,
.footer-logo .logo-icon::before,
.footer-logo .logo-icon::after {
  display: none;
}

/* ============================================================
   DESIGN SYSTEM v3 — full visual redesign layer
   Space Grotesk display type, floating glass navbar, HUD hero
   framing, refined surfaces. Overrides the earlier base by
   cascade order; class names and markup are unchanged.
   ============================================================ */

:root {
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* --- Display typography --- */
.hero-title,
.section-title,
.category-title,
.card-title,
.step-title,
.logo-text strong,
.footer-logo-text strong {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1.06;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.card-title {
  letter-spacing: 0;
}

/* --- Floating glass navbar --- */
.navbar {
  top: 10px;
  left: 12px;
  right: 12px;
  width: auto;
  padding: 8px 0;
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 16px;
}

.navbar::before {
  border-radius: inherit;
  background: rgba(6, 9, 20, 0.72);
  opacity: 1;
}

.navbar.scrolled {
  border-bottom: 1px solid rgba(0, 200, 255, 0.14);
  padding: 6px 0;
}

.navbar.scrolled::before {
  background: rgba(6, 9, 20, 0.9);
}

body.light-mode .navbar {
  border-color: rgba(37, 99, 235, 0.16);
}

body.light-mode .navbar::before {
  background: rgba(255, 255, 255, 0.82);
}

body.light-mode .navbar.scrolled::before {
  background: rgba(255, 255, 255, 0.94);
}

/* Hero clears the floating bar */
.hero {
  padding-top: 96px;
}

/* --- Section label: engineered marker --- */
.section-label {
  letter-spacing: 3px;
  font-size: 0.74rem;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-cyber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-label::after {
  width: 46px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  opacity: 0.6;
}

/* --- Surfaces: refined glass cards --- */
.cyber-card,
.service-list-item,
.training-card,
.contact-panel,
.contact-side,
.dash-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 34%), var(--bg-card);
  border-color: rgba(148, 178, 255, 0.1);
  border-radius: 18px;
}

.cyber-card:hover {
  border-color: rgba(0, 200, 255, 0.32);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 200, 255, 0.08),
    0 8px 30px rgba(0, 200, 255, 0.07);
}

body.light-mode .cyber-card,
body.light-mode .service-list-item,
body.light-mode .training-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.1);
}

/* --- Buttons: luminous, engineered --- */
.btn-primary,
.btn-secondary {
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 200, 255, 0.22);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* --- HUD corner brackets on the hero scene --- */
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
  opacity: 0.55;
}

.hero-visual::before {
  top: 4%;
  left: 6%;
  border-top: 1px solid var(--neon-cyan);
  border-left: 1px solid var(--neon-cyan);
}

.hero-visual::after {
  bottom: 4%;
  right: 6%;
  border-bottom: 1px solid var(--neon-purple);
  border-right: 1px solid var(--neon-purple);
}

/* --- Page headers: focused glow stage --- */
.page-header {
  padding: 150px 0 64px;
  background:
    radial-gradient(ellipse 62% 100% at 50% 0%, rgba(0, 200, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 80% at 50% 10%, rgba(139, 92, 246, 0.06), transparent 70%);
}

/* --- Depth vignette over the whole scene --- */
.cyber-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.34) 100%);
  pointer-events: none;
}

body.light-mode .cyber-bg::after {
  content: none;
}

/* --- Stats: instrument panel feel --- */
.stat-item .stat-number {
  font-size: 2.8rem;
}

.stats-grid .stat-item {
  position: relative;
}

.stats-grid .stat-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 200, 255, 0.25), transparent);
}

/* --- Footer: anchored panel --- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 13, 29, 0.6), rgba(4, 6, 15, 0.95));
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.4), rgba(139, 92, 246, 0.4), transparent);
}

/* --- Category headers (services directory) --- */
.category-title {
  font-size: 1.4rem;
}

html.js .service-category.collapsible .category-header {
  padding: 18px 20px;
  border: 1px solid rgba(148, 178, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}

html.js .service-category.collapsible .category-header:hover {
  border-color: rgba(0, 200, 255, 0.3);
  padding-left: 26px;
}

html.js .service-category.collapsible.open .category-header {
  border-color: rgba(0, 200, 255, 0.25);
}

html.js .section:has(.service-category.collapsible:not(.open)) {
  padding: 12px 0;
}

/* --- Nav links: quiet until engaged --- */
.nav-links a,
.nav-dropdown-toggle {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.nav-cta {
  border-radius: 10px !important;
}

/* --- Testimonial / FAQ cards inherit surface; tighten quotes --- */
.contact-faq-card .card-title {
  font-size: 1.02rem;
}

/* --- Reduced motion: kill the new sheen --- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after {
    display: none;
  }
}

/* --- AI Core globe canvas (hero showpiece) --- */
#ai-core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Capability marquee --- */
.cap-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.cap-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: capScroll 46s linear infinite;
}

.cap-track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(139, 156, 192, 0.75);
  white-space: nowrap;
}

.cap-track i {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--gradient-cyber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@keyframes capScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cap-track {
    animation: none;
  }
}

body.light-mode .cap-track span {
  color: rgba(71, 85, 105, 0.8);
}

/* --- Accessibility pass (ui-ux-pro-max audit) --- */

/* Visible keyboard focus everywhere; the old rules targeted the
   removed shield-logo classes, leaving no focus indicators at all */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--text-heading);
}

/* 44px minimum touch target for the hamburger (spans were 24px wide) */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Skip link for keyboard users: 20+ nav links stand between Tab and content */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--bg-secondary);
  color: var(--text-heading);
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Hover nudge without layout shift: transform instead of padding growth */
.category-header:hover {
  padding-left: 0;
  transform: translateX(6px);
}

html.js .service-category.collapsible .category-header:hover {
  padding-left: 20px;
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .category-header:hover {
    transform: none;
  }
}
