:root {
    --primary: #5e35b1;
    --secondary: #3949ab;
    --accent: #7c4dff;
    --light: #f5f5f5;
    --dark: #212121;
    --text: #424242;
    --gold: #ffab00;
    --purple: #9c27b0;
    --teal: #26a69a;
    --crystal-blue: rgba(92, 107, 192, 0.3);
    --crystal-purple: rgba(156, 39, 176, 0.3);
    --quantum-dark: #0a0e17;
    --quantum-deep: #050811;
    --quantum-light: #e0e7ff;
    --quantum-spark: #7ae7ff;
    --quantum-glow: rgba(124, 77, 255, 0.7);
    --quantum-aura: rgba(92, 107, 192, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--quantum-light);
    background: linear-gradient(135deg, var(--quantum-deep), var(--quantum-dark));
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.quantum-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.7;
}

/* Floating Crystals */
.floating-crystals {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.crystal {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.crystal-1 {
    width: 300px;
    height: 300px;
    background: var(--crystal-blue);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.crystal-2 {
    width: 400px;
    height: 400px;
    background: var(--crystal-purple);
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.crystal-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(5deg);
    }
}

/* Quantum Tunnel Effect */
.quantum-tunnel {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, var(--quantum-aura) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, var(--purple) 0%, transparent 30%),
        linear-gradient(to bottom, transparent, var(--quantum-dark));
    opacity: 0.6;
    animation: tunnel-pulse 15s infinite alternate;
}

@keyframes tunnel-pulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.books-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header-ornament {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23f9f9f9" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23f9f9f9" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f9f9f9"/></svg>');
    background-size: cover;
    z-index: 2;
}

.books-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 20px;
}

.header-wave {
    height: 4px;
    width: 100px;
    background: var(--accent);
    margin: 0 auto;
    position: relative;
}

.header-wave:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.book {
    background: rgba(15, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 
                0 0 30px rgba(124, 77, 255, 0.1);
    margin-bottom: 50px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.book:hover {
    transform: translateY(-10px) scale(1.01);
    animation: quantum-entangle 3s infinite;
    border-color: var(--accent);
}

@keyframes quantum-entangle {
    0%, 100% {
        box-shadow: 0 0 10px 2px var(--quantum-glow),
                    0 0 20px 5px rgba(124, 77, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px var(--quantum-glow),
                    0 0 40px 10px rgba(124, 77, 255, 0.5);
    }
}

.book-header {
    background: linear-gradient(135deg, 
                rgba(94, 53, 177, 0.8), 
                rgba(57, 73, 171, 0.9));
    color: white;
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 20px rgba(124, 77, 255, 0.3);
}

.book-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 120px;
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pulse-glow {
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 171, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 171, 0, 0);
    }
}

.book-content {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.book-cover {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,245,245,0.5);
}

.image-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.book-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
    transition: opacity 0.4s ease;
}

.image-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
    border-radius: 8px;
}

.sparkle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--quantum-spark);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--quantum-spark);
    animation: quantum-sparkle 4s infinite;
    opacity: 0;
}

@keyframes quantum-sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

.book:hover .book-image {
    transform: scale(1.03);
}

.book:hover .image-glow {
    opacity: 0.5;
}

.book-details {
    flex: 2;
    min-width: 300px;
    padding: 30px;
}

.book-description {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--quantum-light);
}

.spiritual-features {
    list-style: none;
    margin: 20px 0;
}

.spiritual-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spiritual-features i {
    color: var(--accent);
    font-size: 1.2rem;
}

.quantum-features {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quantum-feature {
    background: rgba(124, 77, 255, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--quantum-light);
    border: 1px solid rgba(124, 77, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-feature:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(124, 77, 255, 0.3), 
                transparent);
    transition: 0.6s;
}

.quantum-feature:hover:before {
    left: 100%;
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.2);
}

.quantum-feature i {
    color: var(--accent);
    font-size: 1rem;
}

.purchase-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.purchase-options h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchase-options h3 i {
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.option {
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(5px);
}

.hover-grow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.option:hover {
    border-color: var(--accent);
    background-color: rgba(124, 77, 255, 0.1);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.2);
    transform: translateY(-3px);
}

.option-type {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1rem;
}

.option-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-link {
    color: var(--quantum-spark);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.option-link:before {
    content: '→';
    transition: all 0.2s;
    opacity: 0;
    transform: translateX(-5px);
}

.option-link:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Superposition Effect */
.book-image {
    position: relative;
}

.book-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%237c4dff" stroke-width="2" stroke-dasharray="5,5" opacity="0.5"/></svg>');
    border-radius: 8px;
    animation: superposition 8s linear infinite;
    z-index: 4;
}

@keyframes superposition {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-content {
        flex-direction: column;
    }
    
    .book-cover, .book-details {
        min-width: 100%;
    }
    
    .books-header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer styles */
.footer {
    background: rgba(10, 14, 23, 0.8);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(124, 77, 255, 0.2);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--quantum-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 20px;
}