/* Leaf Effect CSS for Team Profile */

/* Base leaf effect class */
.leaf-effect {
    position: relative;
    overflow: hidden;
}

/* Leaf container */
.leaf-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    border-radius: inherit;
}

/* Special effects for leaf container */
.gt-team-card-item:hover .leaf-container {
    animation: leaf-glow 2s infinite ease-in-out;
}

/* Individual leaf particles */
.leaf-particle {
    position: absolute;
    background-color: #7cda53;
    border-radius: 30% 70% 30% 70%;
    animation: floating 10s infinite ease-in-out;
    opacity: 0.7;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(124, 218, 83, 0.3);
}

/* Leaf particle variations */
.leaf-particle:nth-child(3n) {
    background-color: #a0e878;
    border-radius: 70% 30% 70% 30%;
}

.leaf-particle:nth-child(3n+1) {
    background-color: #5cb82b;
    border-radius: 50% 50% 20% 80%;
}

.leaf-particle:nth-child(3n+2) {
    background-color: #8fd65a;
    border-radius: 80% 20% 80% 20%;
}

/* Animation for floating leaves */
@keyframes floating {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    25% {
        transform: translateX(-20px) rotate(90deg) scale(0.9);
    }
    50% {
        transform: translateX(20px) rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    75% {
        transform: translateX(-10px) rotate(270deg) scale(0.95);
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        top: 100%;
        transform: translateX(0) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

/* Animation for leaf burst effect */
@keyframes leaf-burst {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.1);
        opacity: 0;
    }
}

/* Animation for leaf glow effect */
@keyframes leaf-glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(124, 218, 83, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(124, 218, 83, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(124, 218, 83, 0.3));
    }
}

/* Glow effect for team card */
.gt-team-card-item.leaf-glow {
    box-shadow: 0 0 15px rgba(124, 218, 83, 0.3);
    transition: all 0.4s ease;
    transform: translateY(0);
}

.gt-team-card-item.leaf-glow:hover {
    box-shadow: 0 0 25px rgba(124, 218, 83, 0.6), 0 0 15px rgba(150, 255, 150, 0.5);
    transform: translateY(-5px);
}

/* Leaf overlay for team image */
.leaf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%237cda53" d="M10,0 C12,5 15,8 20,10 C15,12 12,15 10,20 C8,15 5,12 0,10 C5,8 8,5 10,0 Z"/></svg>');
    background-size: 20px 20px;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.gt-team-card-item:hover .leaf-overlay {
    opacity: 0.15;
    background-size: 25px 25px;
    animation: leaf-pattern 10s infinite linear;
}

@keyframes leaf-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}