/* Testimonials Section Styles */
.testimonial {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.testimonial-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-item:hover::before {
  opacity: 1;
}

.testimonial-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-icon {
  transform: scale(1.1);
  opacity: 0.2;
}

.testimonial-rating {
  color: #ffc107;
  font-size: 18px;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.testimonial-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-text::after {
  width: 100px;
}

.testimonial-author {
  margin-top: 20px;
}

.testimonial-author h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-author p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Animation for testimonial items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.testimonial-item:nth-child(1) {
  animation-delay: 0.1s;
}
.testimonial-item:nth-child(2) {
  animation-delay: 0.2s;
}
.testimonial-item:nth-child(3) {
  animation-delay: 0.3s;
}
.testimonial-item:nth-child(4) {
  animation-delay: 0.4s;
}
.testimonial-item:nth-child(5) {
  animation-delay: 0.5s;
}
.testimonial-item:nth-child(6) {
  animation-delay: 0.6s;
}
.testimonial-item:nth-child(7) {
  animation-delay: 0.7s;
}
.testimonial-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-item {
    padding: 20px;
  }

  .testimonial-text {
    font-size: 15px;
  }

  .testimonial-icon {
    font-size: 30px;
  }
}

/* Global Transitions */
* {
  transition: all 0.3s ease-in-out;
}

/* Header & Navigation */
.navbar-brand span {
  position: relative;
  display: inline-block;
}

.navbar-brand span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-brand:hover span::after {
  width: 100%;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Service Cards */
.service {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.service-item {
  padding: 2.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-rgb), 0.05),
    transparent
  );
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.service-item:hover::before {
  opacity: 1;
}

.service-icon {
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.service-icon::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon::after {
  width: 60px;
  height: 60px;
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-item:hover .service-icon i {
  transform: scale(1.1);
}

.service-item h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.service-item h4::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: all 0.3s ease;
}

.service-item:hover h4::after {
  width: 60px;
}

.service-item p {
  margin-bottom: 0;
  color: #6c757d;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.service-features li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.service-features li i {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 1rem;
}

.service-item:hover .service-features li {
  transform: translateX(5px);
}

.service-btn {
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-btn .btn-small {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-note {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Apply animations to service items */
.service .animated {
  opacity: 0;
}

.service .fadeInUp {
  animation: serviceFadeInUp 0.6s ease forwards;
}

@keyframes serviceFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item:nth-child(1) {
  animation-delay: 0.1s;
}
.service-item:nth-child(2) {
  animation-delay: 0.2s;
}
.service-item:nth-child(3) {
  animation-delay: 0.3s;
}
.service-item:nth-child(4) {
  animation-delay: 0.4s;
}
.service-item:nth-child(5) {
  animation-delay: 0.5s;
}
.service-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive adjustments for service items */
@media (max-width: 991px) {
  .service-item {
    padding: 2rem;
    margin-bottom: 30px;
  }

  .service-icon i {
    font-size: 2rem;
  }

  .service-item h4 {
    font-size: 1.1rem;
  }

  .service-features li {
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .service-item:hover {
    transform: translateY(-5px);
  }

  .service-item:hover .service-features li {
    transform: none;
  }
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-main {
  transition: all 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonial Cards */
.testimonial-item {
  transition: all 0.3s ease;
}

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

.testimonial-icon {
  transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-icon {
  transform: scale(1.1);
}

/* Service Area Links */
.service-list li {
  position: relative;
  padding-left: 20px;
  transition: all 0.3s ease;
}

.service-list li:hover {
  padding-left: 25px;
  color: var(--primary-color);
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.service-list li:hover::before {
  opacity: 1;
}

/* FAQ Accordion */
.card-header button {
  transition: all 0.3s ease;
}

.card-header button:hover {
  color: var(--primary-color) !important;
}

/* Contact Info Items */
.contact-info-item {
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 8px;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Links */
.footer-menu a {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

/* Scroll to Top Button */
.scroll-to-top {
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.section-title:hover h2::after {
  width: 100px;
}

/* Counter Items */
.counter-item {
  transition: all 0.3s ease;
}

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

.counter-stat {
  transition: all 0.3s ease;
}

.counter-item:hover .counter-stat {
  color: var(--primary-color);
}

/* Benefit Cards */
.benefit-card {
  transition: all 0.3s ease;
  padding: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.benefit-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon i {
  transform: scale(1.2);
}

.benefit-card h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Dark Section Hover Effects */
.bg-dark .benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark .benefit-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

/* Responsive adjustments for benefit cards */
@media (max-width: 768px) {
  .benefit-card {
    padding: 2rem;
  }

  .benefit-icon i {
    font-size: 2rem;
  }

  .benefit-card h4 {
    font-size: 1.1rem;
  }
}

/* Commercial Service Content */
.commercial-service-content {
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 8px;
}

.commercial-service-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Residential Service Cards */
.residential-service-card {
  transition: all 0.3s ease;
  padding: 2rem;
  border-radius: 8px;
}

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

.service-icon {
  transition: all 0.3s ease;
}

.residential-service-card:hover .service-icon {
  transform: scale(1.2);
}

/* Google Map Container */
.google-map {
  transition: all 0.3s ease;
}

.google-map:hover {
  transform: scale(1.02);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply Animations */
.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.slideInLeft {
  animation-name: slideInLeft;
}

.slideInRight {
  animation-name: slideInRight;
}

/* Stagger Animation Delays */
.service-item:nth-child(1) {
  animation-delay: 0.1s;
}
.service-item:nth-child(2) {
  animation-delay: 0.2s;
}
.service-item:nth-child(3) {
  animation-delay: 0.3s;
}
.service-item:nth-child(4) {
  animation-delay: 0.4s;
}
.service-item:nth-child(5) {
  animation-delay: 0.5s;
}
.service-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .service-item,
  .benefit-card,
  .commercial-service-content,
  .residential-service-card {
    transform: none !important;
  }

  .navbar-brand span::after,
  .nav-link::after {
    display: none;
  }
}

/* FAQ Section Styles */
.faq {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.faq .card {
  border: none;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.faq .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq .card-header {
  background: transparent;
  border: none;
  padding: 1.5rem;
  position: relative;
}

.faq .card-header button {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
}

.faq .card-header button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq .card-header button[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq .card-header button:hover {
  color: var(--primary-color);
}

.faq .card-body {
  padding: 0 1.5rem 1.5rem;
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

.faq .card-header button[aria-expanded="true"] {
  color: var(--primary-color);
}

.faq .accordion .card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.faq .accordion .card:nth-child(1) {
  animation-delay: 0.1s;
}
.faq .accordion .card:nth-child(2) {
  animation-delay: 0.2s;
}
.faq .accordion .card:nth-child(3) {
  animation-delay: 0.3s;
}
.faq .accordion .card:nth-child(4) {
  animation-delay: 0.4s;
}
.faq .accordion .card:nth-child(5) {
  animation-delay: 0.5s;
}

@media (max-width: 768px) {
  .faq .card-header button {
    font-size: 1rem;
  }

  .faq .card-body {
    font-size: 0.95rem;
    padding: 0 1.25rem 1.25rem;
  }
}
