/* Ensure the parent box element lets the hovered image sit on top */
.special-card-boxes .box {
  position: relative;
  margin: 5px 0px;
}

.special-card-boxes img {
  /* Forces the image to fit its column width perfectly */
  width: 100%;
  height: auto;

  box-shadow:
    0 3px 5px -1px rgba(0, 0, 0, 0.2),
    0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12);
  border: 10px solid #40b3f1;

  -webkit-transition: 1s;
  -moz-transition: 1s;
  -ms-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
}

.special-card-boxes img:hover {
  -webkit-transform: scale(1.05) rotateZ(3deg); /* Slightly reduced scale & rotation to prevent aggressive overlapping */
  -moz-transform: scale(1.05) rotateZ(3deg);
  -ms-transform: scale(1.05) rotateZ(3deg);
  -o-transform: scale(1.05) rotateZ(3deg);
  transform: scale(1.05) rotateZ(3deg);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow to emphasize the lifting effect */

  /* Crucial: Brings the currently hovered item to the absolute front layer */
  position: relative;
  z-index: 99;

  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

/*** 

=============================================

    Latest project Area style

=============================================

***/

.latest-project-area {
  background-attachment: fixed;

  background-position: center top;

  background-repeat: no-repeat;

  background-size: cover;

  position: relative;

  padding-top: 80px;

  padding-bottom: 80px;

  z-index: 1;
}

.latest-project-area::before {
  background: rgba(25, 25, 25, 0.3);

  content: "";

  height: 100%;

  left: 0;

  position: absolute;

  top: 0;

  width: 100%;

  z-index: -1;
}

.latest-project-area .sec-title {
}

.latest-project-area .sec-title:before {
  background: #40b3f1;
}

.latest-project-area .sec-title p {
  color: #ffffff;
}

.latest-project-area .sec-title h1 {
  color: #ffffff;
}

.latest-project-area .button a {
  padding: 12px 16px;
  text-decoration: none !important;
}

.single-latest-project .img-holder {
  display: block;

  position: relative;

  overflow: hidden;
}

.single-latest-project .img-holder img {
  -webkit-transform: scale(1);

  transform: scale(1);

  -webkit-transition: all 0.5s ease 0s;

  transition: all 0.5s ease 0s;

  width: 100%;
}

.single-latest-project .img-holder .overlay-box .box .content a i {
  background: #fdc716 none repeat scroll 0 0;

  border-radius: 50%;

  color: #ffffff;

  display: inline-block;

  font-size: 20px;

  height: 45px;

  line-height: 48px;

  width: 45px;

  -webkit-transition: all 500ms ease;

  transition: all 500ms ease;
}

.single-latest-project:hover .overlay-box {
  opacity: 1;

  filter: alpha(opacity=100);

  -webkit-transform: rotateY(0deg) scale(1, 1);

  transform: rotateY(0deg) scale(1, 1);
}

.single-latest-project:hover .img-holder img {
  -webkit-transform: scale(1.1);

  transform: scale(1.1);
}

.single-latest-project .img-holder .overlay-box .box .content a:hover i {
  background: #292929;
}

.single-latest-project .title-holder {
  background: #ffffff none repeat scroll 0 0;

  margin-top: 10px;

  overflow: hidden;
}

.single-latest-project .title-holder h4 {
  margin: 12px 0 -2px;
}

.single-latest-project .title-holder p {
  color: #01305e;

  margin: 0 0 13px;
}

.services-area {
  padding-top: 80px;

  padding-bottom: 38px;
}
.services-area .single-service-item {
  padding-bottom: 42px;
}

.services-area .single-service-item .img-holder {
  display: block;

  position: relative;

  overflow: hidden;
}

.services-area .single-service-item .img-holder img {
  -webkit-transform: scale(1);

  transform: scale(1);

  -webkit-transition: all 0.5s ease 0s;

  transition: all 0.5s ease 0s;

  width: 100%;
}

.services-area .single-service-item:hover .img-holder .overlay {
  background-color: rgba(1, 48, 94, 0.85);
}

.services-area .single-service-item:hover .img-holder .overlay .box {
  border-color: #fdc716;
}

.services-area .single-service-item:hover .img-holder .overlay .box .content a {
  opacity: 1;

  -webkit-transform: translate3d(0px, 0px, 0px);

  transform: translate3d(0px, 0px, 0px);
}

.services-area .single-service-item:hover .img-holder img {
  -webkit-transform: scale(1.1);

  transform: scale(1.1);
}

.services-area .single-service-item .text-holder {
  padding-left: 60px;

  position: relative;

  padding-top: 30px;
}

.services-area .single-service-item .text-holder .icon {
  background: #f7f7f7 none repeat scroll 0 0;

  color: #292929;

  left: 0;

  position: absolute;

  top: 30px;

  width: 60px;

  height: 60px;

  display: block;

  text-align: center;

  padding: 18px 0;

  -webkit-transition: all 500ms ease 0s;

  transition: all 500ms ease 0s;
}

.services-area .single-service-item .text-holder .icon span:before {
  font-size: 30px;

  -webkit-transition: all 500ms ease 0s;

  transition: all 500ms ease 0s;
}

.services-area .single-service-item .text-holder .text {
  padding-left: 20px;
}

.services-area .single-service-item .text-holder .text h3 {
  margin: -6px 0 8px;
}

.services-area .single-service-item:hover .text-holder .icon {
  background: #fdc716;

  color: #fff;
}

.services-area .single-service-item {
  padding-bottom: 15px;
}

.services-area .single-service-item:hover .img-holder img {
  -webkit-transform: scale(1.4) rotateZ(3deg);
  -moz-transform: scale(1.4) rotateZ(3deg);
  -ms-transform: scale(1.4) rotateZ(3deg);
  -o-transform: scale(1.4) rotateZ(3deg);
  transform: scale(1.4) rotateZ(3deg);
  -webkit-transition: 750ms;
  -moz-transition: 750ms;
  -ms-transition: 750ms;
  -o-transition: 750ms;
  transition: 750ms;
}

.services-area .single-service-item .img-holder img {
  -webkit-transition: 1.3s;
  -moz-transition: 1.3s;
  -ms-transition: 1.3s;
  -o-transition: 1.3s;
  transition: 1.3s;
}
.sec-title h2 {
  color: #292929;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  text-transform: uppercase;
  margin-top: -7px;
}

body {
  /*background-color: #212121;*/
  text-align: center;
}

.snip1533 {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  color: #000;
  display: inline-block;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  margin: 35px 10px 10px;
  max-width: 310px;
  min-width: 250px;
  position: relative;
  text-align: center;
  width: 100%;
  background-color: #ffffff;
  border-radius: 5px;
  border-top: 5px solid #40b3f1;
}

.snip1533 *,
.snip1533 *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.1s ease-out;
  transition: all 0.1s ease-out;
}

.snip1533 figcaption {
  padding: 13% 10% 12%;
}

.snip1533 figcaption:before {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  color: #40b3f1;
  content: "\f10e";
  font-family: "FontAwesome";
  font-size: 32px;
  font-style: normal;
  left: 50%;
  line-height: 60px;
  position: absolute;
  top: -30px;
  width: 60px;
}

.snip1533 h3 {
  color: #000;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  margin: 10px 0 5px;
}

.snip1533 h4 {
  font-weight: 400;
  margin: 0;
  opacity: 0.5;
}

.snip1533 blockquote {
  font-style: italic;
  font-weight: 300;
  margin: 0 0 20px;
  height: 160px;
}

.snip1533 h4 {
  color: #000 !important;
}

/* Marquee section styled to match site theme */
.marquee-section {
  width: 100%;
  background-color: #ffffff;
  /* white background */
  overflow: hidden;
  color: #2b86b7;
  /* site blue */
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(43, 134, 183, 0.2);
  border-bottom: 1px solid rgba(43, 134, 183, 0.2);
}

.marquee-viewport {
  position: relative;
  height: 56px;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  margin: 0 24px;
  color: #2b86b7;
}

/* Subtle pill echoing brand accent */
.text-marquee .marquee-item {
  padding: 8px 16px;
  background-color: rgba(43, 134, 183, 0.08);
  border: 1px solid rgba(43, 134, 183, 0.35);
  border-radius: 30px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .marquee-viewport {
    height: 64px;
  }

  .marquee-item {
    font-size: 16px;
    gap: 10px;
    margin: 0 16px;
  }
}

/* ==========================================================================
   TRUSTED BY GOOGLE
   ========================================================================== */
.trusted-google-section {
  padding: 40px 20px;
  background: var(--white);
}

.google-header {
  /* max-width: 700px; */
  margin: 0 auto 50px;
  text-align: center;
}

.google-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 16px;
  font-weight: 500;
}

.google-header .section-heading {
  font-size: 40px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
  margin-bottom: 16px;
}

.google-text .g-blue {
  color: #4285f4;
}
.google-text .g-red {
  color: #ea4335;
}
.google-text .g-yellow {
  color: #fbbc05;
}
.google-text .g-green {
  color: #34a853;
}

.google-header .section-description {
  font-size: 17px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 700px;
  margin: 10px auto;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #f7fafc;
  border-radius: 50px;
}

.rating-score {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 22px;
}

.star.filled {
  color: #fbbf24;
}

.rating-count {
  font-size: 15px;
  color: #718096;
}

.testimonials-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial-card {
  background: rgba(43, 134, 183, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.quote-icon {
  flex-shrink: 0;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.star-gold {
  color: #fbbf24;
  font-size: 20px;
}

.review-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.7;
  margin-bottom: 24px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  margin-top: 30px;
  bottom: 0;
  left: 30px;
  right: 30px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #40b3f1;
  background: var(--primary);
  color: #40b3f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  font-size: 23px;
}

.reviewer-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
}

.name-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.name-star::after {
  content: "\2605";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--black);
  color: gold;
  border-radius: 50%;
  font-size: 15px;
  padding: 1px;
  position: absolute;
  bottom: -3px;
  right: -8px;
  border: 2px solid var(--white);
  z-index: 2;
  pointer-events: none;
}

.reviewer-role {
  font-size: 14px;
  color: #718096;
}

.google-logo {
  flex-shrink: 0;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e2e8f0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: #4a5568;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
  background: #38b2ac;
  border-color: #38b2ac;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: -25px;
}
.slider-next {
  right: -25px;
}

.google-review-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;

  background-color: #40b3f1;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  color: white;
  text-decoration: none;
}
.google-review-btn:hover {
  color: #000000;
  transform: scale(1.05);
}

.rating-review {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .rating-review {
      justify-content: center;

  }
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  /* Hero */
  .hero-slider-section {
    height: 500px;
  }
  .slide-inner {
    gap: 20px;
  }
  .slide-content-box {
    width: 90%;
  }
  .slide-images-collage {
    width: 50%;
  }
  .slide-title {
    font-size: 44px;
  }
  .popular-services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    gap: 10px;
  }
  .service-card {
    height: 120px;
  }
  .service-label {
    font-size: 13px;
    bottom: 10px;
  }

  /* Why Choose Us */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Offers */
  .offers-layout {
    flex-direction: column;
    text-align: center;
  }
  .offers-left,
  .offers-right {
    width: 100%;
  }
  .offers-nav {
    justify-content: center;
    padding-right: 0;
  }

  /* Stats */
  .stats-modern-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .stats-header {
    text-align: center;
  }

  /* Services Grid */
  .sp-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process */
  .process-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .process-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Results */
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-slider-section {
    height: 550px;
    min-height: auto;
  }
  .slide-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 60px 15px 40px 15px;
  }
  .slide-content-box {
    width: 100%;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
  }
  .slide-title {
    font-size: 30px;
    margin-bottom: 5px;
  }
  .slide-subtitle {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .slide-desc {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .slide-buttons {
    justify-content: center;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }
  .slide-buttons .btn {
    width: auto;
    text-align: center;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .slide-images-collage {
    width: 100%;
    justify-content: center;
    height: 120px;
  }
  .slide-images-collage img {
    display: none;
  }
  .slide.active .center-content .slide-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .popular-services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .service-card {
    height: 90px;
  }
  .service-label {
    font-size: 11px;
    bottom: 0;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    text-shadow: none;
  }
  .service-card::after {
    display: none;
  }
  .slider-dots {
    bottom: 15px;
    top: 93%;
    left: 50%;
    flex-direction: row;
    transform: translate(-50%, -50%);
  }

  /* Why Choose Us */
  .why-choose-us-section {
    padding: 40px 24px;
  }
  .main-heading {
    font-size: 32px;
  }
  .main-description {
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 20px;
  }

  /* Offers */
  .modern-offer-card {
    flex-direction: column;
    height: auto;
  }
  .offer-card-left,
  .offer-card-right {
    width: 100%;
    padding: 30px 0;
  }
  .offer-card-right {
    height: 200px;
  }

  /* CTA */
  .cta-strip-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Stats */
  .stats-cards-wrapper {
    grid-template-columns: 1fr;
  }

  /* Services Grid */
  .sp-services-grid-wrapper {
    padding: 50px 0;
  }
  .grid-heading {
    font-size: 30px;
  }
  .sp-photo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Process */
  .process-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-content .section-heading {
    font-size: 32px;
  }

  /* Results */
  .results-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .results-header .section-heading {
    font-size: 32px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .google-header .section-heading {
    font-size: 32px;
  }
  .rating-badge {
    flex-wrap: wrap;
    justify-content: center;
  }
  .slider-nav {
    width: 40px;
    height: 40px;
  }
  .slider-prev {
    left: 10px;
  }
  .slider-next {
    right: 10px;
  }
  .top-margin {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 28px;
  }
  .section-label {
    font-size: 14px;
  }
  .feature-title {
    font-size: 15px;
  }
  .testimonial-card {
    padding: 24px;
  }
  .process-cards {
    grid-template-columns: 1fr 1fr;
  }
  .process-card {
    min-height: 120px;
    padding: 20px 10px;
  }
  .slider-nav {
    display: none;
  }
}
