@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --navy: #0B162C;
  --navy-light: #1A2A42;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.6);
  --white: #F8F9FA;
  --transition: 0.4s ease-in-out;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% -20%, var(--navy-light) 0%, var(--navy) 80%);
}

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(2px);
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.quiz-wrapper {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 650px;
  background: rgba(26, 42, 66, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
  text-align: center;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px var(--gold-glow);
}

.screen {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition);
}

.screen.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.screen.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: slideUp var(--transition) forwards;
}

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

.title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 35px;
  line-height: 1.4;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  padding: 18px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
}

.option-btn::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-right: 15px;
  transition: all 0.3s ease;
}

.option-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.option-btn:hover::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.option-btn.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.option-btn.selected::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}

.nav-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn.next-btn {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.nav-btn.next-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.4);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loading Animation */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(212, 175, 55, 0.1);
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 25px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

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

.loading-text {
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

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

/* Final Result Screen */
.result-icon {
  font-size: 54px;
  margin-bottom: 25px;
  color: #ff4757;
  text-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0) rotate(-10deg); }
  80% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.result-title {
  color: #ff4757;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.result-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 45px;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
}

.cta-btn {
  background: linear-gradient(135deg, #F2C94C 0%, #D4AF37 100%);
  color: var(--navy);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 22px 35px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  width: 100%;
  max-width: 400px;
  animation: btnPulse 2.5s infinite;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, #F5D365 0%, #DFB943 100%);
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (max-width: 600px) {
  .quiz-wrapper {
    padding: 40px 25px;
  }
  .title {
    font-size: 22px;
  }
  .option-btn {
    font-size: 16px;
    padding: 15px 20px;
  }
  .cta-btn {
    font-size: 16px;
    padding: 18px 20px;
  }
}

/* Start Screen Image */
.start-img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 5px;
}
