:root {
    /* Extracted Palette */
    --gold: #b18a5d;
    --gold-light: #ddb683;
    --gold-dark: #8e6e4a;
    --dark: #0f0f0f;
    --dark-card: #1a1a1a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: #e5e5e5;
}

.serif {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: var(--gold);
}

.gold-bg {
    background-color: var(--gold);
}

.gold-border {
    border-color: var(--gold);
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(177, 138, 93, 0.1);
}

/* Hero Background & Global Theme */
.hero-gradient {
    position: relative;
    background-color: var(--dark);
}

.hero-gradient::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* or cover, depending on preference. Contain shows full logo. */
    opacity: 0.15;
    /* Low opacity to act as texture */
    pointer-events: none;
    z-index: -1;
    filter: grayscale(100%) sepia(20%) hue-rotate(5deg);
    /* Optional: tint it slightly gold */
}

.hero-gradient::after {
    /* Gradient Overlay for depth */
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(177, 138, 93, 0.1), transparent 60%),
        radial-gradient(circle at bottom left, rgba(15, 15, 15, 0.8), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px -10px rgba(177, 138, 93, 0.15);
}

/* AI Loader Animation */
.ai-loader {
    border: 2px solid rgba(177, 138, 93, 0.1);
    border-left-color: var(--gold);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Markdown Content Styling */
.markdown-content h3 {
    font-weight: bold;
    color: var(--gold);
    margin-top: 1rem;
    font-family: 'Playfair Display', serif;
}

.markdown-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #d4d4d4;
    line-height: 1.6;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}