/* Interactive 3D Shapes in Contact Section */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape-3d {
    position: absolute;
    /* Use screen blend mode to make the dark background transparent and enhance the glow */
    mix-blend-mode: screen;
    transition: transform 0.1s cubic-bezier(0.2, 0.4, 0.6, 1);
    /* Smooth but quick follow */
    opacity: 0.9;
}

.shape-cube {
    width: 120px;
    top: 15%;
    left: 10%;
    animation: floatCube 6s ease-in-out infinite;
}

.shape-orb {
    width: 150px;
    bottom: 20%;
    right: 10%;
    animation: floatOrb 8s ease-in-out infinite;
}

.shape-cube-small {
    width: 60px;
    top: 25%;
    right: 25%;
    opacity: 0.5;
    filter: blur(2px);
    animation: floatCube 7s ease-in-out infinite reverse;
}

@keyframes floatCube {

    0%,
    100% {
        transform: translate(calc(0px + var(--parallax-x, 0px)), calc(0px + var(--parallax-y, 0px))) rotate(0deg);
    }

    50% {
        transform: translate(calc(0px + var(--parallax-x, 0px)), calc(-20px + var(--parallax-y, 0px))) rotate(5deg);
    }
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(calc(0px + var(--parallax-x, 0px)), calc(0px + var(--parallax-y, 0px))) scale(1);
    }

    50% {
        transform: translate(calc(0px + var(--parallax-x, 0px)), calc(20px + var(--parallax-y, 0px))) scale(1.05);
    }
}