/* FLOATING DOWNLOAD BUTTON STYLES */
.floating-download-btn {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    animation: floatIn 1s ease-out;
}

.floating-btn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffc107 100%);
    color: #1a4a3a;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 0 0 3px rgba(255, 215, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: MontserratMedium, sans-serif;
    position: relative;
    overflow: visible;
    border: 2px solid rgba(34, 111, 84, 0.3);
}

.floating-btn-link:hover {
    transform: scale(1.15);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.6),
        0 0 0 5px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffb300 100%);
    border-color: rgba(34, 111, 84, 0.5);
}

.floating-btn-link:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-10px);
}

.floating-icon {
    position: relative;
    z-index: 2;
}

.floating-icon i {
    font-size: 24px;
    margin-bottom: 2px;
    animation: phoneBounce 2.5s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(26, 74, 58, 0.3);
    color: #1a4a3a;
}

.floating-text {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    color: #1a4a3a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

.floating-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #34a853, #4caf50);
    color: white;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 10px;
    font-family: MontserratBold, sans-serif;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%) translateX(0px);
    background: linear-gradient(135deg, #1a4a3a, #0d1016);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #ffd700;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.floating-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #1a4a3a;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: white;
    text-align: left;
}

.tooltip-content strong {
    color: #ffd700;
    font-size: 14px;
    font-family: MontserratBold, sans-serif;
    margin-bottom: 5px;
}

.tooltip-content span {
    font-size: 12px;
    font-family: MontserratMedium, sans-serif;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pulse effect around button */
.floating-btn-link::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, transparent, #ffd700);
    animation: rotatePulse 4s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

/* ANIMATIONS */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

@keyframes phoneBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(52, 168, 83, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(52, 168, 83, 0.6);
    }
}

@keyframes rotatePulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* Floating button scroll behavior */
.floating-download-btn.hidden {
    transform: translateY(-50%) translateX(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 1250px) {
    .floating-download-btn {
        right: 20px;
    }
    
    .floating-btn-link {
        width: 70px;
        height: 70px;
    }
    
    .floating-icon i {
        font-size: 22px;
    }
    
    .floating-text {
        font-size: 9px;
    }
}

@media (max-width: 992px) {
    .floating-download-btn {
        right: 15px;
        bottom: 120px;
        top: auto;
        transform: none;
    }
    
    .floating-btn-link {
        width: 65px;
        height: 65px;
    }
    
    .floating-icon i {
        font-size: 20px;
    }
    
    .floating-text {
        font-size: 9px;
    }
    
    .floating-badge {
        font-size: 8px;
        padding: 2px 5px;
        right: -6px;
        top: -3px;
    }
    
    .floating-tooltip {
        right: 75px;
        min-width: 130px;
        padding: 12px;
    }
    
    .tooltip-content strong {
        font-size: 12px;
    }
    
    .tooltip-content span {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .floating-download-btn {
        bottom: 100px;
    }
    
    .floating-btn-link {
        width: 60px;
        height: 60px;
    }
    
    .floating-icon i {
        font-size: 18px;
    }
    
    .floating-text {
        font-size: 8px;
    }
    
    /* Hide tooltip on mobile */
    .floating-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-download-btn {
        right: 12px;
        bottom: 85px;
    }
    
    .floating-btn-link {
        width: 55px;
        height: 55px;
    }
    
    .floating-icon i {
        font-size: 16px;
    }
    
    .floating-text {
        font-size: 7px;
    }
    
    .floating-badge {
        font-size: 7px;
        padding: 2px 4px;
    }
}

/* Hide on very small screens */
@media (max-width: 360px) {
    .floating-download-btn {
        display: none;
    }
}
