:root {
  --bs-primary: #ffaa17;
  --bs-primary-rgb: 255, 170, 23;
  --bs-secondary: #bdbdbf;
  --bs-secondary-rgb: 189, 189, 191;
  --bs-light: #f4f5f8;
  --bs-dark: #222429;
  --body-color: #686a6f;
  --heading-font: "Oswald", sans-serif;
  --body-font: "Rubik", sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--body-color);
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--bs-dark);
}

h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

a {
  color: var(--bs-primary);
}

a:hover {
  color: #ca8000;
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  display: inline-flex;
}

.service-item {
  height: 320px;
  background: var(--bs-light);
  transition: 0.5s;
}

.service-item:hover {
  background: var(--bs-dark);
}

.service-item h4 {
  transition: 0.5s;
}

.service-item:hover h4 {
  color: var(--bs-light);
}

.portfolio-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.portfolio-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 36, 41, 0.5);
  border: 30px solid rgba(34, 36, 41, 0.9);
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
  z-index: 0;
}

.portfolio-frame:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-action {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: auto;
}

.portfolio-frame:hover .portfolio-action {
  background: #fff;
}

.portfolio-action i {
  font-size: 1.5rem;
  color: var(--bs-primary);
  pointer-events: none;
}

.portfolio-container {
  row-gap: 1.5rem;
}

#portfolio-flters li {
  cursor: pointer;
  margin: 0 0.25rem 0.5rem;
}

.page-header {
  height: 400px;
  margin-bottom: 90px;
}

@media (max-width: 991.98px) {
  .page-header {
    height: 300px;
  }
}

.team-carousel .team-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.team-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 30px;
  border-radius: 4px;
  background: rgba(34, 36, 41, 0.9);
  transition: 0.5s;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.team-item:hover .team-overlay {
  opacity: 1;
}

.team-overlay .social-links {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.team-overlay .btn {
  pointer-events: auto;
}

.testimonial-item {
  position: relative;
  background: var(--bs-light);
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
}

.testimonial-item::before {
  content: "";
  position: absolute;
  inset: 45px -30px 45px -30px;
  background: #535864;
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-item.is-active::before {
  opacity: 1;
}

.testimonial-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-form .form-control {
  background-color: var(--bs-light);
  border: 0;
  padding: 1rem;
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 170, 23, 0.35);
}

.carousel-scroll {
  position: relative;
  padding: 0 2.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
}

.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 calc(100% - 3rem);
}

@media (min-width: 768px) {
  .carousel-track > * {
    flex-basis: 50%;
  }
}

@media (min-width: 1200px) {
  .carousel-track > * {
    flex-basis: 33.333%;
  }
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bs-primary);
  color: var(--bs-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.carousel-nav:hover {
  background: var(--bs-dark);
  color: var(--bs-primary);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

.carousel-scroll .team-item,
.carousel-scroll .testimonial-item {
  height: 100%;
}

.team-overlay,
.portfolio-overlay {
  pointer-events: none;
}

.testimonial-carousel .carousel-track {
  align-items: stretch;
}

.testimonial-carousel .carousel-track > * {
  flex-basis: 100%;
}

@media (min-width: 768px) {
  .testimonial-carousel .carousel-track > * {
    flex-basis: 50%;
  }
}

@media (min-width: 1200px) {
  .testimonial-carousel .carousel-track > * {
    flex-basis: 33.333%;
  }
}

.testimonial-item.is-active {
  background: var(--bs-dark);
  color: #fff;
}

.testimonial-item.is-active h5 {
  color: var(--bs-primary);
}

.testimonial-item.is-active::before {
  opacity: 1;
}

img {
  pointer-events: auto;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1200;
}

.lightbox-backdrop img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
