/* Theme Variables */
:root {
  --bg: #121212;
  --fg: #d3d3d3;
  --accent: #a8ff60;
  --hover: #90e850;
  --card-bg: #1e1e1e;
  --hero-text-color: #ffffff;
  /* Explicitly defined for clarity */
}

body.light-mode {
  --bg: #f5f5f5;
  --fg: #121212;
  --accent: #006400;
  --hover: #228b22;
  --card-bg: #ffffff;
  --hero-text-color: #ffffff;
  /* Can be adjusted if light mode hero needs different text color */
}

/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  padding: 20px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/********************************/
/********* Navbar Styles ********/
/********************************/
.navbar {
  background-color: var(--card-bg);
  color: var(--fg);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar-menu a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--bg);
  background-color: var(--accent);
}

#hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Theme Toggle Button */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  padding-top: 5px;
}

#theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--hover);
}

/*********************************/
/********* General Button Styles *********/
/*********************************/
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--accent);
  border-radius: 50px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-color: var(--hover);
}

/* Specific styling for the hero button, inheriting rounded corners */
.btn-primary.rounded-button {
  padding: 15px 30px;
  font-size: 1.1rem;
}


/******************************/
/******** Hero Section ********/
/******************************/
.hero {
  position: relative;
  /* Crucial for absolute positioning of children */
  height: 80vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;

  /* --- CSS Gradient Background --- */
  background: linear-gradient(135deg,#1dd1a1,#10ac84);
  color: white;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  margin: 20px 0 40px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-content {
  position: relative;
  /* Keep relative for text/button flow */
  z-index: 5;
  /* Ensure hero-content is above dishes and overlay */
  max-width: 800px;
  color: var(--hero-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Fix PC Overlap & Mobile Vertical Alignment: */
  justify-content: flex-start;
  /* Align content to the top */
  padding-top: 50px;
  /* PC: Reduced padding from 80px to 50px */
  padding-bottom: 0;
  /* Ensure no extra space pushes it up */
  height: 100%;
  /* Maintain height for flex context */
  /* NO BACKGROUND-COLOR HERE, it should be transparent */
}

.hero-text-and-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--hero-text-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--hero-text-color);
}


/************************************/
/* Projectile Dish Animation (Re-implemented) */
/************************************/
.dishes-container {
  position: absolute;
  /* Position relative to .hero */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  /* Height of the animation area at the bottom */
  overflow: hidden;
  /* Hide dishes outside this area */
  z-index: 4;
  /* Below hero-content (z-index 5), above hero-overlay (z-index 1) */
  pointer-events: none;
  /* Allow clicks to pass through */
}

.dishes-animation {
  position: relative;
  /* Container for absolute positioned dishes */
  width: 100%;
  height: 100%;
}

.dish {
  position: absolute;
  width: 120px;
  /* Size of each dish */
  height: 120px;
  bottom: 0;
  /* Start at the bottom of .dishes-container */
  left: 0;
  /* Will be moved by animation */
  /* Center the image within its 120x120px bounding box relative to its own center */
  transform: translateX(-50%);
  /* Adjust initial position */
  animation: projectileMotion 20s linear infinite;
  /* Animation duration */
  animation-delay: calc(var(--i) * -2.5s);
  /* Stagger dishes (20s / 8 dishes = 2.5s) */
}

.dish img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

@keyframes projectileMotion {
  0% {
    transform: translateX(-100%) translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  25% {
    transform: translateX(25vw) translateY(-100px);
  }

  50% {
    transform: translateX(50vw) translateY(-150px);
  }

  75% {
    transform: translateX(75vw) translateY(-100px);
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateX(110vw) translateY(0);
    opacity: 0;
  }
}


/************************************/
/********* Main Section Styles ********/
/************************************/
section {
  background-color: var(--card-bg);
  padding: 40px;
  margin: 20px auto;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  text-align: center;
}

/* Added for increased specificity for back to home button fix */
a.btn.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

a.btn.btn-primary:hover {
  background-color: var(--hover);
  border-color: var(--hover);
}


section h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

section ul,
section ol,
section dl {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
}

section li {
  background-color: var(--bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--fg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section li strong {
  color: var(--accent);
}

/* Feature Section (Example) */
.feature-section ul li::before {
  content: '⚡';
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* How It Works Section (Example) */
.steps-section ol {
  counter-reset: step-counter;
}

.steps-section ol li {
  counter-increment: step-counter;
}

.steps-section ol li::before {
  content: counter(step-counter);
  background-color: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

/* FAQ Section */
#faq dt {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 5px;
}

#faq dd {
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--fg);
}

/* Other sections */
#ai-nutritionist p,
#sample-plans p,
#testimonials p,
#final-cta p {
  padding: 5;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 20px auto;
  color: var(--fg);
}

/******************************/
/********* Pricing Table ******/
/******************************/
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

.pricing-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(168, 255, 96, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  text-align: left;
}

.pricing-features p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--fg);
}

.pricing-features p i {
  color: var(--accent);
  font-size: 1.2em;
}


.pricing-cost {
  background: rgba(168, 255, 96, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 25px 0;
  text-align: center;
}

.pricing-cost p {
  margin: 8px 0;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--accent);
}

.pricing-cost span {
  font-size: 1rem;
  color: var(--fg);
  opacity: 0.8;
}

.pricing-card .btn {
  margin-top: 20px;
  width: 80%;
}

.pricing-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.pricing-note i {
  color: var(--accent);
}


/******************************/
/*********** Forms ************/
/******************************/
.form-container,
form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  max-width: 800px;
  transition: background-color 0.3s ease;
}

.form-container form,
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.1rem;
}

.form-container input,
.form-container select,
.form-container textarea,
form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .form-container input,
body.light-mode .form-container select,
body.light-mode form input,
body.light-mode form select,
body.light-mode form textarea {
  background-color: #e0e0e0;
  color: #121212;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--hover);
  border-color: var(--hover);
}

.form-container button,
form button {
  margin-top: 10px;
}


/******************************/
/********* Contact Page *******/
/******************************/
.contact-section {
  padding: 60px 20px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--fg);
  opacity: 0.9;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--fg);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 40px;
  height: 40px;
  background: rgba(168, 255, 96, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/******************************/
/******* Privacy Policy & Terms of Service *******/
/******************************/
.legal-content,
.privacy-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.legal-content h1,
.privacy-content h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
}

.legal-content h2,
.privacy-content h2 {
  color: var(--accent);
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.legal-content h3,
.privacy-content h3 {
  color: var(--fg);
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

.legal-content p,
.privacy-content p {
  margin-bottom: 15px;
  color: var(--fg);
}

.legal-content ul,
.privacy-content ul {
  margin: 15px 0;
  padding-left: 30px;
  list-style-type: disc;
}

.legal-content li,
.privacy-content li {
  margin-bottom: 8px;
  color: var(--fg);
}

.legal-content a,
.privacy-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover,
.privacy-content a:hover {
  text-decoration: underline;
}


/******************************/
/********* Footer Styles ********/
******************************/ footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  background-color: var(--card-bg);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.footer-content,
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-content a,
.footer-legal a {
  color: var(--fg);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 2px;
}

.footer-content a:hover,
.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal p {
  font-size: 0.9rem;
  color: #888;
}

.footer-social {
  margin-top: 15px;
}

.footer-social a {
  color: var(--fg);
  font-size: 1.8rem;
  margin: 0 12px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
}


/*********************************/
/******** Media Queries **********/
/*********************************/

/* Tablet and smaller screens */
@media (max-width: 992px) {
  .navbar-menu {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 2.2rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile and smaller screens */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .navbar-container {
    justify-content: space-between;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    gap: 0.5rem;
    border-radius: 0 0 12px 12px;
    text-align: left;
  }

  .navbar-menu.active {
    display: flex;
  }

  #hamburger-menu {
    display: block;
    order: 1;
  }

  .navbar-brand {
    font-size: 1.5rem;
    margin-right: auto;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  /* MOBILE FIX: Vertical Alignment & Space */
  .hero-content {
    justify-content: center;
    /* Center content vertically in the available space */
    padding-top: 0;
    /* Remove top padding to pull it up */
    padding-bottom: 0;
    /* Ensure no unwanted bottom padding */
  }

  /* MOBILE FIX: Animation spacing and appearance */
  .dishes-container {
    height: 100px;
    /* Reduced height for smaller mobile screen */
    bottom: 20px;
    /* Lift it slightly from the very bottom to prevent cutting off if needed */
  }

  .dish {
    width: 50px;
    /* Smaller dishes for mobile */
    height: 50px;
    /* Animation delay needs to be adjusted relative to the animation duration (20s) and number of dishes (8) */
    /* For 8 dishes over 20s, each is 2.5s apart. Let's keep it consistent for flow. */
    animation-delay: calc(var(--i) * -2.5s);
  }

  @keyframes projectileMotion {
    0% {
      transform: translateX(-100%) translateY(0);
      opacity: 0;
    }

    10% {
      opacity: 1;
    }

    25% {
      transform: translateX(25vw) translateY(-25px);
    }

    /* Smaller peak height */
    50% {
      transform: translateX(50vw) translateY(-40px);
    }

    /* Smaller peak height */
    75% {
      transform: translateX(75vw) translateY(-25px);
    }

    /* Smaller peak height */
    90% {
      opacity: 1;
    }

    100% {
      transform: translateX(110vw) translateY(0);
      opacity: 0;
    }
  }


  section {
    padding: 30px 20px;
    margin: 15px auto;
  }

  section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  section li {
    font-size: 1rem;
    padding: 12px 15px;
  }

  #theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
    bottom: 15px;
    right: 15px;
  }

  .footer-content,
  .footer-legal,
  .footer-social {
    flex-direction: column;
    gap: 10px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
    gap: 15px;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .form-container,
  form {
    padding: 20px;
    margin: 20px auto;
  }

  .legal-content,
  .privacy-content {
    margin: 20px auto;
    padding: 15px;
  }

  .legal-content h1,
  .privacy-content h1 {
    font-size: 2rem;
  }

  .legal-content h2,
  .privacy-content h2 {
    font-size: 1.5rem;
  }
}

/* Smaller mobile screens (e.g., iPhone SE) */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* MOBILE FIX: Vertical Alignment & Space */
  .hero-content {
    padding-top: 0;
    /* No top padding for very small screens */
  }

  /* MOBILE FIX: Animation spacing and appearance */
  .dishes-container {
    height: 80px;
    /* Further reduced height */
    bottom: 10px;
    /* Lift slightly more */
  }

  .dish {
    width: 40px;
    /* Smallest dish size */
    height: 40px;
    animation-delay: calc(var(--i) * -2.5s);
    /* Keep consistent for flow */
  }

  @keyframes projectileMotion {
    0% {
      transform: translateX(-100%) translateY(0);
      opacity: 0;
    }

    10% {
      opacity: 1;
    }

    25% {
      transform: translateX(25vw) translateY(-15px);
    }

    /* Even shallower peak */
    50% {
      transform: translateX(50vw) translateY(-25px);
    }

    /* Even shallower peak */
    75% {
      transform: translateX(75vw) translateY(-15px);
    }

    /* Even shallower peak */
    90% {
      opacity: 1;
    }

    100% {
      transform: translateX(110vw) translateY(0);
      opacity: 0;
    }
  }


  section h2 {
    font-size: 1.8rem;
  }

  section li {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

/* Utility Class for Text Alignment */
.text-center {
  text-align: center;
  color: var(--accent);
}

/**** Header ****/
/**********/
header {
  background: linear-gradient(to right, var(--card-bg), var(--card-bg));
  color: var(--accent);
  text-align: center; /* This is already here, but ensures children inherit/obey */
  padding: 50px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(168, 255, 96, 0.3);
  transition: background-color 0.3s ease;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center; /* ADD THIS LINE or ensure it's present */
  color: var(--accent);
}

header p { /* Also ensure any paragraphs in the header are centered */
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--fg);
  text-align: center; /* ADD THIS LINE or ensure it's present */
}
/*********************************/
/********* General Button Styles *********/
/*********************************/
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none; /* Ensures no underline on link buttons */
  text-align: center;
  cursor: pointer;
  /* Smooth transitions for all relevant properties */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--accent); /* Theme-matched green border */
  border-radius: 50px; /* Modern pill shape */
}

/* Primary Button Style (Filled) */
.btn-primary {
  background-color: var(--accent); /* Button filled with theme accent color */
  color: var(--card-bg); /* Text color for good contrast with accent background */
  border-color: var(--accent); /* Border matches background color */
}

/* Hover Effect for Primary Button */
.btn-primary:hover {
  background-color: var(--hover); /* Slightly different accent shade on hover */
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
  border-color: var(--hover); /* Border color matches hover background */
  color: var(--card-bg); /* Ensures text color remains contrasting on hover */
}

/* Specific styling for the hero button (if you use .rounded-button alongside .btn-primary) */
.btn-primary.rounded-button {
  padding: 15px 30px; /* Slightly larger padding for a prominent button */
  font-size: 1.1rem; /* Slightly larger font size */
}
#tsparticles {
  position:fixed;
  width: 100%;
  height: 100%;
  z-index: -1; /*send it behind all content */
  top: 0;
  left: 0;
}
.success-animation {
    font-size: 80px;
    color: #00ffae;
    animation: pop 0.6s ease forwards;
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

#success-section h2 {
    margin-top: 20px;
    font-size: 28px;
    color: #00ffae;
}

#success-section p {
    margin-top: 10px;
    font-size: 18px;
    color: #ccc;
}
.meal-card-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 0 12px rgba(0, 255, 174, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.meal-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px #00ffae;
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meal-header h4 {
    color: #00ffae;
    font-size: 20px;
    margin: 0;
}

.meal-time-badge {
    background: #ff4c4c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.meal-quantity, .meal-time {
    color: #ccc;
    font-size: 14px;
    margin: 5px 0;
}

.nutrients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.meal-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e7d32; /* dark green for healthy/organic theme */
  background-color: #e6f4ea; /* light green bg */
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: black;
    transition: background-color 0.3s;
}

.badge:hover {
    filter: brightness(1.2);
}

.calories { background: #ff4c4c; }
.protein { background: #4cff7a; }
.carbs { background: #4cafff; }
.fats { background: #ffc14c; }

.order-btn {
    background: #00ffae;
    color: black;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.order-btn:hover {
    background: #00ffc8;
    transform: translateY(-2px);
}

/* Styles for general links that are not buttons (applied using the .nav-link class) */
.nav-link {
  text-decoration: none;
  /* Removes the default underline */
  color: var(--accent);
  /* Sets the link color to your defined accent color */
  transition: color 0.3s ease, text-decoration 0.3s ease;
  /* Smooth transition for hover effects */
}

.nav-link:hover {
  color: var(--hover);
  /* Changes to a slightly different accent color on hover */
  text-decoration: underline;
  /* Adds an underline on hover for better user experience */
}

/* --- Blog Page Styles --- */
.blog-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.page-heading {
  font-size: 2.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-out;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--fg);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-post-card {
  background-color: var(--bg);
  /* Darker background for cards within the light container */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-post-card h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--fg);
  opacity: 0.6;
  margin-bottom: 15px;
}

.blog-excerpt {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Allows excerpt to take available space */
}

/* Style for the "Read More" button */
.blog-post-card .btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 30px;
  align-self: flex-start;
  /* Aligns button to the left within the card */
}

/* --- Individual Blog Post Detail Styles --- */
.blog-post-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.post-title {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.95rem;
  color: var(--fg);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 30px;
}

.post-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content {
  font-size: 1.1rem;
  color: var(--fg);
  line-height: 1.8;
  margin-bottom: 40px;
}

.post-content h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 1em;
}

.back-to-blog {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 25px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.back-to-blog:hover {
  background-color: var(--accent);
  color: var(--card-bg);
  transform: translateY(-2px);
}

/* Responsive Adjustments for Blog Pages */
@media (max-width: 768px) {

  .blog-container,
  .blog-post-detail {
    margin: 20px 10px;
    padding: 20px;
  }

  .page-heading {
    font-size: 2rem;
  }

  .post-title {
    font-size: 2.2rem;
  }

  .blog-post-card h2 {
    font-size: 1.5rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .blog-list {
    grid-template-columns: 1fr;
    /* Stack cards on small screens */
  }
}

/* Light mode specific adjustments for blog */
body.light-mode .blog-container,
body.light-mode .blog-post-detail {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  /* Lighter shadow */
}

body.light-mode .blog-post-card {
  background-color: #f8f8f8;
  /* Slightly off-white for cards in light mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Lighter shadow for cards */
}

body.light-mode .blog-post-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .search-container {
            position: relative;
            margin-bottom: 1.5rem;
        }

 .search-bar {
          
            width: 100%;
            padding: 1rem 1rem 1rem 3rem;
            border: 2px solid #000000;
            border-radius: 50px;
            font-size: 1rem;
            background: rgb(221, 226, 224);
            box-shadow: 0 4px 15px rgb(241, 231, 231);
            transition: all 0.3s ease;
        }

        .search-bar:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 4px 20px rgba(247, 247, 247, 0.3);
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #151313;
            font-size: 1.2rem;
        }

        .logo {
          border: 2px solid transparent;
            border-radius: 25px;
            background: rgba(0, 0, 0, 0.9);
            text-align: center;
            font-size: 2rem;
            font-weight: bold;
            -webkit-background-clip: text;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .filters {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 2px solid transparent;
            border-radius: 25px;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .filter-btn:hover {
            background: rgba(102, 126, 234, 0.1);
            border-color: #f6f8f4;
        }

        .filter-btn.active {
            background: #0b0b0a;
            color: white;
            border-color: #e7eeec;
        }

        .main-content {
            padding: 2rem 0;
        }

        .category-section {
            margin-bottom: 3rem;
        }

        .category-title {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            color: white;
            text-align: center;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .meal-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .meal-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
        }

        .meal-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }

        /* .meal-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(45deg, #59cead, #deffca);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            position: relative;
        } */

        .meal-type-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            color: white;
        }

        .veg { background: #4caf50; }
        .non-veg { background: #36f4c5; }

        .meal-time-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            background: rgba(0, 0, 0, 0.7);
            color: white;
        }

        .meal-content {
            padding: 1.5rem;
        }

        .meal-name {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .meal-benefit {
            color: #66eab7;
            font-style: italic;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .meal-ingredients {
            margin-bottom: 1rem;
        }

        .ingredients-title {
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #555;
        }

        .ingredients-list {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .meal-quantity {
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 1rem;
        }

        .nutrition-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .nutrition-item {
            text-align: center;
            padding: 0.75rem;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .nutrition-value {
            font-weight: bold;
            color: #333;
            font-size: 1.1rem;
        }

        .nutrition-label {
            font-size: 0.8rem;
            color: #666;
            margin-top: 0.2rem;
        }

        .no-results {
            text-align: center;
            padding: 3rem;
            color: white;
            font-size: 1.2rem;
        }

        .hidden {
            display: none;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 0.5rem;
            }

            .logo {
                font-size: 1.5rem;
            }

            .filters {
                gap: 0.3rem;
            }

            .filter-btn {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }

            .meal-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .category-title {
                font-size: 1.4rem;
            }

            .nutrition-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 0.3rem;
            }

            .nutrition-item {
                padding: 0.5rem 0.25rem;
            }

            .nutrition-value {
                font-size: 0.9rem;
            }

            .nutrition-label {
                font-size: 0.7rem;
            }
        }
        #searchInput {
          color: white;
        }
        .meal-image {
          position: relative;
          width: 100%;
          height: 200px;
          overflow: hidden;
          border-radius: 12px 12px 0 0;
          background: linear-gradient(45deg, #59cead, #deffca);
        }

        .meal-photo {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }