/* ==========================================================================
   TiltedCard Styles (Vanilla Port)
   ========================================================================== */
.tilted-card-figure {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 800px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
}

.tilted-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth out the JS tracking */
}

.tilted-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    will-change: transform;
    transform: translateZ(0);
}

.tilted-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    will-change: transform;
    transform: translateZ(30px);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.tilted-card-demo-text {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin: 0;
}

.tilted-card-caption {
    pointer-events: none;
    position: fixed;
    left: 0;
    top: 0;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2d2d2d;
    opacity: 0;
    z-index: 1000;
    transition: opacity 0.2s;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
