/*
===============================================
WORKFAST - Enhanced Icons & Visual Elements
Version: 1.0
Date: 30/12/2024
===============================================
Mục tiêu: Cải thiện icon và thumbnail để bắt mắt hơn
*/

/* ==========================
   ICON ENHANCEMENTS
   ========================== */

/* Icon với gradient background và animation */
.feature-icon {
    position: relative;
    animation: icon-float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(79, 195, 247, 0.3));
}

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

/* Icon hover effect */
.feature-icon:hover {
    animation: icon-pulse 0.6s ease-in-out;
    transform: scale(1.1);
}

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

/* Step number với gradient và glow */
.step-number {
    position: relative;
    animation: step-glow 3s ease-in-out infinite;
}

@keyframes step-glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(79, 195, 247, 0.6), 0 0 40px rgba(79, 195, 247, 0.3);
    }
}

/* Industry icon với hover animation */
.industry-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 12px rgba(79, 195, 247, 0.2));
}

.industry-item:hover .industry-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 8px 20px rgba(79, 195, 247, 0.4));
}

/* Service icon với 3D effect */
.service-icon {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

/* Quote icon gradient */
.quote-icon {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(255, 107, 107, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: quote-shimmer 3s ease-in-out infinite;
}

@keyframes quote-shimmer {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* ==========================
   IMAGE ENHANCEMENTS
   ========================== */

/* Feature image với zoom effect */
.feature-image {
    overflow: hidden;
    position: relative;
}

.feature-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.05) contrast(1.1);
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.15);
}

/* Image overlay gradient */
.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(79, 195, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-image::after {
    opacity: 1;
}

/* ==========================
   TESTIMONIAL ENHANCEMENTS
   ========================== */

/* Testimonial card gradient border */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4FC3F7 0%, #FF6B6B 50%, #4FC3F7 100%);
    background-size: 200% 100%;
    animation: gradient-flow 3s linear infinite;
}

/* Stars animation */
.stars i {
    display: inline-block;
    animation: star-twinkle 2s ease-in-out infinite;
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.2s; }
.stars i:nth-child(3) { animation-delay: 0.4s; }
.stars i:nth-child(4) { animation-delay: 0.6s; }
.stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* ==========================
   PROCESS STEP ENHANCEMENTS
   ========================== */

/* Process connector line */
.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #4FC3F7 0%, #FF6B6B 50%, #4FC3F7 100%);
    background-size: 200% 100%;
    animation: gradient-flow 4s linear infinite;
    z-index: 0;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Step icon pulse */
.step-icon i {
    animation: icon-pulse-gentle 2s ease-in-out infinite;
}

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

/* ==========================
   INDUSTRY CARD ENHANCEMENTS
   ========================== */

.industry-item {
    position: relative;
    overflow: hidden;
}

/* Gradient hover background */
.industry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.industry-item:hover::before {
    left: 100%;
}

/* Industry item border animation */
.industry-item:hover {
    border-color: #4FC3F7;
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.2);
}

/* ==========================
   BUTTON & CTA ENHANCEMENTS
   ========================== */

/* Button ripple effect */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::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-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ==========================
   STATS COUNTER ENHANCEMENTS
   ========================== */

.stat-icon {
    animation: stat-rotate 3s ease-in-out infinite;
}

@keyframes stat-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Stat number gradient text */
.stat-number {
    background: linear-gradient(135deg, #4FC3F7 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-flow 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradient-text-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

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

@media (max-width: 768px) {
    .process-steps::before {
        display: none;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .feature-icon i {
        font-size: 28px !important;
    }
    
    .step-number {
        width: 70px !important;
        height: 70px !important;
        font-size: 32px !important;
    }
}

/* ==========================
   ACCESSIBILITY
   ========================== */

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