:root {
  --primary: #038c33;
  --secondary: #022601;
  --tertiary: #cad9a9;
  --accent: #732c1d;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --white: #ffffff;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

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

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

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

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

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

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

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

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

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #5e241a;
  border-color: #5e241a;
  color: var(--white);
}

.btn-outline-primary-custom {
  border-color: var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Header Styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

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

.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--white) !important;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0;
  background-color: var(--tertiary);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(3, 140, 51, 0.8) 0%, rgba(2, 38, 1, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

/* Services Section */
.service-card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* CTA Section */
.cta-section {
  background-color: var(--tertiary);
  padding: 5rem 0;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(3, 140, 51, 0.9) 0%, rgba(2, 38, 1, 0.9) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

/* Testimonial Section */
.testimonial-card {
  border: none;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-links h5 {
  color: var(--tertiary);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--tertiary);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* About Page */
.about-img {
  border-radius: 10px;
  overflow: hidden;
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.team-member img {
  transition: all 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
}

/* Services Page */
.service-detail {
  padding: 5rem 0;
}

.service-detail-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Portfolio Page */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.portfolio-item img {
  transition: all 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 140, 51, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Blog Page */
.blog-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img {
  height: 200px;
  object-fit: cover;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Contact Page */
.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Form Styles */
.form-control {
  border-radius: 5px;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}

/* Modal Popup */
.modal-header {
  background-color: var(--primary);
  color: var(--white);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .hero {
    padding: 6rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
  }

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

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}
