:root {
  --primary-green: #2e8b57;
  --secondary-green: #3cb371;
  --light-green: #90ee90;
  --dark-green: #1e5631;
  --earth-brown: #8b4513;
  --earth-tan: #d2b48c;
  --earth-yellow: #f4e04d;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --light-gray: #e8f5e9;
  --text-dark: #333333;
  --text-light: #666666;
  --shadow: rgba(46, 139, 87, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  --gradient-earth: linear-gradient(135deg, var(--earth-brown), var(--earth-tan));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  border: none;
  transition: 0.3s;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--dark-green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-success {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  color: #fff;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-outline-primary {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section-padding {
  padding: 100px 0;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  font-size: 2rem;
  color: var(--dark-green);
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.leaf-loader {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.leaf {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50% 0;
  background-color: var(--primary-green);
  animation: 2s ease-in-out infinite leaf-float;
}

.leaf1 { top: 0; left: 30px; animation-delay: 0s; }
.leaf2 { top: 30px; right: 0; animation-delay: 0.5s; background-color: var(--secondary-green); }
.leaf3 { bottom: 0; left: 30px; animation-delay: 1s; background-color: var(--light-green); }
.leaf4 { top: 30px; left: 0; animation-delay: 1.5s; background-color: var(--earth-brown); }

@keyframes leaf-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

#preloader p {
  font-size: 1.2rem;
  color: var(--dark-green);
  font-weight: 600;
  letter-spacing: 1px;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: 0.3s;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-green) !important;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-green);
}

.brand-suffix {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-green);
}

.eco-icon,
.vision-list i {
  color: var(--primary-green);
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 16px !important;
  border-radius: 50px;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: var(--gradient-primary);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hero-section {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1678690832871-8b9993c76aa8?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(30, 86, 49, 0.8), rgba(46, 139, 87, 0.6));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .highlight {
  color: var(--earth-yellow);
  -webkit-text-fill-color: var(--earth-yellow);
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.about-section,
.projects-section,
.contact-section {
  background-color: var(--white);
}

.mission-section {
  background-color: var(--light-gray);
}

.eco-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary-green);
  transition: 0.3s;
}

.eco-card:hover,
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow);
}

.eco-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: var(--white) !important;
}

.eco-card h4,
.project-content h4 {
  color: var(--dark-green);
  margin-bottom: 1rem;
}

.mission-progress h5 {
  color: var(--dark-green);
  margin-bottom: 8px;
}

.progress {
  height: 20px;
  border-radius: 10px;
  background-color: rgba(46, 139, 87, 0.1);
  overflow: visible;
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: 10px;
  position: relative;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 20px;
}

.vision-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.vision-list {
  list-style: none;
  padding-left: 0;
}

.vision-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.vision-list li:last-child {
  border-bottom: none;
}

.project-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  height: 100%;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}

.project-card:hover .product-img {
  transform: scale(1.05);
}

.project-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-green);
  font-weight: 600;
  transition: 0.3s;
}

.project-link:hover {
  color: var(--dark-green);
  transform: translateX(5px);
}

.cta-section {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1592424002053-21f369ad7fdb?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(30, 86, 49, 0.85), rgba(139, 69, 19, 0.7));
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.contact-info h4 {
  color: var(--dark-green);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.5rem;
  margin-top: 5px;
  color: var(--primary-green);
}

.info-item h5 {
  color: var(--dark-green);
  margin-bottom: 5px;
}

.info-item a {
  color: var(--primary-green);
}

.info-item a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 2rem;
}

.social-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  margin-right: 10px;
  background-color: var(--light-gray);
  color: var(--primary-green);
  transition: 0.3s;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-5px);
}

.contact-form {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

.footer {
  background: linear-gradient(135deg, #0f3d2e, #145a32);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff !important;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-suffix {
  color: #a9dfbf;
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
}

.footer h5 {
  color: #a9dfbf;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer h5::after {
  content: "";
  width: 35px;
  height: 3px;
  background: #2ecc71;
  display: block;
  margin-top: 8px;
  border-radius: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.footer-links a:hover {
  color: #2ecc71;
  padding-left: 5px;
}

.subscribe-form .input-group {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  overflow: hidden;
}

.subscribe-form .input-group-text {
  background: transparent;
  border: none;
  color: #2ecc71;
}

.subscribe-form input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-btn {
  background: #2ecc71;
  color: #0f3d2e;
  font-weight: 600;
  border-radius: 30px;
  padding: 0 20px;
}

.subscribe-btn:hover {
  background: #27ae60;
  color: #fff;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-right: 8px;
  color: #fff;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #2ecc71;
  color: #0f3d2e;
  transform: translateY(-4px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
}

@media (max-width: 1199px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }
}

@media (max-width: 575px) {
  .contact-form {
    padding: 25px 20px;
  }

  .footer {
    padding: 50px 0 25px;
  }
}
