/* ══════════════════════════════════════════
   KC-04 XV FLORAL INFERNO — GLOBAL STYLES
   Design System: Obsidian, Inferno Red & Gold
   Khal Calloway Studio © 2026
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* Core Colors (HELLFIRE ASCENSION Palette) */
  --bg-obsidian: #050202;
  --bg-obsidian-cherry: #2A0000;
  --bg-obsidian-warm: #510000;
  --gold-kc: #FFB347;            /* Molten gold flare */
  --gold-bronze: #8B0000;        /* Crimson flame */
  --rose-inferno: #8B0000;
  --rose-celestial: #D72638;     /* Burning scarlet */
  --rose-blush: #FFB347;
  --rose-pale: #D72638;
  
  /* Text Colors */
  --color-ivory: #FAF8F5;
  --color-champagne: #F5E6D3;
  --color-cream: #E8DCCB;
  --text-muted: rgba(245, 230, 211, 0.7);
  --text-dim: rgba(245, 230, 211, 0.4);

  /* Typography */
  --ff-hero: 'Cinzel Decorative', serif;
  --ff-body: 'Cormorant Garamond', serif;
  --ff-accent: 'Great Vibes', cursive;
  --ff-label: 'Montserrat', sans-serif;
  
  /* Layout */
  --border-gold: 1px solid rgba(255, 179, 71, 0.28);
  --border-crimson: 1px solid rgba(215, 38, 56, 0.35);
  --glass-bg: rgba(11, 2, 2, 0.85);
  --glass-blur: blur(8px); /* Reduced for performance */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  background: linear-gradient(180deg, #050202 0%, #150505 25%, #050202 50%, #1a0808 75%, #050202 100%);
  color: var(--color-champagne);
  font-family: var(--ff-body);
  font-size: 18px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: transparent;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--rose-inferno);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-kc);
}

/* Global Atmosphere Overlays */
#grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.045;
}

.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 29, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.glow-tl { top: -20%; left: -20%; }
.glow-br { bottom: -20%; right: -20%; }

/* Typography helper classes */
.gold-text {
  color: var(--gold-kc);
  background: linear-gradient(135deg, var(--gold-kc) 0%, #fff 40%, var(--gold-kc) 70%, var(--gold-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Premium Button Base */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: rgba(11, 5, 5, 0.6);
  border: var(--border-gold);
  border-radius: 4px;
  color: var(--gold-kc);
  font-family: var(--ff-label);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.22), transparent);
  transition: 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: var(--gold-kc);
  color: var(--bg-obsidian);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.action-btn:active {
  transform: translateY(0);
}

/* Ornament Dividers */
.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 3rem auto;
  width: 100%;
  max-width: 400px;
}

.ornament-line::before,
.ornament-line::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.ornament-diamond {
  font-size: 0.6rem;
  color: var(--gold-kc);
  text-shadow: 0 0 4px var(--gold-kc);
  opacity: 0.8;
}

.section-wrap {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

/* Global hidden/revealed states */
.md-hidden {
  display: none !important;
}

.fade-in-section {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  background: radial-gradient(circle at center, rgba(81, 0, 0, 0.14) 0%, transparent 75%);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HELLFIRE ASCENSION DECORATIONS ── */
.molten-crack {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-kc) 15%, var(--rose-celestial) 50%, var(--gold-kc) 85%, transparent);
  box-shadow: 0 0 8px var(--gold-kc), 0 0 15px var(--rose-celestial);
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.molten-crack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: crackFlow 5s infinite linear;
}

@keyframes crackFlow {
  to { transform: translateX(100%); }
}

.infernal-fog {
  position: absolute;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, rgba(81, 0, 0, 0.08) 50%, transparent);
  pointer-events: none;
  mix-blend-mode: color-dodge;
  z-index: 1;
}

.heat-distortion {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(215, 38, 56, 0.04) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: heatPulse 10s ease-in-out infinite alternate;
}

@keyframes heatPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { transform: scale(1.04) translate(1%, -1%); opacity: 0.4; }
  100% { transform: scale(1.08) translate(-1%, 1%); opacity: 0.3; }
}

/* Dark Cathedral Shadows overlay on sections */
.cathedral-shadows {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,2,2,0.85) 0%, transparent 15%, transparent 85%, rgba(5,2,2,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── ANIMATED HELLFIRE EMBERS ── */
.ember-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-kc);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-kc), 0 0 16px var(--rose-celestial);
  opacity: 0;
  pointer-events: none;
  animation: floatEmber 7s infinite linear;
}

@keyframes floatEmber {
  0% {
    transform: translateY(100px) translateX(0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-220px) translateX(60px) scale(0.3);
    opacity: 0;
  }
}

