/* --- Carousel Container and Scene --- */
.scene {
    width: 800px;
    height: 550px;
    position: relative;
    perspective: 1000px;
    visibility: hidden; /* Initially hidden to prevent FOUC */
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
    transform-origin: center; /* Explicitly set the transform origin */
}

/* --- Carousel Cells --- */
.carousel__cell {
    position: absolute;
    width: 600px;
    height: 400px;
    /* Position from the center */
    left: 50%;
    top: 50%;
    color: #ffffff;
    text-align: center;
    transition: transform 1s, opacity 1s, filter 1s;
    opacity: 0.6;
    filter: blur(3px);
}

.carousel__cell.is-selected {
    opacity: 1;
    filter: blur(0);
}

/* --- Cell Inner Content --- */
.carousel__cell-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    border: 2px solid #BF0A30; /* PilPoll red */
    border-radius: 10px;
    background: rgba(0, 40, 104, 0.85); /* PilPoll dark blue bg */
    backdrop-filter: blur(5px);
    color: #ffffff; /* White text */
    transition: box-shadow 0.3s ease;
}

.carousel__cell-inner:hover {
    box-shadow: 0 0 20px #BF0A30;
}

.carousel__cell-inner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(191, 10, 48, 0.7); /* PilPoll red shadow */
}

.carousel__cell-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 90%;
}

.carousel__cell-inner ul li {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid #BF0A30; /* PilPoll red */
    border-radius: 14px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: #BF0A30; /* PilPoll red */
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.8s infinite;
}

@keyframes spin {
    from { transform: translateZ(-650px) rotateY(0); }
    to   { transform: translateZ(-650px) rotateY(-360deg); }
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}
