/* Use Inter font for general text */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add a serif font for specific elements */
.font-serif {
    font-family: 'Merriweather', serif;
}

/* Apply Noto Nastaliq Urdu specifically to elements with this class */
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1.8; /* Give Urdu script more space */
    direction: rtl; /* Right-to-left for Urdu */
    text-align: right;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* --- ANIMATIONS --- */

/* Animation for slow book bounce */
.animate-bounce-slow {
    animation: bounce-slow 4s infinite;
}
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(-2.5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Animation for scrolling text (marquee) */
.marquee-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite; /* Slowed down slightly */
    padding-right: 100%; /* Ensures a seamless loop */
}
@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Set max-h-0 for the collapsed mobile menu */
.mobile-menu-closed {
    max-height: 0;
}