3.8 GPA, but 3 Fs and 1 D on transcript
In my (rather extensive) experience with graduate admissions, admissions committees understand that people have semesters in which life interferes with school. If you've retaken the classes and received high marks in them, this very clearly signals that something was interfering with your performance during those two semesters and that the bad grades have nothing to do with your underlying ability. Those grades won't go unnoticed -- but nor will they hurt you the way they would had you not repeated and aced those courses.
It would help further if you have a trusted mentor who could mention and--to the degree that you comfortable, explain--this issue in his or her letter of recommendation.
Don't count on cruising through the application process, but also don't lower your ambitions based on these grades.
I'm on the graduate admissions committee of a top 10 computer science program. If you very briefly explained the circumstances and pointed out that you re-took the classes and got As and have gotten high grades ever since, I doubt these particular marks would be held against you.
As a former member of a graduate program committee who has reviewed hundreds of applications I can give my opinion. Address the F's directly and briefly in your application letter, say you had a problem, point out the retakes, and tell them you learned from the experience.
I personally have three advanced degrees and a few F's on my undergraduate transcript.
"Experience is a hard teacher because she gives the test first, the lesson afterward." - Vernon Law