.bg-img img {
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      object-position: center;
    }

    .slider .slide-item {
      min-height: 60vh;
    }

    .quote-lite-calculator {
      background: #ffffff;
      border: 1px solid #dfe6f3;
      border-radius: 10px;
      padding: 14px;
    }

    .quote-lite-calculator .q-title {
      font-size: 14px;
      color: #1d2a44;
      font-weight: 700;
      margin-bottom: 6px;
      display: block;
    }

    .quote-lite-calculator .form-control,
    .quote-lite-calculator .form-control:focus {
      border: 1px solid #ced8ea;
      background: #f7f9fd;
      color: #24324d;
      box-shadow: none;
    }

    .quote-lite-calculator .q-pin-error {
      font-size: 12px;
      color: #d93025;
      min-height: 16px;
      margin-top: 4px;
    }

    .quote-lite-calculator .q-unit {
      color: #6b7c99;
      margin-left: 8px;
      align-self: center;
      min-width: 24px;
    }

    .quote-lite-calculator .q-vol-box {
      background: #f4f7ff;
      border: 1px solid #d5e0ff;
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 14px;
    }

    .quote-lite-calculator .q-vol-box h6 {
      color: #1d2a44;
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .quote-lite-calculator .q-vol-box p {
      font-size: 13px;
      color: #384968;
      margin-bottom: 4px;
    }

    .quote-lite-calculator .q-radio-row {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .quote-lite-calculator .q-radio-row label {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      color: #24324d;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
    }

    .quote-lite-calculator .q-calc-btn {
      width: 100%;
      background: #f0b90b;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 10px 12px;
      font-size: 16px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      cursor: pointer;
    }

    .quote-lite-calculator .q-calc-btn:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }

    .quote-lite-status {
      margin-top: 8px;
      font-size: 13px;
      color: #d93025;
      min-height: 16px;
    }

    .quote-lite-result {
      margin-top: 12px;
    }

    .quote-lite-card {
      border: 1px solid #d5e0ff;
      border-radius: 8px;
      background: #f9fbff;
      padding: 12px;
      color: #1d2a44;
    }

    .quote-lite-card h4 {
      margin: 0 0 6px;
      font-size: 20px;
      color: #1d2a44;
      font-weight: 700;
    }

    .quote-lite-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 20px;
      font-weight: 800;
      color: #2d70ff;
      margin: 8px 0;
    }

    .quote-lite-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 14px;
      color: #334566;
    }

    .quote-lite-meta {
      border-top: 1px solid #d5e0ff;
      padding-top: 8px;
      margin-top: 8px;
      font-size: 13px;
      color: #56698d;
      line-height: 1.7;
    }

/* Slider right-side CTA buttons: staggered entrance */
#slider2 .sidebar__toggle a,
#slider2 .sidebar__toggle2 a,
#slider2 .sidebar__toggle1 a {
  opacity: 0;
  transform: translateX(28px);
}

body.page-loaded #slider2 .sidebar__toggle a,
body.page-loaded #slider2 .sidebar__toggle2 a,
body.page-loaded #slider2 .sidebar__toggle1 a {
  animation: ctaSlideIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-loaded #slider2 .sidebar__toggle a {
  animation-delay: 0.20s;
}

body.page-loaded #slider2 .sidebar__toggle2 a {
  animation-delay: 0.90s;
}

body.page-loaded #slider2 .sidebar__toggle1 a {
  animation-delay: 1.60s;
}

@keyframes ctaSlideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #slider2 .sidebar__toggle a,
  #slider2 .sidebar__toggle2 a,
  #slider2 .sidebar__toggle1 a {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Home banner text animation (slide-by-slide) */
body.page-loaded #slider2 .carousel.owl-loaded .owl-item .slide__title,
body.page-loaded #slider2 .carousel.owl-loaded .owl-item .slide__desc {
  opacity: 0;
  transform: translateY(24px);
}

body.page-loaded #slider2 .carousel.owl-loaded .owl-item.active .slide__title {
  animation: bannerTextRise 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

body.page-loaded #slider2 .carousel.owl-loaded .owl-item.active .slide__desc {
  animation: bannerTextRise 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

@keyframes bannerTextRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-loaded #slider2 .carousel.owl-loaded .owl-item .slide__title,
  body.page-loaded #slider2 .carousel.owl-loaded .owl-item .slide__desc {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* About section fancy scroll reveal */
body.page-loaded #about3 .heading__title,
body.page-loaded #about3 .heading__desc,
body.page-loaded #about3 .fancybox-item {
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  filter: blur(2px);
}

body.page-loaded #about3.in-view .heading__title {
  animation: aboutLiftIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

body.page-loaded #about3.in-view .heading__desc {
  animation: aboutLiftIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

body.page-loaded #about3.in-view .col-sm-4:nth-of-type(2) .fancybox-item {
  animation: aboutLiftIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

body.page-loaded #about3.in-view .col-sm-4:nth-of-type(3) .fancybox-item {
  animation: aboutLiftIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.78s forwards;
}

body.page-loaded #about3.in-view .col-sm-4:nth-of-type(4) .fancybox-item {
  animation: aboutLiftIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 1.01s forwards;
}

#about3 .fancybox-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#about3 .fancybox-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

@keyframes aboutLiftIn {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.98);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-loaded #about3 .heading__title,
  body.page-loaded #about3 .heading__desc,
  body.page-loaded #about3 .fancybox-item {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  #about3 .fancybox-item {
    transition: none;
  }

  #about3 .fancybox-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* About3 cards: cleaner and more attractive hover UI */
#about3 .col-sm-4,
#about3 .col-md-4,
#about3 .col-lg-4 {
  display: flex;
}

#about3 .fancybox-item {
  width: 100%;
  min-height: 100%;
  padding: 24px 22px 26px;
  border-radius: 16px;
  border: 1px solid #e6eaf2;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

#about3 .fancybox-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f2b300 0%, #ffcf4d 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#about3 .fancybox-item .fancybox__icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #fff8df;
  color: #d49f00;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    color 0.35s ease;
}

#about3 .fancybox-item .fancybox__title {
  color: #172033;
  transition: color 0.35s ease;
}

#about3 .fancybox-item .fancybox__desc {
  color: #2e3a52;
  transition: color 0.35s ease;
}

#about3 .fancybox-item:hover {
  transform: translateY(-10px);
  border-color: #f2b300;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.14);
}

#about3 .fancybox-item:hover::before {
  opacity: 1;
}

#about3 .fancybox-item:hover .fancybox__icon {
  transform: translateY(-3px) scale(1.06);
  background-color: #f2b300;
  color: #ffffff;
}

#about3 .fancybox-item:hover .fancybox__title {
  color: #c38f00;
}

#about3 .fancybox-item:hover .fancybox__desc {
  color: #1f293d;
}

@media (prefers-reduced-motion: reduce) {
  #about3 .fancybox-item,
  #about3 .fancybox-item .fancybox__icon,
  #about3 .fancybox-item .fancybox__title,
  #about3 .fancybox-item .fancybox__desc,
  #about3 .fancybox-item::before {
    transition: none;
  }

  #about3 .fancybox-item:hover,
  #about3 .fancybox-item:hover .fancybox__icon {
    transform: none;
  }
}

/* Services section fancy scroll reveal */
body.page-loaded #fancyboxLayout3 .heading__subtitle,
body.page-loaded #fancyboxLayout3 .heading__title,
body.page-loaded #fancyboxLayout3 .heading__desc,
body.page-loaded #fancyboxLayout3 .btn__primary,
body.page-loaded #fancyboxLayout3 .fancybox-item {
  opacity: 0;
  transform: translateY(34px);
}

body.page-loaded #fancyboxLayout3.in-view .heading__subtitle {
  animation: servicesReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .heading__title {
  animation: servicesReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .heading__desc {
  animation: servicesReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .btn__primary {
  animation: servicesReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.58s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .col-sm-3:nth-of-type(1) .fancybox-item {
  animation: servicesReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .col-sm-3:nth-of-type(2) .fancybox-item {
  animation: servicesReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .col-sm-3:nth-of-type(3) .fancybox-item {
  animation: servicesReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 1.08s forwards;
}

body.page-loaded #fancyboxLayout3.in-view .col-sm-3:nth-of-type(4) .fancybox-item {
  animation: servicesReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 1.26s forwards;
}

#fancyboxLayout3 .fancybox-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#fancyboxLayout3 .fancybox-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

@keyframes servicesReveal {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-loaded #fancyboxLayout3 .heading__subtitle,
  body.page-loaded #fancyboxLayout3 .heading__title,
  body.page-loaded #fancyboxLayout3 .heading__desc,
  body.page-loaded #fancyboxLayout3 .btn__primary,
  body.page-loaded #fancyboxLayout3 .fancybox-item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  #fancyboxLayout3 .fancybox-item {
    transition: none;
  }

  #fancyboxLayout3 .fancybox-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Services cards: polished hover redesign */
#fancyboxLayout3 .col-sm-3,
#fancyboxLayout3 .col-md-3,
#fancyboxLayout3 .col-lg-3 {
  display: flex;
}

#fancyboxLayout3 .fancybox-item {
  width: 100%;
  min-height: 100%;
  padding: 24px 22px 26px;
  border-radius: 18px;
  border: 1px solid #e4e9f3;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

#fancyboxLayout3 .fancybox-item::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, #f2b300 0%, #ffd561 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fancyboxLayout3 .fancybox-item .fancybox__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #fff6d5;
  color: #d49f00;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

#fancyboxLayout3 .fancybox-item .fancybox__title {
  color: #1b2538;
  transition: color 0.3s ease;
}

#fancyboxLayout3 .fancybox-item .fancybox__desc {
  color: #2f3b53;
  transition: color 0.3s ease;
}

#fancyboxLayout3 .fancybox-item:hover {
  transform: translateY(-12px);
  border-color: #f2b300;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf4 100%);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.15);
}

#fancyboxLayout3 .fancybox-item:hover::before {
  opacity: 1;
}

#fancyboxLayout3 .fancybox-item:hover .fancybox__icon {
  transform: translateY(-4px) scale(1.06);
  background-color: #f2b300;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(242, 179, 0, 0.35);
}

#fancyboxLayout3 .fancybox-item:hover .fancybox__title {
  color: #ca9600;
}

#fancyboxLayout3 .fancybox-item:hover .fancybox__desc {
  color: #182237;
}

@media (prefers-reduced-motion: reduce) {
  #fancyboxLayout3 .fancybox-item,
  #fancyboxLayout3 .fancybox-item::before,
  #fancyboxLayout3 .fancybox-item .fancybox__icon,
  #fancyboxLayout3 .fancybox-item .fancybox__title,
  #fancyboxLayout3 .fancybox-item .fancybox__desc {
    transition: none;
  }

  #fancyboxLayout3 .fancybox-item:hover,
  #fancyboxLayout3 .fancybox-item:hover .fancybox__icon {
    transform: none;
  }
}

/* Video 1: Y-shape to full-image scroll reveal */
#video1.y-reveal-section {
  position: relative;
  background: #efefef;
  padding: 0;
}

#video1 .y-reveal-track {
  position: relative;
  height: 185vh;
}

#video1 .y-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #efefef;
}

#video1 .y-reveal-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(30, 12, 60, 0.42), rgba(30, 12, 60, 0.42)), url("../images/backgrounds/3.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: transform 0.16s linear, opacity 0.16s linear;
  will-change: transform, opacity;
}

#video1 .y-reveal-glyph-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#video1 .y-reveal-glyph {
  font-family: "Montserrat", "Arial Black", "Segoe UI", sans-serif;
  font-size: 250px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(rgba(30, 12, 60, 0.35), rgba(30, 12, 60, 0.35)), url("../images/backgrounds/3.jpg");
  background-position: center;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  transform: scale(0.34);
  transform-origin: center center;
  opacity: 1;
  transition: transform 0.16s linear, opacity 0.16s linear;
  will-change: transform, opacity;
}

#video1 .y-reveal-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.22s linear, transform 0.22s linear;
  will-change: opacity, transform;
  pointer-events: none;
}

#video1 .y-reveal-content .heading__subtitle {
  margin-bottom: 10px;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

#video1 .y-reveal-content .heading__title {
  max-width: 920px;
  margin: 0;
  color: #ffffff !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

#video1 .y-reveal-content .counter__icon,
#video1 .y-reveal-content .counter-item h4,
#video1 .y-reveal-content .counter__desc {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

#video1 .y-reveal-content .counter-item h4 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-width: 5ch;
}

@media (max-width: 991px) {
  #video1 .y-reveal-track {
    height: 175vh;
  }

  #video1 .y-reveal-glyph {
    font-size: 260px;
  }

  #video1 .y-reveal-content .heading__title {
    font-size: 36px;
    line-height: 1.2;
  }
}

@media (max-width: 575px) {
  #video1 .y-reveal-track {
    height: 165vh;
  }

  #video1 .y-reveal-glyph {
    font-size: 190px;
  }

  #video1 .y-reveal-content .heading__title {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #video1 .y-reveal-track {
    height: 100vh;
  }

  #video1 .y-reveal-bg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #video1 .y-reveal-glyph-wrap {
    display: none;
  }

  #video1 .y-reveal-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
