/* 
  Nightmare Bolt Theme v2.1
  Colors extracted directly from the refsheet.
  Font: Ubuntu (as requested)
*/

@font-face { 
  font-family: "Ubuntu"; 
  src: url('https://nightm4reblt.cc/fonts/Ubuntu-R.woff2') format('woff2'), 
       url('https://nightm4reblt.cc/fonts/Ubuntu-R.woff') format('woff'); 
}

:root {
  /* 🎨 EXTRACTED PALETTE */
  --bg-deep: #182028;          /* Deepest background (dark storm base) */
  --bg-card: #222d38;          /* Slightly lighter for content blocks */
  --bg-accent: #2c3a47;        /* Borders & subtle highlights */
  
  --coat-blue: #4a8de0;        /* Main body blue */
  --mane-purple: #6b42c6;      /* Mane & tail purple */
  --bolt-yellow: #f5d442;      /* Lightning bolt & accents */
  --ear-pink: #d96b9c;         /* Inner ear pink */
  --eye-gold: #e6b422;         /* Eye color */
  --cloud-teal: #5a7a7a;       /* Storm cloud tint */
  
  --text-main: #dce4eb;        /* Light text with soft blue tint */
  --text-muted: #9eb4c8;       /* Secondary/tertiary text */
  
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 25% 15%, rgba(90, 122, 122, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(75, 50, 130, 0.08) 0%, transparent 50%);
  color: var(--text-main);
  font-family: "Ubuntu", sans-serif;
  line-height: 1.75;
  margin: 0;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

/* ── MAIN CONTAINER ── */
.project-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--bg-accent);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Subtle storm cloud glow at top */
.project-container::before {
  content: "";
  position: absolute;
  top: -60px; left: -10%;
  width: 120%; height: 120px;
  background: radial-gradient(ellipse, rgba(107, 66, 198, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

/* ── HEADINGS (H1-H4) ── */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  color: var(--bolt-yellow);
  font-size: 2.5rem;
  text-shadow: 2px 2px 0px var(--mane-purple);
  border-bottom: 3px solid var(--coat-blue);
  padding-bottom: 10px;
  position: relative;
}
h1::after {
  content: "⚡";
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  opacity: 0.85;
}

h2 {
  color: var(--coat-blue);
  font-size: 1.9rem;
  border-left: 4px solid var(--bolt-yellow);
  padding-left: 14px;
}

h3 {
  color: var(--mane-purple);
  font-size: 1.55rem;
  position: relative;
}
h3::before {
  content: "✦ ";
  color: var(--ear-pink);
  font-size: 0.9em;
}

h4 {
  color: var(--eye-gold);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 1.4em;
}

/* ── NEW: H5 & H6 STYLES ── */

h5 {
  /* Using the storm cloud teal for a subtle, misty look */
  color: var(--cloud-teal);
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 1.2em;
  opacity: 0.9;
}

h6 {
  /* Using the lightning yellow for a small, "tag-like" emphasis */
  color: var(--bolt-yellow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1.2em;
  border-bottom: 1px solid var(--bolt-yellow);
  display: inline-block;
  padding-bottom: 2px;
}

/* ── BODY TEXT ── */
p {
  margin-bottom: 1.4em;
  color: var(--text-main);
}

strong {
  color: var(--bolt-yellow);
  font-weight: 700;
}

em {
  color: var(--coat-blue);
  font-style: italic;
}

/* ── LINKS ── */
a {
  color: var(--ear-pink);
  text-decoration: none;
  border-bottom: 2px dotted var(--mane-purple);
  transition: all 0.2s ease;
}
a:hover {
  color: var(--bolt-yellow);
  border-bottom-style: solid;
  text-shadow: 0 0 10px rgba(245, 212, 66, 0.35);
}

/* ── LISTS ── */
ul, ol {
  margin: 1em 0 1.5em 1.6em;
}
li {
  margin-bottom: 0.55em;
}
ul {
  list-style: none;
  padding-left: 0.5em;
}
ul li::before {
  content: "⚡ ";
  color: var(--bolt-yellow);
  margin-right: 0.4em;
  font-size: 0.85em;
}

/* ── BLOCKQUOTES / NOTES ── */
blockquote {
  background: var(--bg-accent);
  border-left: 4px solid var(--mane-purple);
  margin: 1.6em 0;
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── INLINE CODE ── */
code {
  background: #1c252e;
  border: 1px solid var(--bg-accent);
  border-radius: 8px;
  padding: 2px 7px;
  font-family: "Ubuntu", monospace;
  color: var(--coat-blue);
  font-size: 0.92em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--mane-purple);
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--coat-blue); }

/* ── TEXT SELECTION ── */
::selection {
  background: var(--bolt-yellow);
  color: var(--bg-deep);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  body { padding: 20px 12px; }
  .project-container { padding: 28px 22px; }
  h1 { font-size: 2rem; }
  h1::after { display: none; }
  h2 { font-size: 1.65rem; }
}
