/* Enhanced Space Theme CSS - Ultra Cool Edition with Audiowide/Rajdhani fonts */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;600;900&display=swap');

/* Root variables for consistent theming */
:root {
  --space-dark: #0a0a1a;
  --space-medium: #1a1a40;
  --space-light: #2e2e6e;
  --space-accent: #4b6ef5;
  --space-secondary: #6c5ce7;
  --space-gold: #ffd700;
  --space-silver: #c0c0c0;
  --space-bronze: #cd7f32;
  --text-primary: #ffffff;
  --text-secondary: #e0e0f0;
  --text-muted: #a0a0c0;
  --success: #28c76f;
  --warning: #ff9f43;
  --danger: #ea5455;
  --info: #00cfe8;
  --glow: 0 0 20px rgba(75, 110, 245, 0.3);
  --glow-strong: 0 0 30px rgba(75, 110, 245, 0.5);
  --neon-pink: #ff006e;
  --neon-cyan: #00ffff;
  --neon-green: #39ff14;
}

/* Fix for overlapping planets */
* {
  box-sizing: border-box;
}

/* Base styling with enhanced space background */
body {
  background: linear-gradient(135deg, var(--space-dark) 0%, var(--space-medium) 50%, var(--space-light) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Enhanced Starfield with multiple layers */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.7), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starfield 20s linear infinite;
  z-index: -2;
  opacity: 0.5;
}

/* Add shooting stars */
body::after {
  content: '';
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4) 50%, transparent);
  width: 2px;
  height: 100px;
  animation: shootingstar 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes shootingstar {
  0% {
    transform: translateX(0) translateY(-100px) rotate(45deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) translateY(100vh) rotate(45deg);
    opacity: 0;
  }
}

@keyframes starfield {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

/* Ship Title - Always Audiowide */
.space-station-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  text-shadow:
    0 0 8px rgba(75, 110, 245, 0.5),
    0 0 15px rgba(0, 255, 255, 0.3),
    0 0 25px rgba(255, 0, 110, 0.15);
  animation: titleGlow 3s ease-in-out infinite;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* Subtitles - Rajdhani */
.subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  letter-spacing: 3px;
  margin-bottom: 30px;
  animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Holographic Card Effect */
.card {
  background: rgba(26, 26, 64, 0.95);
  border: 1px solid rgba(75, 110, 245, 0.3);
  border-radius: 15px;
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(75, 110, 245, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.card:hover::before {
  animation: holographic 2s ease-in-out infinite;
  opacity: 1;
}

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

.card:hover {
  box-shadow: var(--glow-strong);
  transform: translateY(-5px) scale(1.02);
  border-color: var(--neon-cyan);
}

/* Login container with enhanced effects */
.login-container {
  background: rgba(26, 26, 64, 0.95);
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-green)) 1;
  border-radius: 20px;
  box-shadow: 
    var(--glow),
    inset 0 0 20px rgba(75, 110, 245, 0.1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% { border-image-source: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-green)); }
  33% { border-image-source: linear-gradient(45deg, var(--neon-cyan), var(--neon-green), var(--neon-pink)); }
  66% { border-image-source: linear-gradient(45deg, var(--neon-green), var(--neon-pink), var(--neon-cyan)); }
  100% { border-image-source: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-green)); }
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--space-accent), transparent);
  animation: scanline 2s linear infinite;
}

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

/* Login form styling */
.login-form {
  position: relative;
  padding-top: 50px;
}

.auth-required {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--warning);
  letter-spacing: 3px;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px var(--warning);
  animation: blink 1s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Form styling */
.form-label {
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.form-control {
  background: rgba(46, 46, 110, 0.8);
  border: 2px solid rgba(75, 110, 245, 0.4);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.form-control:focus {
  background: rgba(46, 46, 110, 0.9);
  border-color: var(--neon-cyan);
  box-shadow: 
    0 0 0 0.2rem rgba(75, 110, 245, 0.25),
    inset 0 0 10px rgba(0, 255, 255, 0.2);
  color: var(--text-primary);
  outline: none;
}

/* Animated buttons with pulse effect */
.btn-primary {
  background: linear-gradient(135deg, var(--space-accent), var(--space-secondary));
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75, 110, 245, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(75, 110, 245, 0); }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--space-secondary), var(--space-accent));
  box-shadow: 0 8px 25px rgba(75, 110, 245, 0.6);
  transform: translateY(-2px);
  letter-spacing: 3px;
}

/* Login page specific styles */
.login-error {
  background: rgba(234, 84, 85, 0.9);
  border: 2px solid var(--danger);
  animation: shakeX 0.5s ease-in-out;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.stardate {
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
}

.login-footer-text {
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
}

.admin-link {
  color: var(--space-accent) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.admin-link:hover {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 5px var(--neon-cyan);
}

/* Team standings and rankings */
.team-standings {
  background: rgba(26, 26, 64, 0.9);
  border: 2px solid rgba(75, 110, 245, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}

.team-standings::before {
  content: '🏆 GALACTIC RANKINGS 🏆';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--space-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  text-shadow: 0 0 10px var(--space-gold);
}

.team-rankings-title {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
}

.team-item {
  background: rgba(46, 46, 110, 0.8);
  border: 1px solid rgba(75, 110, 245, 0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.team-item:hover::before {
  left: 100%;
}

.team-item:hover {
  background: rgba(46, 46, 110, 0.9);
  transform: translateX(10px);
  box-shadow: 
    -5px 0 15px rgba(75, 110, 245, 0.5),
    0 0 30px rgba(75, 110, 245, 0.3);
  border-color: var(--neon-cyan);
}

.ranking-badge {
  background: rgba(100, 100, 100, 0.8) !important;
  color: white !important;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}

.ranking-badge:nth-child(1) {
  background: var(--space-gold) !important;
  color: black !important;
}

.team-score-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* Team preview cards styling */
.team-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.team-card {
  background: rgba(46, 46, 110, 0.6);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, currentColor, transparent);
  opacity: 0.1;
  animation: teamPulse 3s ease-in-out infinite;
}

@keyframes teamPulse {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-red { border-color: #ff0040; color: #ff0040; }
.team-blue { border-color: #0080ff; color: #0080ff; }
.team-green { border-color: #00ff40; color: #00ff40; }
.team-yellow { border-color: #ffff00; color: #ffff00; }

.team-red:hover { box-shadow: 0 10px 30px rgba(255, 0, 64, 0.5); }
.team-blue:hover { box-shadow: 0 10px 30px rgba(0, 128, 255, 0.5); }
.team-green:hover { box-shadow: 0 10px 30px rgba(0, 255, 64, 0.5); }
.team-yellow:hover { box-shadow: 0 10px 30px rgba(255, 255, 0, 0.5); }

/* Team-specific glows */
.bg-danger { 
  background: linear-gradient(135deg, #ff0040, #ff0080) !important;
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

.bg-primary { 
  background: linear-gradient(135deg, #0080ff, #0040ff) !important;
  box-shadow: 0 0 20px rgba(0, 128, 255, 0.5);
}

.bg-success { 
  background: linear-gradient(135deg, #00ff40, #00ff80) !important;
  box-shadow: 0 0 20px rgba(0, 255, 64, 0.5);
}

.bg-warning { 
  background: linear-gradient(135deg, #ffff00, #ffcc00) !important;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}


/* Dashboard specific elements */
.welcome-message {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

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

.welcome-message h1 {
  font-family: 'Audiowide', sans-serif;
  font-size: 2.5rem;
}

/* Team badge animations */
.team-badge,
.rank-badge {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: teamGlow 2s ease-in-out infinite;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 2px rgba(255, 255, 255, 0.8);
  display: inline-block;
  border: none;
  line-height: 1.5;
}

@keyframes teamGlow {
  0%, 100% { box-shadow: 0 0 5px currentColor; }
  50% { box-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
}

.team-badge::before,
.rank-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, currentColor, transparent, currentColor);
  border-radius: 50px;
  opacity: 0.5;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rank-specific colors */
.rank-rookie {
  background: rgba(100, 100, 100, 0.5);
  color: #ccc;
}

.rank-novice {
  background: linear-gradient(135deg, var(--neon-cyan), #00ffff);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.rank-intermediate {
  background: linear-gradient(135deg, var(--neon-green), #39ff14);
  box-shadow: 0 0 12px var(--neon-green);
}

.rank-advanced {
  background: linear-gradient(135deg, var(--space-accent), #5599ff);
  box-shadow: 0 0 12px var(--space-accent);
}

.rank-elite {
  background: linear-gradient(135deg, #ffd700, #ffcc00);
  box-shadow: 0 0 14px #ffd700;
  font-weight: 700;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(20, 20, 40, 0.7);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Orbitron', monospace;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
}

/* Mission Status */
.mission-status {
  background: rgba(20, 20, 40, 0.8);
  border: 2px solid var(--space-accent);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--glow);
}

.mission-status h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Achievement Grid */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Achievement card special effects */
.achievement-card {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.achievement-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 110, 245, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.achievement-card:hover::after {
  width: 300px;
  height: 300px;
}

.achievement-card.locked {
  filter: grayscale(100%) brightness(40%);
  opacity: 0.6;
  position: relative;
}

.achievement-card.locked::before {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
  animation: lockPulse 2s ease-in-out infinite;
}

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

.achievement-card.unlocked {
  animation: unlock 0.5s ease;
  box-shadow: 
    0 0 20px rgba(40, 199, 111, 0.5),
    inset 0 0 20px rgba(40, 199, 111, 0.1);
  border: 2px solid var(--success);
}

.achievement-card.unlocked::before {
  content: '✨';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  animation: sparkle 1s ease-in-out infinite;
}

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

@keyframes unlock {
  0% { transform: scale(0.8) rotateY(180deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotateY(90deg); }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.achievement-progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

.achievement-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--space-accent));
  border-radius: 5px;
  transition: width 1s ease;
  box-shadow: 0 0 10px currentColor;
  position: relative;
  overflow: hidden;
}

.achievement-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s linear infinite;
}

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

.power-meter {
  width: 100%;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(75, 110, 245, 0.5);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}

.power-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--neon-green) 0%, 
    var(--neon-cyan) 50%, 
    var(--space-accent) 100%);
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.power-meter-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  animation: powerScan 2s linear infinite;
}

@keyframes powerScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.crew-id {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.progress-circle-svg {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.progress-circle-svg svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-fill {
  fill: none;
  stroke: var(--neon-cyan, #00ffff);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--neon-cyan, #00ffff);
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
  font-family: 'Orbitron', monospace;
}

.progress-circle-svg.complete .progress-fill {
  stroke: var(--neon-green, #39ff14);
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.7));
  animation: progressPulse 2s ease-in-out infinite;
}

.progress-circle-svg.complete .progress-text {
  color: var(--neon-green, #39ff14);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Enhanced achievement popup */
#achievement-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2000;
  background: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(75, 110, 245, 0.95));
  color: white;
  padding: 3rem 4rem;
  border-radius: 20px;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 
    0 0 50px rgba(75, 110, 245, 0.8),
    0 0 100px rgba(75, 110, 245, 0.5),
    inset 0 0 50px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--neon-cyan);
}

#achievement-pop.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: achievementPulse 0.5s ease-out;
}

@keyframes achievementPulse {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(180deg); }
  50% { transform: translate(-50%, -50%) scale(1.2) rotate(90deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

#achievement-pop .subtitle {
  font-size: 1.2rem;
  font-weight: normal;
  margin-top: 1rem;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  font-family: 'Rajdhani', sans-serif;
}

/* Space effects */
.space-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(75, 110, 245, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 110, 245, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -3;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.planet {
  position: fixed;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: -2;
  overflow: hidden;
}

.planet-1 {
  top: 10%;
  right: 10%;
  background: radial-gradient(circle at 30% 30%, var(--space-accent), var(--space-dark));
  box-shadow: 
    0 0 50px rgba(75, 110, 245, 0.5),
    inset -20px -20px 40px rgba(0, 0, 0, 0.5);
  animation: float 20s ease-in-out infinite;
}

.planet-2 {
  bottom: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 40% 40%, var(--neon-pink), var(--space-dark));
  box-shadow: 
    0 0 40px rgba(255, 0, 110, 0.5),
    inset -15px -15px 30px rgba(0, 0, 0, 0.5);
  animation: float 25s ease-in-out infinite reverse;
}

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

.security-scanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  z-index: -1;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

.hologram-effect {
  position: relative;
}

.hologram-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 255, 0.03) 2px,
      rgba(0, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  animation: hologramGlitch 5s ease-in-out infinite;
}

@keyframes hologramGlitch {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.1; }
}

/* Fixed space facts positioning */
.space-facts {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.9);
  border-top: 2px solid var(--space-accent);
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  z-index: 100;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  transition: opacity 1s ease-in-out;
}

/* Particle effects container */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Headings with glow effects */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(75, 110, 245, 0.3);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

h1 {
  color: var(--space-accent) !important;
  text-shadow: 
    0 0 20px rgba(75, 110, 245, 0.6),
    0 0 40px rgba(75, 110, 245, 0.4);
  font-size: 2.5rem;
  letter-spacing: 3px;
  animation: titleGlow 3s ease-in-out infinite;
  font-family: 'Audiowide', sans-serif;
}

@keyframes titleGlow {
  0%, 100% { 
    text-shadow: 
      0 0 20px rgba(75, 110, 245, 0.8),
      0 0 40px rgba(0, 255, 255, 0.5),
      0 0 60px rgba(255, 0, 110, 0.3);
  }
  50% { 
    text-shadow: 
      0 0 30px rgba(75, 110, 245, 1),
      0 0 50px rgba(0, 255, 255, 0.7),
      0 0 70px rgba(255, 0, 110, 0.5);
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.loading:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--space-accent);
  border-color: var(--space-accent) transparent var(--space-accent) transparent;
  animation: loading 1.2s linear infinite;
}

@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .team-item {
    font-size: 0.9rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .progress-circle-svg {
    width: 100px;
    height: 100px;
  }
  
  .progress-text {
    font-size: 1rem;
  }
  
  #achievement-pop {
    padding: 2rem;
    font-size: 1.5rem;
  }

  .space-station-title {
    font-size: 2rem;
  }

  .team-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--space-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--space-accent), var(--space-secondary));
  border-radius: 5px;
  box-shadow: 0 0 5px var(--space-accent);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--space-secondary), var(--space-accent));
  box-shadow: 0 0 10px var(--space-accent);
}