/* Ensure footer has enough bottom padding */
#footer {
    padding-bottom: 80px; /* Adjust spacing for floating buttons */
}

/* WhatsApp Floating Button Animation */
@keyframes popUp {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* Floating Action Buttons - Chromatic Aberration Theme */
.whatsapp-icon,
.call-icon,
.support-icon {
    position: fixed;
    right: 20px;
    z-index: 1100; /* Higher than scroll-to-top */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*animation: popUp 1.5s infinite ease-in-out;*/
}

.whatsapp-icon {
    bottom: 70px; /* Adjust for spacing */
    background: linear-gradient(135deg, var(--rgb-green), var(--rgb-cyan));
    background-size: 200% 200%;
    animation: rgbShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(0, 255, 64, 0.4),
                0 0 20px rgba(0, 255, 64, 0.3);
}

.call-icon {
    bottom: 140px; /* Above WhatsApp */
    background: linear-gradient(135deg, var(--rgb-blue), var(--rgb-cyan));
    background-size: 200% 200%;
    animation: rgbShift 3s ease infinite;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 64, 255, 0.4),
                0 0 20px rgba(0, 64, 255, 0.3);
}

.support-icon {
    bottom: 210px; /* Above Call */
    background: linear-gradient(135deg, var(--rgb-red), var(--rgb-magenta));
    background-size: 200% 200%;
    animation: rgbShift 3s ease infinite;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 64, 0.4),
                0 0 20px rgba(255, 0, 64, 0.3);
}

@keyframes rgbShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.whatsapp-icon img {
    width: 50px;
    height: 50px;
}

.whatsapp-icon:hover,
.call-icon:hover,
.support-icon:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 64, 0.6),
                0 0 30px rgba(0, 255, 64, 0.5);
}

.call-icon:hover {
    box-shadow: 0 8px 25px rgba(0, 64, 255, 0.6),
                0 0 30px rgba(0, 64, 255, 0.5);
}

.support-icon:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 64, 0.6),
                0 0 30px rgba(255, 0, 64, 0.5);
}

/* Scroll to Top Button */
#scroll-top {
    position: fixed;
    bottom: 280px; /* Adjusted so it doesn't overlap with support button */
    right: 20px;
    z-index: 1000; /* Lower than floating buttons */
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--rgb-red), var(--rgb-blue), var(--rgb-green));
    background-size: 200% 200%;
    animation: rgbShift 3s ease infinite;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 64, 255, 0.3),
                0 -4px 15px rgba(255, 0, 64, 0.3);
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

#scroll-top:hover {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 64, 255, 0.5),
                0 -6px 25px rgba(255, 0, 64, 0.5),
                6px 0 25px rgba(0, 255, 64, 0.5);
}

/* Ensure floating buttons do not overlap on small screens */
@media (max-width: 576px) {
    .whatsapp-icon {
        bottom: 90px; /* Move higher on smaller screens */
    }

    .call-icon {
        bottom: 160px; /* Above WhatsApp on mobile */
    }

    .support-icon {
        bottom: 230px; /* Above Call on mobile */
    }

    #scroll-top {
        bottom: 300px; /* Move scroll-to-top button further up */
    }
}

