:root {
    --bg-color: #020202;
    --bg-overlay: rgba(5, 5, 5, 0.85);
    --blood: #8A0303;
    --blood-glow: #e60000;
    --text-primary: #d1d1d1;
    --text-muted: #4a4a4a;
    --text-dark: #111111;
    --accent: #b08d57; /* Old gold */
    --font-heading: 'Cinzel Decorative', serif;
    --font-creepy: 'Eater', cursive;
    --font-body: 'Alegreya', serif;
    --font-gore: 'Nosifer', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--blood);
}

/* Film Grain Overlay */
#grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

#vignette {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 998;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s ease;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    position: relative;
    margin-bottom: 2rem;
    letter-spacing: 0.2rem;
    animation: pulse 4s infinite;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.steps p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 1rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.steps .subtext {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--blood);
    font-style: italic;
    margin-top: 0.2rem;
}

.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#enter-btn {
    margin-top: 3rem;
    background: transparent;
    border: 1px solid var(--blood);
    color: var(--blood);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(138, 3, 3, 0.2);
}

#enter-btn:hover {
    background: var(--blood);
    color: #fff;
    box-shadow: 0 0 20px var(--blood-glow);
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 0;
    position: absolute;
    top: 0;
    z-index: 10;
}

.band-logo {
    width: 600px;
    max-width: 90%;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    animation: float 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.2) contrast(1.2) grayscale(0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 25vh; /* To leave space for the huge logo */
}

.sub-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2rem;
    text-shadow: 0 0 10px rgba(176, 141, 87, 0.3);
}

.manifesto {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.sigil-container {
    margin-top: 4rem;
}

.sigil {
    font-size: 4rem;
    color: var(--text-muted);
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
}

.sigil:hover {
    color: var(--blood);
    text-shadow: 0 0 20px var(--blood-glow);
    transform: scale(1.1) rotate(180deg);
}

.whisper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--bg-color); /* invisible until hovered */
    white-space: nowrap;
    transition: color 0.5s ease;
    font-family: var(--font-creepy);
    margin-top: 1rem;
}

.sigil:hover .whisper {
    color: var(--blood);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

/* Abyss Section */
.abyss-section {
    position: relative;
    background: #000;
    padding: 10rem 2rem;
    z-index: 2;
}

.jung-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 8rem;
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.jung-quote .author {
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-style: normal;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.hidden-messages {
    position: relative;
    min-height: 300px;
}

.cryptic {
    position: absolute;
    font-family: var(--font-creepy);
    font-size: 1.5rem;
    color: var(--text-dark); /* Practically invisible on black */
    transition: all 0.3s ease;
    user-select: none;
}

.cryptic:hover {
    color: var(--blood);
    text-shadow: 0 0 10px var(--blood);
}

.cryptic::after {
    content: attr(data-phrase);
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 1rem;
    font-family: var(--font-body);
    opacity: 0;
    color: var(--accent);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.cryptic:hover::after {
    opacity: 1;
}

.desc-1 { top: 10%; left: 15%; }
.desc-2 { top: 60%; left: 70%; font-size: 2rem; }
.desc-3 { top: 80%; left: 20%; }
.desc-4 { top: 30%; left: 60%; font-size: 1.2rem; }

.interactive-altar {
    margin-top: 10rem;
    text-align: center;
}

.altar-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--blood);
    margin-bottom: 1rem;
    letter-spacing: 0.3rem;
}

.altar-text {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.canvas-wrapper {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 0 auto;
    border: 1px solid #111;
    background: #020202;
    box-shadow: inset 0 0 50px #000;
}

#ritual-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Music Section */
.music-section {
    padding: 8rem 2rem;
    background: radial-gradient(circle at top, #0a0000 0%, #000 100%);
    position: relative;
    z-index: 2;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 4rem;
    letter-spacing: 0.2rem;
}

.track-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.track-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid #111;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.track-list li:hover {
    color: var(--text-primary);
    padding-left: 1rem;
    border-bottom-color: var(--blood);
    background: linear-gradient(90deg, rgba(138,3,3,0.1) 0%, rgba(0,0,0,0) 100%);
}

.track-num {
    color: var(--blood);
    margin-right: 1rem;
    width: 30px;
}

.track-name {
    flex-grow: 1;
}

.track-duration {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background: #000;
    z-index: 2;
    border-top: 1px solid #111;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tiny-secret {
    margin-top: 2rem;
    font-size: 0.7rem !important;
    color: #050505 !important; /* very hidden */
    cursor: pointer;
    transition: color 0.3s;
}

.tiny-secret:hover {
    color: var(--blood) !important;
}

/* Secret Overlay */
#secret-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease;
    backdrop-filter: blur(5px);
}

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

.nosifer-text {
    font-family: var(--font-gore);
    font-size: 4rem;
    color: var(--blood);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--blood-glow);
    animation: drip 3s infinite alternate;
}

.secret-content p {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

#close-secret {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
}

#close-secret:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Animations */
@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 85px, 0); }
    20% { clip: rect(66px, 9999px, 12px, 0); }
    40% { clip: rect(100px, 9999px, 30px, 0); }
    60% { clip: rect(40px, 9999px, 80px, 0); }
    80% { clip: rect(10px, 9999px, 50px, 0); }
    100% { clip: rect(55px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(15px, 9999px, 90px, 0); }
    20% { clip: rect(45px, 9999px, 20px, 0); }
    40% { clip: rect(80px, 9999px, 40px, 0); }
    60% { clip: rect(20px, 9999px, 60px, 0); }
    80% { clip: rect(70px, 9999px, 10px, 0); }
    100% { clip: rect(35px, 9999px, 80px, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes drip {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.05); }
}
