/* BE&C Contractors - Global CSS Stylesheet (White Industrial Theme)
   Theme: Precision White Engineering Blueprint & Clean Pharmaceutical Facility
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg-darker: #f8fafc; /* Slate 50 - clean light industrial white */
  --bg-dark: #ffffff; /* pure white */
  --bg-card: #ffffff;
  --accent-gold: #d97706; /* High-contrast gold for text/accents */
  --accent-gold-glow: rgba(217, 119, 6, 0.06);
  --accent-blue: #2563eb; /* Steel blue */
  --accent-blue-glow: rgba(37, 99, 235, 0.08);
  --border-subtle: #e2e8f0; /* slate 200 border */
  --text-main: #0f172a; /* slate 900 */
  --text-muted: #475569; /* slate 600 */
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Engineering Blueprint Grid Background (Blue Grid on White Paper) */
.blueprint-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

.blueprint-grid-fine {
  background-size: 8px 8px;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
}

/* Glowing Border Effect (Light Theme Drop Shadow & Borders) */
.glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 30px -10px var(--accent-blue-glow);
  transform: translateY(-2px);
}

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

/* Safety Gold Highlight Card */
.glow-card-gold:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 10px 30px -10px var(--accent-gold-glow);
}

/* Bento Grid Hover Effects */
.bento-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  flex-grow: 1.5;
}

/* Custom flow animation for SVGs simulating pipes */
@keyframes flow {
  to {
    stroke-dashoffset: -40;
  }
}

.flow-pipe {
  stroke-dasharray: 8, 12;
  animation: flow 2s linear infinite;
}

.flow-pipe-reverse {
  stroke-dasharray: 8, 12;
  animation: flow 2s linear infinite reverse;
}

/* Tech panel blink animations */
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.led-blink {
  animation: blink 1.5s infinite ease-in-out;
}

.led-blink-fast {
  animation: blink 0.8s infinite ease-in-out;
}

/* Glassmorphism Navigation (Light Theme Blur) */
.glass-nav {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar for industrial feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Hexagon Pattern Overlay (Light blue dots) */
.hex-pattern {
  background-color: transparent;
  background-image: radial-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Custom text clip for high-tech header gradient */
.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #d97706 30%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
