/* 
 * GDI Crypto Animation Fix - 2025
 * Ensures crypto logos stay in designated areas and provides professional styling
 */

/* Fix any existing floating elements that shouldn't be floating */
img[src*="/assets/crypto/"] {
    position: static !important;
    max-width: 60px !important;
    height: auto !important;
    display: inline-block !important;
}

/* Trusted Partners Section Styling */
.trusted-partners-section {
    position: relative !important;
    z-index: 1 !important;
    margin: 40px auto !important;
    max-width: 1200px !important;
}

.crypto-logos-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    padding: 20px !important;
}

.crypto-logos-container img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    filter: grayscale(0.5) !important;
    opacity: 0.8 !important;
}

.crypto-logos-container img:hover {
    filter: grayscale(0) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* App Download Section */
.app-download-section {
    text-align: center !important;
    margin: 20px 0 !important;
    padding: 20px !important;
}

.app-download-section img {
    width: 120px !important;
    height: auto !important;
    margin: 0 10px !important;
}

/* Disable random floating animations */
.crypto-random-float {
    display: none !important;
}

/* Ensure footer crypto logos stay in footer */
footer img[src*="/assets/crypto/"],
.footer img[src*="/assets/crypto/"] {
    position: static !important;
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 10px !important;
}

/* Background animation container - keep subtle */
div[style*="position: fixed"][style*="z-index: -1"] {
    opacity: 0.3 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .crypto-logos-container {
        gap: 20px !important;
    }
    
    .crypto-logos-container img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .app-download-section img {
        width: 100px !important;
    }
}

/* Professional hover effects for crypto sections */
.trusted-partners-section:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
}

/* Prevent any elements from floating outside their containers */
.crypto-animation-container,
.crypto-logos-wrapper,
.partner-logos-section {
    overflow: hidden !important;
    position: relative !important;
}

/* Emergency fix - hide any absolutely positioned crypto images that shouldn't be there */
img[src*="/assets/crypto/"][style*="position: absolute"] {
    display: none !important;
}

/* Allow only controlled animations */
.controlled-crypto-animation {
    display: block !important;
    position: relative !important;
}