As you yourself have mentioned, you have recently started gym and diet. Some changes like this can happen
I would recommend you to use an app to track you cycles. (personal choice is flo)
Next Steps
Do not worry and track your cycles regularly. Its not unusual for number of days to vary with age, diet n physical activity