
/* Soft fade-in animation */
@keyframes soft-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation to all cards */
.team-card {
    animation: soft-fade-in 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger animation for cards */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 12px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 12px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Highlight image section */
.image-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Large and visible image container */
.team-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

@media (max-width: 1024px) {
    .team-image-wrapper {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .image-section {
        min-height: 320px;
    }
    .team-image-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* Main large and visible image */
.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 2px rgba(102, 126, 234, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.team-member-photo:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 
        0 0 0 2px rgba(102, 126, 234, 0.6),
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 1);
}

/* Shine effect on the image */
.team-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(255,255,255,0.2) 100%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

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

/* Decorative particles around the image */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.decorative-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decorative-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 8%;
    animation-delay: 1s;
}

.decorative-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Loading placeholder */
.image-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
}

.image-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image error state */
.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
}

.image-error svg {
    width: 40%;
    height: 40%;
    color: #cbd5e1;
}

/* Container with scrollbar for the description */
.description-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Reduced text size */
.text-reduced {
    font-size: 0.9rem;
    line-height: 1.5;
}

.title-reduced {
    font-size: 1.5rem;
}

.subtitle-reduced {
    font-size: 1.1rem;
}

.section-title-reduced {
    font-size: 1rem;
}
