.modern-team-header {
    text-align: center;
    margin-bottom: 60px;
    animation: modernTeamFadeIn 1s ease-out;
}

.modern-team-header-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.modern-team-sparkle-icon {
    width: 32px;
    height: 32px;
    color: #1D9798;
    animation: modernTeamPulse 2s infinite;
}

.modern-team-main-title {
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.modern-team-subtitle {
    color: #EFF3F4;
    font-size: 1.2rem;
}

.modern-team-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 40px;
    padding: 20px;
}

.modern-team-member-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: modernTeamSlideUp 0.8s ease-out backwards;
    cursor: pointer;
}

.modern-team-member-card:nth-child(1) { animation-delay: 0s; }
.modern-team-member-card:nth-child(2) { animation-delay: 0.15s; }
.modern-team-member-card:nth-child(3) { animation-delay: 0.3s; }

.modern-team-member-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 80px rgba(29, 151, 152, 0.4);
}

.modern-team-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-team-member-card:hover .modern-team-card-photo {
    transform: scale(1.1);
}

.modern-team-gradient-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to top, rgba(45, 61, 78, 0.95) 0%, rgba(45, 61, 78, 0.8) 40%, rgba(45, 61, 78, 0) 100%); */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modern-team-member-card:hover .modern-team-gradient-overlay {
    background: linear-gradient(to top, rgba(15, 116, 163, 0.95) 0%, rgba(29, 151, 152, 0.9) 60%, rgba(74, 110, 140, 0.7) 100%);
}

.modern-team-card-info-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    z-index: 10;
    transform: translateY(80px);
    transition: transform 0.5s ease;
}

.modern-team-member-card:hover .modern-team-card-info-wrapper {
    transform: translateY(0);
}

.modern-team-info-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.modern-team-info-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.modern-team-member-card:hover .modern-team-info-hidden {
    opacity: 1;
    transform: translateY(0);
}

.modern-team-member-name {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-team-role-label {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, #0F74A3, #1D9798);
    color: #EFF3F4;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modern-team-specialty-text {
    color: #EFF3F4;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 5px;
}


@keyframes modernTeamFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modernTeamSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modernTeamPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes modernTeamFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -20px); }
}

@media (max-width: 768px) {
    .modern-team-main-title {
        font-size: 2rem;
    }
    
    .modern-team-grid-layout {
        grid-template-columns: 1fr;
    }

    .modern-team-member-card {
        height: 400px;
    }
}