/* ==========================================================================
   Floating Icons - Mobile Optimized (No Overlap)
   ========================================================================== */

/* Floating Icons Container */
.floating-icons-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Individual Icon Styles */
.floating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.floating-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.floating-icon:hover::before {
    width: 100%;
    height: 100%;
}

.floating-icon:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.floating-icon:active {
    transform: scale(0.95);
}

/* WhatsApp Icon */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: bounce-gentle 2s ease-in-out infinite;
}

.whatsapp-float img,
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* Chat Icon */
.chat-float {
    background: linear-gradient(135deg, #dcc87f 0%, #cdb048 100%);
    animation: pulse-scale 2s ease-in-out infinite;
}

.chat-float img,
.chat-float svg {
    width: 30px;
    height: 30px;
    filter: brightness(0);
}

/* Scroll to Top Icon */
.scroll-top {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    border: 2px solid #dcc87f;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.scroll-top img,
.scroll-top svg,
.scroll-top::after {
    content: '↑';
    font-size: 24px;
    font-weight: bold;
    color: #dcc87f;
}

/* Animations */
@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Tooltip Labels */
.floating-icon-label {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.9);
    color: #dcc87f;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(220, 200, 127, 0.3);
}

.floating-icon-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.9);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-icon:hover .floating-icon-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Optimizations - Prevent Overlap */
@media (max-width: 768px) {
    .floating-icons-wrapper {
        right: 15px;
        bottom: 15px;
        gap: 12px;
    }
    
    .floating-icon {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float img,
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .chat-float img,
    .chat-float svg {
        width: 26px;
        height: 26px;
    }
    
    .scroll-top::after {
        font-size: 20px;
    }
    
    /* Hide labels on mobile */
    .floating-icon-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-icons-wrapper {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img,
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .chat-float img,
    .chat-float svg {
        width: 24px;
        height: 24px;
    }
    
    .scroll-top::after {
        font-size: 18px;
    }
}

/* Landscape Mobile - Adjust positioning */
@media (max-width: 768px) and (orientation: landscape) {
    .floating-icons-wrapper {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .floating-icon {
        width: 45px;
        height: 45px;
    }
}

/* Ensure icons don't overlap with footer on scroll */
.page-bottom .floating-icons-wrapper {
    bottom: 80px;
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-icon {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Accessibility - Focus States */
.floating-icon:focus {
    outline: 3px solid #dcc87f;
    outline-offset: 3px;
}

.floating-icon:focus-visible {
    outline: 3px solid #dcc87f;
    outline-offset: 3px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .floating-icon::before,
    .floating-icon-label {
        transition: none;
        animation: none;
    }
    
    .whatsapp-float,
    .chat-float {
        animation: none;
    }
}

/* Print - Hide floating icons */
@media print {
    .floating-icons-wrapper {
        display: none !important;
    }
}

