:root {
    /* Emo / Deeper Night Sky Theme */
    --primary-bg-color-1: #03020a;
    --primary-bg-color-2: #0a071a;
    --primary-bg-color-3: #010105;
    --primary-bg-color-4: #080815;

    --primary-text-color: #c0c0d5;
    --secondary-text-color: #8080a0;
    --accent-color: #8a6bdb;

    /* Star Opacity Control */
    --star-opacity-max: 0.65; /* Max visibility of the star layer during twinkle */
    --star-opacity-min: 0.25;  /* Min visibility of the star layer during twinkle */

    --icon-font-size: 1.75rem;
    --h1-font-size: clamp(2.5rem, 5vw, 3.8rem);
    --p-font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-60deg,
            var(--primary-bg-color-1),
            var(--primary-bg-color-2),
            var(--primary-bg-color-3),
            var(--primary-bg-color-4),
            var(--primary-bg-color-1)
    );
    background-size: 500% 500%;
    animation: gradientBG 35s ease infinite;
    color: var(--primary-text-color);
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 75%; }
    50% { background-position: 100% 25%; }
    100% { background-position: 0% 75%; }
}

/* Stars Layer - Refined */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
            /* Layer 1: Faintest, smallest, most numerous - subtle background stars */
            radial-gradient(rgba(180, 180, 200, 0.3) 0.5px, transparent 0.5px),
            /* Layer 2: Medium brightness, medium size - more distinct stars */
            radial-gradient(rgba(210, 210, 230, 0.5) 0.7px, transparent 0.7px),
            /* Layer 3: Brightest, slightly larger, sparse "hero" stars */
            radial-gradient(rgba(255, 255, 255, 0.7) 0.9px, transparent 0.9px);
    background-size:
            31px 37px,      /* Irregular & dense for faint stars */
            83px 79px,      /* Irregular & medium density for medium stars */
            157px 149px;    /* Irregular & sparse for bright stars */
    background-position:
            0 0,
            13px 21px,      /* Offset layer 2 */
            70px 50px;      /* Offset layer 3 */
    opacity: var(--star-opacity-max); /* Initial opacity */
    z-index: -1;
    animation: stars-twinkle 15s ease-in-out infinite alternate; /* Smoother, slower twinkle */
    pointer-events: none;
}

@keyframes stars-twinkle {
    0% { opacity: var(--star-opacity-max); }
    100% { opacity: var(--star-opacity-min); } /* Gently fades to min and back */
}

h1 {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 0 12px rgba(138, 107, 219, 0.4), 0 0 25px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

p {
    font-size: var(--p-font-size);
    margin-bottom: 2.5rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.socials {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.socials a {
    color: var(--primary-text-color);
    margin: 0 15px;
    font-size: var(--icon-font-size);
    transition: color 0.4s ease, transform 0.3s ease, text-shadow 0.4s ease;
    text-decoration: none;
}

.socials a:hover,
.socials a:focus {
    color: var(--accent-color);
    transform: scale(1.15) translateY(-2px);
    text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
}

.socials a i {
    vertical-align: middle;
}

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}