:root {
    /* Colors used by the background */
    --bg-top: #271F39;
    --bg-mid: #181322;
    --bg-bot: #110C15;
    --glow-color: rgba(128, 124, 187, 0.3); 
}

body {
    background: linear-gradient(
            to bottom,
            var(--bg-top) 0%,
            var(--bg-mid) 40%,
            var(--bg-bot) 75%,
            var(--bg-bot) 100%
    ) fixed;
    position: relative;
    min-height: 100vh;
}

.container, section, footer, header, main {
    position: relative;
    z-index: 2;
}

/* The Light Overlay (Glow) */
.sky-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh; 
    background: radial-gradient(
        ellipse 120% 100% at 50% 0%, 
        var(--glow-color) 0%, 
        transparent 70%
    );
    z-index: 0; 
    pointer-events: none;
}

/* The Star Container */
.stars-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35vh; 
    overflow: hidden;
    z-index: 0; 
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

canvas#star-canvas {
    display: block;
    width: 100%;
    height: 100%;
}