What is box-shadow in CSS?
The box-shadow property adds shadow effects around an element's box. You control position, blur, spread, color—all from CSS. Shadows can go outside (drop shadow) or inside (inset shadow) your element.
Why use them? They create depth and hierarchy. Cards, buttons, modals—shadows make them pop off the page. Way lighter than image-based shadows, easier to tweak, and they scale perfectly.
Basic syntax: box-shadow: horizontal vertical blur spread color. Try box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) for a subtle drop shadow.
Modern browsers let you stack multiple shadows on one element for complex lighting effects. Super useful for creating realistic depth.