/* Gothic Website Styles */

:root {
    --blood-red: #8B0000;
    --muted-gold: #B8860B;
    --smoke-gray: #2d2d2d;
    --soft-white: #f8f8f8;
    --black: #000000;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 100%);
    color: var(--soft-white);
    overflow-x: hidden;
}

/* Typography */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-crimson {
    font-family: 'Crimson Text', serif;
}

/* Colors */
.text-blood-red { color: var(--blood-red) !important; }
.text-muted-gold { color: var(--muted-gold) !important; }
.text-smoke-gray { color: var(--smoke-gray) !important; }
.text-soft-white { color: var(--soft-white) !important; }

.bg-blood-red { background-color: var(--blood-red) !important; }
.bg-muted-gold { background-color: var(--muted-gold) !important; }
.bg-smoke-gray { background-color: var(--smoke-gray) !important; }
.bg-soft-white { background-color: var(--soft-white) !important; }

.border-blood-red { border-color: var(--blood-red) !important; }
.border-muted-gold { border-color: var(--muted-gold) !important; }
.border-smoke-gray { border-color: var(--smoke-gray) !important; }
.border-soft-white { border-color: var(--soft-white) !important; }

/* Buttons */
.btn-blood-red {
    background-color: var(--blood-red);
    border-color: var(--blood-red);
    color: var(--soft-white);
    transition: all 0.3s ease;
}

.btn-blood-red:hover {
    background-color: rgba(139, 0, 0, 0.8);
    border-color: rgba(139, 0, 0, 0.8);
    color: var(--soft-white);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

.btn-muted-gold {
    background-color: var(--muted-gold);
    border-color: var(--muted-gold);
    color: var(--black);
    transition: all 0.3s ease;
}

.btn-muted-gold:hover {
    background-color: rgba(184, 134, 11, 0.9);
    border-color: rgba(184, 134, 11, 0.9);
    color: var(--black);
    transform: scale(1.05);
}

.btn-outline-muted-gold {
    border-color: var(--muted-gold);
    color: var(--muted-gold);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-muted-gold:hover {
    background-color: var(--muted-gold);
    border-color: var(--muted-gold);
    color: var(--black);
    transform: scale(1.05);
}

/* Navigation */
.gothic-nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 45, 45, 0.2);
}

.gothic-nav-link {
    color: var(--soft-white) !important;
    transition: color 0.3s ease;
    font-family: 'Crimson Text', serif;
}

.gothic-nav-link:hover,
.gothic-nav-link.active {
    color: var(--muted-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), 
                url('https://images.pexels.com/photos/2693529/pexels-photo-2693529.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gothic-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.quote-mark {
    position: absolute;
    font-size: 4rem;
    color: rgba(139, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.quote-start {
    top: -20px;
    left: -20px;
}

.quote-end {
    bottom: -20px;
    right: -20px;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(184, 134, 11, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--muted-gold);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--muted-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

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

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* About Section */
.about-image {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('https://images.pexels.com/photos/159581/dictionary-reference-book-learning-meaning-159581.jpeg?auto=compress&cs=tinysrgb&w=800');
    background-size: cover;
    background-position: center;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Paper Texture */
.paper-texture {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 119, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 108, 0.1) 0%, transparent 50%);
}

/* Typewriter Effect */
.typewriter-text {
    overflow: hidden;
    border-right: 2px solid var(--blood-red);
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s both, blink-cursor 1s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--blood-red); }
    51%, 100% { border-color: transparent; }
}

/* Cards */
.gothic-card {
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.gothic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(184, 134, 11, 0.5) !important;
}

.book-cover {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gothic-card:hover .book-cover {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Forms */
.gothic-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(248, 248, 248, 0.2);
    color: var(--soft-white);
    transition: all 0.3s ease;
}

.gothic-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--muted-gold);
    color: var(--soft-white);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

.gothic-input::placeholder {
    color: rgba(248, 248, 248, 0.5);
}

/* Gradients */
.bg-gradient-blood-gold {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(184, 134, 11, 0.2));
}

.bg-gradient-gold-red {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(139, 0, 0, 0.1));
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

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

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

.fog {
    position: absolute;
    background: radial-gradient(ellipse, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-fog 20s infinite ease-in-out;
}

.fog-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.fog-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -15%;
    animation-delay: -5s;
}

.fog-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

.fog-4 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: 5%;
    animation-delay: -15s;
}

.fog-5 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -7s;
}

@keyframes float-fog {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateX(20px) translateY(-30px) rotate(90deg);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-20px) translateY(20px) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: translateX(30px) translateY(-10px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .quote-mark {
        font-size: 2rem;
    }
    
    .quote-start {
        top: -10px;
        left: -10px;
    }
    
    .quote-end {
        bottom: -10px;
        right: -10px;
    }
    
    .typewriter-text {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .about-image {
        height: 250px;
    }
    
    .book-cover {
        height: 200px;
    }
    
    .fog {
        display: none;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .fs-3 {
        font-size: 1.5rem !important;
    }
    
    .fs-4 {
        font-size: 1.25rem !important;
    }
}

