
body {
  margin: 0;
  background: #1c1c1e;
  color: #f0f0f0;
  font-family: 'Press Start 2P', cursive, sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
  background: radial-gradient(circle at center, #2a2a2d 0%, #1c1c1e 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: transparent;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveStars 60s linear infinite;
  opacity: 0.2;
  z-index: 0;
}

@keyframes moveStars {
  from { transform: translate(0, 0); }
  to { transform: translate(-500px, -500px); }
}

.hero h1, .hero p, .cta-buttons {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2em;
  color: #00f0ff;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1em;
  opacity: 0.8;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.primary {
  background: #4caf50;
  color: #ffffff;
}

.primary:hover {
  background: #45a049;
}

.secondary {
  background: transparent;
  border: 2px solid #00f0ff;
  color: #00f0ff;
}

.secondary:hover {
  background: #00f0ff;
  color: #1c1c1e;
}

/* Features Section */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
  flex-wrap: wrap;
}

.feature-card {
  background: #2a2a2d;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 60vh;
  opacity: 0;
  transform: scale(0.3) rotate(-8deg);
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card.show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.feature-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

/* Featured Missions Section */
.featured-missions, .achievements-preview, .exp-teaser {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  text-align: center;
}

.featured-missions h2, .achievements-preview h2, .exp-teaser h2 {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #00f0ff;
}



.missions-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.mission-card {
  background: #2a2a2d;
  padding: 40px 30px;
  border-radius: 16px;
  width: 300px;
  min-height: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  word-wrap: break-word;
}

.mission-card h3 {
  font-size: 1.3em;
  color: #4caf50;
  margin-bottom: 15px;
}

.mission-card p {
  font-size: 0.85em;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 0;
}


.btn.small {
  font-size: 0.7em;
  padding: 8px 16px;
}

/* Achievements Section */
.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px; /* <- Restored correct spacing */
}

.achievement-card {
  background: #2a2a2d;
  border: 2px solid rgba(76, 175, 80, 0.8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.achievement-card.show {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.achievement-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: contain;
  background: #1c1c1e;
  padding: 5px;
}

.achievement-info {
  flex: 1;
  min-width: 0;
}

.achievement-info h3 {
  margin: 0;
  font-size: 1em;
  color: #ffffff;
  word-break: break-word;
}

.achievement-info p {
  margin-top: 8px;
  font-size: 0.75em;
  opacity: 0.8;
  color: #dddddd;
  word-break: break-word;
}

/* EXP Progress */
.exp-bar {
  background: #333;
  border-radius: 20px;
  overflow: hidden;
  width: 80%;
  height: 25px;
  margin: 0 auto 20px;
}

.exp-fill {
  background: linear-gradient(90deg, #00f0ff, #4caf50);
  width: 0%;
  height: 100%;
  transition: width 2s ease-out;
}

.exp-text {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Animations */
@keyframes pulse-glow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
  100% { filter: brightness(1); }
}

@keyframes pulse-green {
  0% { filter: brightness(1) hue-rotate(0deg); }
  50% { filter: brightness(1.6) hue-rotate(80deg); }
  100% { filter: brightness(1) hue-rotate(0deg); }
}

/* Responsive */
@media (max-width: 600px) {
  .achievement-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90%;
  }
  .feature-card {
    width: 90%;
  }
}

.feature-card h2 {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.educator-font {
  font-family: 'Segoe UI', sans-serif !important;
}

/* Responsive font override just for Educator section */
#educatorContent h1, 
#educatorContent h2, 
#educatorContent p {
  font-family: 'Segoe UI', sans-serif;
}

/* Educator Features Layout */
#educatorContent .features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* General Educator Feature Cards */
#educatorContent .feature-card {
  background: #2a2a2d;
  flex: 1 1 400px;
  max-width: 600px;
  min-height: 500px; /* ← keep for small ones */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: scale(0.8);
}

/* FIRST big card - fix empty space! */
#educatorContent .feature-card:first-child {
  flex: 1 1 100%;
  max-width: 1300px;
  min-height: auto; /* ← remove fixed height */
}
#educatorContent .feature-card:first-child .feature-icon {
  max-height: 450px; /* bigger image */
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Show animation on scroll */
#educatorContent .feature-card.show {
  opacity: 1;
  transform: scale(1);
}

/* Feature Images */
#educatorContent .feature-icon {
  width: 100%;
  max-height: 220px; /* fixed max height for all images */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* FIRST Card - wider hero */
#educatorContent .feature-card:first-child {
  flex: 1 1 100%;
  max-width: 1000px;
}

/* Center last card if odd number */
#educatorContent .feature-card:nth-last-child(1):nth-child(odd):not(:first-child) {
  flex-basis: 90%;
}

/* MOBILE Responsive adjustments */
@media (max-width: 768px) {
  #educatorContent .feature-card {
    flex: 1 1 100%;
    max-width: 90%;
    min-height: auto; /* allow cards to shrink naturally on smaller screens */
  }

  #educatorContent .feature-icon {
    max-height: 180px; /* slightly smaller images on mobile */
  }
}
/* Global Badge Cards - Match Feature Card Style */
.badge-card {
  background: #2a2a2d;
  padding: 50px 40px;
  border-radius: 18px;
  width: 70vh;
  min-height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: scale(0.3) rotate(-8deg);
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.badge-card.show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.badge-card h3 {
  font-size: 1.7em;
  color: #4caf50;
  margin-bottom: 20px;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
}

.badge-card p {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.8;
  font-family: 'Press Start 2P', monospace;
  max-width: 90%;
}

.badge-login-btn {
  margin-top: 60px;
  text-align: center;
}

.badge-login-btn a {
  font-family: 'Press Start 2P', monospace;
  padding: 16px 32px;
  border: 2px solid #00f0ff;
  background: linear-gradient(135deg, #00f0ff 0%, #4caf50 100%);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.9em;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-login-btn a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.9);
  background: linear-gradient(135deg, #4caf50 0%, #00f0ff 100%);
  color: #000;
}
