#quiz-section {
  min-height: 100vh;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  position: relative;
  overflow: hidden;
}

#quiz-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyIiBoZWlnaHQ9IjIiIHg9IjAiIHk9IjAiIGZpbGw9IiNmY2I1MWYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.quiz-header h1 {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 2.5rem;
}

.quiz-header p {
  color: var(--light-text);
  opacity: 0.9;
  font-size: 1.1rem;
}

.quiz-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.stat i {
  font-size: 1.3rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #e6a515);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}

.screen {
  display: none;
  animation: fadeIn 0.5s ease;
}

.screen.active {
  display: block;
}

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

.start-content {
  text-align: center;
  padding: 40px 20px;
}

.quiz-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--primary), #e6a515);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--dark-text);
  animation: bounce 2s infinite;
}

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

.start-content h2 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 2rem;
}

.start-content p {
  color: var(--light-text);
  opacity: 0.9;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

#start-btn {
  font-size: 1.2rem;
  padding: 15px 50px;
}

.question-container {
  margin-bottom: 30px;
}

.question-text {
  color: var(--light-text);
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.answers-container {
  display: grid;
  gap: 15px;
}

.answer-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  color: var(--light-text);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.answer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 181, 31, 0.2), transparent);
  transition: left 0.5s ease;
}

.answer-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  transform: translateX(5px);
}

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

.answer-btn.selected {
  background-color: var(--primary);
  color: var(--dark-text);
  border-color: var(--primary);
  font-weight: 600;
}

.answer-btn.correct {
  background-color: #4caf50;
  border-color: #4caf50;
  color: white;
  animation: correctPulse 0.5s ease;
}

.answer-btn.incorrect {
  background-color: #f44336;
  border-color: #f44336;
  color: white;
  animation: shake 0.5s ease;
}

.answer-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.feedback-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.feedback-container.hidden {
  display: none;
}

.feedback-modal {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
  position: relative;
}

.feedback-container.correct .feedback-modal {
  border: 3px solid #4caf50;
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

.feedback-container.incorrect .feedback-modal {
  border: 3px solid #f44336;
  box-shadow: 0 0 30px rgba(244, 67, 54, 0.3);
}

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

.feedback-content {
  color: var(--light-text);
  margin-bottom: 25px;
}

.feedback-modal #next-btn {
  margin-top: 10px;
  font-size: 1.1rem;
  padding: 12px 40px;
}

.feedback-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feedback-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.results-content {
  text-align: center;
  padding: 40px 20px;
}

.results-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  animation: zoomIn 0.6s ease;
}

.results-icon.high-score {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--dark-text);
}

.results-icon.low-score {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.results-content h2 {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 2rem;
}

.final-score {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary);
  margin: 20px 0;
  animation: pulse 1s ease;
}

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

.results-content p {
  color: var(--light-text);
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.share-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.share-btn.hidden {
  display: none;
}

.share-btn i {
  font-size: 1.3rem;
}

.results-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.nav-links a.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 30px 20px;
  }

  .quiz-header h1 {
    font-size: 2rem;
  }

  .quiz-stats {
    flex-direction: column;
    gap: 15px;
  }

  .question-text {
    font-size: 1.3rem;
  }

  .answer-btn {
    padding: 15px;
    font-size: 1rem;
  }

  .results-buttons {
    flex-direction: column;
    width: 100%;
  }

  .results-buttons .cta-primary,
  .results-buttons .cta-secondary {
    width: 100%;
  }
}
