/* Enhanced Animations and Visual Effects for ImpactLens Website */

/* Data Transformation Section Enhancements */
.ai-showcase {
    position: relative;
    overflow: hidden;
}

.ai-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/data-transformation-bg.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.ai-showcase .container {
    position: relative;
    z-index: 1;
}

.data-visualization {
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

/* Methodology Wheel Enhancements */
.services-visual {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.methodology-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    background: url('../images/methodology-wheel-bg.png') center/contain no-repeat;
    border-radius: 50%;
}

/* Expert Network Visualization */
.expert-network {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.expert-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/expert-network-viz.png') center/cover;
    opacity: 0.05;
    z-index: 0;
}

.expert-network .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Particle Animations */
@keyframes dataFlow {
    0% {
        transform: translateX(-100px) translateY(0px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100px) translateY(-20px);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 123, 255, 0.6);
        transform: scale(1.05);
    }
}

@keyframes rotateWheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Interactive Hover Effects */
.pillar-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pillar-card:hover::before {
    left: 100%;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Section-specific animations */
.section-title {
    animation: fadeInUp 1s ease-out;
}

.pillar-card:nth-child(1) {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.pillar-card:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.pillar-card:nth-child(3) {
    animation: slideInRight 1s ease-out 0.6s both;
}

/* Client logos animation */
.client-logo {
    animation: fadeInUp 1s ease-out;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero section enhancements */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive animations */
@media (max-width: 768px) {
    .methodology-wheel {
        width: 250px;
        height: 250px;
    }
    
    .data-visualization {
        min-height: 200px;
    }
    
    .expert-network-visualization {
        width: 300px;
        height: 200px;
    }
}

/* Performance optimizations */
.pillar-card,
.btn,
.client-logo {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

