What could of this been

I was laying on the beach for about an hour and a half and thats it . It's was pretty hot but not extremely hot. About 27 Celsius. When I got up all of a sudden I felt my heart beating in the inner part of my upper arms really strongly, I felt dizzy and nauseas and felt like I was going to pass out. Its been about an hour and a half since and now I feel really tired and weak.