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

:root {
  --gradient-start: #1abc9c; /* teal / peacock */
  --gradient-end: #adff2f;   /* bright yellow-green */
  --gradient: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  --background: #0b2e26; /* jungle green */
  --card: #000;
  --text-light: #ddd;
  --text-muted: #ccc;
  --highlight: #1abc9c;
  --accent: #adff2f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    background: var(--card);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
.welcome-content {
    text-align: center;
}

.title {
  font-family: 'Oxanium', sans-serif; /* or 'Audiowide' */
  font-size: 3.5rem;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: skewX(-10deg);
  text-shadow: 
    0 0 5px var(--gradient-start),
    0 0 10px var(--gradient-end);
  letter-spacing: 2px;
  padding: 1rem 0;
  text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 3rem;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-list li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-light);;
  margin-bottom: 1rem;
}

.check-icon {
  display: inline-block;
  width: 1.5rem;
  color: var(--gradient-start, #1abc9c);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);;
  text-align: center;
  max-width: 500px;
  margin: 1rem auto 2rem;
  margin-top: 40px;
  line-height: 1.5;
}

.primary-btn {
    background: var(--gradient);
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #1f4037;
    border: 2px solid #1f4037;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover:not(:disabled) {
    background: #1f4037;
    color: white;
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Test Screen */
.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 5%;
}

.progress-text {
    color: var(--text-muted);;
    font-weight: 500;
}

.question-container {
    text-align: center;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-light);;
    line-height: 1.4;
}

.scale-container {
    margin-bottom: 3rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.scale-label {
    font-weight: 600;
    color: #1f4037;
    max-width: 200px;
    text-align: center;
}

.scale-label.left {
    text-align: left;
    color: var(--gradient-start);
}

.scale-label.right {
    text-align: right;
    color: var(--gradient-end);
}

.scale-slider {
    position: relative;
    margin-bottom: 1rem;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 24px; /* increased from 24px */
  background: var(--gradient);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center; /* vertically centers the track */
}

/* Overlay that hides the gradient */
.slider-reveal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #ddd; /* matches your default slider fill */
  z-index: 1;
  transition: width 0.2s ease;
}

/* Put the actual slider on top, fully transparent track */
.slider {
  position: relative;
  width: 100%;
  height: 24px;
  background: transparent;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    z-index: 3;
    border-radius: 50%;
    background-color: #1f4037;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.scale-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Results Screen */
.results-content {
    text-align: center;
}

.result-header {
    margin-bottom: 3rem;
}

.personality-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.personality-type {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: var(--gradient-end);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px #b6ff42;
}

.personality-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);;
    font-style: italic;
}

.result-details {
    text-align: left;
    margin-bottom: 3rem;
}

.result-details h3 {
    color: var(--text-light);;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.trait-bars {
  margin-bottom: 2rem;
}

.trait-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.trait-name {
  min-width: 120px;
  font-weight: 500;
  color: var(--text-muted);
}

.trait-progress {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--gradient); /* full-length gradient always visible */
  border-radius: 4px;
  overflow: hidden;
}

/* Reveal overlay hides the gradient from the right */
.trait-reveal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: #ddd;
  z-index: 1;
  transition: width 1s ease;
}

.trait-score {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #1f4037; /* dark text color that works on light bg */
}

.chart-section,
.ranking-section {
  margin-top: 2rem;
}

.trait-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.trait-bar-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trait-bar-visual span {
  min-width: 90px;
  font-weight: 500;
  color: var(--text-light);;
}

.trait-bar-fill {
  flex: 1;
  height: 10px;
  background: var(--gradient);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.trait-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: #ddd;
  transition: width 0.5s ease;
}

.type-ranking {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.type-ranking li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.personality-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.strengths-list {
    list-style: none;
    padding: 0;
}

.strengths-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.strengths-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gradient-start);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .screen {
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .scale-labels {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .scale-label {
        max-width: 100%;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
