/* ========================================= */
/* BROCHURE SECTION                          */
/* ========================================= */

.brochure-section{
    min-height:100vh;
    background:#051024;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:60px 20px;
}

/* ========================================= */
/* CONTROLS                                  */
/* ========================================= */

.book-controls{
    display:flex;
    gap:20px;
    margin-bottom:40px;
}

.flip-btn{
    background:transparent;
    border:2px solid #d4af37;
    color:#d4af37;
    padding:12px 28px;
    font-family:'Cinzel',serif;
    font-size:1rem;
    letter-spacing:1px;
    cursor:pointer;
    transition:all .35s ease;
}

.flip-btn:hover{
    background:#d4af37;
    color:#051024;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(212,175,55,0.5);
}

/* ========================================= */
/* BOOK WRAPPER                              */
/* ========================================= */

.book-wrapper{
    perspective:2500px;
    width:100%;
    display:flex;
    justify-content:center;
}

/* ========================================= */
/* BOOK                                      */
/* ========================================= */

.book{
    width:800px;
    height:565px;
    position:relative;
    transform-style:preserve-3d;
}

/* BOOK SPINE */

.book::before{
    content:"";
    position:absolute;
    left:50%;
    top:0;
    width:8px;
    height:100%;
    background:linear-gradient(to right,#111,#333,#111);
    transform:translateX(-50%);
    box-shadow:0 0 20px rgba(0,0,0,0.6);
    z-index:10;
}

/* ========================================= */
/* PAPER                                     */
/* ========================================= */

.paper{
    width:50%;
    height:100%;
    position:absolute;
    top:0;
    right:0;

    transform-origin:left;
    transform-style:preserve-3d;

    transition:transform 1s cubic-bezier(.65,.05,.36,1);

    box-shadow:
        -5px 0 15px rgba(0,0,0,0.35),
        inset -3px 0 5px rgba(0,0,0,0.1);
}

/* ========================================= */
/* PAGE FACES                                */
/* ========================================= */

.front,
.back{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;

    backface-visibility:hidden;
    background:white;

    display:flex;
    justify-content:center;
    align-items:center;
}

/* FRONT */

.front{
    transform:rotateY(0deg);
    z-index:1;
}

/* BACK */

.back{
    transform:rotateY(180deg);
}

/* ========================================= */
/* PAGE LIGHTING EFFECT                      */
/* ========================================= */

.front::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:25px;
    height:100%;
    background:linear-gradient(to left,rgba(0,0,0,0.25),transparent);
}

.back::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:25px;
    height:100%;
    background:linear-gradient(to right,rgba(0,0,0,0.25),transparent);
}

/* ========================================= */
/* FLIPPED PAGE                              */
/* ========================================= */

.paper.flipped{
    transform:rotateY(-180deg) translateZ(2px);
}

/* ========================================= */
/* PAGE IMAGE                                */
/* ========================================= */

.page-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ========================================= */
/* PAGE HOVER                                */
/* ========================================= */

.paper:hover{
    box-shadow:
        -10px 0 25px rgba(0,0,0,0.45),
        inset -5px 0 10px rgba(0,0,0,0.2);
}

/* ========================================= */
/* MOBILE                                    */
/* ========================================= */

@media(max-width:900px){

.book{
    width:95vw;
    height:65vh;
}

.paper{
    width:100%;
    left:0;
    right:auto;
}

.book::before{
    display:none;
}

}


/* ========================================= */
/* INITIAL Z-INDEXES (FOR 7 PAPERS)          */
/* ========================================= */
#p1 { z-index: 7; }
#p2 { z-index: 6; }
#p3 { z-index: 5; }
#p4 { z-index: 4; }
#p5 { z-index: 3; }
#p6 { z-index: 2; }
#p7 { z-index: 1; }



/* Teleport Section Styling */
.teleport-section {
    padding: 40px 0;
    text-align: center;
    background-color: transparent; /* Or match your theme */
    overflow: hidden;
}

.teleport-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.teleport-link {
    text-decoration: none;
    display: inline-block;
}

/* The Fast Rotating Image */
.fast-rotate {
    width: 80px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 15px;
    animation: spinFast 0.5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); /* Optional gold glow */
    transition: transform 0.3s ease;
}

/* Fast Rotation Animation */
@keyframes spinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text Styling */
.teleport-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4af37; /* Gold color to match your theme */
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Hover Effect: Slows down and brightens text */
.teleport-link:hover .fast-rotate {
    animation-duration: 2s; /* Slows down on hover to be readable */
}

.teleport-link:hover .teleport-text {
    color: #f4ecdc;
    text-shadow: 0 0 8px #d4af37;
}