@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playball&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fdfbf7;
    color: #1a1a1a;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

a,
button,
.btn,
.book-card,
.catalog-card,
input,
textarea,
select {
    cursor: pointer;
}

h1,
h2,
h3,
.brand-text,
.modal-title {
    font-family: 'Playfair Display', serif;
}

.navbar {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled,
.navbar.navbar-solid {
    background: #1a1a1a;
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    margin-left: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #d4af37 !important;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-right: 10px;
    border-radius: 50%;
}

.brand-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}


.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
    color: white;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.hero-logo {
    width: 60px;
    filter: invert(1) brightness(2);
    margin-bottom: 20px;
}

.main-title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    font-family: 'Poppins';
}

.tagline-line {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.btn-explore-glass {
    display: inline-block;
    padding: 18px 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.btn-explore-glass:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 48%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, transparent);
    margin: 0 auto;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#magic-quill {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#quill-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(5px 10px 5px rgba(0, 0, 0, 0.5));
    transform: rotate(-15deg);
}

.content-section {
    padding: 140px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.image-frame {
    position: relative;
    margin-right: 30px;
}

.scroll-img {
    width: 100%;
    z-index: 2;
    position: relative;
    filter: sepia(10%) contrast(105%);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.frame-border {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    border: 3px solid #d4af37;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    font-family: 'Poppins';
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.gold-line {
    width: 80px;
    height: 4px;
    background: #d4af37;
    border: none;
    margin: 30px 0;
    opacity: 1;
}

.library-section {
    padding: 120px 0;
    background-color: #fcfbf8;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

.book-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.book-card {
    width: 280px;
    height: 420px;
    background-color: transparent;
    cursor: pointer;
}

.book-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.book-card:hover .book-inner {
    transform: rotateY(180deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.book-front,
.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-back {
    background: #f4ecd8;
    color: #1a1a1a;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border: 6px solid #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.author-section {
    padding: 120px 0;
    background-color: #fdfbf7;
}

.author-img-box {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 5px solid rgba(212, 175, 55, 0.2);
    transition: 0.5s;
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.author-card:hover .author-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.author-card:hover .author-img-box {
    border-color: #d4af37;
}

.footer-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 30px 0;
    border-top: 4px solid #d4af37;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 100;
}

.footer-logo {
    width: 50px;
    filter: invert(1) brightness(2);
}

.text-gold {
    color: #d4af37 !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.social-btn.instagram:hover {
    background: #E1306C;
    border-color: #E1306C;
}

.social-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-btn.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.social-btn.whatsapp:hover {
    background: #61c077;
    border-color: #61c077;
}


body.preloader-active {
    overflow: hidden;
}

/* Make the preloader container cover the whole screen */
/* FIXED PRELOADER CSS */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* This is better than height: 100% for mobile */
    background-color: #fff; /* Ensure this matches your site theme */
    z-index: 99999; /* Very high number to sit on top */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrolling inside the loader */
}

#preloader img {
    max-width: 80%;       /* Never wider than the screen */
    max-height: 50vh;     /* Never taller than half the screen */
    width: auto;
    height: auto;
    object-fit: contain;  /* Ensures the image is never cropped/cut */
}

/* Specific fix for background images on mobile */
@media (max-width: 768px) {
    body, html {
        background-attachment: scroll !important; /* Disables "fixed" background which glitches on phones */
    }
}


.loader-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}

.loader-flash.active {
    opacity: 0.8;
}


.split-pane {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background-color: #0a0a0a;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.top-pane {
    top: 0;
    height: 50.5% !important;
    border-bottom: 1px solid #0a0a0a;
}

.bottom-pane {
    bottom: 0;
    height: 50.5% !important;
    margin-top: -1px;
}

#preloader.split-active .top-pane {
    transform: translateY(-100%);
}

#preloader.split-active .bottom-pane {
    transform: translateY(100%);
}


.bg-layer {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    filter: grayscale(80%) brightness(1.2);
    animation: slowZoom 6s ease-out forwards;
}

.top-pane .bg-layer {
    top: 0;
    height: 100vh;
}

.bottom-pane .bg-layer {
    bottom: 0;
    top: auto;
    height: 100vh;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.loader-container {
    position: absolute;
    bottom: 50px;
    right: 80px;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.ticker-wrapper {
    display: flex;
    gap: 15px;
}

.digit-col {
    width: 100px;
    height: 160px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.digit-col span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 9rem;
    color: #fff;
    line-height: 1;
    position: relative;
    transform: translateY(0);
}

.hero-content-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease 0.5s, transform 1.5s ease 0.5s;
}

.hero-content-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


.mag-card {
    background-color: #fdfbf7 !important;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.mag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mag-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.mag-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: top center;
    transition: transform 0.6s ease;
    opacity: 0.95;
}

.mag-card:hover .mag-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.mag-gradient {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.6) 50%, transparent 100%) !important;

}

.mag-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.mag-card:hover .mag-content {
    transform: translateY(-5px);
}

.mag-role {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    margin-bottom: 2px;
    font-weight: 600;
}

.mag-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mag-hidden-footer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mag-card:hover .mag-hidden-footer {
    height: auto;
    opacity: 1;
    margin-top: 10px;
}

.read-btn {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    min-height: 500px;
}

.modal-img-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.close-modal-btn:hover {
    background: #333;
    color: #fff;
}

.glass-tag {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.award-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-left: 4px solid #d4af37;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.email-text-link {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.email-text-link:hover {
    color: #000;
    text-decoration: underline;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-circle:hover {
    transform: translateY(-3px);
    color: white;
}

.social-circle.insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-circle.fb {
    background: #1877F2;
}

.bio-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 15px;
}

.paper-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfbf7;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

@media (min-width: 992px) {
    body {
        cursor: none;
    }

    body:hover a,
    body:hover button {
        cursor: none;
    }
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #d4af37;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

#cursor-outline {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.hovering #cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    mix-blend-mode: exclusion;
}

@media (max-width: 992px) {

    #cursor-dot,
    #cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 992px) {
    #magic-quill {
        display: none !important;
    }

    .main-title {
        font-size: 4.5rem;
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        margin-left: 0;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 10px;
    }

    .loader-container {
        right: 20px;
        bottom: 30px;
    }

    .digit-col {
        width: 60px;
        height: 100px;
    }

    .digit-col span {
        font-size: 5rem;
    }

    .ticker-wrapper {
        gap: 5px;
    }

    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 2.2rem !important;
    }

    .main-title {
        font-size: 3.2rem !important;
        margin-bottom: 10px;
    }

    .tagline-line {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .content-section,
    .library-section,
    .author-section {
        padding: 80px 0 !important;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .image-frame {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .frame-border {
        top: 15px;
        left: 15px;
    }

    .catalog-header {
        padding-top: 100px;
    }

    .masonry-grid {
        column-count: 1 !important;
    }

    .album-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .book-grid {
        gap: 40px;
    }

    .book-card {
        width: 100%;
        max-width: 240px;
        height: 360px;
    }

    .footer-section {
        padding: 50px 20px 30px !important;
        text-align: center !important;
    }

    .footer-section .row>div {
        margin-bottom: 40px;
    }

    .footer-section .col-lg-2,
    .footer-section .col-lg-3,
    .footer-section .col-lg-4,
    .footer-section .text-md-end,
    .footer-section .text-md-start {
        text-align: center !important;
        width: 100%;
    }

    .footer-section .social-wrapper,
    .footer-section .d-flex {
        justify-content: center !important;
    }

    .footer-logo {
        margin: 0 auto 15px auto !important;
        display: block;
    }

    .mobile-search-stack {
        flex-direction: column;
        border-radius: 12px;
        border: 1px solid #ddd;
    }

    .search-icon-box {
        width: 45px;
        border: none;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .search-input-box {
        width: calc(100% - 45px);
        border: none;
        border-bottom: 1px solid #eee;
        border-left: none;
    }

    .category-select-box {
        width: 60%;
        max-width: 60% !important;
        border: none;
        border-right: 1px solid #eee;
        border-radius: 0;
        padding: 10px 15px;
    }

    .search-btn-box {
        width: 40%;
        border-radius: 0;
        padding: 10px;
    }

    .card-img-box {
        height: 200px !important;
        padding: 10px;
    }

    .mobile-card-padding {
        padding: 10px !important;
    }

    .book-title {
        font-size: 0.9rem !important;
    }

    .btn-view-details {
        font-size: 0.7rem !important;
        padding: 5px 0;
        margin-top: 5px;
    }

    .modal-hero-img {
        height: 300px;
    }

    .mag-card {
        height: 300px;
    }
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #d4af37;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #1a1a1a;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.text-content p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.catalog-header {
    padding-top: 150px !important;
    padding-bottom: 50px;
    text-align: center !important;
    width: 100%;
    background-color: transparent;
}

.catalog-header p {
    text-align: center !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.btn-gold {
    display: inline-block !important;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;

    border: none;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-gold:hover {
    color: #d4af37 !important;
    border-bottom-color: #1a1a1a;
    transform: translateY(-3px);
}

.btn-view {
    display: inline-block;
    padding: 10px 30px;
    background-color: #1a1a1a;
    color: #d4af37;
    border: 1px solid #d4af37;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view:hover {
    background-color: #d4af37;
    color: #1a1a1a;
    transform: scale(1.05);
}

.mag-card {
    position: relative;
    height: 350px;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.mag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mag-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.mag-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.mag-card:hover .mag-img-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.mag-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.mag-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.mag-card:hover .mag-content {
    transform: translateY(-5px);
}

.mag-role {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    margin-bottom: 2px;
    font-weight: 600;
}

.mag-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mag-hidden-footer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mag-card:hover .mag-hidden-footer {
    height: auto;
    opacity: 1;
    margin-top: 10px;
}

.read-btn {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    min-height: 500px;
}

@media (max-width: 992px) {
    .modal-hero-img {
        height: 300px;
        min-height: auto;
    }
}


.book-cover-lg {
    max-height: 400px !important;
    width: auto !important;
    margin: 0 auto;
    display: block;
}


.card-img-box {
    height: 320px !important;
    padding: 15px !important;
}

.card-img-box img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    /* Adds depth */
}

.catalog-card {
    border-radius: 12px !important;
    overflow: hidden;
}

.book-desc {
    overflow: visible !important;
    max-height: none !important;
}

.modal-body .overflow-auto::-webkit-scrollbar {
    display: none !important;
}

.modal-body .overflow-auto {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

@media (max-width: 768px) {

    .mag-card {
        height: 250px !important;
    }

    .mag-name {
        font-size: 1rem !important;
        margin-bottom: 2px;
    }

    .mag-role {
        font-size: 0.6rem !important;
        margin-bottom: 0;
    }

    .mag-content {
        padding: 12px !important;
    }

    .modal-hero-img {
        height: auto !important;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: top center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-modal-title {
        font-size: 2rem !important;
    }

    .mobile-modal-role {
        font-size: 0.75rem;
    }

    .glass-tag {
        font-size: 0.65rem;
        padding: 4px 10px;
        color: #1a1a1a !important;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid #ccc;
    }

    .close-modal-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 7rem;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 1.5rem !important;
    text-transform: none;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto 1.5rem auto !important;
}

.marquee-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
    pointer-events: auto;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: inline-block;
    animation: scrollText 25s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: running !important;
}

.genre-item {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 7rem;
    line-height: 1;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    padding: 0 15px;
    cursor: default;
    transition: all 0.6s ease, -webkit-text-stroke 0.3s ease;

    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.genre-item:hover {
    color: #ffffff;
    -webkit-text-stroke: 0px;
    text-shadow: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: all ease 0.6s;
    z-index: 11;
    position: relative;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.btn-glass-pill {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-glass-pill:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}


@media (max-width: 768px) {
    .main-title {
        font-size: 6rem;
        letter-spacing: 1px;
    }

    .hero-tagline {
        font-size: 1.3rem;
        letter-spacing: 1px;
        line-height: 1.6;
        width: 90%;
    }

    .genre-item {
        font-size: 4rem;
        padding: 0 5px;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    }

    .marquee-wrapper {
        bottom: 60px;
    }
}

.book-desc-content,
.book-description,
.story-text,
.modal-body .overflow-auto p {
    font-family: 'Poppins', sans-serif !important;
    color: #1a1a1a !important;
    font-weight: 400 !important;
}

.book-title,
.text-white,
.mobile-modal-title,
.mobile-modal-role,
.mag-name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.card-text {
    color: #212529 !important;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px !important;
        margin-left: 0 !important;
    }

    .timeline-item {
        border-radius: 50%;
        width: 100% !important;
        padding-left: 80px !important;
        padding-right: 15px !important;
        left: 0 !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        text-align: left !important;
    }

    .timeline-item::after {
        left: 21px !important;
        right: auto !important;
    }

    .timeline-item.right::after {
        left: 21px !important;
    }

    .content {
        width: 100% !important;
    }
}

.modal-body p.mobile-modal-role {
    color: #ffffff !important;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.book-card .card-body h5,
.book-card .card-body p.book-title,
.book-card p.text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.catalog-section .book-card .card-body p.book-title,
.catalog-section .book-card .card-body .text-white,
.book-card .card-body p[class*="text-white"],
.book-card .book-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.modal-body p.mobile-modal-role,
.modal-content .modal-body .mobile-modal-role {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.main-title {
    font-size: 8.5rem ;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: -3px !important;
    line-height: 0.9 !important;
}

.hero-tagline {
    font-size: 1.6rem ;
    text-transform: uppercase !important;
    letter-spacing: 4px;
    font-style: normal !important;
}

.genre-item {
    font-size: 7.5rem !important;
    padding: 0 10px !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2) !important;
}

.genre-item:hover {
    color: #ffffff !important;
    -webkit-text-stroke: 0px !important;
    text-shadow: none !important;
}

.top-pane {
    height: 50.5% !important;
    border-bottom: 1px solid #0a0a0a !important;
}

.bottom-pane {
    height: 50.5% !important;
    margin-top: -1px !important;
}