/* Card Container */
.team-section{
    position: relative;
    z-index: 0;
    background-color: #D9E6FF;
}
.cv-team-card {
    position: relative;
    overflow: hidden;
    background-color: #111827;
    border-radius: 4px;
    aspect-ratio: 1 / 1.15;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.cv-team-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Hover Scale Effect */
.cv-team-card:hover .cv-team-img {
    transform: scale(1.06);
}

/* The Green Glow & Diagonal Pattern Overlay */
.cv-team-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 50% 40%, #e61e2563 0%, transparent 60%), repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.04) 4px, rgba(255, 255, 255, 0.04) 5px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    mix-blend-mode: hard-light; /* Helps the green blend into the photo */
}

.cv-team-card:hover .cv-team-hover-overlay {
    opacity: 1;
}

/* Bottom Content Area (Gradient Overlay to make text pop) */
.cv-team-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 25px 25px 25px;
    background: linear-gradient(to top, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0.85) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Name Typography */
.cv-team-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

/* Position Typography */
.cv-team-position {
    color: #94a3b8; /* Slate grey */
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Social Icons Wrapper */
.cv-team-socials {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    max-height: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

/* Reveal Socials on Card Hover */
.cv-team-card:hover .cv-team-socials {
    opacity: 1;
    max-height: 40px;
    transform: translateY(0);
}

/* Individual Social Icons */
.cv-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cv-social-icon:hover {
    background-color: #cda85f; 
    color: #ffffff;
}