/* ===================================================================
 * Animated Icons - Lordicon Integration & Styling
 * Premium micro-interaction icons with motion-first design
 * ================================================================ */

/* ===================================================================
 * LORDICON BASE STYLING
 * ================================================================ */

lord-icon {
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Icon containers with enhanced depth */
.icon-box lord-icon,
.pillar-icon lord-icon,
.industry-icon lord-icon,
.feature-icon lord-icon {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.expert-avatar lord-icon {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 6px 16px rgba(139, 92, 246, 0.4));
}

.hero-trust-icon lord-icon {
    width: 100% !important;
    height: 100% !important;
}

.tech-logo lord-icon {
    width: 100% !important;
    height: 100% !important;
}

/* Location icons with emerald glow */
.location-header lord-icon {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

/* Pitfall warning icons with red glow */
.pitfall-title lord-icon {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.5));
}

/* ===================================================================
 * HOVER STATES & INTERACTIONS
 * ================================================================ */

/* Icon scale and glow on parent hover */
.icon-box:hover lord-icon,
.pillar-icon:hover lord-icon,
.industry-icon:hover lord-icon,
.feature-icon:hover lord-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.6));
}

.expert-avatar:hover lord-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.7));
}

.tech-logo:hover lord-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 20px rgba(59, 130, 246, 0.5));
}

.location-header:hover lord-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.7));
}

/* Card hover triggers icon animation */
.card:hover lord-icon,
.industry-card:hover lord-icon,
.testimonial-card:hover lord-icon {
    animation: icon-pulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ===================================================================
 * SECTION-SPECIFIC ICON TREATMENTS
 * ================================================================ */

/* Stats section - gradient glow */
#stats-counter lord-icon {
    filter: drop-shadow(0 4px 16px rgba(96, 165, 250, 0.4));
}

#stats-counter .stat-item:hover lord-icon {
    filter: drop-shadow(0 8px 32px rgba(96, 165, 250, 0.8));
    animation: icon-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(-6px);
    }
}

/* Benefits section - blue glow */
#benefits lord-icon {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.35));
}

#benefits .card:hover lord-icon {
    filter: drop-shadow(0 8px 28px rgba(59, 130, 246, 0.7));
}

/* Gen AI Spotlight - purple glow */
#gen-ai-spotlight lord-icon {
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.35));
}

#gen-ai-spotlight .feature-item:hover lord-icon {
    filter: drop-shadow(0 8px 28px rgba(139, 92, 246, 0.7));
    transform: rotate(-5deg) scale(1.1);
}

/* Coverage/Services section */
#coverage .pillar-icon:hover lord-icon {
    animation: icon-wiggle 0.5s ease-in-out;
}

@keyframes icon-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/* Industries section */
#industries .industry-icon lord-icon {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

#industries .industry-card:hover .industry-icon lord-icon {
    filter: drop-shadow(0 10px 32px rgba(59, 130, 246, 0.8));
    animation: icon-float 2s ease-in-out infinite;
}

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

/* Process steps - sequential animation */
.process-step lord-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step.is-visible lord-icon {
    opacity: 1;
    transform: scale(1);
}

/* Survival guide - amber glow */
#survival-guide .section-icon lord-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 6px 20px rgba(251, 191, 36, 0.5));
}

#survival-guide .guide-card:hover lord-icon {
    filter: drop-shadow(0 10px 36px rgba(251, 191, 36, 0.8));
    animation: icon-spin 1s ease-in-out;
}

@keyframes icon-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* Icons fade in and scale up on scroll */
.animate-on-scroll lord-icon {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.is-visible lord-icon {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(1) lord-icon {
    transition-delay: 0.15s;
}

.animate-on-scroll:nth-child(2) lord-icon {
    transition-delay: 0.25s;
}

.animate-on-scroll:nth-child(3) lord-icon {
    transition-delay: 0.35s;
}

.animate-on-scroll:nth-child(4) lord-icon {
    transition-delay: 0.45s;
}

.animate-on-scroll:nth-child(5) lord-icon {
    transition-delay: 0.55s;
}

.animate-on-scroll:nth-child(6) lord-icon {
    transition-delay: 0.65s;
}

/* ===================================================================
 * BUTTON & CTA ICON ANIMATIONS
 * ================================================================ */

.btn lord-icon,
.hero-btn-primary-large lord-icon,
.hero-btn-secondary-large lord-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.btn:hover lord-icon,
.hero-btn-primary-large:hover lord-icon,
.hero-btn-secondary-large:hover lord-icon {
    transform: translateX(4px);
}

/* ===================================================================
 * TESTIMONIAL QUOTE ICON
 * ================================================================ */

.testimonial-card lord-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    opacity: 0.2;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}

.testimonial-card:hover lord-icon {
    opacity: 0.35;
    filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.5));
}

/* ===================================================================
 * FAQ SECTION ICONS
 * ================================================================ */

.faq-item lord-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.faq-item:hover lord-icon {
    filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.6));
    animation: icon-pulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
 * LOADING & STATE INDICATORS
 * ================================================================ */

/* Loading state for async icons */
lord-icon[loading] {
    opacity: 0.5;
    animation: icon-loading 1.5s ease-in-out infinite;
}

@keyframes icon-loading {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Error state */
lord-icon[error] {
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.5));
}

/* Success state */
lord-icon[success] {
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.5));
    animation: icon-success 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

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

@media (max-width: 768px) {
    .icon-box lord-icon,
    .pillar-icon lord-icon,
    .industry-icon lord-icon,
    .feature-icon lord-icon {
        width: 40px;
        height: 40px;
    }
    
    .expert-avatar lord-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Reduce animation intensity on mobile */
    .icon-box:hover lord-icon,
    .pillar-icon:hover lord-icon,
    .industry-icon:hover lord-icon,
    .feature-icon:hover lord-icon {
        transform: scale(1.08);
    }
}

/* ===================================================================
 * ACCESSIBILITY & PERFORMANCE
 * ================================================================ */

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    lord-icon {
        filter: contrast(1.5) brightness(1.2);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    lord-icon {
        filter: brightness(1.1);
    }
}
