/* ================================================================
   ZODIAC CAROUSEL — index.html
   Zwischen Hero und Startformular
   ================================================================ */

/* Section wrapper */
.zodiac-carousel-section {
    padding: 2rem 0 100px;
    overflow: hidden;
    position: relative;
    /* 3D context — gives fallen cards realistic depth */
    perspective: 1200px;
    perspective-origin: 50% 80%;
    /* Soft fade-out at both edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Scrolling track */
.zodiac-carousel-track {
    display: flex;
    gap: 28px;
    width: max-content;
    /* Animation: one full cycle = 12 signs × (160px card + 28px gap) = 2256px.
       With COPIES=4 the track is 4× as wide — we scroll exactly 1/4 of it. */
    animation: zodiac-scroll 40s linear infinite;
}

@keyframes zodiac-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (160px + 28px) * 12)); }
}

/* Individual card */
.zc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    /* 3D flip pivot at bottom edge — card tips backward away from viewer */
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    user-select: none;
}

/* Hover: slight float up */
.zc-card:hover:not(.zc-fallen) {
    transform: translateY(-6px);
}

/* Fallen: tip 90° backward — lies flat, away from viewer.
   Uses perspective() inside transform so each card has its own
   vanishing point (looks more natural than perspective on parent). */
.zc-card.zc-fallen {
    transform: perspective(500px) rotateX(88deg) !important;
    transition: transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) !important;
}

/* Image circle: 160 × 160 px, orange border */
.zc-img-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    overflow: hidden;
    background: #0b0f1e;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.18);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.zc-card:hover .zc-img-wrap {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.45);
    border-color: #fbbf24;
}

.zc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* show more background — face + space */
    display: block;
    pointer-events: none;
}

/* Label below image */
.zc-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.zc-symbol {
    font-size: 1.3rem;
    color: #f59e0b;
    line-height: 1;
}

.zc-name {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-display, 'Cinzel', serif);
}

/* Print / PDF: hide carousel */
@media print {
    .zodiac-carousel-section { display: none !important; }
}
