/* 3D Books Carousel */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    position: relative;
    perspective: 1000px;
    margin: 40px auto;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
    position: absolute;
    width: 240px;
    height: 360px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card a {
    text-decoration: none;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-container .book-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 400ms;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.carousel-container .book-info h3 {
    font-family: 'Gentium Plus', serif;
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.carousel-container .book-info p {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.card.center {
    z-index: 10;
    transform: scale(1.2) translateZ(0);
}

.card.center img {
    filter: none;
}

.card.center .book-info {
    opacity: 1;
}

.card.left-2 {
    z-index: 1;
    transform: translateX(-450px) scale(0.7) translateZ(-300px);
    opacity: 0.6;
}

.card.left-2 img {
    filter: brightness(0.85);
}

.card.left-1 {
    z-index: 5;
    transform: translateX(-250px) scale(0.9) translateZ(-100px);
    opacity: 0.85;
}

.card.left-1 img {
    filter: brightness(0.95);
}

.card.right-1 {
    z-index: 5;
    transform: translateX(250px) scale(0.9) translateZ(-100px);
    opacity: 0.85;
}

.card.right-1 img {
    filter: brightness(0.95);
}

.card.right-2 {
    z-index: 1;
    transform: translateX(450px) scale(0.7) translateZ(-300px);
    opacity: 0.6;
}

.card.right-2 img {
    filter: brightness(0.85);
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(250, 171, 159, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #faab9f;
    transform: scale(1.3);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #faab9f;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 2rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.nav-arrow:hover {
    background: #333;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 20px;
    padding-right: 3px;
}

.nav-arrow.right {
    right: 20px;
    padding-left: 3px;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    .card {
        width: 180px;
        height: 270px;
    }

    .card.left-2 {
        transform: translateX(-300px) scale(0.7) translateZ(-300px);
    }

    .card.left-1 {
        transform: translateX(-150px) scale(0.85) translateZ(-100px);
    }

    .card.right-1 {
        transform: translateX(150px) scale(0.85) translateZ(-100px);
    }

    .card.right-2 {
        transform: translateX(300px) scale(0.7) translateZ(-300px);
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
