/* =========================================================
   DIGITAL AID KIT — INTERACTIVE TEAM PROFILES
   ========================================================= */

.team-profile-card {
    cursor: pointer !important;
}

.team-profile-hover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 35, .48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: all .3s ease;
}

.team-profile-card:hover .team-profile-hover,
.team-profile-card:focus .team-profile-hover {
    opacity: 1;
}

.team-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(12px);
    transition: all .3s ease;
}

.team-profile-card:hover .team-profile-action {
    transform: translateY(0);
}

.team-profile-action i {
    font-size: 17px;
}

/* Modal */

.team-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(3, 6, 20, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.team-profile-modal.active {
    display: flex;
}

.team-profile-window {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        rgba(35,42,78,.96),
        rgba(12,16,39,.98)
    );
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
    color: #fff;
    animation: teamProfileIn .28s ease;
}

@keyframes teamProfileIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-profile-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.team-profile-close:hover {
    background: rgba(255,255,255,.2);
}

.team-profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.team-profile-photo {
    min-height: 500px;
    overflow: hidden;
}

.team-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.team-profile-info {
    padding: 48px 48px 42px;
}

.team-profile-label {
    margin-bottom: 8px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.team-profile-info h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 36px;
    line-height: 1.1;
}

.team-profile-role {
    margin-bottom: 28px;
    color: rgba(255,255,255,.72);
    font-size: 17px;
}

.team-profile-info h4 {
    margin: 25px 0 8px;
    color: #fff;
    font-size: 17px;
}

.team-profile-info p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.7;
}

.team-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.team-profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .2s ease;
}

.team-profile-links a:hover {
    background: rgba(255,255,255,.13);
}

@media (max-width: 768px) {
    .team-profile-modal {
        padding: 15px;
    }

    .team-profile-content {
        grid-template-columns: 1fr;
    }

    .team-profile-photo,
    .team-profile-photo img {
        min-height: 300px;
        height: 300px;
    }

    .team-profile-info {
        padding: 30px 25px;
    }

    .team-profile-info h2 {
        font-size: 28px;
    }
}
