01 - Preheat oven to 350°F. Grease and line the bottoms of three 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, ginger, and cloves until well blended.
03 - In a large bowl, whisk together granulated sugar, brown sugar, and oil until combined. Add eggs one at a time, mixing well after each addition. Stir in vanilla extract.
04 - Add the dry ingredients to the wet ingredients and mix until just combined. Do not overmix to maintain texture.
05 - Gently fold in grated carrots, nuts, pineapple, and raisins if using until evenly distributed throughout the batter.
06 - Divide the batter evenly among the prepared pans. Smooth the tops and bake for 30 to 35 minutes, or until a toothpick inserted in the center comes out clean.
07 - Let cakes cool in pans for 10 minutes, then carefully turn out onto wire racks to cool completely before frosting.
08 - Beat cream cheese and butter together until smooth and fluffy. Gradually add powdered sugar, vanilla, and salt. Beat until light and creamy.
09 - Place one cake layer on a serving plate. Spread a generous layer of frosting on top. Repeat with second and third layers, then frost the sides and top of the cake.
10 - Decorate with extra nuts or carrot curls if desired. Refrigerate for 30 minutes before slicing to ensure clean, neat layers.