/* ==========================================================================
   BDShield - Data Protection Engineering
   Design System: Architectural Integrity
   ========================================================================== */

:root {
  /* Surface & Canvas */
  --bg-canvas: #0b0d10;
  --surface-base: #111317;
  --surface-container-lowest: #0c0e12;
  --surface-container-low: #1a1c20;
  --surface-container: #1e2024;
  --surface-container-high: #282a2e;
  --surface-container-highest: #333539;
  --surface-bright: #37393e;

  /* Typography Colors */
  --text-on-surface: #e2e2e8;
  --text-variant: #c2c6d8;
  --text-muted: #8c90a1;
  --text-dark: #001849;

  /* Accents & Signals */
  --primary-blue: #0066ff;
  --primary-tint: #b3c5ff;
  --primary-hover: #0054d6;
  --secondary-cyan: #00f2d1;
  --secondary-tint: #c7fff0;
  --secondary-dim: #00dfc1;
  --tertiary-orange: #ffb59d;
  --error-red: #ffb4ab;
  --error-dark: #93000a;

  /* Technical Borders */
  --outline-technical: #334155;
  --outline-variant: #424656;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-on-surface);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Technical Grids & Backgrounds */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(51, 65, 85, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.25) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
}

.bg-radial-cyan {
  background: radial-gradient(circle at center, rgba(0, 242, 209, 0.12) 0%, transparent 70%);
}

/* Glassmorphism & Structural Cards */
.glass-card {
  background: rgba(21, 24, 33, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--outline-technical);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(0, 102, 255, 0.6);
  background: rgba(30, 32, 36, 0.85);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(0, 102, 255, 0.25);
  transform: translateY(-2px);
}

/* Buttons with Structural Industrial Feel */
.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--primary-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px -4px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  background-color: #0054d6;
  border-color: #3b82f6;
  box-shadow: 0 0 30px -2px rgba(0, 102, 255, 0.7);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(30, 32, 36, 0.6);
  color: var(--text-on-surface);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid var(--outline-technical);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--secondary-cyan);
  color: var(--secondary-tint);
  background-color: rgba(30, 32, 36, 0.9);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px -4px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  box-shadow: 0 0 30px -2px rgba(37, 211, 102, 0.7);
  transform: translateY(-1px);
}

/* LED Status Indicator */
.led-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.led-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary-cyan);
  box-shadow: 0 0 8px var(--secondary-cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Dynamic Data Flow Line */
.data-flow-line {
  position: relative;
  overflow: hidden;
}

.data-flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--secondary-cyan), transparent);
  animation: flow 2.5s linear infinite;
}

@keyframes flow {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Floating WhatsApp Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-bubble {
  background: var(--surface-container);
  border: 1px solid var(--outline-technical);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-surface);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bounce-subtle 4s infinite ease-in-out;
}

.whatsapp-float-btn {
  width: 54px;
  height: 54px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7);
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Scroll reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface-base);
  border: 1px solid var(--outline-technical);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-content {
  transform: scale(1);
}
