/**
 * Animated Icons Styles
 * Custom styling for the animated SVG icons
 */

.value-icon-container {
    position: relative;
    overflow: visible;
}

.custom-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.custom-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

.value-icon-container:hover .custom-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

/* Award Icon Animations */
.award-icon .glow {
    animation: pulse 3s infinite alternate;
}

.award-icon .medal {
    animation: shine 5s infinite;
}

/* Users Icon Animations */
.users-icon .person-center,
.users-icon .person-left,
.users-icon .person-right {
    animation: float 4s infinite alternate ease-in-out;
}

.users-icon .person-left {
    animation-delay: 0.5s;
}

.users-icon .person-right {
    animation-delay: 1s;
}

.users-icon .body-center,
.users-icon .body-left,
.users-icon .body-right {
    animation: pulse 3s infinite alternate;
}

/* Lightbulb Icon Animations */
.lightbulb-icon .bulb {
    animation: glow 3s infinite alternate;
}

.lightbulb-icon .filament {
    animation: flicker 0.5s infinite alternate;
    animation-timing-function: steps(2);
}

/* Leaf Icon Animations */
.leaf-icon .leaf {
    animation: sway 5s infinite alternate ease-in-out;
    transform-origin: 35px 70px;
}

.leaf-icon .vein,
.leaf-icon .vein-small {
    animation: pulse 4s infinite alternate;
}

/* Handshake Icon Animations */
.handshake-icon .hand-left,
.handshake-icon .hand-right {
    animation: shake 3s infinite;
    animation-timing-function: ease-in-out;
}

.handshake-icon .sleeve-left {
    animation: moveLeft 3s infinite;
    animation-timing-function: ease-in-out;
}

.handshake-icon .sleeve-right {
    animation: moveRight 3s infinite;
    animation-timing-function: ease-in-out;
}

/* Chart Icon Animations */
.chart-icon .chart-line {
    animation: drawLine 3s forwards;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.chart-icon .point {
    animation: fadeIn 3s forwards;
    opacity: 0;
}

.chart-icon .point:nth-child(2) {
    animation-delay: 0.5s;
}

.chart-icon .point:nth-child(3) {
    animation-delay: 1s;
}

.chart-icon .point:nth-child(4) {
    animation-delay: 1.5s;
}

.chart-icon .point:nth-child(5) {
    animation-delay: 2s;
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
    100% {
        filter: brightness(1);
    }
}

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

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    }
}

@keyframes flicker {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes moveLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(2px);
    }
}

@keyframes moveRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-2px);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Three.js canvas styling */
.three-js-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .custom-icon {
        width: 40px;
        height: 40px;
    }
}
