.card-swap-container {
    position: relative;
    width: 100%;
    max-width: 34.375rem; /* 550px */
    aspect-ratio: 4 / 3;
    transform: translateY(5%);
    -webkit-perspective: 1000px;
    perspective: 1000px;
    overflow: visible;
}

.card-swap-card {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-swap-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.card-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    color: white;
}

.card-content-overlay h3 {
    color: white;
}

.card-content-overlay p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Responsive adjustments for the container */
@media (max-width: 768px) {
    .card-swap-container {
        transform: translateX(25%) translateY(-5%) scale(0.75);
    }
}

@media (max-width: 640px) {
    .card-swap-container {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 0 auto;
        height: 21.875rem; /* 350px */
        width: 90vw;
        max-width: 25rem; /* 400px */
    }
}
