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

:root {
  --color-midnight: #06080d;
  --color-obsidian: #0b0f17;
  --color-slate-panel: #111827;
  --color-card: #0e141f;

  --color-amber: #f59e0b;
  --color-amber-bright: #fbbf24;
  --color-gold: #fbbf24;
  --color-ember: #f0521f;
  --color-ember-bright: #ff6b3d;
  --color-cyan: #38bdf8;
  --color-cyan-bright: #7dd3fc;
  --color-emerald: #10b981;
  --color-purple: #a855f7;
  --color-crimson: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --border-card: rgba(245, 158, 11, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(56, 189, 248, 0.25);
  --border-gold: rgba(251, 191, 36, 0.3);

  --bg-card: rgba(14, 20, 31, 0.85);

  --color-ember-glow: rgba(240, 82, 31, 0.35);
  --color-cyan-glow: rgba(56, 189, 248, 0.35);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Outfit', sans-serif;
}

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

/* Nav jumps land below the sticky bar rather than underneath it. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  background-color: #06080d;
  color: #f1f5f9;
  font-family: var(--font-sans);
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(240, 82, 31, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 15% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.07) 0%, transparent 40%),
    linear-gradient(180deg, #06080d 0%, #090d15 50%, #05070a 100%);
  background-attachment: fixed;
}

/* Button & interactive defaults */
button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Norse Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #06080d;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
  border-color: var(--color-amber);
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.glass-panel-heavy {
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel-card {
  background: rgba(14, 20, 31, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-panel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.15);
}

.glass-panel-card:hover::before {
  opacity: 1;
}

/* Norse Glow Utilities */
.glow-amber { box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); }
.glow-ember { box-shadow: 0 0 25px rgba(240, 82, 31, 0.4); }
.glow-cyan { box-shadow: 0 0 25px rgba(56, 189, 248, 0.35); }
.text-glow-gold { text-shadow: 0 0 14px rgba(251, 191, 36, 0.6); }
.text-glow-amber { text-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }
.text-glow-cyan { text-shadow: 0 0 14px rgba(56, 189, 248, 0.6); }

/* Particle Animation */
@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-45vh) translateX(25px) scale(1.15) rotate(180deg);
    opacity: 0.75;
  }
  100% {
    transform: translateY(-90vh) translateX(-20px) scale(0.9) rotate(360deg);
    opacity: 0.05;
  }
}

/* Navigation Link Styling */

/**
 * The nav bar rides along as the page scrolls.
 *
 * `index.html` already asked for this — `<header class="sticky top-0 z-40">` —
 * but this project writes its own utility classes by hand in the <style> block
 * there, and it defines `.sticky` while defining neither `.top-0` nor any `.z-*`.
 * A sticky element with no offset never sticks, and with no z-index it is
 * painted UNDER every section that comes after it in the document. Both halves
 * are stated here in real CSS instead, where they cannot go missing.
 *
 * Modals sit at z-index 999 (components.css) and still cover the bar.
 */
#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.top-nav-bar {
  background: rgba(8, 12, 19, 0.95);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-pill:hover {
  color: #f8fafc;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.nav-link-pill.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: #090d16;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.status-pill-badge:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}
