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

:root {
    --blood-red: #8b0000;
    --dark-blood: #5a0000;
    --light-blood: #a00000;
    --gold: #b89d65;
    --parchment: #f2e6d9;
    --dark-bg: #0a0a0a;
    --gothic-purple: #2d1b33;
}

body {
    background-color: var(--dark-bg);
    color: #e0e0e0;
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 20%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><rect width="100" height="100" fill="none" stroke="%238b0000" stroke-width="2"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%238b0000" stroke-width="1"/></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blood Rain Animation */
.blood-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

.blood-drop {
    position: absolute;
    width: 2px;
    height: 30px;
    background: var(--blood-red);
    animation: fall linear infinite;
    opacity: 0.7;
    top: -30px; /* ADD THIS LINE - prevents pile-up */
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blood-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2rem;
    color: var(--blood-red);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--light-blood);
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.9);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--blood-red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--blood-red);
}

.nav-links a:hover:after {
    width: 100%;
}

.next-page-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 1;
    transform: translateY(0);
}


.next-page-btn .btn {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--blood-red);
    font-size: 0.9rem;
    padding: 10px 20px;
}

.next-page-btn .btn i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    padding: 100px 0 50px;
    position: relative;
}

.page.active {
    display: block;
    animation: fadeIn 1s ease;
}

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

/* Opening Page */
.opening-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" opacity="0.1"><path d="M100,20 C120,40 140,60 100,100 C60,140 40,120 20,100 C40,80 60,60 100,20 Z" fill="%238b0000"/><path d="M100,40 C110,50 120,60 100,80 C80,100 70,90 60,80 C70,70 80,60 100,40 Z" fill="%238b0000"/></svg>');
}

/* Remove reddish panel and half circles on mobile */
@media (max-width: 768px) {
    .opening-page {
        background: var(--dark-bg) !important;
    }
    .religious-symbols {
        display: none;
    }
}

.opening-content {
    position: relative;
    z-index: 2;
}

.opening-title {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    color: var(--blood-red);
    text-shadow: 
        0 0 20px rgba(139, 0, 0, 0.8),
        0 0 40px rgba(139, 0, 0, 0.6),
        0 0 60px rgba(139, 0, 0, 0.4);
    letter-spacing: 4px;
    margin-bottom: 0;
    animation: titlePulse 4s infinite;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
}

.opening-title::before, .opening-title::after {
    content: '\2720';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.6;
}

.opening-title::before {
    left: -80px;
}

.opening-title::after {
    right: -80px;
}

@keyframes titlePulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 20px rgba(139, 0, 0, 0.8),
            0 0 40px rgba(139, 0, 0, 0.6),
            0 0 60px rgba(139, 0, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 
            0 0 30px rgba(139, 0, 0, 1),
            0 0 60px rgba(139, 0, 0, 0.8),
            0 0 90px rgba(139, 0, 0, 0.6);
    }
}

.enter-btn {
    margin-top: 50px;
    opacity: 0;
    animation: fadeInUp 2s ease 3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Religious Symbols Background */
.religious-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* Remove floating things on mobile */
@media (max-width: 768px) {
    .religious-symbols {
        display: none;
    }
}
.symbol {
    position: absolute;
    font-family: 'UnifrakturMaguntia', cursive;
    color: var(--blood-red);
    font-size: 2rem;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--blood-red);
    border: 2px solid var(--blood-red);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.btn:hover {
    background: rgba(139, 0, 0, 0.1);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Home Page */
.home-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 5rem;
    color: var(--blood-red);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.7);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--parchment);
    margin-bottom: 40px;
    font-family: 'Crimson Text', serif;
    font-style: italic;
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--blood-red);
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title h2:before,
.section-title h2:after {
    content: '†';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 2rem;
    opacity: 0.6;
}

.section-title h2:before {
    left: -50px;
}

.section-title h2:after {
    right: -50px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.content-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--blood-red);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.content-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--parchment);
}

.quote {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold);
    border-left: 3px solid var(--blood-red);
    padding-left: 20px;
    margin: 30px 0;
    line-height: 1.6;
}

.vampiric-symbol {
    text-align: center;
    font-size: 8rem;
    color: var(--blood-red);
    opacity: 0.3;
    animation: symbolPulse 4s infinite;
}

@keyframes symbolPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.symbol-content {
    font-family: 'UnifrakturMaguntia', cursive;
}

/* Angelica Grid */
.angelica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.angelica-card {
    background: rgba(20, 20, 20, 0.7);
    padding: 30px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.angelica-card:hover {
    transform: translateY(-5px);
    border-color: var(--blood-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
}

.angelica-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--blood-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.angelica-card p {
    color: var(--parchment);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Jinju Section */
.jinju-section {
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 157, 101, 0.1) 0%, transparent 50%);
}

.jinju-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.jinju-symbol {
    text-align: center;
    font-size: 10rem;
    color: var(--gold);
    opacity: 0.4;
    animation: symbolRotate 10s infinite linear;
}

@keyframes symbolRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jinju-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--blood-red);
    margin-bottom: 30px;
}

.jinju-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--parchment);
}

/* Lore Section */
.lore-section {
    background: 
        radial-gradient(circle at 10% 10%, rgba(139, 0, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(139, 0, 0, 0.1) 0%, transparent 40%);
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.lore-card {
    background: rgba(20, 20, 20, 0.7);
    padding: 40px 30px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lore-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.lore-card:hover:before {
    left: 100%;
}

.lore-card:hover {
    transform: translateY(-5px);
    border-color: var(--blood-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.lore-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--blood-red);
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.lore-card p {
    color: var(--parchment);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blood-red);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-content {
    background: rgba(20, 20, 20, 0.8);
    padding: 30px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 5px;
    width: calc(50% - 40px);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--blood-red);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.7);
}

.timeline-item:nth-child(odd) .timeline-content:before {
    left: -50px;
}

.timeline-item:nth-child(even) .timeline-content:before {
    right: -50px;
}

.timeline-year {
    font-family: 'Cinzel', serif;
    color: var(--blood-red);
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--parchment);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--parchment);
    line-height: 1.6;
}

.timeline-item:hover .timeline-content {
    border-color: var(--blood-red);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--blood-red);
    padding: 40px 0;
    text-align: center;
    margin-top: 100px;
}

footer p {
    color: var(--parchment);
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--parchment);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--blood-red);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .opening-title {
        font-size: 3rem;
    }
    
    .opening-title::before,
    .opening-title::after {
        font-size: 1.5rem;
        left: -40px;
        right: -40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vampiric-symbol {
        font-size: 5rem;
        order: -1;
    }
    
    .jinju-content {
        grid-template-columns: 1fr;
    }
    
    .jinju-symbol {
        font-size: 6rem;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content:before {
        left: -40px !important;
    }
    
    .next-page-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .next-page-btn .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .opening-title {
        font-size: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .lore-grid {
        grid-template-columns: 1fr;
    }
    
    .angelica-grid {
        grid-template-columns: 1fr;
    }
}