/* Team Section - Redesigned with Round Images */
.index-team {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.index-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="team-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(30,64,175,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23team-grid)"/></svg>');
}

.index-team-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.index-team-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.index-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02) 0%, rgba(29, 78, 216, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.index-team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.index-team-card:hover::before {
    opacity: 1;
}

.index-team-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.index-team-image-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(30, 64, 175, 0.1);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    padding: 4px;
}

.index-team-card:hover .index-team-image-container {
    border-color: rgba(30, 64, 175, 0.3);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.2);
}

.index-team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.index-team-card:hover .index-team-image {
    transform: scale(1.1);
}

.index-team-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.index-team-card:hover .index-team-image-overlay {
    opacity: 1;
}

.index-team-social {
    display: flex;
    gap: 0.75rem;
}

.index-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.index-team-card:hover .index-social-link {
    transform: translateY(0);
}

.index-social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
}

.index-team-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.index-team-status-badge.busy {
    background: rgba(239, 68, 68, 0.9);
}

.index-team-status-badge i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.index-team-content {
    position: relative;
    z-index: 3;
}

.index-team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.index-team-position {
    font-size: 1rem;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-team-specialty {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.index-team-experience {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.index-experience-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 64, 175, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 500;
}

.index-experience-item i {
    font-size: 0.8rem;
}

.index-team-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.index-team-credentials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.index-credential {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.index-credential i {
    font-size: 0.75rem;
}

.index-team-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.index-team-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    justify-content: center;
}

.index-team-btn.primary {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
}

.index-team-btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    color: white;
}

.index-team-btn.secondary {
    background: transparent;
    color: #1e40af;
    border-color: #1e40af;
}

.index-team-btn.secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

/* Responsive Design for Team Section */
@media (max-width: 1024px) {
    .index-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .index-team-image-container {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .index-team {
        padding: 60px 0;
    }
    
    .index-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .index-team-card {
        padding: 1.5rem;
    }
    
    .index-team-image-container {
        width: 120px;
        height: 120px;
    }
    
    .index-team-experience {
        flex-direction: column;
        align-items: center;
    }
    
    .index-team-actions {
        flex-direction: column;
    }
    
    .index-team-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .index-team-grid {
        grid-template-columns: 1fr;
    }
    
    .index-team-card {
        padding: 1.25rem;
    }
    
    .index-team-image-container {
        width: 100px;
        height: 100px;
    }
    
    .index-team-name {
        font-size: 1.3rem;
    }
    
    .index-team-credentials {
        flex-direction: column;
        align-items: center;
    }
    
    .index-social-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Animation for team cards on scroll */
.index-team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.index-team-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.index-team-card:nth-child(1) { transition-delay: 0.1s; }
.index-team-card:nth-child(2) { transition-delay: 0.2s; }
.index-team-card:nth-child(3) { transition-delay: 0.3s; }
.index-team-card:nth-child(4) { transition-delay: 0.4s; }
