Create a high-resolution, photorealistic image of a stunning medieval castle perched on a rugged cliffside overlooking a vast ocean. The scene should capture the grandeur and timelessness of the castle, with its tall, stone towers, battlements, and arched windows. The castle is partially shrouded in morning mist, adding to its mysterious allure. Below the cliff, waves crash against the rocks, sending up sprays of white foam. The surrounding landscape is lush and green, with patches of wildflowers blooming. The sky is a mix of soft pastel colors as the sun rises, casting a warm, golden light that illuminates the castle and the cliffside. In the foreground, a narrow, cobblestone path leads up to the castle gates, lined with ancient, weathered statues. The overall image should evoke a sense of history, majesty, and the enchanting beauty of a bygone era.