@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Inter:wght@300;400;500;600&display=swap");

:root {
    --bg-dark: #020205;
    /* Deep Black/Blue */
    --bg-panel: #0a0a14;
    /* Dark Blue */
    --accent-cyan: #fffdd0;
    /* Pale Moon Yellow (Replacing Cyan) */
    --accent-green: #ffffff;
    /* Pure White (Replacing Green) */
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0bb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    /* Moon Night Gradient: Deep Blue to Black */
    background: radial-gradient(circle at top center, #1a1a2e, #000000);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    text-align: center;
    margin: 3rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    /* Moon Glow Gradient: Yellow to White */
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 253, 208, 0.3);
}

h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #ffffff;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

section {
    margin: 4rem auto;
    max-width: 1600px;
    padding: 3rem;
    background: rgba(10, 10, 20, 0.6);
    /* Darker, slightly blueish transparency */
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--accent-cyan);
}

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

li {
    background: #0e0e16;
    /* Dark Blue Panel */
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

li:hover {
    transform: translateY(-5px);
    background: #151520;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 253, 208, 0.1);
    border-color: var(--accent-cyan);
}

li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-cyan);
    height: 100%;
}

li a .mission-info {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

li:hover a {
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: var(--accent-cyan);
    text-align: left;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
        margin: 1rem;
    }

    ul {
        grid-template-columns: 1fr;
    }
}

/* Credits Overlay */
.credits-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.credits-text {
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
}

.credits-text:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(255, 253, 208, 0.4);
}

.credits-avatar {
    width: 0;
    height: 24px;
    opacity: 0;
    transform: translateX(10px);
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin-right: 0;
}

.credits-text:hover .credits-avatar {
    width: 24px;
    opacity: 1;
    transform: translateX(0);
    margin-right: 8px;
}