/* Team card container */
.team-card {
    background-color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Profile Image with 3D effect */
.team-card .card-body img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0d6efd;
    /* Blue border */
    background-color: #fff;

    /* 3D layered shadows */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.15),
        inset 0 8px 12px rgba(255, 255, 255, 0.6),
        0 0 0 3px #e9ecef;

    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 1rem;
}

/* Hover effect for 3D image */
.team-card:hover .card-body img {
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.25),
        inset 0 10px 15px rgba(255, 255, 255, 0.7),
        0 0 0 3px #e9ecef;

    transform: scale(1.07) rotateX(5deg) rotateY(5deg);
}

/* Card Title */
.card-title {
    font-weight: 600;
    color: #212529;
}

/* Position text */
.text-primary {
    font-weight: 500;
    color: #1B2330 !important;
}

/* Description text */
.text-muted {
    color: #6c757d !important;
}

/* Social Icons container */
.social-icons {
    margin-top: auto;
}

/* Social icon style */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #f5f7fa;
    border-radius: 50%;
    color: #6c757d;
    font-size: 1.25rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 1px solid #d1d7df;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
    margin: 0 5px;
}

.social-icons .social-icon:hover {
    background-color: #f16501;
    color: #fff;
    border-color: #1B2330;
    box-shadow: 0 4px 12px rgb(76, 33, 2);
    transform: scale(1.1);
}

/* Responsive tweaks for small devices */
@media (max-width: 575.98px) {
    .card-body {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}