.hover-bg-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background-color: #000;
}

/* Extend background image slightly so edges don't clip when shifted */
.hover-bg-image {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hover-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hover-bg-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 60px;
    gap: 40px;
}

.hover-bg-left {
    flex: 1 1 450px;
}

.hover-bg-right {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-bg-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hover-bg-desc {
    color: #e0e0e0;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.hover-bg-btn-container {
    display: block;
}

.hover-bg-btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
}

.hover-bg-fg-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Float weightless zero-gravity keyframes */
.floating-weightless {
    animation: weightlessFloat 6s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes weightlessFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-12px) rotate(1.5deg) scale(1.02);
    }
    100% {
        transform: translateY(12px) rotate(-1.5deg) scale(0.98);
    }
}

@media (max-width: 768px) {
    .hover-bg-content {
        padding: 40px 20px;
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .hover-bg-title {
        font-size: 2.2rem;
    }
}
