/* ==========================================================================
   SUFFERWELL // MODERN EDGY THEME
   Aesthetic: Noir / Brutalist / Modern Minimalist Dark
   Palette: Black & White with Minor Crimson Red Accents
   Fonts: Syncopate (Brutalist Display), Space Grotesk (Sharp UI), JetBrains Mono
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
  --bg-black: #000000;
  --bg-deep: #050505;
  --bg-card: #0a0a0a;
  --bg-surface: #121212;
  --bg-hover: #171717;

  --border-subtle: #1c1c1c;
  --border-light: #2a2a2a;
  --border-hover: #404040;
  
  --text-white: #ffffff;
  --text-light: #eeeeee;
  --text-body: #b8b8b8;
  --text-muted: #6e6e6e;
  --text-dark: #3a3a3a;

  /* Minor Red Tones */
  --red-crimson: #ff1a2a;
  --red-deep: #b30010;
  --red-blood: #e50914;
  --red-glow: 0 0 15px rgba(255, 26, 42, 0.45);
  --red-glow-subtle: 0 0 25px rgba(255, 26, 42, 0.15);
  --red-tint: rgba(255, 26, 42, 0.08);
  --red-tint-strong: rgba(255, 26, 42, 0.18);

  --font-display: 'Syncopate', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-tag: 6px;
  --radius-sm: 6px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- GLOBAL RESETS & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-black) !important;
  color: var(--text-body) !important;
  font-family: var(--font-ui) !important;
  margin: 0;
  padding: 0;
  letter-spacing: 0.02em;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient noise / dark subtle texture */
body {
  background: radial-gradient(circle at 50% 20%, rgba(20, 20, 20, 0.6) 0%, rgba(0, 0, 0, 1) 85%) !important;
}

/* Selection */
::selection {
  background: var(--red-crimson);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: #222222;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-crimson);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--text-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: var(--red-crimson);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-light) !important;
}

p, li {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-body);
}

a {
  color: var(--text-white);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}
a:hover {
  color: var(--red-crimson);
}

/* Code & Pre */
code {
  font-family: var(--font-mono) !important;
  background-color: var(--bg-deep) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-light) !important;
  padding: 2px 6px;
}

pre {
  font-family: var(--font-mono) !important;
  background-color: var(--bg-deep) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-light) !important;
  padding: 1.2rem !important;
  border-left: 2px solid var(--red-crimson) !important;
  border-radius: 12px !important;
}

/* --- HEADER & NAVIGATION (SW ON LEFT, MENU ON RIGHT, SEAMLESS BLACK) --- */
.cyber-hud-bar {
  display: none !important; /* Replaced with clean sleek ominous header */
}

.header {
  background: #000000 !important;
  background-color: #000000 !important;
  backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 1.1rem 2rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
}

.header__inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
  width: 100% !important;
}

.header__logo-area {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.header__menu-area {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.header__right {
  display: none !important;
}

.logo {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em !important;
  color: var(--text-white) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  color: var(--red-crimson) !important;
  font-size: 0.9em;
}
.logo__text {
  color: var(--text-white) !important;
  transition: letter-spacing var(--transition-smooth);
}
.logo:hover .logo__text {
  letter-spacing: 0.28em;
}
.logo__cursor {
  display: none !important;
}

/* Eradicate any theme gray backgrounds on menu, nav, submenus */
.menu,
.menu__inner,
.submenu,
[data-theme=dark] .header,
[data-theme=light] .header,
[data-theme=dark] .header__inner,
[data-theme=light] .header__inner,
[data-theme=dark] .menu,
[data-theme=light] .menu,
[data-theme=dark] .menu__inner,
[data-theme=light] .menu__inner,
[data-theme=dark] .submenu,
[data-theme=light] .submenu {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.menu {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
}

.menu__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 2.2rem !important;
  font-family: var(--font-display) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.menu__inner li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.menu__inner li a {
  color: #ffffff !important;
  background: transparent !important;
  padding: 6px 0 !important;
  position: relative;
  transition: color var(--transition-fast);
  text-decoration: none !important;
}

.menu__inner li a:hover,
.menu__inner li a:focus {
  color: var(--red-crimson) !important;
}

.menu__inner li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-crimson);
  transition: width var(--transition-fast);
}
.menu__inner li a:hover::after,
.menu__inner li a:focus::after {
  width: 100%;
}

/* Edgy Shop Link in Header (Rounded Edges) */
.menu-item-shop {
  color: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast) !important;
  background: transparent !important;
}
.menu-item-shop::after {
  display: none !important;
}
.menu-item-shop:hover,
.menu-item-shop:focus {
  border-color: var(--red-crimson) !important;
  color: var(--red-crimson) !important;
  box-shadow: 0 0 15px rgba(255, 26, 42, 0.3) !important;
  background: var(--red-tint) !important;
}

/* --- OMINOUS HOMEPAGE HERO --- */
.ominous-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem 1.5rem;
  overflow: visible !important; /* Never clip glowing effects */
}

/* Background Ember / Smoke Canvas */
#ominous-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Hero Content Layer */
.ominous-content {
  position: relative;
  z-index: 2;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto;
  overflow: visible !important;
  padding: 0 1rem;
}

/* --- SUFFERWELL LOGO GLOW STYLING --- */
.logo-flame-container {
  position: relative;
  display: inline-block;
  margin: 2.5rem auto 1.5rem auto;
  padding: 2.5rem 3.5rem !important; /* Generous breathing room so glow never cuts off */
  overflow: visible !important;
  user-select: none;
}

.logo-flame-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 60, 0, 0.18) 0%, rgba(255, 26, 42, 0.08) 50%, rgba(0, 0, 0, 0) 75%);
  filter: blur(35px);
  pointer-events: none;
  opacity: 0.5;
  animation: ambient-glow-breathe 7s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes ambient-glow-breathe {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Hero Title (Permanent Fiery Glow - Subdued & Refined, Complete SUFFERWELL without truncation) */
.ominous-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 5.2vw, 4.2rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.18em !important;
  margin: 0 !important;
  margin-right: -0.18em !important; /* Compensate for trailing letter-spacing to ensure optical center */
  padding: 0.5rem 1rem !important;
  line-height: 1.15 !important;
  border-bottom: none !important;
  position: relative;
  z-index: 5;
  white-space: nowrap !important; /* Ensures the word SUFFERWELL never breaks or clips the last L */
  overflow: visible !important;
  will-change: text-shadow, filter;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.65),
    0 -2px 14px rgba(255, 160, 0, 0.45),
    0 -5px 22px rgba(255, 55, 0, 0.35),
    0 -8px 32px rgba(255, 26, 42, 0.25);
  animation: title-fiery-breathe 5s infinite alternate ease-in-out;
}

@keyframes title-fiery-breathe {
  0% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.55),
      0 -2px 10px rgba(255, 150, 0, 0.38),
      0 -4px 18px rgba(255, 50, 0, 0.28),
      0 -7px 26px rgba(255, 26, 42, 0.20);
  }
  100% {
    text-shadow:
      0 0 9px rgba(255, 255, 255, 0.72),
      0 -3px 15px rgba(255, 170, 0, 0.50),
      0 -6px 24px rgba(255, 60, 0, 0.40),
      0 -10px 36px rgba(255, 26, 42, 0.30);
  }
}

.ominous-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.8;
}

.ominous-subtitle strong {
  color: var(--text-light);
  font-weight: 600;
}

.ominous-quote-highlight {
  color: var(--red-crimson);
}

/* Minimalist Hero Tabs Navigation */
.ominous-tabs-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ominous-tab-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-body);
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ominous-tab-btn:hover {
  color: var(--text-white);
  border-color: #555555;
  background: #181818;
  transform: translateY(-2px);
}

.ominous-tab-btn.shop-btn {
  border-color: rgba(255, 26, 42, 0.4);
  background: rgba(20, 5, 8, 0.85);
  color: var(--text-white);
}
.ominous-tab-btn.shop-btn:hover {
  border-color: var(--red-crimson);
  background: var(--red-tint-strong);
  box-shadow: var(--red-glow);
}

/* --- EDGY CARDS & PANELS (ROUNDED EDGES) --- */
.cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.cyber-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.cyber-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.cyber-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--text-white);
  margin: 0 !important;
}

/* Minimalist Tags (Rounded Edges) */
.cyber-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  background: #141414;
  border: 1px solid #282828;
  border-radius: var(--radius-tag);
  color: var(--text-light);
  margin-right: 6px;
  margin-bottom: 6px;
}
.cyber-tag.red, .cyber-tag.pink {
  border-color: rgba(255, 26, 42, 0.4);
  color: var(--red-crimson);
  background: var(--red-tint);
}
.cyber-tag.green {
  border-color: #333333;
  color: var(--text-white);
}
.cyber-tag.amber {
  border-color: #444444;
  color: #cccccc;
}

/* --- BUTTONS (ROUNDED EDGES) --- */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 22px;
  background: #0f0f0f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  color: var(--text-white);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.cyber-btn:hover {
  background: #1a1a1a;
  border-color: #666666;
  color: var(--text-white);
  transform: translateY(-1px);
}

.cyber-btn-magenta {
  border-color: rgba(255, 26, 42, 0.5);
  background: rgba(255, 26, 42, 0.08);
}
.cyber-btn-magenta:hover {
  border-color: var(--red-crimson);
  background: var(--red-tint-strong);
  box-shadow: var(--red-glow);
}

.cyber-btn-sm {
  font-size: 0.7rem;
  padding: 6px 14px;
}

/* --- TERMINAL / METRICS CONTAINER (ROUNDED EDGES) --- */
.cyber-terminal {
  background: #050505;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin: 1.5rem 0;
  overflow: hidden;
}

.cyber-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d0d;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: var(--red-crimson); }
.dot-yellow { background: #333333; }
.dot-green { background: #222222; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cyber-terminal-body {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.term-line {
  margin: 0.35rem 0;
}
.term-prompt {
  color: var(--text-muted);
}
.term-cmd {
  color: var(--text-white);
  font-weight: 600;
}
.term-out {
  color: var(--text-body);
  padding-left: 1rem;
}
.term-highlight {
  color: var(--text-white);
}

/* --- USER PLACEHOLDER STYLING (ROUNDED EDGES) --- */
.cyber-placeholder {
  display: inline-block;
  background: rgba(255, 26, 42, 0.08) !important;
  border: 1px dashed var(--red-crimson) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  padding: 1px 7px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.88em !important;
  margin: 1px 2px;
}

.cyber-placeholder-block {
  background: rgba(255, 26, 42, 0.05);
  border: 1px dashed var(--red-crimson);
  border-left: 3px solid var(--red-crimson);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-light);
}
.cyber-placeholder-block strong {
  color: var(--red-crimson);
}

/* --- GRID LAYOUTS --- */
.cyber-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.cyber-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

/* --- SKILL / TELEMETRY BARS (ROUNDED EDGES) --- */
.skill-row {
  margin-bottom: 1rem;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-light);
}
.skill-bar-track {
  width: 100%;
  height: 6px;
  background: #1a1a1a;
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--text-white);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.skill-bar-fill.red {
  background: var(--red-crimson);
}

/* --- TIMELINE (ROUNDED NODES) --- */
.timeline {
  position: relative;
  padding-left: 1.8rem;
  border-left: 1px solid var(--border-light);
  margin: 2.5rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--bg-black);
  border: 1px solid var(--red-crimson);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--red-crimson);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-white);
  margin: 0 0 4px 0 !important;
}

.timeline-subtitle {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* --- FORM CONTROLS & QUOTES (ROUNDED EDGES) --- */
input, textarea, select, button {
  border-radius: var(--radius-sm);
}

blockquote {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--red-crimson);
  padding: 0.8rem 1.2rem;
}

/* --- FOOTER --- */
.footer {
  background: #000000 !important;
  border-top: 1px solid var(--border-subtle) !important;
  padding: 3rem 1.5rem !important;
  margin-top: 5rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1rem !important;
  }
  .header__inner {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.9rem !important;
  }
  .header__menu-area,
  .menu,
  .menu__inner {
    justify-content: center !important;
    width: 100% !important;
  }
  .menu__inner {
    gap: 1.2rem !important;
    font-size: 0.72rem !important;
  }
  .ominous-title {
    letter-spacing: 0.12em !important;
    margin-right: -0.12em !important;
    font-size: clamp(1.6rem, 6.5vw, 2.6rem) !important;
  }
  .logo-flame-container {
    padding: 1.5rem 1rem !important;
  }
  .ominous-tabs-nav {
    flex-direction: column;
    width: 100%;
  }
  .ominous-tab-btn {
    width: 100%;
    justify-content: center;
  }
  .cyber-grid-2, .cyber-grid-3 {
    grid-template-columns: 1fr;
  }
}
