/* Space Theme Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #7b68ee;
    --success-color: #50c878;
    --warning-color: #ffa500;
    --danger-color: #ff6b6b;
    --dark-bg: #0a0e27;
    --card-bg: rgba(20, 25, 50, 0.9);
    --text-light: #e0e6ed;
    --text-dim: #a0a8b8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Back to Academy Home Button */
.back-to-academy {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.academy-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.academy-home-btn:hover {
    background: rgba(74, 144, 226, 0.4);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

.academy-home-btn span:first-child {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.academy-home-btn:hover span:first-child {
    transform: translateX(-3px);
}

/* Welcome overlay animation */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1e47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.welcome-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.rocket-launch {
    font-size: 6em;
    animation: rocketLaunch 2s ease-in-out infinite;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(74, 144, 226, 0.8));
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.welcome-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.6);
    animation: titleFade 1s ease-in;
}

.welcome-content p {
    font-size: 1.2em;
    color: var(--text-dim);
    margin-bottom: 30px;
    animation: titleFade 1s ease-in 0.2s both;
}

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

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    animation: titleFade 1s ease-in 0.4s both;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
}

/* Enhanced Starfield Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="50" cy="30" r="1" fill="white"/><circle cx="80" cy="60" r="1" fill="white"/><circle cx="30" cy="80" r="1" fill="white"/><circle cx="70" cy="20" r="1" fill="white"/><circle cx="15" cy="45" r="0.5" fill="white" opacity="0.7"/><circle cx="90" cy="15" r="0.5" fill="white" opacity="0.7"/><circle cx="40" cy="95" r="0.5" fill="white" opacity="0.7"/></svg>') repeat;
}

.twinkling {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="20" cy="50" r="2" fill="rgba(255,255,255,0.5)"/><circle cx="150" cy="100" r="2" fill="rgba(255,255,255,0.5)"/><circle cx="80" cy="180" r="2" fill="rgba(255,255,255,0.5)"/><circle cx="100" cy="30" r="1.5" fill="rgba(74,144,226,0.6)"/><circle cx="50" cy="150" r="1.5" fill="rgba(123,104,238,0.6)"/></svg>') repeat;
    animation: twinkle 200s linear infinite;
}

@keyframes twinkle {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
                radial-gradient(2px 2px at 60% 70%, rgba(74,144,226,0.3), transparent),
                radial-gradient(1px 1px at 50% 50%, rgba(123,104,238,0.3), transparent),
                radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    animation: particles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particles {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-20px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.academy-header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(123, 104, 238, 0.3));
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(74, 144, 226, 0.5);
    position: relative;
    overflow: hidden;
}

/* Header decorations container */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* CSS Planets */
.planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff9a56, #ff6b35);
    box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 107, 53, 0.6);
    top: 20px;
    left: 5%;
    animation: orbitPlanet1 15s linear infinite;
}

.planet-1::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.3), transparent);
}

.planet-2 {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 35% 35%, #9b6bff, #6b4bff);
    box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(107, 75, 255, 0.5);
    top: 60%;
    right: 8%;
    animation: orbitPlanet2 12s linear infinite reverse;
}

.planet-2::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    top: 50%;
    left: -15px;
    transform: translateY(-50%) rotate(-20deg);
    opacity: 0.6;
}

@keyframes orbitPlanet1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes orbitPlanet2 {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-15px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Comet */
.comet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 15%;
    right: 10%;
    box-shadow: 0 0 10px #fff, 0 0 20px #4a90e2;
    animation: cometFly 10s linear infinite;
}

.comet::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(74, 144, 226, 0.4), transparent);
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

@keyframes cometFly {
    0% {
        top: 15%;
        right: -200px;
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        top: 85%;
        right: 100%;
        opacity: 0;
    }
}

/* Animated rocket decoration */
.academy-header::before {
    content: '🚀';
    position: absolute;
    font-size: 3em;
    top: 20px;
    right: -60px;
    animation: rocketFly 18s linear infinite;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.8));
}

@keyframes rocketFly {
    0% { right: -60px; top: 20px; opacity: 0; transform: rotate(-45deg); }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { right: 110%; top: -80px; opacity: 0; transform: rotate(-45deg); }
}

.academy-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 0 40px rgba(123, 104, 238, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 0 40px rgba(123, 104, 238, 0.5); }
    50% { text-shadow: 0 0 30px rgba(74, 144, 226, 1), 0 0 60px rgba(123, 104, 238, 0.8); }
}

.tagline {
    font-size: 1.2em;
    color: var(--text-dim);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.astronaut-badge {
    display: inline-flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 15px 35px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
    position: relative;
    z-index: 1;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(74, 144, 226, 0.5); }
}

#astronaut-name {
    font-weight: bold;
    color: var(--success-color);
    text-shadow: 0 0 10px rgba(80, 200, 120, 0.5);
}

#total-points {
    color: var(--warning-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Progress Bar */
.progress-container {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1em;
}

/* Badges */
.badges-earned {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(123, 104, 238, 0.3);
}

.badges-earned h3 {
    margin-bottom: 15px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    min-height: 60px;
}

.badge-item {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.2), rgba(74, 144, 226, 0.2));
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--success-color);
    animation: badgeAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(80, 200, 120, 0.3);
}

.badge-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: badgeShine 3s linear infinite;
}

@keyframes badgeAppear {
    from {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes badgeShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.badge-item:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(80, 200, 120, 0.5);
}

.badge-item .badge-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    animation: badgeIconBounce 2s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 1;
}

@keyframes badgeIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.badge-item .badge-name {
    font-size: 0.95em;
    color: var(--text-light);
    font-weight: bold;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mission Control */
.mission-control {
    margin: 40px 0;
}

.mission-control h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

.instruction {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Module Cards */
.module-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.module-card.unlocked {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

.module-card.unlocked:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5);
    border-color: var(--secondary-color);
}

.module-card.unlocked:hover::before {
    opacity: 1;
    transform: rotate(180deg);
}

.module-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--card-bg), rgba(80, 200, 120, 0.15));
    box-shadow: 0 0 25px rgba(80, 200, 120, 0.3);
}

.module-card.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    animation: checkmarkPulse 2s ease-in-out infinite;
}

@keyframes checkmarkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.module-card.locked {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 25, 50, 0.5);
}

.module-icon {
    font-size: 4em;
    text-align: center;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
    width: 100%;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.module-card.unlocked .module-icon {
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.8)); }
}

.module-card.locked .module-icon {
    animation: none;
    filter: grayscale(1) opacity(0.5);
}

.module-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.module-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
}

.module-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.status {
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.points {
    color: var(--warning-color);
    font-weight: bold;
}

.launch-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.launch-btn::before {
    content: '🚀';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0;
    transition: all 0.4s ease;
}

.launch-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.6);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.launch-btn:hover:not(:disabled)::before {
    left: 10px;
    opacity: 1;
}

.launch-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.launch-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.launch-btn:disabled::after {
    content: '🔒';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

/* Parent's Corner */
.parent-corner {
    margin: 40px 0;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.parent-corner details {
    padding: 20px;
}

.parent-corner summary {
    font-size: 1.2em;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: var(--warning-color);
}

.parent-corner summary:hover {
    color: var(--primary-color);
}

.parent-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.parent-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.parent-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.parent-content li {
    margin: 10px 0;
    line-height: 1.6;
}

.reset-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--danger-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #ff4444;
    transform: scale(1.05);
}

/* Decorative floating planets */
.container::before {
    content: '';
    position: fixed;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 165, 0, 0.4), rgba(255, 100, 0, 0.2));
    border-radius: 50%;
    top: 15%;
    right: 5%;
    box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(255, 165, 0, 0.3);
    animation: floatPlanet1 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.container::after {
    content: '';
    position: fixed;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 40%, rgba(123, 104, 238, 0.5), rgba(74, 144, 226, 0.3));
    border-radius: 50%;
    bottom: 20%;
    left: 8%;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(123, 104, 238, 0.4);
    animation: floatPlanet2 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatPlanet1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30px, -40px) scale(1.1); }
    50% { transform: translate(-60px, 0) scale(1); }
    75% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes floatPlanet2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, -50px) rotate(240deg); }
}

/* Shooting stars */
@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        transform: translateX(-1000px) translateY(500px) rotate(-45deg);
        opacity: 0;
    }
}

.mission-control::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: 20%;
    font-size: 1.5em;
    animation: shootingStar 8s linear infinite;
    animation-delay: 3s;
    pointer-events: none;
}

/* Astronaut floating decoration */
.badges-earned::before {
    content: '👨‍🚀';
    position: absolute;
    font-size: 3em;
    top: -40px;
    right: 20px;
    animation: astronautFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    opacity: 0.7;
}

@keyframes astronautFloat {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Satellite decoration */
.progress-container::after {
    content: '🛰️';
    position: absolute;
    font-size: 2em;
    top: -30px;
    right: -30px;
    animation: satelliteOrbit 10s linear infinite;
}

@keyframes satelliteOrbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* Module card special effects */
.module-card[data-module="1"] .module-icon { animation-delay: 0s; }
.module-card[data-module="2"] .module-icon { animation-delay: 0.2s; }
.module-card[data-module="3"] .module-icon { animation-delay: 0.4s; }
.module-card[data-module="4"] .module-icon { animation-delay: 0.6s; }
.module-card[data-module="5"] .module-icon { animation-delay: 0.8s; }
.module-card[data-module="6"] .module-icon { animation-delay: 1s; }

/* Sparkle effect on hover */
.module-card.unlocked:hover .module-icon::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* Enhanced parent corner */
.parent-corner summary::before {
    content: '📋 ';
    font-size: 1.2em;
}

.parent-corner[open] summary {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 165, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .academy-header h1 {
        font-size: 2em;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .astronaut-badge {
        flex-direction: column;
        gap: 10px;
    }

    .container::before,
    .container::after {
        opacity: 0.3;
    }

    .module-icon {
        font-size: 3em;
    }
}
