@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* Custom CSS that works without Tailwind processing */
:root {
    --deep-night: #0a0a0a;
    --charcoal: #1a1a1a;
    --slate: #2a2a2a;
    --warm-gold: #d4af37;
    --burnished-gold: #b8941f;
    --pearl: #faf9f6;
    --silver-mist: #e8e6e0;
    --sage: #8a8a7a;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States for Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Content Slide Styling - Mobile First */
.content-slide {
    position: relative;
    margin-bottom: 4rem;
    transition: all 0.5s ease;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .content-slide {
        margin-bottom: 5rem;
        padding: 2.5rem 0;
    }
}

@media (min-width: 1024px) {
    .content-slide {
        margin-bottom: 6rem;
        padding: 3rem 0;
    }
}

.content-slide:hover {
    transform: scale(1.005);
}

@media (min-width: 1024px) {
    .content-slide:hover {
        transform: scale(1.01);
    }
}

/* Enhanced Content Slide Variations */
.content-slide:nth-child(even) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 246, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

@media (min-width: 640px) {
    .content-slide:nth-child(even) {
        border-radius: 1.5rem;
        padding: 3rem 2rem;
        box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
        margin: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .content-slide:nth-child(even) {
        border-radius: 2rem;
        padding: 4rem 3rem;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
        margin: 4rem 0;
    }
}

.content-slide:nth-child(odd) {
    background: linear-gradient(135deg, #1c1917 0%, #27272a 100%);
    color: #f5f5f4;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .content-slide:nth-child(odd) {
        border-radius: 1.5rem;
        padding: 3rem 2rem;
        box-shadow: 0 15px 60px rgba(212, 175, 55, 0.2);
        margin: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .content-slide:nth-child(odd) {
        border-radius: 2rem;
        padding: 4rem 3rem;
        box-shadow: 0 25px 80px rgba(212, 175, 55, 0.2);
        margin: 4rem 0;
    }
}

.content-slide:nth-child(odd) h2 {
    color: #f5f5f4;
}

/* Only apply light text color to paragraphs that are direct children of dark background sections */
.content-slide:nth-child(odd) > p {
    color: #e7e5e4;
}

/* Apply light text color to paragraphs in specific dark sections */
.content-slide:nth-child(odd) .bg-gradient-to-br.from-zinc-900 p,
.content-slide:nth-child(odd) .bg-gradient-to-b.from-zinc-900 p,
.content-slide:nth-child(odd) .bg-zinc-900 p,
.content-slide:nth-child(odd) .bg-stone-800 p {
    color: #e7e5e4;
}

/* Ensure dark text on light backgrounds within content slides */
.content-slide .bg-white p,
.content-slide .bg-gradient-to-r.from-amber-50 p,
.content-slide .bg-gradient-to-r.from-emerald-50 p,
.content-slide .bg-gradient-to-r.from-blue-50 p,
.content-slide .bg-gradient-to-br.from-blue-50 p,
.content-slide .bg-gradient-to-br.from-emerald-50 p,
.content-slide .bg-amber-100 p,
.content-slide .bg-emerald-100 p,
.content-slide .bg-blue-100 p {
    color: #18181b !important;
}

/* Also apply dark text to spans and other text elements on light backgrounds */
.content-slide .bg-white span,
.content-slide .bg-gradient-to-r.from-amber-50 span,
.content-slide .bg-gradient-to-r.from-emerald-50 span,
.content-slide .bg-gradient-to-r.from-blue-50 span,
.content-slide .bg-gradient-to-br.from-blue-50 span,
.content-slide .bg-gradient-to-br.from-emerald-50 span,
.content-slide .bg-amber-100 span,
.content-slide .bg-emerald-100 span,
.content-slide .bg-blue-100 span {
    color: #18181b !important;
}

/* Apply light text color to paragraphs in specific dark sections */
.content-slide:nth-child(odd) .bg-gradient-to-br.from-zinc-900 p,
.content-slide:nth-child(odd) .bg-gradient-to-b.from-zinc-900 p,
.content-slide:nth-child(odd) .bg-zinc-900 p,
.content-slide:nth-child(odd) .bg-stone-800 p {
    color: #e7e5e4;
}

/* Ensure dark text on light backgrounds within content slides */
.content-slide .bg-white p,
.content-slide .bg-gradient-to-r.from-amber-50 p,
.content-slide .bg-gradient-to-r.from-emerald-50 p,
.content-slide .bg-gradient-to-r.from-blue-50 p,
.content-slide .bg-gradient-to-br.from-blue-50 p,
.content-slide .bg-gradient-to-br.from-emerald-50 p,
.content-slide .bg-amber-100 p,
.content-slide .bg-emerald-100 p,
.content-slide .bg-blue-100 p {
    color: #18181b !important;
}

/* Slide Dividers */
.slide-divider {
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
    margin: 0 auto 1.5rem auto;
}

@media (min-width: 640px) {
    .slide-divider {
        width: 5rem;
        height: 3px;
        margin: 0 auto 2rem auto;
    }
}

@media (min-width: 1024px) {
    .slide-divider {
        width: 6rem;
        height: 4px;
        margin: 0 auto 2rem auto;
    }
}

.slide-divider.bg-gradient-to-r.from-amber-300.to-amber-500 {
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
}

/* Enhanced Quote Styling */
.enhanced-quote {
    position: relative;
    background: linear-gradient(90deg, #fffbeb, #fef3c7);
    border-left: 6px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
    .enhanced-quote {
        border-left: 8px solid #f59e0b;
        padding: 2rem;
        border-radius: 0 1rem 1rem 0;
        box-shadow: 0 15px 45px rgba(245, 158, 11, 0.1);
        margin: 2.5rem 0;
    }
}

@media (min-width: 1024px) {
    .enhanced-quote {
        padding: 2rem;
        box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
        margin: 3rem 0;
    }
}

.enhanced-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: rgba(245, 158, 11, 0.3);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

@media (min-width: 640px) {
    .enhanced-quote::before {
        top: -0.75rem;
        left: 1.25rem;
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .enhanced-quote::before {
        top: -1rem;
        left: 1.5rem;
        font-size: 5rem;
    }
}

.enhanced-quote p {
    padding-left: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #374151;
    margin: 0;
}

@media (min-width: 1024px) {
    .enhanced-quote p {
        padding-left: 2rem;
    }
}

/* Colored content boxes */
.bg-gradient-to-r.from-amber-400\/20.to-amber-500\/20 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
    .bg-gradient-to-r.from-amber-400\/20.to-amber-500\/20 {
        padding: 2rem;
    }
}

/* Final CTA boxes */
.bg-gradient-to-r.from-zinc-900.to-stone-800 {
    background: linear-gradient(90deg, #18181b, #292524);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 60px rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin: 1.5rem 0;
}

@media (min-width: 1024px) {
    .bg-gradient-to-r.from-zinc-900.to-stone-800 {
        padding: 3rem;
        margin: 2rem 0;
    }
}

/* Ensure spacing between slides */
.content-slide + .content-slide {
    margin-top: 6rem;
}

@media (min-width: 640px) {
    .content-slide + .content-slide {
        margin-top: 7rem;
    }
}

@media (min-width: 1024px) {
    .content-slide + .content-slide {
        margin-top: 8rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b8941f, #9a7d1a);
}

/* Performance optimizations */
.content-slide,
.enhanced-quote {
    will-change: transform;
}

/* Print styles */
@media print {
    .content-slide {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dynamic Content Layout Styles */

/* Asymmetric Split Layout Enhancements */
.content-slide .prose {
    color: inherit;
}

.content-slide .prose p {
    margin-bottom: 1rem;
}

/* Card hover animations */
.content-slide [class*="rounded-xl"]:hover {
    transform: translateY(-2px);
}

/* Full-width section background patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
}

/* Enhanced floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Warning card specific animations */
.warning-card {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1) rotate(1deg); }
    50% { transform: scale(1.02) rotate(0deg); }
}

/* Interactive card grid responsive adjustments */
@media (max-width: 768px) {
    .grid.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .md\\:col-span-2.lg\\:col-span-1 {
        grid-column: span 1;
    }
}

/* Enhanced quote banner styling */
.quote-banner {
    position: relative;
    overflow: hidden;
}

/* REMOVE THIS - it creates an overlay */
/*
.quote-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(251, 191, 36, 0.1) 50%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}
*/

/* CTA card enhancements */
.cta-card {
    position: relative;
    overflow: hidden;
}

/* REMOVE THIS - it creates an overlay */
/*
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(251, 191, 36, 0.1) 50%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
    pointer-events: none;
}
*/

/* Improved mobile responsiveness for new layouts */
@media (max-width: 640px) {
    .lg\\:grid-cols-12 {
        grid-template-columns: 1fr;
    }
    
    .lg\\:col-span-7,
    .lg\\:col-span-5 {
        grid-column: span 1;
    }
    
    .order-1.lg\\:order-2,
    .order-2.lg\\:order-1 {
        order: initial;
    }
    
    /* Reduce text sizes on mobile */
    .text-4xl.sm\\:text-5xl.lg\\:text-7xl {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .text-3xl.sm\\:text-4xl.lg\\:text-5xl {
        font-size: 1.875rem;
        line-height: 1.3;
    }
}

/* Performance optimizations for new animations */
.warning-card,
.cta-card,
[class*="animate-float"] {
    will-change: transform;
}

/* Resources Page Specific Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

/* Interactive Calculator Styles */
.calculator-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Filter Button Styles */
.filter-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* FAQ Accordion Animations */
.faq-content {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
}

/* Resource Card Hover Effects */
.resource-item .group:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.resource-item .group:hover .group-hover\\:scale-110 {
    transform: scale(1.1) rotate(5deg);
}

/* Hexagonal Grid Background Animation */
@keyframes hexFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.4; }
    50% { transform: translateY(-20px); opacity: 0.6; }
}

/* Calculator Input Focus States */
input:focus, select:focus, textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background: linear-gradient(-45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Performance Optimizations */
.calculator-card,
.resource-item,
.faq-item,
.filter-btn {
    will-change: transform;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .calculator-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .resource-item .group:hover {
        transform: translateY(-2px);
    }
}

/* Enhanced Hero Section Animations */
@keyframes elegantFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

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

@keyframes gentleBounce {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-8px);
    }
}

@keyframes floatingDots {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-15px) scale(1.2);
        opacity: 0.6;
    }
}

/* Apply enhanced animations */
.animate-fade-in {
    animation: elegantFadeIn 1.2s ease-out forwards;
}

.animate-pulse-slow {
    animation: subtlePulse 4s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Hero section specific enhancements */
.hero-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}



/* Refined typography for hero */
.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Sacred symbol animation */
.sacred-symbol {
    position: relative;
}

.sacred-symbol::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 300% 300%;
    animation: gradientRotate 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sacred Truth Section Specific Styles */
.sacred-symbol {
    position: relative;
    animation: subtlePulse 4s ease-in-out infinite;
}

.sacred-symbol::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 300% 300%;
    animation: gradientRotate 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Quote card hover effect */
.quote-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
}

/* Enhanced floating animations for Sacred Truth section */
@keyframes float-gentle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-12px) rotate(2deg);
        opacity: 0.8;
    }
}

@keyframes float-reverse-gentle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(8px) rotate(-2deg);
        opacity: 0.7;
    }
}

.animate-float-gentle {
    animation: float-gentle 8s ease-in-out infinite;
}

.animate-float-reverse-gentle {
    animation: float-reverse-gentle 10s ease-in-out infinite;
}

/* Insight cards animation */
.insight-card {
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

/* Decorative elements for Sacred Truth */
.truth-decoration {
    position: relative;
}

.truth-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* Enhanced backdrop blur for Sacred Truth section */
.sacred-backdrop {
    backdrop-filter: blur(8px) saturate(1.2);
    background: rgba(255, 255, 255, 0.85);
}

/* Performance optimizations for Sacred Truth animations */
.sacred-symbol,
.quote-card,
.insight-card,
[class*="animate-float-gentle"] {
    will-change: transform;
}

/* Mobile responsiveness for Sacred Truth section */
@media (max-width: 768px) {
    .quote-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .insight-card:hover {
        transform: translateX(4px);
    }
    
    .sacred-symbol::before {
        inset: -2px;
        padding: 2px;
    }
}

/* Sacred Trading Wisdom Page Specific Styles */

/* Mystical Background Effects */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Sacred Geometry Animations */
@keyframes wisdomFloat {
    0%, 100% { 
        transform: translateY(0px) rotateZ(0deg);
        filter: brightness(1);
    }
    25% { 
        transform: translateY(-30px) rotateZ(2deg);
        filter: brightness(1.1);
    }
    50% { 
        transform: translateY(-15px) rotateZ(-1deg);
        filter: brightness(1.05);
    }
    75% { 
        transform: translateY(-25px) rotateZ(1deg);
        filter: brightness(1.15);
    }
}

@keyframes ancientGlow {
    0% { 
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4), inset 0 0 30px rgba(251, 191, 36, 0.1);
        filter: brightness(1) hue-rotate(0deg);
    }
    50% {
        box-shadow: 0 0 60px rgba(251, 191, 36, 0.8), inset 0 0 60px rgba(251, 191, 36, 0.3);
        filter: brightness(1.2) hue-rotate(15deg);
    }
    100% { 
        box-shadow: 0 0 80px rgba(251, 191, 36, 0.6), inset 0 0 40px rgba(251, 191, 36, 0.2);
        filter: brightness(1.1) hue-rotate(0deg);
    }
}

@keyframes runePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }
    50% { 
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    }
}

@keyframes oracleShimmer {
    0% { 
        background-position: -200% 0;
        transform: translateX(0);
    }
    50% {
        transform: translateX(2px);
    }
    100% { 
        background-position: 200% 0;
        transform: translateX(0);
    }
}

@keyframes cosmicDrift {
    0% { 
        transform: translateX(-100px) rotate(0deg);
        opacity: 0.3;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% { 
        transform: translateX(calc(100vw + 100px)) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes scrollReveal {
    0% { 
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(15deg);
        filter: blur(5px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Interactive Card Enhancements */
.mystery-card,
.practice-card,
.text-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.mystery-card::before,
.practice-card::before,
.text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(251, 191, 36, 0.1), 
        rgba(147, 51, 234, 0.1),
        rgba(251, 191, 36, 0.1),
        transparent
    );
    transition: left 0.8s ease-in-out;
    z-index: 1;
}

.mystery-card:hover::before,
.practice-card:hover::before,
.text-card:hover::before {
    left: 100%;
}

/* Sacred Calendar Enhancements */
.calendar-day {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day:hover {
    transform: scale(1.1);
    z-index: 10;
}

.calendar-day.sacred-day::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--warm-gold);
    border-radius: 50%;
    animation: runePulse 2s infinite;
}

/* Testimonial Overlapping Effects */
.testimonial-floating {
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-floating:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Typography for Sacred Texts */
.sacred-text {
    position: relative;
    background: linear-gradient(45deg, 
        rgba(251, 191, 36, 0.8),
        rgba(147, 51, 234, 0.8),
        rgba(251, 191, 36, 0.8)
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: oracleShimmer 3s ease-in-out infinite;
}

/* Sacred Symbol Hover Effects */
.sacred-symbol {
    transition: all 0.3s ease;
    cursor: pointer;
}

.sacred-symbol:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.7));
}

/* Timeline Connector Lines */
.timeline-connector {
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(251, 191, 36, 0.6),
        rgba(147, 51, 234, 0.6),
        rgba(251, 191, 36, 0.6)
    );
    background-size: 200% 200%;
    animation: oracleShimmer 4s ease-in-out infinite;
    transform: translateY(-50%);
}

/* Modal Enhancements */
.modal-backdrop {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95),
        rgba(88, 28, 135, 0.95),
        rgba(30, 41, 59, 0.95)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .mystery-card,
    .practice-card,
    .text-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-floating {
        position: static !important;
        transform: none !important;
        margin-bottom: 1rem;
    }
}

/* Print Styles for Sacred Texts */
@media print {
    .cosmic-background,
    .floating-symbols,
    .mystical-effects {
        display: none !important;
    }
    
    .sacred-text {
        -webkit-text-fill-color: initial;
        color: #333;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .animate-wisdom-float,
    .animate-ancient-glow,
    .animate-cosmic-drift,
    .animate-rune-pulse,
    .animate-oracle-shimmer {
        animation: none !important;
    }
    
    .mystery-card::before,
    .practice-card::before,
    .text-card::before {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .mystery-card,
    .practice-card,
    .text-card {
        border-width: 2px;
        border-color: #fff;
    }
    
    .sacred-text {
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
}

/* Mobile Navigation Scrolling Fix */
@media (max-width: 1023px) {
    #mobile-menu {
        max-height: calc(100vh - 80px); /* Leave space for header */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    #mobile-menu .px-4 {
        max-height: calc(100vh - 120px); /* Account for header and padding */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
