/* Kids Wonder Kids - Sci-Fi Theme */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700&display=swap');

:root {
    --bg-space: #0b0d17;
    --neon-pink: #ff00cc;
    --neon-blue: #33ccff;
    --neon-green: #33ff00;
    --electric-yellow: #ffcc00;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-space);
    background-image: url('assets/bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    /* For absolute positioned space elements */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka One', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--neon-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 80px;
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--electric-yellow);
    text-shadow: 0 0 10px var(--electric-yellow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--neon-pink);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
}

/* --- Global Space Elements --- */
#space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Meteoroids */
.meteor {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--neon-blue);
    opacity: 0;
    animation: shoot var(--duration) linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    right: 0;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(-500px, 500px) rotate(-45deg);
        opacity: 0;
    }
}

/* Explosions */
.explosion {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--electric-yellow);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-pink);
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(5);
        opacity: 0;
    }
}