:root {
    --coral: #FF6F61;
    --soft-pink: #FF9A8D;
    --blush: #F7C6C7;
    --cream: #F2D7D5;
    --rose-mute: #EAB8C9;
    --white-text: #FFFFFF;
    --dark-text: #2C1810; 
}

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

html {
    height: 100%;
     scroll-behavior: smooth;
}

body { 
    font-family: 'Roboto', 'Poppins', sans-serif; 
    background: linear-gradient(to bottom, var(--blush), var(--cream)); 
    color: var(--dark-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* header */
.header {
  background: linear-gradient(135deg, #FF6F61, #FF9A8D);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 111, 97, 0.3);
}

/* Navigation Main Container */
.header__nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'Roboto', sans-serif  !important;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.header__nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

.nav-link.current {
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.page-layout {
  padding-top: 90px;  
}



/* Hero Container */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  padding: var(--space-l);
  background: var(--gradient);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero img {
  max-width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(255,111,97,0.3);
  transition: transform 0.4s ease;
}

.hero img:hover {
  transform: scale(1.05);
}


.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-family: 'Roboto', sans-serif  !important;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 0;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.6;
}

.hero__cta {
  font-size: 1.2rem;
  padding: 1.5rem 3rem;
  min-width: 200px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}


.hero__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}



.hero__cta:hover::before {
  left: 100%;
}

.hero__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}



/* Features section styling */
.features {
  padding: 3rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.features h2{
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color:#FF6F61;
    text-align: center;
}

.features-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.features-card{
    background: rgba(255,255,255,0.9);
    padding:2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255,111,97,0.3);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #FF6F61;
    
}

.features-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255,111,97,0.2);
}

.features-card h3{
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #FF6F61;
}


.quiz-section { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 1rem;
    height: calc(100vh - 120px); 
    display: flex;
    flex-direction: column;
}


.question-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2rem; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
  
    height: 100%; 
    box-sizing: border-box;
}


.question-group {
    flex: 1;  
    overflow-y: auto;
}


.quiz-nav {
    display: flex;
    justify-content: space-between; /* Puts Prev on left, Next on right */
    gap: 1rem;
    margin-top: 2rem; /* Adds space above buttons */
    padding-top: 1rem;
    border-top: 1px solid #eee; /* Optional separator line */
}


.question-group h2 {
    font-size: 1.5rem; 
    margin-bottom: 0.5rem;
}


.options-grid {
    display: grid;
    gap: 0.25rem; /* Reduced gap */
    list-style: none;
    padding: 0;
}




.progress-fill {
    background: #FF6F61; 
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-bar-container {
        background: #eee;
        width: 100%;
        height: 10px;
        border-radius: 5px;
        margin-top: 10px;
    }
    



.progress-title {
  font-family: 'Roboto', sans-serif  !important;
  font-size: 2.5rem;
  color: white; /* White for max contrast */
  margin: 0 0 1rem 0;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}










/* Highlight the Selected Answer */
.options-grid {
    list-style: none;
    padding: 0;
}

.option {
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
}


.option:has(input[type="radio"]:checked) {
    border-color: #ff4d6d;
    background-color: #fff0f3; /* Light pink tint */
    transform: scale(1.02);
}

.option label {
    display: block;
    padding: 15px;
    cursor: pointer;
    width: 100%;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.question-group {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid #FF6F61;
  background: #fafafa;
}

.question-group h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  color: #FF6F61;
  text-align: center;
  margin-bottom: 1rem;
}

legend {
  font-weight: bold;
  color: #FF6F61;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.options-grid {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.option {
  padding: 1rem;
  background: white;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
}

.option:hover {
  border-color: #FF6F61;
  background: #fff5f5;
}

.quiz-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.quiz-nav .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn--primary {
  background: #FF6F61;
  color: white;
}

.btn--primary:hover {
  background: #FF9A8D;
  transform: translateY(-2px);
}
.btn--secondary {
  background: #f8f9fa;
  color: #FF6F61;
  border: 2px solid #FF6F61;
}

.btn--secondary:hover {
  background: #FF6F61;
  color: white;
}


/* Results Section */
.results-section { max-width: 800px; margin: 2rem auto; padding: 1rem; }

.result-hero {
  text-align: center;
  padding: 2rem;
  background: #FF6F61;
  color: white;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-weight: 700;     
  text-shadow: 2px 2px 4px #333;  
}


.result-title { 
  font-family: 'Roboto', sans-serif !important; 
  color: white !important; 
  text-shadow: 2px 2px 4px #333 !important; 
  font-weight: 900;
  margin: 0 0 1rem 0;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
   font-size: 3rem;
}




.top-result h2 { 
    font-family: 'Roboto', sans-serif !important;
  color: white !important; 
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
 
}


.scores-grid { 
  display: grid; 
  gap: 1rem; 
  margin-bottom: 2rem; 
}

.score-card { 
  display: flex; 
  padding: 1rem; 
  background: #fafafa; 
  border-left: 4px solid #FF6F61;
  align-items: center;
  gap: 1rem;
}

.score-bar { 
  flex: 1; 
  height: 10px; 
  background: #eee; 
  border-radius: 5px; 
}

.score-fill { 
  height: 100%; 
  background: #FF6F61; 
  border-radius: 5px; 
}

.results-actions { 
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
}


.btn--primary { background: #FF6F61;
     color: white; padding: 12px 24px;
      border-radius: 8px;
     }
.btn--secondary { background: white; color:#FF6F61; 
     border: 2px solid #FF6F61; 
     padding: 10px 20px; 
     border-radius: 8px;
     }
.btn--primary:hover, .btn--secondary:hover { 
    opacity: 0.9;
 }

 /*signup and login*/
 /* Auth page specific styles only */
.auth-main {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(255,111,97,0.3);
    border-top: 4px solid var(--coral);
}

.auth-title {
    font-family: 'Dancing Script', cursive !important;
    font-size: 3rem;
    color: var(--coral) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #eee;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255,111,97,0.2);
}

.input-label {
    position: absolute;
    left: 3rem;
    top: 1.1rem;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--coral);
    background: white;
    padding: 0 0.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--coral);
}

.password-toggle {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--coral);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, var(--coral), var(--soft-pink));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,111,97,0.4);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.auth-link a {
    color: var(--coral);
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}












/* resposive design */
@media (max-width: 768px) {

    .header {
    padding: 1rem 1.5rem;
  }
  
  .header__nav {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .header__nav-list {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    order: 3;
  }
  
  .logo {
    font-size: 2rem;
    order: 1;
  }
  
  .nav-link {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  .results-actions { 
    flex-direction: column;  
}

.input-row {
        grid-template-columns: 1fr;
    }
 .auth-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.75rem;
  }
  
  .nav-link {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }

   .hero img {
    height: 250px;
    order: -1;
  }
  
  .hero__content {
    padding: 1.5rem;
  }

   .question-card 
   { padding: 1.5rem;
     margin: 0 0.5rem;
     }
  .options-grid {
     gap: 0.5rem; 
    }
  .quiz-nav {
     flex-direction: column; 
    }

}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.75rem;
  }
  
  .nav-link {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .header__nav {
    gap: 2.5rem;
  }
  
  .header__nav-list {
    gap: 2rem;
  }
  
  .nav-link {
    padding: 1rem 2rem;
    font-size: 1.15rem;
  }
}

@media (min-width: 769px) {
  .hero {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    text-align: left;
    min-height: 500px;
  }
  
  .hero img {
    height: 450px;
  }
}
































  
header .navbar {
    background: rgba(255, 111, 97, 0.98) !important; 
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.75rem 0 !important;
}


.navbar-brand, .nav-link {
    color: var(--white-text) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.navbar-brand { font-size: 2rem !important; font-weight: 700; }
.nav-link { font-size: 1.1rem !important; font-weight: 500; }

#landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #FF6F61 0%, #FF9A8D 50%, #F7C6C7 100%);
    padding-top: 85px !important;
    padding-bottom: 100px;
    position: relative;
}
.hero-content h1, .hero-content p, .hero-content label {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: var(--white-text) !important;
}



h1, h2, h3, .display-4, .navbar-brand {
    font-family: 'Dancing Script', cursive !important; 
    color: var(--coral) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);}

.hero-content p { 
    font-size: 1.4rem !important; 
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 3rem !important;
}

.hero-content label {
    font-size: 1.3rem !important;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-danger { 
    background: linear-gradient(45deg, var(--coral), #E55A50) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    padding: 1rem 3rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
}

.btn-danger:hover { 
    background: linear-gradient(45deg, var(--soft-pink), var(--coral)) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 111, 97, 0.6);
}


.text-coral { color: var(--coral) !important; }

/*image styles */
.hero-content { position: relative; z-index: 2; }

.hero-image {
    max-width: 450px;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 8px solid rgba(255,255,255,0.2);
}

.animate-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* quiz results styling */
.question-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.question-card:hover { transform: translateY(-5px); }

.option-label {
    display: block;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.option-label:hover {
    background: linear-gradient(45deg, #ff6b9d, #ff8e8e);
    color: white;
    transform: translateX(10px);
}

.option-label input:checked + span {
    background: linear-gradient(45deg, #ff6b9d, #ff4757);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(255,103,157,0.3);
    display: block;
}

.hidden { display: none !important; }

.question-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

#resultsChart {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}

footer { 
    background: var(--coral); 
    color: white; 
    padding: 2rem 0;
}

/*responisveness */
@media (max-width: 768px) {
    #landing { padding-top: 75px !important; padding-bottom: 80px; }
    .hero-image { max-width: 300px; }
    .navbar-brand { font-size: 1.5rem !important; }
    .nav-link { font-size: 1rem !important; }
    h1.display-3 { font-size: 3rem !important; }
}

@media (max-width: 576px) {
    .hero-image { max-width: 250px; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
}
