/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Arial", sans-serif;
}

/* Color Variables */
:root {
  --primary-color: #4caf50;
  --primary-light: #8bc34a;
  --primary-dark: #2e7d32;
  --secondary-color: #388e3c;
  --dark-color: #212121;
  --light-color: #f4f4f4;
  --accent-color: #ffc107;
  --accent-light: #ffe082;
  --text-light: #757575;
  --white: #ffffff;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
  opacity: 0;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Header Styles */
.top-bar {
  background-color: var(--primary-dark);
  color: white;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  animation: fadeIn 0.8s ease;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-right span {
  transition: all 0.3s ease;
}

.top-bar-right span:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.divider {
  margin: 0 15px;
  height: 15px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

.navbar {
  background-color: var(--white);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideInRight 0.8s ease;
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(5deg);
}

.logo-text {
  font-weight: 600;
  font-size: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.logo:hover .logo-text {
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.appointment-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.appointment-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
  z-index: -1;
}

.appointment-btn:hover:before {
  left: 100%;
}

.appointment-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background-color: var(--primary-color);
}

/* Hero Section */
.banner-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.caption .subtitle {
  background: black;
  padding: 5px 15px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.caption h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 1rem 0;
  line-height: 1.2;
}

.caption .btn {
  display: inline-block;
  padding: 10px 25px;
  background: #f57c00;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.caption .btn:hover {
  background: #e56700;
}

/* Navigation buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 2rem;
  z-index: 1000;
  border-radius: 50%;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

@media (max-width: 768px) {
  .caption h1 {
    font-size: 1.5rem;
  }

  .caption {
    bottom: 25%;
    left: 30%;
  }
}

/* trust section */
.trust-section {
  background-color: #7acc7b;
  color: #ffffff;
  padding: 2.5rem 1rem;
}

.trust-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 1rem;
}

.trust-text {
  flex: 1 1 60%;
}

.trust-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.trust-text p {
  font-size: 1rem;
  line-height: 1.5;
}

.trust-action {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-end;
}

.trust-btn {
  background-color: #83ec5d;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.trust-btn:hover {
  background-color: #e56c00;
}

/* Responsive */
@media (max-width: 768px) {
  .trust-container {
    flex-direction: column;
    text-align: center;
  }

  .trust-action {
    justify-content: center;
  }

  .trust-text {
    flex: 1 1 100%;
  }

  .trust-btn {
    float: left;
  }
}

/* Services Section */
.services {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.services h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.services h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.services-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 15px;
  padding: 40px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.service-card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover:before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 5px solid var(--light-color);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover img {
  transform: scale(1.1);
  border-color: var(--primary-light);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.learn-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.learn-more:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.learn-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.learn-more:hover:after {
  width: 100%;
}

.learn-more i {
  transition: all 0.3s ease;
  margin-left: 3px;
}

.learn-more:hover i {
  transform: translateX(5px);
}

/* Stats Section */
.stats-section {
  background: #222 url("https://kspestsolution.in/img/resource/nmbr-bg.jpg")
    no-repeat center center/cover;
  padding: 3rem 1rem;
  color: #fff;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  /* flex-wrap: wrap; */
  max-width: 1200px;
  margin: auto;
  /* gap: 2rem; */
}

.stat-box {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #25f500;
}

.stat-box h3 {
  font-size: 2.5rem;
  margin: 0;
}

.stat-box p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: row;
    align-items: center;
  }

  .stat-box {
    margin-bottom: 2rem;
  }
}

/* Why Choose Us Section */
.why-choose-us {
  background-color: var(--light-color);
  padding: 80px 5%;
}

.why-choose-us h2 {
  margin-bottom: 50px;
  font-size: 2rem;
  color: var(--primary-color);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Contact Section */
.pest-contact-form {
  background: #b8ec96;
  padding: 2rem 1rem;
  font-family: "Segoe UI", sans-serif;
}

.form-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.form-heading h2 {
  font-size: 2rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.form-image img {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
}

.form-fields {
  flex: 1 1 400px;
}

.form-fields form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input,
.form-row select {
  flex: 1 1 48%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

button {
  background: #f57c00;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
}

button:hover {
  background: #e56700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-row input,
  .form-row select {
    flex: 1 1 100%;
  }

  .form-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .form-fields {
    width: 100%;
  }

  .form-image {
    display: none;
  }
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 5% 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-section p {
  margin-bottom: 10px;
}

.footer-section i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0);
  }

  100% {
    transform: perspective(400px) rotateY(180deg);
  }
}

.gallery img {
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.gallery img:hover {
  animation: flip 0.8s ease-in-out forwards;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 20px 0;
  }

  .appointment-btn {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .hamburger {
    display: block;
  }

  .mobile-hide {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

}
/* JBH Steps Section */
.jbh-steps-section {
  background-color: #9df48f;
  padding: 3rem 1rem;
  color: white;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.jbh-steps-container {
  max-width: 1200px;
  margin: 0 auto;
}

.jbh-steps-title {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.jbh-steps-title strong {
  font-weight: 700;
}

.jbh-steps-underline {
  width: 60px;
  height: 3px;
  background-color: white;
  margin: 0.5rem auto 2rem;
}

.jbh-steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.jbh-step-item {
  flex: 1 1 180px;
  max-width: 200px;
}

.jbh-step-icon {
  background-color: white;
  color: #000;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.jbh-step-label {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .jbh-steps-title {
    font-size: 1.8rem;
  }

  .jbh-step-icon {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }

  .jbh-step-label {
    font-size: 1rem;
  }
}
/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px); /* subtle background blur */
  animation: fadeIn 0.3s ease;
}

/* Modal content */
.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  font-family: "Segoe UI", sans-serif;
}

/* Close button */
.close {
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

/* Form inputs */
.modal-content input,
.modal-content select,
.modal-content button {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

/* Button */
.modal-content button[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.modal-content button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Label styling */
.modal-content label {
  display: block;
  margin-bottom: -30px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Modal animation */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    background-color: rgba(0, 0, 0, 0.5);
  }
}
