/* =============================================
   ILLIDAN STORMRAGE FANSITE - STYLES
   Dark Demonic Cinematic Theme
   ============================================= */

/* --- CUSTOM PROPERTIES --- */
:root {
  --purple-deep:    #1a0a2e;
  --purple-dark:    #2d0f4e;
  --purple-mid:     #4c1d95;
  --purple-primary: #7c3aed;
  --purple-bright:  #9333ea;
  --purple-light:   #c084fc;
  --purple-glow:    #a855f7;

  --fel-green:      #16a34a;
  --fel-bright:     #22c55e;
  --fel-neon:       #4ade80;

  --blue-dark:      #0f172a;
  --blue-mid:       #1e3a5f;
  --blue-accent:    #3b82f6;

  --gold:           #d4a017;
  --gold-light:     #f5c842;

  --bg-void:        #050308;
  --bg-dark:        #0a0514;
  --bg-mid:         #100a20;
  --bg-card:        rgba(30, 10, 60, 0.7);
  --bg-card-hover:  rgba(50, 20, 90, 0.85);

  --text-primary:   #f1e9ff;
  --text-secondary: #c4b5d4;
  --text-muted:     #7c6e8e;

  --border-subtle:  rgba(147, 51, 234, 0.2);
  --border-mid:     rgba(147, 51, 234, 0.4);
  --border-bright:  rgba(147, 51, 234, 0.7);

  --shadow-purple:  0 0 30px rgba(147, 51, 234, 0.3);
  --shadow-glow:    0 0 60px rgba(147, 51, 234, 0.4);
  --glow-text:      0 0 20px rgba(192, 132, 252, 0.6);

  --font-heading:   'Cinzel Decorative', 'Cinzel', serif;
  --font-subhead:   'Cinzel', serif;
  --font-body:      'Raleway', sans-serif;

  --transition-fast:   0.2s ease;
  --transition-mid:    0.4s ease;
  --transition-slow:   0.7s ease;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul { list-style: none; }

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid var(--border-mid);
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: rgba(124, 58, 237, 0.08);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  text-shadow: var(--glow-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.accent {
  color: var(--purple-light);
  text-shadow: 0 0 30px rgba(192, 132, 252, 0.8);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
  color: var(--text-primary);
  border: 1px solid var(--purple-bright);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-light));
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.7), 0 0 80px rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
  background: rgba(147, 51, 234, 0.12);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.25);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-large {
  padding: 16px 36px;
  font-size: 0.88rem;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-mid);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 3, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subhead);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-logo:hover { color: var(--purple-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple-light);
  transition: width var(--transition-fast);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright)) !important;
  color: var(--text-primary) !important;
  padding: 8px 18px;
  border-radius: 2px;
  border: 1px solid var(--purple-bright);
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.35);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: 0 0 28px rgba(147, 51, 234, 0.6) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease;
}

.hero-bg-primary {
  background-image: url('../images/hero-illidan-5-1920x1080.jpg');
  opacity: 1;
}

.hero-bg-secondary {
  background-image: url('../images/hero-image_018.jpg');
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 8, 0.3) 0%,
    rgba(5, 3, 8, 0.1) 30%,
    rgba(5, 3, 8, 0.4) 60%,
    rgba(5, 3, 8, 0.95) 100%
  );
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--purple-bright);
  opacity: 0;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: var(--max-opacity, 0.6); }
  80%  { opacity: var(--max-opacity, 0.4); }
  100% { opacity: 0; transform: translateY(var(--rise, -120px)) scale(var(--final-scale, 0.5)); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
  text-shadow:
    0 0 30px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(147, 51, 234, 0.3);
}

.hero-title-accent {
  color: var(--purple-light);
  text-shadow:
    0 0 30px rgba(192, 132, 252, 0.8),
    0 0 80px rgba(147, 51, 234, 0.5),
    0 0 120px rgba(124, 58, 237, 0.3);
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-subhead);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.5);
}

.tagline-bar {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}

.tagline-bar:last-child {
  background: linear-gradient(to left, transparent, var(--gold-light));
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2.5s forwards;
}

.hero-scroll-indicator span {
  font-family: var(--font-subhead);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* --- ABOUT SECTION --- */
.about-section {
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 50%, var(--bg-mid) 100%);
}

.about-glow {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12), transparent);
  top: -100px;
  right: -150px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-portrait {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portrait-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.portrait-frame:hover img {
  transform: scale(1.04);
  filter: saturate(1.3) contrast(1.1);
}

.portrait-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(147, 51, 234, 0.2));
  pointer-events: none;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.portrait-sidebar {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-height: 220px;
}

.portrait-sidebar img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.portrait-sidebar:hover img { transform: scale(1.05); }

.about-content { padding-top: 8px; }

.about-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--purple-primary), transparent);
  margin: 20px 0 28px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin: 32px 0;
  overflow: hidden;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 20px 12px;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--purple-light);
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.about-quote {
  position: relative;
  padding: 20px 24px 20px 32px;
  border-left: 3px solid var(--purple-primary);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-subhead);
  font-size: 1.05rem;
  color: var(--text-primary);
  font-style: italic;
  margin-top: 8px;
}

.about-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  font-style: normal;
}

/* --- TIMELINE SECTION --- */
.timeline-section {
  background: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-mid) 10%, var(--border-mid) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-card {
  direction: ltr;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-era { text-align: right; }
.timeline-item:nth-child(even) .timeline-tag { float: right; }
.timeline-item:nth-child(even) .timeline-tag::after { content: ''; display: block; clear: both; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-primary);
  border: 2px solid var(--purple-light);
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.7);
  flex-shrink: 0;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.marker-line {
  width: 1px;
  flex: 1;
  background: var(--border-subtle);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
  transition: all var(--transition-mid);
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
}

.timeline-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-purple);
}

.timeline-era {
  font-family: var(--font-subhead);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--purple-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-subhead);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
  border: 1px solid var(--border-mid);
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.1);
}

/* --- GALLERY SECTION --- */
.gallery-section {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
}

.gallery-glow {
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1), transparent);
  top: -100px;
  left: -200px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.gallery-large {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.gallery-wide {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.gallery-item:not(.gallery-large):not(.gallery-wide) {
  grid-column: span 1;
}

/* position the small items on the right column */
.gallery-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 3; grid-row: 2; }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  height: 100%;
  min-height: 220px;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.9) brightness(0.95);
}

.gallery-img-wrap:hover img {
  transform: scale(1.06);
  filter: saturate(1.2) brightness(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 3, 8, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-mid);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-img-wrap:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --- ABILITIES SECTION --- */
.abilities-section {
  background: var(--bg-void);
}

.abilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 36px 28px;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.ability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--purple-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.ability-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-purple), inset 0 0 60px rgba(124, 58, 237, 0.05);
  transform: translateY(-4px);
}

.ability-card:hover::before { opacity: 1; }

.ability-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.ability-icon {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
}

.ability-icon-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-mid);
}

.ability-card:hover .ability-icon-glow { opacity: 1; }

.ability-name {
  font-family: var(--font-subhead);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ability-type {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}

.ability-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.ability-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
  border: 1px solid var(--border-mid);
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.1);
}

/* --- LORE SECTION --- */
.lore-section {
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 100%);
}

.lore-glow {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lore-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.lore-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lore-block-reverse {
  direction: rtl;
}

.lore-block-reverse > * {
  direction: ltr;
}

.lore-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
}

.lore-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
  filter: saturate(1.05) contrast(1.02);
}

.lore-img-wrap:hover img {
  transform: scale(1.04);
  filter: saturate(1.2) contrast(1.08);
}

.lore-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(147, 51, 234, 0.15));
  pointer-events: none;
}

.lore-chapter {
  font-family: var(--font-subhead);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.lore-title {
  font-family: var(--font-subhead);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.lore-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.lore-quote-inline {
  font-family: var(--font-subhead);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--purple-light);
  padding: 16px 20px;
  border-left: 2px solid var(--purple-primary);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
  margin-bottom: 20px;
}

.lore-boss-box {
  background: rgba(30, 10, 60, 0.9);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 20px 24px;
  margin-top: 8px;
}

.boss-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.boss-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boss-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.boss-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--purple-bright);
  font-size: 0.75rem;
}

/* --- COMMUNITY SECTION --- */
.community-section {
  position: relative;
  padding: 120px 0;
}

.community-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5, 3, 8, 0.96), rgba(20, 5, 40, 0.95)),
    url('../images/hero-illidan-5-1920x1080.jpg') center / cover no-repeat;
}

.community-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12), transparent 70%);
}

.community-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.community-eyebrow {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid var(--border-mid);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  background: rgba(124, 58, 237, 0.08);
}

.community-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: var(--glow-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.community-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.community-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.community-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.community-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- FOOTER --- */
.footer {
  position: relative;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--purple-primary), transparent);
  filter: blur(3px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subhead);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-logo:hover { color: var(--purple-light); }

.footer-tagline {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--purple-light); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--purple-light); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 8, 0.95);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-mid);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover { opacity: 1; }

/* --- REVEAL ANIMATIONS --- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-fade  { transform: scale(0.97); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--purple-mid);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-primary); }

/* --- SELECTION --- */
::selection {
  background: rgba(147, 51, 234, 0.4);
  color: var(--text-primary);
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-portrait {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .portrait-sidebar {
    max-height: none;
  }

  .portrait-sidebar img {
    height: 100%;
    object-position: top center;
  }

  .abilities-grid {
    grid-template-columns: 1fr;
  }

  .lore-block,
  .lore-block-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .lore-img-wrap img {
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .section { padding: 72px 0; }

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 3, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-mid);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 0.85rem;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin: 12px 24px;
    display: block;
    text-align: center;
    border-radius: 2px;
  }

  /* Hero */
  .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; max-width: 260px; justify-content: center; }

  /* Timeline */
  .timeline::before { left: 20px; transform: none; }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    direction: ltr !important;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    text-align: left;
    direction: ltr;
  }

  .timeline-item:nth-child(even) .timeline-era { text-align: left; }
  .timeline-item:nth-child(even) .timeline-tag { float: none; }

  .timeline-card {
    grid-column: 2 !important;
  }

  .marker-dot { margin-top: 20px; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-large { grid-column: 1 / -1; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-wide { grid-column: 1 / -1; grid-row: 3; }

  .gallery-img-wrap { min-height: 180px; }

  /* About portrait */
  .about-portrait {
    grid-template-columns: 1fr;
  }

  .portrait-sidebar { display: none; }

  /* Stats */
  .about-stats {
    flex-direction: column;
    gap: 0;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
    align-self: center;
  }

  /* Community */
  .community-features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .community-actions {
    flex-direction: column;
    align-items: center;
  }

  .community-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1; }
}

@media (max-width: 480px) {
  .abilities-grid { grid-template-columns: 1fr; }
  .hero-tagline { gap: 12px; font-size: 0.65rem; }
  .tagline-bar { width: 24px; }
}
