:root {
  /* Color Palette - Analog color scheme with eco-minimalist theme */
  --primary-color: #3a7d44; /* Main brand green */
  --primary-dark: #2a5d34; /* Darker green for hover states */
  --primary-light: #5c9c65; /* Lighter green for backgrounds */
  --secondary-color: #4a6d7c; /* Complementary blue-green */
  --accent-color: #d9b44a; /* Warm accent for call to actions */
  --text-primary: #333333; /* Main text color */
  --text-secondary: #6b6b6b; /* Secondary text color */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --bg-light: #f5f8f5; /* Light background */
  --bg-white: #ffffff; /* White background */
  --bg-dark: #263238; /* Dark background for footer */
  --success-color: #4caf50; /* Success messages */
  --error-color: #f44336; /* Error messages */
  --border-radius: 6px; /* Consistent border radius */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for cards */
  --transition-speed: 0.3s; /* Standard transition speed */
}

/* Typography */
body {
  font-family: 'Lato', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-title {
  position: relative;
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Divider styling */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 30px;
}

/* Base Layout */
section {
  padding: 80px 0;
  position: relative;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

/* Navigation */
.navbar {
  transition: all 0.4s ease-in-out;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-brand {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

/* Button Styles - Global */
.btn {
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 5px 12px rgba(58, 125, 68, 0.2);
}

.btn-outline-light {
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--text-light);
  color: var(--primary-color);
  box-shadow: 0 5px 12px rgba(255, 255, 255, 0.2);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0;
  font-weight: 600;
  position: relative;
}

.btn-link:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.btn-link:hover:after,
.btn-link:focus:after {
  transform: scaleX(1);
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding: 0;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-section h1,
.hero-section .lead {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Parallax Effect */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* About Section */
.about-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.about-image-container img {
  transition: transform 1.5s ease;
}

.about-image-container:hover img {
  transform: scale(1.05);
}

.stat-box {
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.stat-box h4 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
}

/* Services Section */
.service-card {
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.card-image {
  width: 100%;
  overflow: hidden;
  height: 220px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.service-card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 25px;
  text-align: center;
}

.card-title {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.progress {
  height: 6px;
  border-radius: 3px;
}

.progress-bar {
  background-color: var(--primary-color);
}

/* Process Section */
.process-item {
  padding: 30px 20px;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.process-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Projects Section */
.project-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow);
}

.project-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.1);
}

/* Resources Section */
.resource-card {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  position: relative;
}

.resource-icon:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Blog Section */
.blog-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow);
}

.blog-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.1);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* History Section */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: 2;
}

.timeline-item:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--primary-light);
}

.timeline-item:last-child:after {
  display: none;
}

/* Press Section */
.press-card {
  border: none;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.press-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-light);
  position: relative;
}

.press-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* News Section */
.news-item {
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
  margin-bottom: 20px;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Contact Section */
.contact-info {
  border-radius: var(--border-radius);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-floating > .form-control,
.form-floating > .form-select {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(58, 125, 68, 0.25);
}

.map-container {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.map-container iframe {
  display: block;
  border-radius: var(--border-radius);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.footer h3, .footer h4, .footer h5, .footer h6 {
  color: var(--text-light);
}

.footer a {
  color: var(--text-light);
  transition: color var(--transition-speed);
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  transition: color var(--transition-speed);
}

.social-links a:hover {
  color: var(--primary-light);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  padding: 40px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--success-color);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Terms & Privacy Pages */
.terms-page, .privacy-page {
  padding-top: 100px;
  padding-bottom: 50px;
}

.terms-page h2, .privacy-page h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.terms-page p, .privacy-page p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-collapse {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .timeline {
    padding-left: 0;
  }
}

/* AOS Animation Override */
[data-aos] {
  pointer-events: auto !important;
}

.aos-animate {
  pointer-events: auto !important;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.rounded-custom {
  border-radius: var(--border-radius);
}

.shadow-custom {
  box-shadow: var(--box-shadow);
}

/* Adding custom glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}