/* Three.js Animation Styles */

/* Hero 3D Container */
.hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Feature Icons 3D */
.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.feature-icon canvas {
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Step Animations */
.step-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-animation canvas {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.step-animation:hover canvas {
    box-shadow: 0 0 25px rgba(0, 102, 255, 0.5);
}

/* Hide original animation placeholders */
.animation-circle {
    display: none;
}

/* Pricing Cards 3D Effect */
.pricing-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.pricing-header, 
.pricing-features, 
.pricing-btn {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-3d-container {
        opacity: 0.9;
    }
    
    .step-animation {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 992px) {
    .hero-3d-container {
        opacity: 0.8;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-animation {
        width: 120px;
        height: 120px;
    }
    
    /* Reduce intensity of 3D effects */
    .pricing-card:hover {
        box-shadow: 0 15px 30px rgba(0, 102, 255, 0.15);
    }
}

@media (max-width: 768px) {
    .hero-3d-container {
        opacity: 0.7; /* Reduce opacity on mobile for better text readability */
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }
    
    .step-animation {
        width: 100px;
        height: 100px;
        margin: 0 auto 1.5rem;
    }
    
    .feature-icon:hover,
    .step-animation:hover {
        transform: scale(1.05); /* Reduce hover scale effect on mobile */
    }
    
    .pricing-card {
        transform: none !important; /* Disable 3D effect on mobile */
    }
    
    .pricing-header, 
    .pricing-features, 
    .pricing-btn {
        transform: none !important; /* Disable 3D effect on mobile */
    }
}

@media (max-width: 576px) {
    .hero-3d-container {
        opacity: 0.6;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-animation {
        width: 90px;
        height: 90px;
    }
    
    .step-animation canvas {
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-3d-container {
        opacity: 0.5; /* Further reduce opacity for very small screens */
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    .step-animation {
        width: 80px;
        height: 80px;
    }
    
    /* Disable hover effects on very small screens for better performance */
    .feature-icon:hover,
    .step-animation:hover {
        transform: none;
    }
    
    .step-animation:hover canvas {
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
    }
}

/* Handle landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-3d-container {
        opacity: 0.4;
    }
    
    .feature-icon,
    .step-animation {
        transform: scale(0.7);
    }
}