/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  color: #f1f5f9;
  min-height: 100vh;
  line-height: 1.6;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: #a3e635;
  width: 20%;
  transition: width 0.4s ease;
}

/* Main Container */
.quiz-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  padding-top: 3rem;
}

/* Glass Card */
.glass-card {
  max-width: 580px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Quiz Steps */
.quiz-step {
  display: none;
  text-align: center;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h1 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(241, 245, 249, 0.8);
  margin-bottom: 2rem;
}

/* Answer Buttons */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-btn {
  background: #a3e635;
  color: #0f0c29;
  border: none;
  border-radius: 20px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  font-family: "Inter", sans-serif;
}

.answer-btn:hover {
  background: #fb7185;
  color: #f1f5f9;
  transform: translateY(-2px);
}

.answer-btn:focus-visible {
  outline: 2px dashed #fb7185;
  outline-offset: 4px;
}

/* Card Layout for Step 3 */
.answers-grid.cards {
  gap: 1.5rem;
}

.answer-btn.card {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 2px solid rgba(163, 230, 53, 0.3);
  padding: 1.5rem;
  text-align: center;
}

.answer-btn.card:hover {
  background: rgba(163, 230, 53, 0.1);
  border-color: #a3e635;
  color: #a3e635;
}

.card-content h3 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* CTA Button */
.cta-container {
  margin-top: 2rem;
}

.cta-btn {
  display: inline-block;
  background: #a3e635;
  color: #0f0c29;
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Barlow Semi Condensed", sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.cta-btn:hover {
  background: #fb7185;
  color: #f1f5f9;
  transform: translateY(-2px);
}

.cta-btn:focus-visible {
  outline: 2px dashed #fb7185;
  outline-offset: 4px;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 0.9rem;
  color: rgba(241, 245, 249, 0.7);
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #a3e635;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fb7185;
}

/* Desktop Responsive */
@media (min-width: 768px) {
  .glass-card {
    padding: 3rem 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .answers-grid:not(.cards) {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .answer-btn:not(.card) {
    flex: 1;
    max-width: 200px;
  }

  .answers-grid.cards {
    flex-direction: row;
    justify-content: center;
  }

  .answer-btn.card {
    flex: 1;
    max-width: 180px;
  }
}

@media (min-width: 1024px) {
  .quiz-container {
    padding: 2rem;
  }
}
