/* Team Section Styles */
#team.team-section {
    padding: 80px 0;
    background: var(--brand-gradient-subtle);
    position: relative;
    overflow: hidden;
}

#team.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--shadow-light) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--border-light) 0%, transparent 40%);
    pointer-events: none;
}

#team .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
#team .section-header {
    margin-bottom: 60px;
    text-align: center;
}

#team .section-subtitle {
    display: inline-block;
    background: var(--brand-gradient-primary);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

#team .section-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

#team .section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Team Members Grid */
#team .team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Team Member Card */
#team .team-member-card {
    background: var(--surface-white);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    text-align: center;
}

#team .team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--shadow-strong);
    border-color: var(--border-medium);
}

/* Team Member Image */
#team .team-member-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

#team .team-member-image .member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

#team .team-member-card:hover .team-member-image .member-photo {
    transform: scale(1.1);
}

/* Image Fallback and Placeholder */
#team .member-image-fallback,
#team .member-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

#team .fallback-content,
#team .placeholder-content {
    text-align: center;
}

#team .fallback-content i,
#team .placeholder-content i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.8;
}

#team .fallback-content span,
#team .placeholder-content span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Image Overlay */
#team .member-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 72, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#team .team-member-card:hover .member-image-overlay {
    opacity: 1;
}

#team .overlay-content {
    color: var(--text-white);
    text-align: center;
}

#team .overlay-content i {
    font-size: 30px;
    margin-bottom: 10px;
}

#team .overlay-content span {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Member Info */
#team .team-member-info {
    padding: 30px;
    text-align: center;
}

#team .team-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 0;
}

#team .team-member-designation {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 16px;
}

/* Team Member Details */
#team .team-member-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#team .member-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    justify-content: center;
}

#team .member-detail i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

/* Team Member Bio */
#team .team-member-bio {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Team Member Contact */
#team .team-member-contact {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

#team .contact-link {
    width: 40px;
    height: 40px;
    background: var(--surface-gray-light);
    color: var(--text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

#team .contact-link:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

#team .linkedin-link:hover {
    background: #0077b5;
    color: var(--text-white);
}

#team .email-link:hover {
    background: #ea4335;
    color: var(--text-white);
}

#team .phone-link:hover {
    background: #34a853;
    color: var(--text-white);
}

#team .profile-link:hover {
    background: var(--primary-green);
    color: var(--text-white);
}

/* Empty State */
#team .team-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--surface-light);
    border-radius: 20px;
    border: 2px dashed var(--border-medium);
    position: relative;
    z-index: 1;
}

#team .empty-state-content i {
    font-size: 80px;
    color: var(--primary-green);
    margin-bottom: 30px;
    opacity: 0.7;
}

#team .empty-state-content h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

#team .empty-state-content p {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Animations */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #team.team-section {
        padding: 60px 0;
    }
    
    #team .container {
        padding: 0 15px;
    }
    
    #team .section-title {
        font-size: 2rem;
    }
    
    #team .section-header {
        margin-bottom: 40px;
    }
    
    #team .team-members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #team .team-member-info {
        padding: 25px 20px;
    }
    
    #team .team-member-details {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #team .team-member-image {
        height: 240px;
    }
    
    #team .section-title {
        font-size: 1.8rem;
    }
    
    #team .team-member-name {
        font-size: 1.3rem;
    }
    
    #team .team-member-designation {
        font-size: 14px;
    }
    
    #team .contact-link {
        width: 35px;
        height: 35px;
    }
}

/* Legacy Support - Keep existing class selectors for backward compatibility */
.team-member-specialization,
.team-member-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin: 8px 0;
    justify-content: center;
}

.team-member-specialization i,
.team-member-experience i {
    color: var(--primary-green);
    font-size: 12px;
    width: 16px;
    text-align: center;
}

/* Additional modern styling */
#team .team-member-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--brand-gradient-primary);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

#team .team-member-card:hover::before {
    opacity: 0.1;
}
