/* ======================
   Team Section
   ====================== */

.team-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #00bfff;
}

/* Member Image */
.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 46, 95, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-member:hover .member-info {
    transform: translateY(0);
}

.member-info h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-info p {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Member Content */
.member-content {
    padding: 30px;
    text-align: center;
}

.member-name {
    font-size: 2.2rem;
    color: #002e5f;
    margin-bottom: 5px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: #00bfff;
}

.member-position {
    font-size: 1.5rem;
    color: #00bfff;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 72px; /* For consistent height */
}

/* Member Social Links */
.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f7ff;
    color: #002e5f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 46, 95, 0.1);
}

.social-link:hover {
    background: #002e5f;
    color: white;
    transform: translateY(-5px);
    border-color: #002e5f;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Join Our Team Card */
.join-team {
    background: linear-gradient(135deg, #002e5f, #004a99);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.join-team:hover {
    border-color: #00bfff;
    background: linear-gradient(135deg, #004a99, #002e5f);
}

.join-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.join-icon i {
    font-size: 4rem;
    color: white;
    transition: transform 0.3s ease;
}

.join-team:hover .join-icon i {
    transform: rotate(90deg) scale(1.1);
}

.join-content h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.join-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.5;
}

.join-team .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.join-team .btn-outline:hover {
    background: white;
    color: #002e5f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ======================
   Responsive Design
   ====================== */

/* Tablet */
@media (max-width: 991px) {
    .team-section {
        padding: 80px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .member-image {
        height: 280px;
    }
    
    .member-content {
        padding: 25px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .member-image {
        height: 300px;
    }
    
    .member-social {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 250px;
    }
    
    .member-content {
        padding: 20px;
    }
    
    .member-name {
        font-size: 2rem;
    }
    
    .member-position {
        font-size: 1.4rem;
    }
    
    .member-bio {
        font-size: 1.4rem;
        min-height: 67px;
    }
    
    .join-content h3 {
        font-size: 2.2rem;
    }
    
    .join-content p {
        font-size: 1.5rem;
    }
}