:root {
  --background-start-rgb: 245, 245, 245;
  --text-color: #111827;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(209, 213, 219, 0.5);
  --blur-strength: 10px;
}

html.dark {
  --background-start-rgb: 10, 10, 15;
  --text-color: #f3f4f6;
  --card-bg: rgba(31, 41, 55, 0.4);
  --card-border: rgba(75, 85, 99, 0.6);
  --blur-strength: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: rgb(var(--background-start-rgb));
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

.liquid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.gradient-text-danger {
  background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.gradient-text-safe {
  background: linear-gradient(90deg, #22d3ee, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-button { transition: transform 0.2s ease, background-color 0.3s ease; }
.theme-button:hover { transform: scale(1.1); }
.theme-button.active { background-color: #ef4444; color: white; }

/* Interactive Security Demo */
.threat-node { transition: all 2s ease-in-out; animation: pulse 2s infinite; }
.sentry-node { transition: all 0.5s ease; }
.beam {
  position: absolute;
  background: linear-gradient(to left, transparent, #ef4444);
  height: 2px;
  width: 0;
  transition: width 0.5s ease-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 1); }
}
