@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #030303;
    --text-color: #e0e0e0;
    --accent-color: #8a0303; /* Deep blood red */
    --accent-glow: rgba(138, 3, 3, 0.4);
    --fog-color: rgba(200, 200, 200, 0.03);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* Suspenseful Background Fog Animation */
.fog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 200%;
    height: 100%;
    background: transparent url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: cover;
    animation: fog-anim 60s linear infinite;
    opacity: 0.3;
}

.fog2 {
    position: absolute;
    width: 200%;
    height: 100%;
    background: transparent url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
    background-size: cover;
    animation: fog-anim 40s linear infinite;
    opacity: 0.2;
}

@keyframes fog-anim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(3,3,3,0.4) 0%, #030303 100%), url('../Gothic_castle_on_cliff_202606101956.jpeg') no-repeat center center;
    background-size: cover;
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 20px var(--accent-glow);
    animation: pulse 4s infinite alternate;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
    opacity: 0.8;
}

@keyframes pulse {
    0% { text-shadow: 0 0 20px var(--accent-glow); transform: scale(1); }
    100% { text-shadow: 0 0 40px var(--accent-color); transform: scale(1.02); }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 3, 3, 0.2);
    border-color: rgba(138, 3, 3, 0.5);
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.story-card p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.enter-btn {
    margin-top: 40px;
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.enter-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.loading-text {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    grid-column: 1 / -1;
    animation: pulse 2s infinite alternate;
}
