/* ===========================
   Portal Visual – Senior Oaks
   =========================== */
.so-visual {
    padding: 20px 0;
    width: calc(100% + 300px);
    min-height: calc(100% + 100px);
    max-width: none;
}

/* Main screenshot card */
.so-screenshot-main {
    border: 4px solid rgba(93, 135, 255, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.so-screenshot-main:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(93, 135, 255, 0.18) !important;
}

/* Floating badges – outside the screenshot */
.so-badge {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    transition: box-shadow 0.3s ease;
}

.so-badge:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.so-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Top-center badge – entrance from left, then float */
.so-badge-left {
    top: -18px;
    left: 50%;
    animation:
        badgeLeftEntrance 0.8s ease 0.6s both,
        floatBadgeCentered 5s ease-in-out 1.4s infinite;
}

/* Mid-right badge – entrance from right, then float */
.so-badge-right {
    top: 50%;
    right: -100px;
    animation:
        badgeRightEntrance 0.8s ease 0.75s both,
        floatBadgeVerticalCentered 5s ease-in-out 1.55s infinite;
}

/* Bottom-center badge – entrance from below, then float */
.so-badge-bottom {
    bottom: -18px;
    left: 50%;
    animation:
        badgeBottomEntrance 0.8s ease 0.9s both,
        floatBadgeCentered 5s ease-in-out 1.7s infinite;
}

/* Decorative dot pattern */
.so-dots {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 90px;
    height: 90px;
    z-index: -1;
    opacity: 0.35;
    background-image: radial-gradient(circle, var(--bs-primary) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

/* Entrance keyframes – each starts hidden/offset and arrives at its final transform */
@keyframes badgeLeftEntrance {
    from {
        opacity: 0;
        transform: translateX(calc(-50% - 30px));
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes badgeRightEntrance {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes badgeBottomEntrance {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

/* Float loops – preserve the positioning transform throughout */
@keyframes floatBadgeCentered {
    0%, 100% {
        transform: translateX(-50%);
    }
    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes floatBadgeVerticalCentered {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 6px));
    }
}
