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

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Navigation styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #005b1f;
  text-decoration: none;
}
.logo span {
  color: #2ab54d;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav a:hover {
  color: #2ab54d;
}

.burger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.1);
  }
  .nav.active {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  .burger {
    display: block;
  }
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  color: #ffffff;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use the generated abstract hero background */
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: -1;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #2ab54d;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #218a3c;
}
.btn.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* Section headings */
h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-lead {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #555;
  text-align: center;
}

/* Services Section */
.services {
  padding: 80px 2rem;
  background: #f7f7f7;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}
.service-item {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.service-item i {
  font-size: 2rem;
  color: #2ab54d;
  margin-bottom: 1rem;
}
.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.service-item p {
  color: #555;
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
  padding: 80px 2rem;
  background: #ffffff;
}
.before-after-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}
.ba-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 300px;
}
.ba-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-container .ba-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.3s ease;
}
.ba-container .ba-slider {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 2;
  opacity: 0.85;
}

/* About Section */
.about {
  padding: 80px 2rem;
  background: #f7f7f7;
}
.about-content {
  max-width: 1000px;
  margin: auto;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
.about-content p:not(:last-child) {
  margin-bottom: 1rem;
}
.timeline {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.timeline-year {
  font-weight: 700;
  color: #2ab54d;
  min-width: 70px;
}
.timeline-text {
  flex: 1;
  color: #555;
}

/* Contact Section */
.contact {
  padding: 80px 2rem;
  background: #ffffff;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}
.contact-item {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #2ab54d;
}
.contact-item p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.contact-item a {
  color: #2ab54d;
  text-decoration: none;
}
.contact-item a.btn {
  display: inline-block;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: #222;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}
footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Reveal effect for scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Canvas for falling leaves */
#leaf-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

/* Language selector */
.lang-select {
  margin-left: 1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
}

/* Chat widget styles */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  font-family: inherit;
}

/* Toggle button */
.chat-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2ab54d;
  color: #fff;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.chat-toggle:hover {
  background: #218a3c;
}

/* Chat window container */
.chat-window {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  max-height: 450px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-window.open {
  display: flex;
}

.chat-header {
  background: #2ab54d;
  color: #ffffff;
  padding: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.chat-welcome {
  padding: 0.8rem;
  font-size: 0.85rem;
  color: #555;
  border-bottom: 1px solid #eee;
}

.chat-suggestions {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #eee;
}
.chat-suggestions-title {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}
.chat-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chat-suggestions li {
  background: #f0f5f3;
  border: 1px solid #dce8e0;
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.chat-suggestions li:hover {
  background: #e4f0ea;
}

.chat-messages {
  flex: 1;
  padding: 0.8rem;
  overflow-y: auto;
  background: #f9f9f9;
}
.message {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.85rem;
  line-height: 1.3;
  word-wrap: break-word;
}
.message.user {
  background: #d1e7d6;
  color: #234e2a;
  align-self: flex-end;
}
.message.bot {
  background: #e8e8e8;
  color: #333;
  align-self: flex-start;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #eee;
  padding: 0.5rem;
  background: #fafafa;
}
.chat-input-area input[type="text"] {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 0.85rem;
}
.chat-input-area button {
  margin-left: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #2ab54d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.chat-input-area button:hover {
  background: #218a3c;
}