/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #10574f;
    overflow: hidden;
    perspective: 2000px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10574f 0%, #0a3d37 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: #d2ae67;
}

.book-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
    perspective: 800px;
}

.book-loader .page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #d2ae67;
    border-radius: 5px;
    animation: bookFlip 1.5s infinite;
    transform-origin: left center;
}

.book-loader .page:nth-child(1) { animation-delay: 0s; background: #c49a3a; }
.book-loader .page:nth-child(2) { animation-delay: 0.3s; background: #d2ae67; }
.book-loader .page:nth-child(3) { animation-delay: 0.6s; background: #e0c080; }

@keyframes bookFlip {
    0% { transform: rotateY(0deg); opacity: 1; }
    50% { transform: rotateY(-90deg); opacity: 0.5; }
    100% { transform: rotateY(-180deg); opacity: 0; }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #10574f;
    z-index: 1002;
    padding: 30px 0;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-header h3 {
    color: #d2ae67;
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(210, 174, 103, 0.3);
    margin-bottom: 20px;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sidebar-nav .nav-item {
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: rgba(210, 174, 103, 0.2);
    color: #d2ae67;
    padding-left: 35px;
}

.sidebar-social {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(210, 174, 103, 0.3);
    margin-top: auto;
}

.sidebar-social a {
    color: rgba(255,255,255,0.6);
    margin: 0 12px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.sidebar-social a:hover {
    color: #d2ae67;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1003;
    background: #10574f;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Top Logo */
.top-logo {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1003;
    cursor: pointer;
}

.top-logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.top-logo img:hover {
    transform: scale(1.05);
}

/* Book Container */
.book-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #10574f 0%, #0a3d37 100%);
}

.book-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

/* Book Pages */
.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e4d8 100%);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    transition: visibility 0s 0.6s, opacity 0s 0.6s;
}

.book-page.current-page {
    visibility: visible;
    opacity: 1;
    z-index: 10;
    transition: visibility 0s 0s, opacity 0s 0s;
}

/* Flip Animations */
.book-page.flip-out-forward {
    animation: flipOutForward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left center;
    z-index: 20;
}

@keyframes flipOutForward {
    0% { transform: rotateY(0deg) scale(1); opacity: 1; visibility: visible; }
    100% { transform: rotateY(-180deg) scale(0.9); opacity: 0; visibility: hidden; }
}

.book-page.flip-out-backward {
    animation: flipOutBackward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: right center;
    z-index: 20;
}

@keyframes flipOutBackward {
    0% { transform: rotateY(0deg) scale(1); opacity: 1; visibility: visible; }
    100% { transform: rotateY(180deg) scale(0.9); opacity: 0; visibility: hidden; }
}

.book-page.flip-in-forward {
    animation: flipInForward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left center;
    z-index: 15;
}

@keyframes flipInForward {
    0% { transform: rotateY(180deg) scale(0.9); opacity: 0; visibility: hidden; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; visibility: visible; }
}

.book-page.flip-in-backward {
    animation: flipInBackward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: right center;
    z-index: 15;
}

@keyframes flipInBackward {
    0% { transform: rotateY(-180deg) scale(0.9); opacity: 0; visibility: hidden; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; visibility: visible; }
}

/* Page Content */
.page-content {
    padding: 80px 40px 100px 40px;
    min-height: 100vh;
}

.content-card {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(210, 174, 103, 0.2);
}

.image-wrapper {
    position: relative;
    text-align: center;
}

.main-image {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 3px solid #d2ae67;
}

.floating-badge {
    position: absolute;
    top: 20px;
    left: 60px;
    width: 100px;
    border-radius: 10px;
    animation: float 3s ease-in-out infinite;
    border: 2px solid #d2ae67;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Typography */
.greeting {
    color: #d2ae67;
    font-size: 20px;
    margin-bottom: 15px;
}

.main-title {
    color: #10574f;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    color: #10574f;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

/* Typing Animation */
.typed-wrapper {
    font-size: 24px;
    font-weight: 600;
    color: #d2ae67;
    margin: 20px 0;
    min-height: 60px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Buttons */
.btn-book, .btn-primary-custom {
    background: #10574f;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #d2ae67;
}

.btn-book:hover, .btn-primary-custom:hover {
    background: #0a3d37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 87, 79, 0.3);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid #10574f;
    color: #10574f;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #10574f;
    color: white;
}

.contact-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.contact-icons a, .contact-icons i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(210, 174, 103, 0.1);
    border-radius: 50%;
    color: #10574f;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.contact-icons a:hover, .contact-icons i:hover {
    background: #d2ae67;
    color: white;
}

/* Book Selector */
.book-selector {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.book-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateY(-10px);
}

.book-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #d2ae67;
}

.book-item p {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #10574f;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(210, 174, 103, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: #d2ae67;
    font-size: 20px;
    width: 30px;
}

.contact-item p {
    margin: 0;
    color: #10574f;
}

/* Navigation Buttons */
.flip-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 87, 79, 0.95);
    border: 2px solid #d2ae67;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    color: #d2ae67;
    font-size: 20px;
    transition: all 0.3s ease;
}

.flip-btn:hover {
    background: #10574f;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Page Indicator */
.page-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 87, 79, 0.95);
    color: #d2ae67;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #d2ae67;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #10574f;
    color: white;
    padding: 12px 0;
    z-index: 99;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-content a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #d2ae67;
}

.footer-content i {
    margin-right: 5px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* Welcome Oval */
.welcome-oval {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #10574f 0%, #0a3d37 100%);
    color: #d2ae67;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 50px;
    border: 1px solid #d2ae67;
}

.welcome-oval.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modal */
.modal-content {
    border-radius: 15px;
}

.modal-body {
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e4d8 100%);
}

.modal-body h3 {
    color: #10574f;
    margin-bottom: 25px;
    text-align: center;
}

.form-control {
    border: 1px solid #d2ae67;
    border-radius: 8px;
    padding: 12px;
}

.btn-submit {
    width: 100%;
    background: #10574f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #0a3d37;
}

/* Responsive */
@media (max-width: 768px) {
    .content-card { padding: 25px; margin: 20px; }
    .main-title { font-size: 28px; }
    h2 { font-size: 24px; }
    .typed-wrapper { font-size: 18px; }
    .floating-badge { width: 60px; top: 10px; right: 30px; }
    .flip-btn { width: 40px; height: 40px; font-size: 16px; }
    .page-content { padding: 60px 20px 80px 20px; }
    .book-selector { flex-direction: column; align-items: center; }
}

@media (max-width: 992px) {
    .book-page .row .col-lg-6:first-child { order: 2; }
    .book-page .row .col-lg-6:last-child { order: 1; }
}

/* Scrollbar */
.book-page::-webkit-scrollbar { width: 8px; }
.book-page::-webkit-scrollbar-track { background: rgba(210, 174, 103, 0.1); }
.book-page::-webkit-scrollbar-thumb { background: #d2ae67; border-radius: 4px; }

/* Add to your existing style.css - Realistic Page Turning Animation */

/* Book Container - Add perspective for 3D effect */
.book-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #10574f 0%, #0a3d37 100%);
    perspective: 2500px;
    perspective-origin: center;
}

/* Realistic Page Turn Animation - Slow and Smooth */
.book-page.flip-out-forward {
    animation: realisticPageTurn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: right bottom;
    z-index: 20;
    transform-style: preserve-3d;
}

@keyframes realisticPageTurn {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
        visibility: visible;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
    20% {
        transform: rotateY(-30deg) rotateX(5deg) scale(0.98);
        filter: drop-shadow(-10px 0 15px rgba(0,0,0,0.3));
    }
    40% {
        transform: rotateY(-60deg) rotateX(10deg) scale(0.96);
        filter: drop-shadow(-20px 0 25px rgba(0,0,0,0.4));
    }
    60% {
        transform: rotateY(-90deg) rotateX(12deg) scale(0.94);
        filter: drop-shadow(-30px 0 30px rgba(0,0,0,0.5));
    }
    80% {
        transform: rotateY(-120deg) rotateX(8deg) scale(0.92);
        filter: drop-shadow(-40px 0 35px rgba(0,0,0,0.4));
    }
    100% {
        transform: rotateY(-180deg) rotateX(0deg) scale(0.9);
        opacity: 0;
        visibility: hidden;
        filter: drop-shadow(-50px 0 40px rgba(0,0,0,0.2));
    }
}

/* Realistic Page Turn Backward (Left to Right) */
.book-page.flip-out-backward {
    animation: realisticPageTurnBackward 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left bottom;
    z-index: 20;
    transform-style: preserve-3d;
}

@keyframes realisticPageTurnBackward {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
        visibility: visible;
    }
    20% {
        transform: rotateY(30deg) rotateX(5deg) scale(0.98);
        filter: drop-shadow(10px 0 15px rgba(0,0,0,0.3));
    }
    40% {
        transform: rotateY(60deg) rotateX(10deg) scale(0.96);
        filter: drop-shadow(20px 0 25px rgba(0,0,0,0.4));
    }
    60% {
        transform: rotateY(90deg) rotateX(12deg) scale(0.94);
        filter: drop-shadow(30px 0 30px rgba(0,0,0,0.5));
    }
    80% {
        transform: rotateY(120deg) rotateX(8deg) scale(0.92);
        filter: drop-shadow(40px 0 35px rgba(0,0,0,0.4));
    }
    100% {
        transform: rotateY(180deg) rotateX(0deg) scale(0.9);
        opacity: 0;
        visibility: hidden;
        filter: drop-shadow(50px 0 40px rgba(0,0,0,0.2));
    }
}

/* Page Coming In Animation */
.book-page.flip-in-forward {
    animation: realisticPageComeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left top;
    z-index: 15;
    transform-style: preserve-3d;
}

@keyframes realisticPageComeIn {
    0% {
        transform: rotateY(180deg) rotateX(0deg) scale(0.9);
        opacity: 0;
        visibility: hidden;
        filter: drop-shadow(-50px 0 40px rgba(0,0,0,0.2));
    }
    20% {
        transform: rotateY(120deg) rotateX(-8deg) scale(0.92);
        filter: drop-shadow(-40px 0 35px rgba(0,0,0,0.3));
    }
    40% {
        transform: rotateY(90deg) rotateX(-12deg) scale(0.94);
        filter: drop-shadow(-30px 0 30px rgba(0,0,0,0.4));
    }
    60% {
        transform: rotateY(60deg) rotateX(-10deg) scale(0.96);
        filter: drop-shadow(-20px 0 25px rgba(0,0,0,0.4));
    }
    80% {
        transform: rotateY(30deg) rotateX(-5deg) scale(0.98);
        filter: drop-shadow(-10px 0 15px rgba(0,0,0,0.3));
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
        visibility: visible;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

/* Page Coming In Backward */
.book-page.flip-in-backward {
    animation: realisticPageComeInBackward 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: right top;
    z-index: 15;
    transform-style: preserve-3d;
}

@keyframes realisticPageComeInBackward {
    0% {
        transform: rotateY(-180deg) rotateX(0deg) scale(0.9);
        opacity: 0;
        visibility: hidden;
        filter: drop-shadow(50px 0 40px rgba(0,0,0,0.2));
    }
    20% {
        transform: rotateY(-120deg) rotateX(-8deg) scale(0.92);
        filter: drop-shadow(40px 0 35px rgba(0,0,0,0.3));
    }
    40% {
        transform: rotateY(-90deg) rotateX(-12deg) scale(0.94);
        filter: drop-shadow(30px 0 30px rgba(0,0,0,0.4));
    }
    60% {
        transform: rotateY(-60deg) rotateX(-10deg) scale(0.96);
        filter: drop-shadow(20px 0 25px rgba(0,0,0,0.4));
    }
    80% {
        transform: rotateY(-30deg) rotateX(-5deg) scale(0.98);
        filter: drop-shadow(10px 0 15px rgba(0,0,0,0.3));
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
        visibility: visible;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

/* Page Curl Shadow Effect */
.book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.1) 85%,
        rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-page.flip-out-forward::before,
.book-page.flip-out-backward::before {
    opacity: 1;
}

/* Page Corner Fold Effect */
.book-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        transparent 0%,
        transparent 50%,
        rgba(210, 174, 103, 0.3) 50%,
        rgba(210, 174, 103, 0.1) 100%);
    pointer-events: none;
    z-index: 3;
    border-radius: 0 0 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-page.flip-out-forward::after,
.book-page.flip-out-backward::after {
    opacity: 1;
    animation: cornerFold 1.2s ease forwards;
}

@keyframes cornerFold {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    50% {
        width: 80px;
        height: 80px;
        opacity: 0.5;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }
}

/* Enhanced Book Shadow during turn */
.book-container.flipping {
    animation: bookShake 0.3s ease;
}

@keyframes bookShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Page Turn Sound Visual Effect */
.page-turn-effect {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(210,174,103,0.3) 0%, rgba(210,174,103,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-turn-effect.active {
    opacity: 1;
    animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Smooth Page Content Transition */
.page-content {
    padding: 80px 40px 100px 40px;
    min-height: 100vh;
    transition: transform 0.3s ease;
}

.book-page.flip-out-forward .page-content,
.book-page.flip-out-backward .page-content {
    animation: contentFade 0.6s ease forwards;
}

@keyframes contentFade {
    0% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(-20px); }
    100% { opacity: 0; transform: translateX(-40px); }
}

.book-page.flip-in-forward .page-content,
.book-page.flip-in-backward .page-content {
    animation: contentFadeIn 0.6s ease forwards;
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateX(40px); }
    50% { opacity: 0.5; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}


/* =========================================
   PREMIUM IMAGE + LOGO SPACING FIX
   ADD THIS AT THE VERY BOTTOM OF style.css
========================================= */

/* Logo spacing */
.top-logo {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1003;
    cursor: pointer;
    padding: 12px;
    border-radius: 16px;
    background: rgba(16, 87, 79, 0.15);
    backdrop-filter: blur(6px);
}

.top-logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.top-logo img:hover {
    transform: scale(1.05);
}

/* Add proper spacing around image area */
.image-wrapper {
    position: relative;
    text-align: center;
    padding-top: 50px;
    padding-right: 20px;
    padding-left: 20px;
}

/* Premium unified image styling */
.main-image,
.img-fluid.rounded.shadow {
    width: 100%;
    max-width: 500px;
    max-height: 650px;
    object-fit: cover;

    border-radius: 24px;
    border: 4px solid #d2ae67;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.20),
        0 0 25px rgba(210,174,103,0.35);

    transition: all 0.4s ease;

    margin-top: 20px;
}

/* Hover premium effect */
.main-image:hover,
.img-fluid.rounded.shadow:hover {
    transform: translateY(-5px) scale(1.02);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.28),
        0 0 35px rgba(210,174,103,0.55);
}

/* Floating badge spacing fix */
.floating-badge {
    top: 40px;
    left: 40px;
    z-index: 5;
}

/* Better alignment for all pages */
.book-page .row {
    min-height: 100vh;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {

    .top-logo {
        top: 10px;
        right: 10px;
        padding: 8px;
    }

    .top-logo img {
        height: 48px;
    }

    .image-wrapper {
        padding-top: 30px;
    }

    .main-image,
    .img-fluid.rounded.shadow {
        max-width: 100%;
        margin-top: 10px;
    }

    .floating-badge {
        width: 60px;
        top: 20px;
        left: 20px;
    }
}