/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    background: #000;
    color: #e0e0ff;
    overflow-x: hidden;
}

/* --------------------------------------------------
   BACKGROUND STARFIELD (3 layers)
-------------------------------------------------- */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: contain;
    animation: moveStars 200s linear infinite;
    pointer-events: none;
}

.stars  { background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.42; animation-duration: 160s; }
.stars2 { background-image: url('https://www.transparenttextures.com/patterns/black-paper.png'); opacity: 0.22; animation-duration: 230s; }
.stars3 { background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png'); opacity: 0.16; animation-duration: 300s; }

@keyframes moveStars {
    from { background-position: 0 0; }
    to   { background-position: -20000px 20000px; }
}

/* --------------------------------------------------
   CONTENT CENTER
-------------------------------------------------- */
.center {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 12vh;
    animation: fadeIn 2.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------
   LOGO & TITLE
-------------------------------------------------- */
.logo {
    max-width: 550px;
    width: 90%;
    height: auto;
    mask-image: radial-gradient(circle, white 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, white 70%, transparent 1%);
    filter: drop-shadow(0 0 25px rgba(150,150,255,0.6));
    animation: logoGlow 16s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 8px rgba(120,120,255,0.4)); }
    to   { filter: drop-shadow(0 0 32px rgba(200,200,255,0.9)); }
}

.title {
    margin-top: 25px;
    font-size: 3.1em;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 200;
    text-shadow: 0 0 12px rgba(150,150,255,0.7);
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
    margin-top: 55px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.nav a {
    padding: 12px 28px;
    border: 1px solid rgba(160,160,255,0.45);
    border-radius: 10px;
    color: #dcdcff;
    text-decoration: none;
    font-size: 1.15em;
    background: rgba(20,20,40,0.35);
    backdrop-filter: blur(6px);
    transition: 0.35s ease;
}

.nav a:hover {
    border-color: rgba(200,200,255,0.95);
    box-shadow: 0 0 18px rgba(150,150,255,0.6);
    transform: translateY(-2px);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    text-align: center;
    margin-top: 18vh;
    font-size: 0.9em;
    opacity: 0.35;
    position: relative;
    z-index: 10;
}

/* ============================
   NAV LINK EFFECTS
============================ */
/* Fade-in animation for whole nav bar */
.nav {
    opacity: 0;
    animation: navFadeIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Base link styling */
.nav a {
    color: #9ccfff;                  /* Soft star-blue */
    text-decoration: none;
    padding: 10px 18px;
    font-size: 1.3rem;
    display: inline-block;
    transition: 
        color 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease;
}

/* Hover glow & slight zoom */
.nav a:hover {
    color: #ffffff;
    transform: scale(1.12);
    text-shadow: 
        0 0 12px rgba(120,180,255,0.9),
        0 0 22px rgba(140,210,255,0.7),
        0 0 32px rgba(170,230,255,0.5);
}

/* Optional: clicked/active glow pulse */
.nav a:active {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(200,240,255,1);
}

