:root {
  --primary-color: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --secondary-color: #f5f8f4;
  --accent-color: #8bc34a;
  --text-dark: #333;
  --text-light: #f5f5f5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --btn-outline: #2e7d32;
}

/* SMC color code:#005daa; */

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-dark);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0.8rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:focus,
.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-brand img {
  height: 60px;
  width: 60px;
}
.navbar-brand {
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  color: rgba(0, 0, 0, 0.9);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text-dark);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after,
.nav-link:focus:after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
#home {
  background: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 0%)),
    url(../images/hero.jpeg) no-repeat center center / cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
  padding: 6rem 0 4rem;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

#home .container {
  position: relative;
  z-index: 2;
}

#home h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

#home .lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  border-width: 2px;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* About Section */
#about {
  background: white;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/leaf-pattern.png") repeat;
  opacity: 0.07;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

.feature-img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.feature-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #2e7d32;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.badge-icon {
  background-color: var(--primary-light);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  /* margin-bottom: 1.5rem; */
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-item:hover {
  background-color: rgba(76, 175, 80, 0.05);
}

.feature-icon {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.feature-content h5 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.feature-content p {
  margin-bottom: 0;
  color: var(--text-dark);
  opacity: 0.9;
}

/* Counts Section */
#counts {
  background: linear-gradient(135deg, #f5f8f4, #e8f5e9);
  position: relative;
  padding: 6rem 0;
}

.count-box {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid var(--primary-color);
  height: 100%;
}

.count-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.count-icon {
  background-color: var(--primary-light);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.count-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.count-label {
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Steps Section */
#steps {
  background: white;
  position: relative;
  padding: 6rem 0;
}

.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-row {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.timeline-box {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

.timeline-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.timeline-img:hover {
  transform: scale(1.03);
}

/* Responsive adjustments for timeline */
@media (max-width: 767px) {
  .timeline::before {
    left: 2rem;
  }

  .timeline-row::before {
    left: 2rem;
  }

  .timeline-box {
    margin-left: 4rem;
    text-align: left !important;
  }

  .timeline-img {
    margin-top: 2rem;
  }
}

/* Complaint CTA Section */
.parallax-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/cta-bg.jpg") center center / cover fixed no-repeat;
  padding: 6rem 0;
  color: white;
  position: relative;
}

.parallax-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--secondary-color);
}

.parallax-section .lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 0;
}

.cta-btn {
  background: white;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn:hover,
.cta-btn:focus {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Complaint Form Section */
#complaint-form {
  background: linear-gradient(135deg, #f5f8f4, #e8f5e9);
  padding: 6rem 0;
}

.complaint-form-card {
  background: white;
  border-top: 5px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  padding: 2rem;
}

@media (min-width: 992px) {
  .complaint-form-card {
    padding: 3rem;
  }
}

.complaint-form-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

textarea.form-control {
  min-height: 150px;
}

.form-text {
  color: #6c757d;
  font-size: 0.875rem;
}

.submit-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  width: fit-content;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.submit-btn:hover,
.submit-btn:focus {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* File upload custom styling */
.file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  background-color: #e9ecef;
  border-color: var(--primary-color);
}

.file-upload-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-description {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  color: white;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-link:hover,
.social-link:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-link:hover,
.footer-link:focus {
  color: white;
  text-decoration: underline;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Section Headings */
.section-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

.section-heading:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-heading.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: #6c757d;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes */
.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-md);
}

/* Spacing */
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.mb-6 {
  margin-bottom: 6rem;
}

/* Loading spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url("images/cityscape.jpg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-section .lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Button Enhancements */
.btn-group .btn {
  transition: all 0.3s ease;
}

.btn-group .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 500px;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 250px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 300px;
  }

  .timeline-box {
    margin-left: 3rem;
  }
}
