/* Floating Download Button - Only visible on mobile */
.floating-download-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #323339 0%, rgba(0,0,0,0.1) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* Hidden by default, shown only on mobile */
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatAround 8s infinite linear;
}

.floating-download-btn:hover {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.floating-download-btn:active {
    transform: translateY(0) scale(0.95);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 20px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    transform: scale(0.9);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 24px;
    font-weight: 700;
}

.modal p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 16px;
    line-height: 1.5;
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.platform-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn.android {
    background: #34A853;
    color: white;
}

.platform-btn.android:hover {
    background: #2d8f47;
    transform: translateY(-2px);
}

.platform-btn.ios {
    background: #007AFF;
    color: white;
}

.platform-btn.ios:hover {
    background: #0056cc;
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* Mobile Detection */
@media (max-width: 768px) {
    .floating-download-btn {
        display: flex !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes floatAround {
    0% {
        bottom: 20px;
        right: 20px;
    }
    12.5% {
        bottom: 50%;
        right: 20px;
        transform: translateY(50%);
    }
    25% {
        bottom: calc(100vh - 80px);
        right: 20px;
    }
    37.5% {
        bottom: calc(100vh - 80px);
        right: 50%;
        transform: translateX(50%);
    }
    50% {
        bottom: calc(100vh - 80px);
        right: calc(100vw - 200px);
    }
    62.5% {
        bottom: 50%;
        right: calc(100vw - 200px);
        transform: translateY(50%);
    }
    75% {
        bottom: 20px;
        right: calc(100vw - 200px);
    }
    87.5% {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    100% {
        bottom: 20px;
        right: 20px;
    }
}

/* Slower floating animation for better UX */
@keyframes floatAroundSlow {
    0% {
        bottom: 20px;
        right: 20px;
    }
    16.66% {
        bottom: 40%;
        right: 20px;
    }
    33.33% {
        bottom: calc(100vh - 100px);
        right: 50%;
        transform: translateX(50%);
    }
    50% {
        bottom: calc(100vh - 100px);
        right: calc(100vw - 180px);
    }
    66.66% {
        bottom: 40%;
        right: calc(100vw - 180px);
    }
    83.33% {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    100% {
        bottom: 20px;
        right: 20px;
    }
}

/* Platform Icons */
.platform-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
} 