/* Hero Section */
.team-hero {
    background: var(--sofirm-gradient);
    color: var(--sofirm-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.team-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 1;
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Team Culture Section */
.culture-section {
    padding: 5rem 0;
    background: var(--sofirm-light);
}

.culture-card {
    background: var(--sofirm-white);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--sofirm-accent);
}

.culture-icon {
    font-size: 2.5rem;
    color: var(--sofirm-primary);
    margin-bottom: 1.5rem;
}

.culture-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 1rem;
}

.culture-text {
    color: var(--sofirm-text);
    line-height: 1.7;
}

/* Team Grid Section */
.team-section {
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--sofirm-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--sofirm-accent);
}

.team-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sofirm-white);
    color: var(--sofirm-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.team-social-link:hover {
    background: var(--sofirm-primary);
    color: var(--sofirm-white);
    transform: translateY(-3px);
}

.team-info {
    padding: 1.75rem;
    text-align: center;
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 0.35rem;
}

.team-role {
    font-size: 1rem;
    color: var(--sofirm-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
}

.team-bio {
    color: var(--sofirm-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-department {
    font-size: 0.9rem;
    color: var(--sofirm-text);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.team-department i {
    color: var(--sofirm-accent);
}

/* Leadership Section */
.leadership-section {
    padding: 4rem 0;
    background: var(--sofirm-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--sofirm-text);
    max-width: 600px;
    margin: 0 auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.leadership-card {
    background: var(--sofirm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--sofirm-accent);
}

.leadership-image {
    height: 300px;
    overflow: hidden;
}

.leadership-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leadership-card:hover .leadership-image img {
    transform: scale(1.1);
}

.leadership-info {
    padding: 2rem;
    text-align: center;
}

.leadership-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sofirm-dark);
    margin-bottom: 0.35rem;
}

.leadership-title {
    font-size: 1.1rem;
    color: var(--sofirm-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.35rem 1.25rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
}

.leadership-bio {
    color: var(--sofirm-text);
    line-height: 1.7;
}

/* Join Us CTA */
.join-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--sofirm-dark) 0%, var(--sofirm-text) 100%);
    color: var(--sofirm-white);
    text-align: center;
}

.join-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.join-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn-join {
    background: var(--sofirm-white);
    color: var(--sofirm-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--sofirm-white);
    color: var(--sofirm-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .team-hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .join-title {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card, .leadership-card, .culture-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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; }
.leadership-card:nth-child(1) { animation-delay: 0.1s; }
.leadership-card:nth-child(2) { animation-delay: 0.2s; }