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

:root {
    /* Color Palette - Deeper and more mystical */
    --bg-color: #050505;
    --bg-deep: #000000;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-red: #cc0000;
    --accent-gold: #c5a059;
    --accent-purple: #6b21a8;
    --border-color: rgba(204, 0, 0, 0.3);
    --glass-bg: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-red: rgba(204, 0, 0, 0.5);
    
    /* Fonts */
    --font-main: 'Shippori Mincho', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif; /* Added for mystical headers */
    
    /* Transitions */
    --transition-standard: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    /* Deep Abyss background */
    background: 
        radial-gradient(circle at 20% 30%, rgba(107, 33, 168, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(204, 0, 0, 0.08) 0%, transparent 40%),
        var(--bg-color);
    background-attachment: fixed;
}

/* Background Fog Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%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");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Typography Enhancements */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    font-family: var(--font-display), var(--font-main);
    text-shadow: 0 0 15px var(--glow-red);
}

.title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(to bottom, #fff, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-standard);
}

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

.section {
    padding: 100px 0;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1px; /* Sharper, more "grimoire" feel */
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: var(--transition-standard);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0.5;
}

/* Decorative Borders */
.ornament-border {
    position: relative;
    padding: 40px;
    border: 1px solid var(--accent-red);
}

.ornament-border::before,
.ornament-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-red);
}

.ornament-border::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.ornament-border::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--text-primary);
    font-weight: bold;
    letter-spacing: 0.3em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    transition: var(--transition-standard);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 20px var(--accent-red);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-dim {
    background: rgba(255, 255, 255, 0.02);
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
}
