/* ========== CAROUSEL ========== */

.carousel-container {
    width: 100%;
    max-width: 900px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    perspective: 1200px;
    overflow: visible;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

/* ===== CARDS ===== */

.carousel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 180px;
    margin-left: -140px;
    margin-top: -90px;
    border-radius: 20px;
    cursor: pointer;

    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: none;
}

.carousel-card .card-glow {
    position: absolute;
    inset: -3px;
    background: var(--gradient);
    border-radius: 23px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.carousel-card.active .card-glow {
    opacity: 0.6;
}

.carousel-card .card-content {
    position: relative;
    height: 100%;
    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-card p {
    max-width: 220px;
}

body.dark .carousel-card .card-content {
    background: linear-gradient(145deg, #242424 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.carousel-card.active .card-content {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.dark .carousel-card.active .card-content {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.carousel-card .card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.carousel-card.active:hover .card-icon {
    transform: scale(1.1);
}

.carousel-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.carousel-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    flex-grow: 1;
}

body.dark .carousel-card p {
    color: #94a3b8;
}

/* ===== CAROUSEL — card icon wrap ===== */

.card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.carousel-card.active:hover .card-icon-wrap {
    transform: scale(1.1);
}

body.dark .card-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
}
