:root {
  --forest: #2f4f2f;
  --moss: #5f7d5f;
  --sage: #a3b18a;
  --sand: #f5f1e6;
  --clay: #c2a27c;
  --dark: #283618;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--sand);
  color: var(--dark);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}


header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--forest);
  font-family: 'Playfair Display', serif;
}

.header-icon {
  font-size: 5rem;
  margin-right: 0.5rem;
}

h1 {
  margin-top: 20px;
  text-align: center;
  color: var(--dark);
}

h3 {
  margin-bottom: 15px;
  margin-left: 20px;
  color: #3a5a40;
  font-size: 1.5rem;
  text-decoration: underline;
  clear: both;
}

/* PARAGRAPHS */
p {
  margin-bottom: 15px;
  margin-left: 20px;
}

/* LISTS */
ul {
  margin-left: 20px;
  margin-top: 10px;
}

li {
  margin-bottom: 8px;
  list-style: none;
}

.hero {
  text-align: center;
  padding: 1rem 2rem 2rem;
  font-size: 1.2rem;
  color: #3d6b4f;
}

section h1 h2 h3 {
  margin-bottom: 1rem;
}

.gallery {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(40, 54, 24, 0.2);
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.desc {
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.responsive {
  padding: 10px;
  float: left;
  width: 25%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 50%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

#hobbies ul, #travel ul {
  list-style: none;
  padding-left: 0px;
  list-style-type: 🌿;

}

ul {
  list-style: none;
  padding-left: 0;
}

/* TOP LEVEL ITEMS */
#hobbies ul > li::before, #travel ul > li::before {
  content: "🌿 ";
}

/* NESTED LIST */
ul ul {
  margin-top: 5px;
  padding-left: 20px;
}

/* NESTED ITEMS */
#hobbies ul ul li::before, #travel ul ul li::before {
    content: "🍃";
}


#about-me{
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.quiz-container {
  margin: 2rem auto;
  max-width: 700px;
  background: #fffdf7;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #e6dccf;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.quiz-container button {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: var(--sage);
  cursor: pointer;
  transition: 0.2s;
  color: var(--dark);
}


.quiz-container button:hover {
  background: var(--moss);
  color: white;

}

button.selected {
  background-color: var(--forest);
  color: white;
}

#result {
  font-size: 1.5em;
  margin-top: 20px;
}


#hobbies{
  background: #f9fff9;
  margin: 30px auto;
  padding: 40px 20px;
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#travel{
  background: #f9fff9;
  margin: 30px auto;
  padding: 40px 20px;
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* nav ul {
  list-style-type: none;
  margin: 0;
  padding: 15px;
  overflow: hidden;
  background-color: #3a5a40;
  justify-content: space-around;
}

nav ul li {
  float: left;
} */

nav ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

nav ul li a:hover {
 color: #a3b18a;
}
 
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background: var(--dark);
  color: #f5f1e6;
}


section {
  text-align: left;
  padding: 40px 20px;
}

#gallery-section {
  padding: 40px 20px;
  background: #f9fff9;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#gallery-section h3 {
  width: 100%;
}

#plant-info{
  background: #f9fff9;
  margin: 30px auto;
  padding: 40px 20px;
  width: 80%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.answers{
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

@media (max-width: 600px) {
  .answers {
    flex-direction: column;
  }
}

button, p, h3 {
  word-wrap: break-word;
}

@media (max-width: 600px){
  body{
    font-size: 16px;
  }
  button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin: 10px;
  }
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--forest);
  padding: 20px; 
  color: white;
  position: relative;
}

.nav-links li a {
  color: #fdfaf3;
  text-decoration: none;
}

.nav-links li a::after {
  background: var(--sage);
}

.nav-links{
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.nav-links.active{
  display: flex;
}
.menu-toggle {
  display: none;
  position: absolute;
  font-size: 24px;
  right: 15px;
  cursor: pointer;
  padding: 10px 12px;
}
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #2f6f4f;
    flex-direction: column;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 10px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .responsive {
    width: 100%;
  }
}

/* HOMEPAGE STYLES */
.hero-section {
  background: linear-gradient(135deg, var(--sage) 0%, var(--moss) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(47, 79, 47, 0.2);
}

.hero-section h2 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-section p {
  font-size: 1.2rem;
  margin: 1rem auto;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.featured-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(47, 79, 47, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--sage);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(47, 79, 47, 0.25);
}

.feature-card h3 {
  color: var(--forest);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
  text-align: center;
}

.feature-card p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--sage);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--moss);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(95, 125, 95, 0.4);
}

.quote-section {
  background: var(--forest);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .hero-section h2 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .featured-container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .quote-section {
    font-size: 1.1rem;
    padding: 2rem 1rem;
  }
}

.result-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fffdf7;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e6dccf;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease;
}

.result-card {
  padding: 1.5rem;
  background: linear-gradient(to right, #f5f1e6, #e8f5ec);
}

.result-card h2 {
  margin-bottom: 0.5rem;
}


/* smooth appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#progress {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #5f7d5f;
}


input[type=button]{
  border:2px solid var(--dark);
  background-color: var(--forest);
  border-radius: 4px;
  padding:20px;
  color: white;
  font-weight: bold;
}

#image-gallery{
  width:380px;
  padding: 25px;
  margin: 0 auto;
  text-align: center;
}

#image-gallery #mainImg{
  width:100%;
  border: 2px solid var(--dark);
}

#gallery-title{
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  margin-bottom: 0;
  text-align: center;
  padding: 20px;
}
