This sounds very similar to the experience Henry Shukman had in his teens on a beach in South America. It started his journey to becoming a Zen teacher. He writes about it in the early chapters of "One Blade of Grass" (which I'm currently reading).
A remarkable autobiography, and a balanced and compelling account of his practice. I'm inspired to find a good community :)