/* ===================================================================
 * Premium Animations - Soft 3D Icons with Micro-Animations
 * Idea 1: Soft 3D plush-style icons with gentle gradients and micro-animations
 * ================================================================ */

/* ===================================================================
 * SOFT 3D ICON STYLING - Plush, Tactile, Premium Feel
 * ================================================================ */

/* Base icon container with soft 3D effect */
.icon-box,
.pillar-icon,
.industry-icon,
.expert-avatar,
.feature-icon,
.tech-logo,
.process-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* Soft 3D plush effect with gradients */
.icon-box,
.pillar-icon,
.industry-icon,
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(139, 92, 246, 0.12) 50%,
        rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 
        0 8px 32px -8px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

/* Icon SVG/i element styling */
.icon-box i,
.pillar-icon i,
.industry-icon i,
.feature-icon i,
.tech-logo i {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/* Expert avatar special styling */
.expert-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 
        0 12px 40px -12px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.expert-avatar i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Process numbers with premium styling */
.process-number {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-family: "montserrat-bold", sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.18) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    box-shadow: 
        0 6px 24px -6px rgba(59, 130, 246, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.18);
}

/* ===================================================================
 * MICRO-ANIMATIONS - Hover Effects
 * ================================================================ */

/* Float animation on hover */
.icon-box:hover,
.pillar-icon:hover,
.industry-icon:hover,
.feature-icon:hover,
.expert-avatar:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 16px 48px -12px rgba(59, 130, 246, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.25),
        inset 0 -3px 6px rgba(0, 0, 0, 0.12);
}

/* Icon rotation and glow on hover */
.icon-box:hover i,
.pillar-icon:hover i,
.industry-icon:hover i,
.feature-icon:hover i {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.6));
}

/* Tech logo hover effect */
.tech-logo {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-logo:hover {
    transform: translateY(-4px);
}

.tech-logo:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

/* Card hover effects with subtle lift */
.card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 60px -20px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Industry card special hover */
.industry-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 24px 72px -24px rgba(59, 130, 246, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Process step hover */
.process-step:hover .process-number {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        0 12px 36px -8px rgba(59, 130, 246, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 0.25);
}

/* ===================================================================
 * SCROLL-TRIGGERED ANIMATIONS
 * ================================================================ */

/* Initial state for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Visible state */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Scale-in animation variant */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Fade-in animation variant */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

/* ===================================================================
 * RIPPLE EFFECT ON BUTTONS
 * ================================================================ */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* ===================================================================
 * PULSE ANIMATION FOR STATS - DISABLED
 * ================================================================ */

.stat-item {
    /* animation: subtle-pulse 3s ease-in-out infinite; */
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Stat value counter animation */
.stat-value {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
    transform: scale(1.1);
    color: rgba(59, 130, 246, 0.95);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ===================================================================
 * GRADIENT BORDER ANIMATION
 * ================================================================ */

.hero-metric-card,
.case-card {
    position: relative;
    overflow: hidden;
}

.hero-metric-card::after,
.case-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.4),
        rgba(139, 92, 246, 0.4),
        rgba(16, 185, 129, 0.4),
        rgba(59, 130, 246, 0.4)
    );
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 4s ease infinite;
}

.hero-metric-card:hover::after,
.case-card:hover::after {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===================================================================
 * ELASTIC BOUNCE ANIMATION
 * ================================================================ */

@keyframes elastic-bounce {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(0.95);
    }
    60% {
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

.icon-box.animate-bounce,
.pillar-icon.animate-bounce,
.industry-icon.animate-bounce,
.feature-icon.animate-bounce {
    animation: elastic-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
 * SHIMMER EFFECT FOR PREMIUM FEEL
 * ================================================================ */

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::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.8s ease;
}

.shimmer:hover::before {
    left: 100%;
}

/* ===================================================================
 * FLOATING ANIMATION FOR HERO ELEMENTS
 * ================================================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-trust-icon {
    animation: float 3s ease-in-out infinite;
}

.hero-trust-item:nth-child(1) .hero-trust-icon {
    animation-delay: 0s;
}

.hero-trust-item:nth-child(2) .hero-trust-icon {
    animation-delay: 0.3s;
}

.hero-trust-item:nth-child(3) .hero-trust-icon {
    animation-delay: 0.6s;
}

/* ===================================================================
 * GLOW EFFECT ON FOCUS/ACTIVE
 * ================================================================ */

.icon-box:active,
.pillar-icon:active,
.industry-icon:active,
.feature-icon:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 20px 60px -16px rgba(59, 130, 246, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(59, 130, 246, 0.4);
}

/* ===================================================================
 * RESPONSIVE ADJUSTMENTS
 * ================================================================ */

@media (max-width: 768px) {
    .icon-box,
    .pillar-icon,
    .industry-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .expert-avatar {
        width: 80px;
        height: 80px;
    }
    
    .process-number {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    /* Reduce animation intensity on mobile */
    .icon-box:hover,
    .pillar-icon:hover,
    .industry-icon:hover,
    .feature-icon:hover {
        transform: translateY(-4px) scale(1.03);
    }
}

/* ===================================================================
 * PERFORMANCE OPTIMIZATIONS
 * ================================================================ */

/* Use GPU acceleration for smooth animations */
.icon-box,
.pillar-icon,
.industry-icon,
.feature-icon,
.expert-avatar,
.process-number,
.card,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

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