/* ========================================================================= */
/* We Secure Live — Official RED, WHITE & BLACK Theme & High-FX Stylesheet    */
/* ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
  --theme-red: #DC2626;
  --theme-red-bright: #EF4444;
  --theme-red-hover: #B91C1C;
  --theme-black: #000000;
  --theme-dark: #0A0A0A;
  --theme-charcoal: #121212;
  --theme-white: #FFFFFF;
  --theme-light: #FAFBFD;
  --theme-border: #E5E7EB;
  --theme-border-dark: #262626;
  --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
  font-family: var(--font-family-primary);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0A0A0A;
  background-color: #FAFBFD;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Monospace preservation for security telemetry, clocks and timecodes */
.font-mono, [class*="font-mono"], code, pre, kbd, samp {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.font-sans, [class*="font-sans"], .font-poppins {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ========================================================================= */
/* 1. LASER SCANNING BEAMS (Horizontal & Bounding Box)                       */
/* ========================================================================= */
@keyframes laserSweepVertical {
  0% { top: -2%; opacity: 0; }
  15% { opacity: 0.9; }
  50% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { top: 102%; opacity: 0; }
}

.laser-scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.2) 15%, #ef4444 50%, rgba(239, 68, 68, 0.2) 85%, transparent 100%);
  box-shadow: 0 0 15px 2px #ef4444, 0 0 30px 4px rgba(220, 38, 38, 0.6);
  animation: laserSweepVertical 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 25;
}

/* 2. Target Box Crosshair Corner Brackets */
.hud-corner-tl {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #ef4444;
  border-left: 3px solid #ef4444;
}

.hud-corner-tr {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-top: 3px solid #ef4444;
  border-right: 3px solid #ef4444;
}

.hud-corner-bl {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 3px solid #ef4444;
  border-left: 3px solid #ef4444;
}

.hud-corner-br {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 3px solid #ef4444;
  border-right: 3px solid #ef4444;
}

/* 3. Radar Scanning Sweep Animation */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-sweep {
  position: relative;
  overflow: hidden;
}

.radar-sweep::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(220, 38, 38, 0.4) 0deg, rgba(220, 38, 38, 0) 60deg, transparent 360deg);
  transform-origin: 0 0;
  animation: radarSweep 3s linear infinite;
  pointer-events: none;
}

/* 4. Pulsing Beacon Glow (Red & Green) */
@keyframes beaconPulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.85); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.beacon-pulse {
  animation: beaconPulseRed 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes beaconPulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.beacon-pulse-green {
  animation: beaconPulseGreen 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* 5. Button Shimmer / Sheen Effect */
@keyframes buttonSheen {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.btn-sheen {
  position: relative;
  overflow: hidden;
}

.btn-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%) skewX(-15deg);
  transition: none;
}

.btn-sheen:hover::after {
  animation: buttonSheen 1.2s ease-in-out infinite;
}

/* 6. Glowing Card Borders & Elevation FX (Red, White, Black) */
.glow-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -10px rgba(220, 38, 38, 0.18), 0 0 0 2px rgba(220, 38, 38, 0.6);
}

.dark-glow-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.95), 0 0 30px rgba(220, 38, 38, 0.5);
}

/* 7. Vector Grid Background Patterns */
.cyber-grid-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.cyber-grid-dark {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* 8. Night Vision Security Simulation Effects */
@keyframes irBlink {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 16px #ef4444, 0 0 28px #dc2626; }
}

.ir-blinking-led {
  animation: irBlink 1.4s ease-in-out infinite;
}

@keyframes subtleRedAlert {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.45; }
}

.subtle-red-alert-flash {
  animation: subtleRedAlert 2.2s ease-in-out infinite;
}

/* 9. Audio Equalizer Dancing Bars */
@keyframes eqBar1 {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}
@keyframes eqBar2 {
  0%, 100% { height: 16px; }
  50% { height: 6px; }
}
@keyframes eqBar3 {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}
@keyframes eqBar4 {
  0%, 100% { height: 20px; }
  50% { height: 10px; }
}

.eq-bar-1 { animation: eqBar1 0.45s ease-in-out infinite; }
.eq-bar-2 { animation: eqBar2 0.35s ease-in-out infinite 0.1s; }
.eq-bar-3 { animation: eqBar3 0.5s ease-in-out infinite 0.15s; }
.eq-bar-4 { animation: eqBar4 0.4s ease-in-out infinite 0.05s; }

/* 10. Neon Text Glow */
.red-glow-text {
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.75), 0 0 30px rgba(239, 68, 68, 0.4);
}

/* 11. Scanline Overlay Effect for Live HUD */
.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}

/* 12. Floating Levitation Effect */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

/* 13. Mobile UX & Touch Optimizations */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }
  
  .glow-card:hover, .dark-glow-card:hover {
    transform: none;
  }
  
  input[type=range]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* 14. Scrollbar Polish in Red, White, Black */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
  background: #DC2626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #EF4444;
}

/* 15. Continuous Infinite Marquee Slider */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 1.5rem;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* ========================================================================= */
/* 16. 3D TRANSFORMS, PERSPECTIVE & TILT SYSTEM                              */
/* ========================================================================= */
.perspective-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tilt-card-3d {
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card-3d:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) scale3d(1.02, 1.02, 1.02);
  box-shadow: 0 30px 60px -15px rgba(220, 38, 38, 0.25), 0 0 25px rgba(220, 38, 38, 0.4);
}

.preserve-3d {
  transform-style: preserve-3d;
}

.translate-z-10 {
  transform: translateZ(20px);
}

.translate-z-20 {
  transform: translateZ(40px);
}

/* 17. SCROLL REVEAL ANIMATIONS (IntersectionObserver Optimized) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-slide-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Delay Utility Classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* 18. 3D RADAR SCANNER & PULSE RINGS */
@keyframes sonarPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.sonar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 68, 68, 0.7);
  animation: sonarPulse 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

.sonar-ring-2 {
  animation-delay: 1s;
}

.sonar-ring-3 {
  animation-delay: 2s;
}

/* 19. AMBIENT GLOW ORB BACKGROUNDS */
.ambient-glow-red {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

/* 20. GLASSMORPHISM CARDS */
.glass-obsidian {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-white {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* 21. INTERACTIVE LIVE WAVEFORM SOUND EFFECT */
@keyframes waveMotion {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1.2);
  }
}

.wave-bar {
  width: 3px;
  background: #EF4444;
  border-radius: 2px;
  animation: waveMotion 0.8s ease-in-out infinite alternate;
}

/* 23. GOVERNMENT CERTIFICATION SLIDER MARQUEE */
@keyframes certMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cert-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cert-slider-container::before,
.cert-slider-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.cert-slider-container::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0A 0%, rgba(10, 10, 10, 0) 100%);
}

.cert-slider-container::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0A 0%, rgba(10, 10, 10, 0) 100%);
}

.cert-slider-track {
  display: flex;
  width: max-content;
  animation: certMarqueeScroll 28s linear infinite;
}

.cert-slider-track:hover {
  animation-play-state: paused;
}

/* 24. COUNTRY FLAG SLIDER MARQUEE */
@keyframes flagMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.flag-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
  -webkit-overflow-scrolling: touch;
}

.flag-slider-container::-webkit-scrollbar {
  height: 4px;
}

.flag-slider-container::-webkit-scrollbar-track {
  background: #111827;
  border-radius: 4px;
}

.flag-slider-container::-webkit-scrollbar-thumb {
  background: #DC2626;
  border-radius: 4px;
}

.flag-slider-track {
  display: flex;
  width: max-content;
  animation: flagMarqueeScroll 48s linear infinite;
}

.flag-slider-track:hover {
  animation-play-state: paused;
}

.flag-card {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: #111418;
  border: 1px solid #262c36;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.flag-card:hover {
  border-color: #DC2626;
  background: #181d24;
  transform: translateY(-1px);
}

.flag-img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
  display: block;
}

/* ========================================================================= */
/* 25. MOBILE ERGONOMICS & RESPONSIVE TOUCH RULES                            */
/* ========================================================================= */
@media (max-width: 640px) {
  /* Prevent awkward line height in mobile headlines */
  h1, .text-hero {
    line-height: 1.15 !important;
    word-break: break-word;
  }

  /* Safe tap target sizes */
  button, .btn-sheen, [role="button"], input[type="submit"] {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Compact HUD bars on small viewports */
  .font-mono {
    letter-spacing: -0.01em;
  }

  /* Prevent 3D transforms from causing horizontal scrollbars on mobile */
  .perspective-container {
    perspective: none !important;
  }
  
  .tilt-card-3d {
    transform: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
  }

  /* Ensure smooth horizontal momentum scrolling for all slider containers */
  .flag-slider-container, .cert-slider-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* iOS Safe Area Padding Support */
.pb-safe {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

* {
  -webkit-tap-highlight-color: transparent;
}



