* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Ensure font smoothing is consistent */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* Color variables */
:root {
  --primary: #2e6f40;
  --secondary: #253d2c;
  --accent: #68ba7f;
  --light: #cfffdc;
  --dark: #0f172a;
}

/* Updated hero gradient with new colors */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(46, 111, 64, 0.9) 0%,
    rgba(37, 61, 44, 0.85) 100%
  );
}

.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.btn-primary {
  background: linear-gradient(135deg, #2e6f40 0%, #253d2c 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 111, 64, 0.3);
}

.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  background-color: #25d366;
}

.call-btn {
  background-color: #2e6f40;
}

.service-card {
  transition: all 0.4s ease;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #2e6f40;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: #68ba7f;
}

.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: white;
}

.form-input:focus {
  border-color: #2e6f40;
  box-shadow: 0 0 0 3px rgba(46, 111, 64, 0.2);
}

.section-padding {
  padding: 80px 0;
}

/* Fixed extra padding for specific sections */
#about,
#services,
#why-us,
#testimonials,
#contact-form {
  padding-top: 80px !important;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  #about,
  #services,
  #why-us,
  #testimonials,
  #contact-form {
    padding-top: 60px !important;
  }

  .floating-contact {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Additional styling with new color palette */
.text-primary {
  color: #2e6f40;
}

.text-accent {
  color: #68ba7f;
}

.bg-primary {
  background-color: #2e6f40;
}

.bg-accent {
  background-color: #68ba7f;
}

.border-primary {
  border-color: #2e6f40;
}

/* Light accent backgrounds */
.bg-light-accent {
  background-color: #cfffdc;
}

/* Updated hover effects for links */
a:hover.text-primary {
  color: #68ba7f !important;
}

/* Updated button variations */
.btn-accent {
  background: linear-gradient(135deg, #68ba7f 0%, #2e6f40 100%);
}

.btn-accent:hover {
  box-shadow: 0 10px 20px rgba(104, 186, 127, 0.3);
}

/* Updated focus styles */
:focus {
  outline: 2px solid #68ba7f;
  outline-offset: 2px;
}

/* Updated selection color */
::selection {
  background-color: #68ba7f;
  color: white;
}

/* Improved Swiper styles for testimonials */
.testimonials-swiper {
  padding: 20px 10px 40px !important;
  position: relative;
}

.swiper-slide {
  height: auto;
  padding: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: #2e6f40;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(46, 111, 64, 0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px !important;
  color: white;
}

.swiper-button-next {
  right: -10px !important;
}

.swiper-button-prev {
  left: -10px !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #2e6f40 !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #2e6f40 !important;
}

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* Stats container */
.stats-container {
  background: linear-gradient(135deg, #253d2c 0%, #2e6f40 100%);
}

/* Fixed text colors for dark backgrounds */
.bg-dark .text-gray-800,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark p:not(.text-gray-300):not(.text-gray-400) {
  color: white !important;
}

/* Ensure proper text contrast */
.text-gray-800 {
  color: #1f2937;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

/* Ripple animation */
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Testimonial customer image */
.testimonial-card .customer-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(46, 111, 64, 0.2);
}

/* Improved form styling */
.bg-gray-50 {
  background-color: #f9fafb;
}

/* Add some spacing before sections for better visual hierarchy */
section {
  scroll-margin-top: 80px;
}

/* Contact page specific styles */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ section styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #2e6f40;
  background-color: #f8fafc;
}

/* Map placeholder styling */
.map-placeholder {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Active navigation link */
.nav-active {
  color: #2e6f40 !important;
  font-weight: 600;
}

/* Additional responsive enhancements for service pages */
.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 6rem 2rem;
  }
}

/* Benefit card responsive styles */
.benefit-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #2e6f40;
}

@media (max-width: 640px) {
  .benefit-card {
    padding: 1.25rem;
  }
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

/* Floating contact buttons responsive */
@media (max-width: 640px) {
  .floating-contact {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Improved container max-widths */
.container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Smooth transitions for all interactive elements */
a,
button,
.btn-primary,
.service-card,
.benefit-card,
.gallery-item {
  transition: all 0.3s ease;
}

/* Mobile navigation improvements */
#mobile-menu a {
  padding: 0.75rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu a:last-child {
  border-bottom: none;
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better spacing for mobile */
@media (max-width: 640px) {
  .space-y-6 > * + * {
    margin-top: 1.25rem !important;
  }

  .space-y-8 > * + * {
    margin-top: 1.5rem !important;
  }

  .gap-8 {
    gap: 1.5rem !important;
  }
}
