/* ===== PREMIUM TEAM SECTION ===== */
.team-section {
    padding: 30px 0 80px 0; /* Reduced top padding */
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle background dots */
.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(40, 120, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
}

.team-container {
    position: relative;
    z-index: 1;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.team-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Glass shine on hover */
.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(40, 120, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(40, 120, 255, 0.08);
    border-color: #bfdbfe;
}

.team-card:hover::after {
    left: 150%;
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f8fafc;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-img {
    transform: scale(1.08);
}

/* Social icons overlay with glassmorphism */
.team-socials {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 50px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-card:hover .team-socials {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.social-link {
    color: #1e293b;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #2878FF;
    color: #ffffff;
    transform: translateY(-3px);
}
.social-link svg {
    width: 18px;
    height: 18px;
}

.team-info {
    padding: 30px;
    text-align: center;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2878FF;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.team-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .team-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}
@media (max-width: 768px) {
    .team-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .team-img-wrapper {
        height: 350px;
    }
}
