@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --green: #2ecc71;
  --darkgreen: #27ae60;
  --blue: #3498db;
  --lightgray: #f9f9f9;
  --darkgray: #2c3e50;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--lightgray);
  color: var(--darkgray);
  line-height: 1.6;
}

/* NAVBAR */
header {
  background: var(--white);
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--darkgray);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--green);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: var(--white);
}

.hero-content {
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--darkgray);
}

.hero-img {
  flex: 2;
  max-width: 1000px;
  width: 50%;
 
}

/* TIPS */
.tips {
  padding: 40px 20px;
  text-align: center;
  background: var(--green);
  color: var(--white);
}

.tips h2 {
  margin-bottom: 10px;
}

/* NEWSLETTER */
.newsletter {
  padding: 40px 20px;
  text-align: center;
}

.newsletter input {
  padding: 10px;
  width: 250px;
  border: 1px solid var(--darkgray);
  border-radius: 5px;
}

.newsletter button {
  padding: 10px 15px;
  margin-left: 10px;
  border: none;
  background: var(--green);
  color: var(--white);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter button:hover {
  background: var(--darkgreen);
}

#newsletterMsg {
  margin-top: 10px;
  font-weight: 600;
}

/* FOOTER */
footer {
  padding: 15px;
  background: var(--darkgray);
  color: var(--white);
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

footer ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

footer ul li a:hover {
  color: var(--green);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 60px;
    right: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/*==================================================== RECIPES ====================================*/
.recipes {
  padding: 40px 20px;
  text-align: center;
}

#recipeSearch {
  margin: 20px 0;
  padding: 10px;
  width: 250px;
  border: 1px solid var(--darkgray);
  border-radius: 5px;
}

.recipe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: var(--white);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.recipe-card:hover {
  transform: scale(1.03);
}

.recipe-card img {
  max-width: 80%;
  max-height: 80% ;
  border-radius: 5px;

  
}

/* MODAL */
.modal {
  display: none;
  position:absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  background: rgba(7, 82, 26, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  padding: 20px;
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
  position:absolute;

}

.modal-content img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.nutrition-table th,
.nutrition-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.nutrition-table th {
  background-color: #4caf50;
  color: white;
  width: 40%;
}

.nutrition-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.nutrition-table tr:hover {
  background-color: #f1f1f1;
}


.recipe-categories {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-categories button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background-color: var(--lightgreen, #4caf50);
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.recipe-categories button:hover {
  background-color: var(--darkgreen, #388e3c);
}

.recipe-categories button.active {
  background-color: var(--primary, #2e7d32);
}
/* ========================================CALCULATOR==============================================*/
.calculator {
  padding: 40px 20px;
  text-align: center;
}

.calculator form {
  display: grid;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 20px;
}

.calculator input, .calculator select, .calculator button {
  padding: 10px;
  border: 1px solid var(--darkgray);
  border-radius: 5px;
}

.calculator button {
  background: var(--green);
  color: var(--white);
  cursor: pointer;
}

.results {
  margin-top: 20px;
  text-align: left;
  max-width: 500px;
  margin-inline: auto;
}



/* ========================================Workout Page============================================ */
 .workout {
  padding: 2rem;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.workout form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.workout select,
.workout button {
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.workout button {
  background: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.workout button:hover {
  background: #43a047;
}

#workoutPlan {
  background: #f0fff4;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
  margin-top: 1rem;
}

#timerSection {
  margin-top: 2rem;
}

#countdown {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
}

/* ========================================Mindfullness part ============================================ */
/* Mindfulness Page */
.mindfulness {
  padding: 2rem;
  text-align: center;
}

.breathing {
  margin: 2rem 0;
  position: relative;
}

#breathText {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2e7d32;
  font-weight: bold;
}

.circle {
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  background: #a5d6a7;
  transition: transform 4s ease-in-out;
}

.meditation-timer {
  margin: 2rem 0;
}

.meditation-timer input {
  padding: 0.5rem;
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
}

.meditation-timer button {
  margin-left: 0.5rem;
  padding: 0.6rem 1rem;
  background: #4caf50;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.meditation-timer button:hover {
  background: #43a047;
}

#meditationCountdown {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #333;
}

.sounds {
  margin: 2rem 0;
}

.sounds button {
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #81c784;
  color: white;
  font-weight: bold;
  transition: background 0.3s ease;
}

.sounds button:hover {
  background: #66bb6a;
}


/* ========================================Contact part ============================================ */

/* Contact Page */
.contact {
  padding: 2rem;
  max-width: 700px;
  margin: auto;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact button {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: #4caf50;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact button:hover {
  background: #43a047;
}

#contactMsg {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
}

/* Map Section */
.map {
  margin: 2rem auto;
  text-align: center;
}

.map iframe {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.accordion {
  border-top: 1px solid #ddd;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #b3e9b8;
}

.faq-answer {
  display: none;
  padding: 1rem;
  background: #ffffff;
  border-left: 3px solid #4caf50;
}