@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #0a0a12;
  --bg-card: #111122;
  --bg-card-hover: #161630;
  --border: #2a2a4a;
  --border-glow: #5b4fcf;
  --accent: #7c6fef;
  --accent2: #4fc3f7;
  --accent3: #b388ff;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 12px;
  --shadow: 0 4px 32px rgba(91, 79, 207, 0.15);
  --shadow-hover: 0 8px 48px rgba(91, 79, 207, 0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(124, 111, 239, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(79, 195, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--accent2);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent3);
}

.tag {
  display: inline-block;
  background: rgba(124, 111, 239, 0.15);
  color: var(--accent);
  border: 1px solid rgba(124, 111, 239, 0.3);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--border-glow));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(124, 111, 239, 0.1);
  color: var(--accent3);
}

/* Noise overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ===== Scrollbar ===== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 8px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent3), var(--accent));
}

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