/* Theme Variables */
:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --accent: #3b82f6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-dim: #64748b;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --matrix-color: rgba(37, 99, 235, 0.03);
  --binary-color: rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --secondary: #3b82f6;
  --accent: #93c5fd;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-dim: #94a3b8;
  --border: #334155;
  --border-hover: #475569;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --matrix-color: rgba(96, 165, 250, 0.03);
  --binary-color: rgba(96, 165, 250, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5em;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(20deg);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.binary-animation {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: "Courier New", monospace;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1.2;
  z-index: 0;
  pointer-events: none;
}
