/* GRAB KNOWLEDGE - INTERACTIVE 3D & RESPONSIVE SHARED STYLES */

/* Smooth Parallax 3D Card Tilt */
.card-3d-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* Enhanced 3D Buttons */
.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(8, 102, 245, 0.25);
}

.btn-3d-yellow:hover {
    box-shadow: 0 12px 30px rgba(255, 212, 59, 0.5);
}

/* Floating Animation Utility */
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-y {
    animation: floatY 4s ease-in-out infinite;
}

/* Scroll To Top Button */
.btn-scroll-top-shared {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: #0866F5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(8, 102, 245, 0.2);
    border: 1px solid rgba(8, 102, 245, 0.15);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-scroll-top-shared.visible {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top-shared:hover {
    background: #0866F5;
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
}
