@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Personalizações globais */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #0D1829;
    background-color: #F1F5F8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-title {
    font-family: 'Georgia', serif;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(25, 46, 80, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F8;
}
::-webkit-scrollbar-thumb {
    background: #192E50;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4072C3;
}

/* =============================================
   3D Book Effect — Premium & Ultra-Realistic
   ============================================= */
.book-3d-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
}

.book-3d {
    position: relative;
    width: 260px;
    height: 380px;
    border-radius: 4px 10px 10px 4px;
    transform: rotateY(-22deg) rotateX(7deg);
    transform-style: preserve-3d;
    box-shadow: 
        -18px 18px 30px rgba(0, 0, 0, 0.35),
        -4px 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    cursor: pointer;
}

.book-3d:hover {
    transform: rotateY(-10deg) rotateX(3deg) scale(1.04);
    box-shadow: 
        -25px 25px 45px rgba(0, 0, 0, 0.45),
        -6px 0 15px rgba(0, 0, 0, 0.25);
}

.book-3d-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 10px 10px 4px;
    display: block;
    box-shadow: inset 4px 0 12px rgba(0, 0, 0, 0.2);
}

/* Spine reflection overlay */
.book-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px 10px 10px 4px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(0, 0, 0, 0.15) 3%, 
        transparent 8%, 
        transparent 94%, 
        rgba(0, 0, 0, 0.25) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* 3D Pages Thickness on the right side */
.book-3d::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -22px;
    width: 22px;
    height: calc(100% - 10px);
    background: repeating-linear-gradient(
        90deg,
        #f7f5f0 0px,
        #f7f5f0 2px,
        #e2ddd5 2px,
        #e2ddd5 3px
    );
    transform: rotateY(90deg);
    transform-origin: left center;
    border-radius: 0 3px 3px 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

@media (max-width: 640px) {
    .book-3d {
        width: 240px;
        height: 350px;
    }
}

