/* ============================================================
   Global Reset & Base Variables
============================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
/* Global Variables
   -- Variables for default styles (Index) and
   -- for pages that use Poppins (Terms, FAQ, About)
   Both sets are declared here. When a page needs to override,
   it may do so by referencing the alternative variables.
*/
  :root {
  /* Default color scheme */
    --primary: #4CAF50;
    --secondary: #2E7D32;
    --light: #E8F5E9;
    --dark: #1B5E20;
    --accent: #8BC34A;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #E0E0E0;
  
  /* Alternative color scheme (used by Terms, FAQ, About pages) */
  --primary-color: #2ecc71;
  --secondary-color: #27ae60;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --light-bg: #f8f9fa;
}

/* ============================================================
   Global Base Styles
============================================================= */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
  background-color: var(--gray);
  min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  h1, h2, h3, h4 {
    color: var(--dark);
    margin-top: 0;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
  }
  
/* ============================================================
   Header & Navigation
============================================================= */
  header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
  }
  
  .nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
  }
  .nav-links a:hover {
    opacity: 0.8;
  }
  
/* ============================================================
   Hero Section & Environmental Fact
============================================================= */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0;
    text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.environmental-fact {
  background: rgba(255, 255, 255, 0.15);
  padding: 3rem;
  border-radius: 20px;
  margin: 0 auto 3rem;
  max-width: 800px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.environmental-fact h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 600;
}
.environmental-fact p {
  font-size: 1.8rem;
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 500;
}

.hero h1 {
    font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  }
  
  .hero p {
  font-size: 1.3rem;
  max-width: 800px;
    margin: 0 auto 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  opacity: 0.9;
}

/* ============================================================
   Buttons & Call-to-Action
============================================================= */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

  .btn {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}
.btn.primary {
  background: white;
  color: var(--primary-color);
}
.btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ============================================================
   Quiz Section
============================================================= */
.quiz-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: none;
}

.quiz-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  display: none;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.quiz-navigation button {
    padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
    transition: all 0.3s ease;
  color: var(--text-color);
}

.quiz-navigation button.btn.primary {
  background: var(--primary-color);
  color: white;
}

.quiz-navigation button.btn.secondary {
  background: var(--light-bg);
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.quiz-navigation button:hover {
  transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
.quiz-question {
  margin-bottom: 2rem;
  display: none;
}
.quiz-question.active {
  display: block;
}
.quiz-options {
  display: grid;
  gap: 1rem;
}
.quiz-option {
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.quiz-option:hover {
  border-color: var(--primary-color);
  background: rgba(46, 204, 113, 0.1);
}
.quiz-option.selected {
  border-color: var(--primary-color);
  background: rgba(46, 204, 113, 0.1);
}
.quiz-result {
  text-align: center;
  padding: 2rem;
  display: none;
}

/* ============================================================
   Sustainability Journey & Testimonials
============================================================= */
.sustainability-journey {
  background: white;
  padding: 4rem 0;
  text-align: center;
}

.testimonials {
  background: var(--light-bg);
  padding: 4rem 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: var(--light-bg);
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: var(--light-bg);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--secondary-color);
  transform: scale(1.1);
}

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

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
}

/* ============================================================
   Impact Stories
============================================================= */
.impact-stories {
  padding: 4rem 0;
  background: white;
}
.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}
.story-card:nth-child(even) {
  direction: rtl;
}
.story-content {
  padding: 2rem;
}
.story-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

/* ============================================================
   How It Works & Steps
============================================================= */
.how-it-works {
  background: var(--light-bg);
  padding: 4rem 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  position: relative;
}
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ============================================================
   Community Section
============================================================= */
.community-section {
  padding: 4rem 0;
  background: white;
  text-align: center;
}
.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.community-stat {
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.community-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: var(--white);
}
.community-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.community-stat-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* ============================================================
   Journey Stats
============================================================= */
.journey-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat-card {
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* ============================================================
   Score Demo
============================================================= */
.score-demo {
  text-align: center;
  padding: 4rem 0;
  background-color: var(--light);
}
.sustain-score-demo {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 10px solid var(--primary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.score-value {
  font-size: 3rem;
  font-weight: bold;
  color: var(--dark);
}
.score-label {
  color: var(--secondary);
  font-weight: 500;
}
.score-description {
  max-width: 600px;
  margin: 1rem auto 0;
  font-style: italic;
}

/* ============================================================
   Footer
============================================================= */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-about p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
}
.footer-links h4 {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s;
  flex-direction: row;
}
.footer-links a:hover {
  opacity: 1;
}
.footer-contact p {
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
footer .copyright p {
  font-size: 0.7rem;
  color: #fff !important;
  opacity: 1;
}

/* ============================================================
   Index Page Styles
============================================================= */
.index-body {
  background-color: white;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.index-main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem 0;
  max-width: 700px;
  margin: 0 auto;
}
.index-left,
.index-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-img {
  max-width: 300px;
  width: 100%;
  height: auto;
}
.index-right {
  flex-direction: column;
  max-width: 350px;
  text-align: center;
  margin: 1rem;
}
.index-right h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.index-right-mobile {
  display: none;
}
.download-section h2 {
  margin-bottom: 1rem;
}
.download-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-badge {
  width: 140px;
  margin: 0.5rem;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}
.footer-links {
  flex-direction: row;
  margin-bottom: 1rem;
}
.footer-links a {
  margin: 0 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
footer .copyright p {
  font-size: 0.7rem;
  color: #fff !important;
  opacity: 1;
}

/* ============================================================
   Responsive Adjustments
============================================================= */
@media (max-width: 780px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .nav-links {
    display: none;
  }
  .hero,
  .about-hero,
  .terms-hero,
  .faq-hero {
    padding: 3rem 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .index-left {
    display: none;
  }
  .index-right {
    display: none;
  }
  .app-logo-mobile {
    max-width: 200px;
    width: 100%;
    height: auto;
  }
  .index-right-mobile {
    display: block;
    flex-direction: column;
    max-width: 350px;
    text-align: center;
    margin: 1rem;
  }
  .footer-about {
    display: none;
  }
  }
  
  /* Feature Cards */
  .features {
    padding: 4rem 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
  }
  
  .feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
/* ============================================================
   FAQ & Terms Pages Styles
============================================================= */
.faq-container, .terms-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

.faq-header, .terms-header {
    text-align: center;
  margin-bottom: 3rem;
}

.faq-header h1, .terms-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.faq-header p, .terms-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.faq-content, .terms-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
}

.faq-section, .terms-section {
  margin-bottom: 2rem;
  width: 100%;
}

.faq-section h2, .terms-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-bg);
  width: 100%;
}

.faq-section h3, .terms-section h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
}

.faq-section p, .terms-section p,
.faq-section li, .terms-section li {
  margin-bottom: 1rem;
  color: var(--text-color);
  width: 100%;
  word-wrap: break-word;
}

.faq-section ul, .terms-section ul {
  padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
.faq-section li, .terms-section li {
    margin-bottom: 0.5rem;
  }
  
.faq-question {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  word-wrap: break-word;
}

.faq-question::before {
  content: "Q:";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 1rem;
}

.faq-answer {
  color: var(--text-color);
  padding-left: 2.5rem;
  position: relative;
  width: 100%;
  word-wrap: break-word;
}

.faq-answer::before {
  content: "A:";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.highlight-box {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.contact-info {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.contact-info h3 {
  color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
.contact-info p {
    margin-bottom: 0.5rem;
  }
  
.last-updated {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-color);
  opacity: 0.7;
    font-size: 0.9rem;
  }

@media (max-width: 768px) {
  .faq-container, .terms-container {
    padding: 1rem;
  }

  .faq-content, .terms-content {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer {
    padding-left: 2rem;
  }
}

@media (max-width: 480px) {
  .faq-container, .terms-container {
    padding: 0.5rem;
  }

  .faq-content, .terms-content {
    padding: 1rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    padding-left: 1.5rem;
  }
  }
  
.take-quiz-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  margin: 2rem 0;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.take-quiz-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: var(--secondary-color);
}

.sustainability-journey .btn.primary {
  margin-top: 3rem;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
  