 

:root {
   --void-color: #1a0000;
  --void-color-light: #2a0000;
  --void-color-dark: #0a0000;
  --blood-color: #8b0000;
  --blood-color-light: #9b1010;
  --blood-color-dark: #7b0000;
  --bone-color: #f0e6d2;
  --bone-color-light: #fff6e2;
  --bone-color-dark: #e0d6c2;
  --crack-color: rgba(255, 255, 255, 0.2); 
  
   --font-arabic: 'El Messiri', 'Tajawal', sans-serif;
  --font-latin: 'Montserrat', 'Roboto', sans-serif;
  --font-size-base: 1rem;
  --font-size-large: 1.25rem;
  --font-size-xlarge: 1.5rem;
  --font-size-xxlarge: 2rem;
  --font-size-massive: 3rem;
  --font-size-cosmic: 4.5rem;
  --line-height-normal: 1.6;
  --line-height-tight: 1.3;
  --line-height-loose: 1.8;
  
   --space-micro: 0.25rem;
  --space-tiny: 0.5rem;
  --space-small: 1rem;
  --space-medium: 1.5rem;
  --space-large: 2rem;
  --space-xlarge: 3rem;
  --space-xxlarge: 4rem;
  --space-massive: 6rem;
  --space-cosmic: 8rem;
  
   --border-thin: 1px;
  --border-medium: 2px;
  --border-thick: 3px;
  --border-radius-small: 5px;
  --border-radius-medium: 10px;
  --border-radius-large: 15px;
  --border-radius-circle: 50%;
  
   --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-cosmic: 0 0 30px rgba(139, 0, 0, 0.5);
  --shadow-blood: 0 0 20px rgba(139, 0, 0, 0.7);
  
   --transition-fast: 0.2s;
  --transition-medium: 0.5s;
  --transition-slow: 1s;
  --transition-cosmic: 2s;
  
   --z-below: -1;
  --z-base: 1;
  --z-above: 10;
  --z-top: 100;
  --z-cosmic: 1000;
}

 *,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-arabic);
  line-height: var(--line-height-normal);
  color: var(--bone-color);
  background-color: #000;
  overflow-x: hidden;
}

 .cosmic-prelude {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, 
    rgba(26, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 1) 70%);
  overflow: hidden;
  isolation: isolate;
}

.prelude-container {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 2rem;
}

.prelude-glyph {
  font-size: 8rem;
  color: rgba(139, 0, 0, 0.5);
  margin-bottom: 2rem;
  animation: 
    cosmic-pulse-advanced 8s infinite ease-in-out,
    soul-float 10s infinite ease-in-out;
}

.prelude-title {
  font-size: 3.5rem;
  color: var(--bone-color);
  margin-bottom: 2rem;
  font-family: var(--font-arabic);
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
  animation: wisdom-flicker 7s infinite;
}

.prelude-text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: rgba(240, 230, 210, 0.8);
  font-family: var(--font-arabic);
  position: relative;
  animation: reality-shift 15s infinite linear;
}

.prelude-text::before,
.prelude-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--blood-color);
  opacity: 0.5;
  position: absolute;
}

.prelude-text::before {
  top: -1.5rem;
  right: -1rem;
}

.prelude-text::after {
  bottom: -2.5rem;
  left: -1rem;
}

.prelude-fractal {
  position: absolute;
  width: 300px;
  height: 300px;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 L50 0 L100 50 L50 100 Z" stroke="%238b0000" stroke-width="1" fill="none"/></svg>');
  background-size: 100% 100%;
  opacity: 0.1;
  animation: 
    rotate 60s infinite linear,
    quantum-fluctuation 10s infinite ease-in-out;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


 .quantum-reflections {
  padding: 8rem 2rem;
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 L100 50 M50 0 L50 100" stroke="%238b0000" stroke-width="0.1" fill="none"/></svg>'),
    linear-gradient(to bottom, #1a0000 0%, #000000 100%);
  background-size: 50px 50px, 100% 100%;
}

.reflections-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.reflection {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 15px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.reflection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(139, 0, 0, 0.1) 0%, 
    transparent 100%);
  z-index: -1;
}

.reflection h3 {
  font-size: 2rem;
  color: var(--bone-color);
  margin-bottom: 1.5rem;
  font-family: var(--font-arabic);
  position: relative;
}

.reflection h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--blood-color);
}

.reflection p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(240, 230, 210, 0.8);
  font-family: var(--font-arabic);
}

.left-reflection {
  transform-origin: right center;
  animation: 
    fragment-illumination 5s infinite,
    reality-shift 20s infinite linear;
}

.right-reflection {
  transform-origin: left center;
  animation: 
    fragment-illumination 5s infinite,
    reality-shift 20s infinite linear reverse;
}

 .zenith-manifesto {
  padding: 8rem 2rem;
  background: 
    linear-gradient(to bottom, #000000 0%, #1a0000 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100" stroke="%238b0000" stroke-width="0.05" fill="none"/></svg>');
  background-size: 100% 100%, 30px 30px;
  position: relative;
}

.manifesto-container {
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-scroll {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 15px;
  padding: 3rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
}

.manifesto-scroll::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 20px;
  z-index: -1;
  transform: translateZ(-10px);
}

.scroll-content {
  position: relative;
}

.scroll-content h2 {
  font-size: 3rem;
  color: var(--bone-color);
  margin-bottom: 3rem;
  text-align: center;
  font-family: var(--font-arabic);
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
  position: relative;
}

.scroll-content h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--blood-color);
}

.scroll-text {
  font-size: 1.2rem;
  line-height: 2;
  color: rgba(240, 230, 210, 0.8);
  font-family: var(--font-arabic);
}

.scroll-text p {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.scroll-text p::before {
  content: '✧';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blood-color);
}

 .void-entrance {
  position: relative;
  height: 110vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: 
    linear-gradient(135deg, #000000 0%, var(--void-color) 100%),
    radial-gradient(circle at center, var(--blood-color) 0%, transparent 70%);
  isolation: isolate;
}

.void-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, var(--blood-color) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, var(--blood-color) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  opacity: 0.3;
  z-index: var(--z-base);
  mix-blend-mode: overlay;
}

.void-fractures {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 Q25 10 50 50 T100 50" stroke="%23ffffff" stroke-width="0.3" fill="none"/><path d="M0 30 Q50 0 100 30 T0 70 Q50 100 100 70" stroke="%23ffffff" stroke-width="0.2" fill="none"/></svg>'),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10 10 L90 90 M10 90 L90 10" stroke="%238b0000" stroke-width="0.5" fill="none"/></svg>');
  background-size: 200px 200px, 150px 150px;
  opacity: 0.1;
  z-index: var(--z-above);
}

.void-blood {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: 
    linear-gradient(to top, rgba(139, 0, 0, 0.3) 0%, transparent 100%),
    radial-gradient(ellipse at center top, rgba(139, 0, 0, 0.5) 0%, transparent 70%);
  z-index: var(--z-top);
}

.void-content {
  position: relative;
  z-index: var(--z-cosmic);
  text-align: center;
  padding: var(--space-large);
  max-width: 900px;
}

.void-quote {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: var(--line-height-tight);
  color: var(--bone-color);
  font-family: var(--font-arabic);
  font-weight: 700;
  margin-bottom: var(--space-xlarge);
  text-shadow: 0 0 10px rgba(139,0,0,0.5);
}

.quote-fragment {
  display: block;
  margin: var(--space-medium) 0;
  position: relative;
  will-change: transform, opacity;
}

.quote-fragment::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--blood-color);
  opacity: 0.5;
}

.quote-fragment:nth-child(1) {
  transform: rotate(-2deg);
  color: var(--bone-color-light);
}

.quote-fragment:nth-child(2) {
  transform: rotate(1deg);
  color: var(--bone-color);
}

.quote-fragment:nth-child(3) {
  transform: rotate(-3deg);
  color: var(--bone-color-dark);
}

.void-scroll-hint {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
}

.scroll-line {
  display: block;
  width: var(--border-thin);
  height: 60px;
  background: linear-gradient(to bottom, var(--bone-color) 0%, transparent 100%);
}

.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--bone-color);
  border-radius: var(--border-radius-circle);
  margin-top: var(--space-micro);
  box-shadow: 0 0 10px rgba(240, 230, 210, 0.5);
}

 .philosophy-mirror {
  position: relative;
  padding: var(--space-cosmic) var(--space-medium);
  background: 
    linear-gradient(to bottom, #000000 0%, #0a0a0a 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 L100 50 M50 0 L50 100" stroke="%238b0000" stroke-width="0.1" fill="none"/></svg>');
  background-size: 100% 100%, 50px 50px;
  overflow: hidden;
  isolation: isolate;
}

.mirror-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mirror-surface {
  width: 300px;
  height: 300px;
  border-radius: var(--border-radius-circle);
  position: relative;
  border: var(--border-medium) solid var(--bone-color);
  box-shadow: 
    0 0 30px rgba(139, 0, 0, 0.5),
    inset 0 0 50px rgba(0, 0, 0, 0.7);
  margin-bottom: var(--space-xxlarge);
  overflow: hidden;
  transition: all var(--transition-medium) ease;
  will-change: transform, box-shadow;
}

.mirror-cracks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10 10 L90 90" stroke="%238b0000" stroke-width="1"/><path d="M30 5 L70 95" stroke="%238b0000" stroke-width="0.8"/><path d="M5 50 L95 50" stroke="%238b0000" stroke-width="0.5"/></svg>');
  background-size: 100% 100%;
  z-index: var(--z-above);
  will-change: transform, opacity;
}

.mirror-reflection {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: var(--z-base);
  filter: grayscale(80%) contrast(120%) brightness(0.7);
  transition: filter var(--transition-medium) ease;
}

.reflection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mirror-quote {
  text-align: center;
  max-width: 600px;
  position: relative;
}

.mirror-quote::before,
.mirror-quote::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.2) 0%, transparent 70%);
  z-index: var(--z-below);
}

.mirror-quote::before {
  top: -50px;
  right: -50px;
}

.mirror-quote::after {
  bottom: -50px;
  left: -50px;
}

.mirror-quote p {
  font-size: var(--font-size-xxlarge);
  line-height: var(--line-height-tight);
  color: var(--bone-color);
  font-family: var(--font-arabic);
  margin-bottom: var(--space-large);
  position: relative;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.mirror-quote p::before,
.mirror-quote p::after {
  content: '"';
  font-size: var(--font-size-massive);
  color: var(--blood-color);
  opacity: 0.5;
  position: absolute;
}

.mirror-quote p::before {
  top: -1.5rem;
  right: -1rem;
}

.mirror-quote p::after {
  bottom: -2.5rem;
  left: -1rem;
}

.mirror-symbol {
  font-size: var(--font-size-massive);
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: var(--border-radius-circle);
  background: rgba(139, 0, 0, 0.1);
  border: var(--border-thin) solid rgba(139, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
  will-change: transform, box-shadow;
}

 .cosmic-fragments {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.cosmic-fragment {
  position: absolute;
  width: var(--size, 10px);
  height: var(--size, 10px);
  background: rgba(240, 230, 210, var(--opacity, 0.2));
  border-radius: 50%;
  left: var(--x, 50%);
  top: var(--y, 50%);
  filter: blur(1px);
  animation: float var(--duration, 10s) var(--delay, 0s) infinite ease-in-out;
}

 .celestial-bodies {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.celestial-body {
  position: absolute;
  width: var(--size, 30px);
  height: var(--size, 30px);
  left: var(--x, 50%);
  top: var(--y, 50%);
  animation: celestial-float var(--duration, 20s) var(--delay, 0s) infinite ease-in-out;
}

.celestial-body.star {
  background: radial-gradient(circle, rgba(240, 230, 210, 0.8) 0%, rgba(139, 0, 0, 0.3) 70%);
  border-radius: 50%;
  filter: blur(0.5px);
}

.celestial-body.planet {
  background: radial-gradient(circle, rgba(139, 0, 0, 0.5) 0%, rgba(26, 0, 0, 0.3) 70%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.celestial-body.comet {
  width: calc(var(--size, 30px) * 2);
  height: 2px;
  background: linear-gradient(to right, rgba(240, 230, 210, 0.8), transparent);
  transform-origin: left center;
}

.celestial-body.nebula {
  width: calc(var(--size, 30px) * 3);
  height: calc(var(--size, 30px) * 3);
  background: radial-gradient(circle, rgba(139, 0, 0, 0.2) 0%, transparent 70%);
  filter: blur(5px);
}

 .philosophy-glyphs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.philosophy-glyph {
  position: absolute;
  font-size: 2rem;
  color: rgba(139, 0, 0, 0.3);
  animation: glyph-float var(--duration, 20s) var(--delay, 0s) infinite ease-in-out;
}

 .zenith-orbs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.zenith-orb {
  position: absolute;
  width: var(--size, 60px);
  height: var(--size, 60px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, var(--glow, 0.3)) 0%, transparent 70%);
  animation: orb-float var(--duration, 30s) infinite ease-in-out;
}

 .truth-fragments {
  padding: var(--space-cosmic) var(--space-medium);
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100" stroke="%238b0000" stroke-width="0.1"/><path d="M0 100 L100 0" stroke="%238b0000" stroke-width="0.1"/></svg>'),
    linear-gradient(to bottom, #0a0a0a 0%, #000000 100%);
  background-size: 100px 100px, 100% 100%;
  position: relative;
  isolation: isolate;
}

.truth-fragments::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  z-index: var(--z-below);
}

.fragments-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xlarge);
  position: relative;
  z-index: var(--z-base);
}

.fragment {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-large);
  padding: var(--space-xlarge);
  position: relative;
  overflow: hidden; 
  border: var(--border-thin) solid transparent; 

  will-change: transform, opacity;  
  transition: transform 0.3s var(--animation-cosmic);  
}

.fragment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, transparent 100%);
  z-index: var(--z-below);
}

.fragment::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 230, 210, 0.05) 0%, transparent 70%);
  z-index: var(--z-below);
  opacity: 0;
  transition: opacity var(--transition-medium) ease;
}

.fragment:hover::after {
  opacity: 1;
}

.fragment-symbol {
  font-size: var(--font-size-xxlarge);
  margin-bottom: var(--space-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-circle);
  background: rgba(0, 0, 0, 0.3);
  border: var(--border-thin) solid rgba(139, 0, 0, 0.3);
  will-change: transform;
}

.fragment-content h3 {
  font-size: var(--font-size-xxlarge);
  color: var(--bone-color);
  margin-bottom: var(--space-small);
  font-family: var(--font-arabic);
  position: relative;
  display: inline-block;
}

.fragment-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: var(--border-thin);
  background: linear-gradient(to right, var(--blood-color), transparent);
}

.fragment-content p {
  font-size: var(--font-size-large);
  line-height: var(--line-height-loose);
  color: rgba(240, 230, 210, 0.8);
  font-family: var(--font-arabic);
}

 [data-fragment-type="pain"] {
  border-color: var(--blood-color);
}

[data-fragment-type="pain"] .fragment-symbol {
  background: rgba(139, 0, 0, 0.2);
  border-color: var(--blood-color-light);
}

[data-fragment-type="existence"] {
  border-color: #4b4b4b;
}

[data-fragment-type="existence"] .fragment-symbol {
  background: rgba(75, 75, 75, 0.2);
  border-color: #5b5b5b;
}

[data-fragment-type="truth"] {
  border-color: #daa520;
}

[data-fragment-type="truth"] .fragment-symbol {
  background: rgba(218, 165, 32, 0.2);
  border-color: #eab540;
}

 .knowledge-paradox {
  position: relative;
  padding: 0;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: 
    linear-gradient(to right, #000000 0%, var(--void-color) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 0 L100 50 L50 100 L0 50 Z" stroke="%238b0000" stroke-width="0.1" fill="none"/></svg>');
  background-size: 100% 100%, 50px 50px;
  isolation: isolate;
}

.paradox-split {
  display: flex;
  height: 100%;
  position: relative;
}

.paradox-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--border-thin);
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--blood-color), transparent);
  z-index: var(--z-above);
}

.split-side {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-large);
  transition: all var(--transition-slow) ease;
}

.split-ignorance {
  background: #000000;
  border-right: var(--border-thin) solid rgba(139, 0, 0, 0.3);
}

.split-knowledge {
  background: var(--void-color);
  border-left: var(--border-thin) solid rgba(255, 255, 255, 0.1);
}

.split-content {
  max-width: 500px;
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.split-content h3 {
  font-size: var(--font-size-massive);
  color: var(--bone-color);
  margin-bottom: var(--space-large);
  font-family: var(--font-arabic);
  position: relative;
}

.split-content h3::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: var(--border-medium);
  background: var(--blood-color);
}

.split-content p {
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-loose);
  color: rgba(240, 230, 210, 0.8);
  font-family: var(--font-arabic);
}

.paradox-quote {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 600px;
  padding: var(--space-medium);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border-top: var(--border-thin) solid var(--blood-color);
  border-bottom: var(--border-thin) solid var(--blood-color);
  z-index: var(--z-top);
}

.paradox-quote p {
  font-size: var(--font-size-xxlarge);
  color: var(--bone-color);
  font-family: var(--font-arabic);
  font-weight: 700;
}

 .meaning-collapse {
  padding: var(--space-cosmic) var(--space-medium);
  background: 
    linear-gradient(to bottom, var(--void-color) 0%, #000000 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100" stroke="%238b0000" stroke-width="0.05" fill="none"/></svg>');
  background-size: 100% 100%, 30px 30px;
  position: relative;
  isolation: isolate;
}

.meaning-collapse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  z-index: var(--z-below);
}

.collapse-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.collapse-line {
  margin-bottom: var(--space-xlarge);
  position: relative;
  will-change: transform, opacity;
}

.collapse-line p {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--bone-color);
  font-family: var(--font-arabic);
  display: inline-block;
  position: relative;
  padding: 0 var(--space-medium);
}

[data-line-type="fragment"] p::before {
  content: '✧';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blood-color);
  opacity: 0.7;
  font-size: 1.2rem;
}

[data-line-type="core"] {
  margin-top: var(--space-massive);
}

[data-line-type="core"] p {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blood-color);
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

 .philosophy-return {
  padding: var(--space-cosmic) var(--space-medium);
  background: 
    #000000,
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 0 L100 100 L0 100 Z" stroke="%238b0000" stroke-width="0.1" fill="none"/></svg>');
  background-size: 100% 100%, 50px 50px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.philosophy-return::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
  z-index: var(--z-below);
}

.return-gate {
  position: relative;
  max-width: 600px;
  height: 300px;
  margin: 0 auto;
  perspective: 1000px;
}

.gate-part {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: 
    linear-gradient(to right, rgba(139, 0, 0, 0.1) 0%, transparent 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 L100 50 M50 0 L50 100" stroke="%238b0000" stroke-width="0.1" fill="none"/></svg>');
  border: var(--border-thin) solid rgba(139, 0, 0, 0.3);
  transition: all var(--transition-slow) ease;
  will-change: transform, opacity;
}

.gate-part.left-gate {
  left: 0;
  border-right: none;
  transform-origin: left center;
}

.gate-part.right-gate {
  right: 0;
  border-left: none;
  transform-origin: right center;
}

.gate-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-top);
  text-align: center;
}

.return-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-small);
  padding: var(--space-small) var(--space-large);
  background: rgba(139, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: var(--border-thin) solid var(--blood-color);
  color: var(--bone-color);
  font-family: var(--font-arabic);
  font-size: var(--font-size-large);
  text-decoration: none;
  transition: all var(--transition-medium) ease;
  border-radius: var(--border-radius-large);
  will-change: transform, box-shadow;
}

.return-button:hover {
  background: rgba(139, 0, 0, 0.5);
  box-shadow: 
    0 0 20px rgba(139, 0, 0, 0.5),
    0 0 40px rgba(139, 0, 0, 0.3);
}

.return-button i {
  transition: all var(--transition-medium) ease;
}

 .cosmic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 0%, transparent 30%),
    linear-gradient(135deg, #000000 0%, var(--void-color) 100%);
  z-index: var(--z-below);
}

.quantum-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="%23ffffff"/><circle cx="30" cy="20" r="0.5" fill="%23ffffff"/><circle cx="70" cy="30" r="0.5" fill="%23ffffff"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff"/><circle cx="20" cy="60" r="0.5" fill="%23ffffff"/><circle cx="50" cy="70" r="0.5" fill="%23ffffff"/><circle cx="80" cy="80" r="0.5" fill="%23ffffff"/><circle cx="40" cy="90" r="0.5" fill="%23ffffff"/></svg>');
  background-size: 100px 100px;
  opacity: 0.1;
  z-index: var(--z-below);
}

.dimensional-portals {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="90" cy="10" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="10" cy="90" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="90" cy="90" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/></svg>');
  background-size: 100px 100px;
  opacity: 0.05;
  z-index: var(--z-below);
}

.zenith-signature {
  position: fixed;
  bottom: var(--space-small);
  right: var(--space-small);
  font-family: var(--font-latin);
  font-size: var(--font-size-base);
  color: rgba(240, 230, 210, 0.3);
  letter-spacing: 2px;
  z-index: var(--z-below);
}

 .cosmic-divider {
  width: 100%;
  height: var(--border-thin);
  background: linear-gradient(to right, transparent, var(--blood-color), transparent);
  margin: var(--space-large) 0;
}

.philosophy-glyph {
  font-size: var(--font-size-massive);
  display: inline-block;
  margin: var(--space-medium);
  filter: drop-shadow(0 0 5px rgba(139, 0, 0, 0.5));
}

.zenith-orb {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-circle);
  background: radial-gradient(circle, rgba(139, 0, 0, 0.3) 0%, transparent 70%);
  border: var(--border-thin) solid rgba(139, 0, 0, 0.5);
  position: absolute;
  z-index: var(--z-below);
  will-change: transform, opacity;
}

.cosmic-fractal {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100 M0 100 L100 0" stroke="%238b0000" stroke-width="0.5" fill="none"/></svg>');
  background-size: 100% 100%;
  opacity: 0.1;
  z-index: var(--z-below);
  will-change: transform, opacity;
}

 .text-blood {
  color: var(--blood-color);
}

.text-bone {
  color: var(--bone-color);
}

.bg-void {
  background-color: var(--void-color);
}

.bg-blood {
  background-color: var(--blood-color);
}

.border-blood {
  border-color: var(--blood-color);
}
 

.rotate-slight {
  transform: rotate(1deg);
}

.rotate-slight-negative {
  transform: rotate(-1deg);
}

 @media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

 .optimize-performance {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

 @media print {
  .void-entrance,
  .philosophy-mirror,
  .truth-fragments,
  .knowledge-paradox,
  .meaning-collapse,
  .philosophy-return {
    height: auto !important;
    min-height: auto !important;
    page-break-after: always;
  }
  
  .void-overlay,
  .void-fractures,
  .void-blood,
  .mirror-cracks,
  .quantum-dots,
  .dimensional-portals {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}

 .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--blood-color), #daa520);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
}

 .zenith-share {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--blood-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.zenith-share:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.share-menu {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--blood-color);
  border-radius: 10px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.share-menu a {
  color: var(--bone-color);
  padding: 0.5rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.share-menu a:hover {
  background: rgba(139, 0, 0, 0.3);
}

.share-menu a i {
  font-size: 1.2rem;
}

 .philosophy-faq {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, #1a0000 0%, #000000 100%);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.faq-question {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--bone-color);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: rgba(240, 230, 210, 0.8);
  line-height: 1.8;
  font-family: var(--font-arabic);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 2rem;
}

 .theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--blood-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--bone-color);
}

 body.light-mode {
  --void-color: #f0e6d2;
  --blood-color: #8b0000;
  --bone-color: #1a0000;
  --crack-color: rgba(26, 0, 0, 0.2); 
}

body.light-mode .cosmic-background {
  background: linear-gradient(135deg, #f0e6d2 0%, #e0d6c2 100%);
}

body.light-mode .quantum-dots {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="%231a0000"/><circle cx="30" cy="20" r="0.5" fill="%231a0000"/><circle cx="70" cy="30" r="0.5" fill="%231a0000"/><circle cx="90" cy="40" r="0.5" fill="%231a0000"/><circle cx="20" cy="60" r="0.5" fill="%231a0000"/><circle cx="50" cy="70" r="0.5" fill="%231a0000"/><circle cx="80" cy="80" r="0.5" fill="%231a0000"/><circle cx="40" cy="90" r="0.5" fill="%231a0000"/></svg>');
}

body.light-mode .dimensional-portals {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="90" cy="10" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="10" cy="90" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/><circle cx="90" cy="90" r="5" stroke="%238b0000" stroke-width="0.2" fill="none"/></svg>');
}
 
 
.low-performance-mode {
  --transition-fast: 0.1s !important;
  --transition-medium: 0.1s !important;
  --transition-slow: 0.1s !important;
}
 

.low-performance-mode [data-scroll],
.low-performance-mode [data-scroll-section] {
  transform: none !important;
}

.low-performance-mode .cosmic-fragments,
.low-performance-mode .celestial-bodies,
.low-performance-mode .philosophy-glyphs-container,
.low-performance-mode .zenith-orbs-container,
.low-performance-mode .void-fractures,
.low-performance-mode .quantum-dots,
.low-performance-mode .dimensional-portals,
.low-performance-mode .prelude-fractal,
.low-performance-mode .mirror-cracks {
  display: none !important;
}

.low-performance-mode .void-entrance,
.low-performance-mode .philosophy-mirror,
.low-performance-mode .knowledge-paradox {
  height: auto !important;
  min-height: auto !important;
}

.low-performance-mode .fragment,
.low-performance-mode .reflection,
.low-performance-mode .manifesto-scroll {
  transform: none !important;
  animation: none !important;
}

.low-performance-mode .scroll-progress {
  display: block !important;  
}
 
@media (max-width: 768px) {
  .low-performance-mode .prelude-title {
    font-size: 2rem !important;
  }
  .low-performance-mode .prelude-text {
    font-size: 1.2rem !important;
  }
} 