You are using M3 (androidx.compose.material3) Card and the elevation attribute requires a CardElevation object:
Something like:
Card(
shape = RoundedCornerShape(20.dp),
elevation = CardDefaults.cardElevation(
defaultElevation = 10.dp
)
)