

:root {
  --collage-margin-left: -13%;
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}
.service-section {
  scroll-margin-top: 120px;
}
.services-header {
    padding-top: 80px;
}

.services-header-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 54px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.collage {
  display: flex;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.item {
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  transition:
  transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
  filter 0.6s ease,
  box-shadow 0.6s ease;
}

.item span {
  z-index: 3;
  font-size: 22px;
  font-weight: 600;
  color: white;
  position: relative;
  transition: all 0.55s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.78),
      rgba(0,0,0,0.35)
    );
  transition: all 0.6s ease;
  z-index: 1;
}

.collage:hover .item {
  filter: brightness(0.65);
}

.collage .item:hover {
  filter: brightness(1.1);
  transform: translateY(-8px) scale(1.03);
  z-index: 5;
}

.collage .item:hover::before {
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.35),
      rgba(254,203,0,0.12)
    );
  backdrop-filter: blur(1px);
}

.collage .item:hover span {
  transform: translateY(-10px) scale(1.08);
  color: var(--yellow);
  text-shadow:
    0 0 12px rgba(254,203,0,0.45),
    0 0 24px rgba(254,203,0,0.2);
}

.item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.22),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.9s;
  z-index: 2;
}

.collage .item:hover::after {
  left: 140%;
}

.collage {
  display: flex;
  width: 100%;
  height: 300px;
  overflow: hidden;
  animation: collageEntrance 1.2s ease;
}

.collage .item:hover {
  filter: brightness(1.15);
  transform: translateY(-8px) scale(1.03);
  z-index: 5;
  box-shadow:
    0 18px 35px rgba(0,0,0,0.45),
    0 0 25px rgba(254,203,0,0.12);
}

@keyframes collageEntrance {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item1 {
  justify-content: left;
  background-image: url('../img/services-1.jpg'); 
  background-position: center right;
  clip-path: polygon(0% 0%, 100% 0%, 44% 100%, 0% 100%);
  flex: 1;
}

.item2 {
  justify-content: center;
  background-image: url('../img/services-2.jpeg'); 
  background-position: 60% 70%; 
  clip-path: polygon(40% 0%, 100% 0, 60% 100%, 0% 100%);
  flex: 1.4;
  margin-left: -13.7%;
}

.item3 {
  justify-content: center;
  background-image: url('../img/services-3.jpeg'); 
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0% 100%);
  flex: 1.4;
  margin-left: -13.7%;
}

.item4 {
  justify-content: center;
  background-image: url('../img/services-4.jpeg');
  background-position: 50% 0%;  
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0% 100%);
  flex: 1.4;
  margin-left: -13.7%;
}

.item5 {
  justify-content: right;
  background-image: url('../img/services-5.jpeg');
  clip-path: polygon(56% 0%, 100% 0, 100% 100%, 0% 100%);
  margin-left: -13.7%;
  flex: 1;
}

.item1 span {
  margin-left: 20px;
}

.item5 span {
  margin-right: 20px;
}


.service-bg-image {
    width: 60%;
}

.service-bg-image img {
    object-position:60% 50%;
}

.service-section{
  padding: 300px 0;
  position: relative;
  margin-top: 80px;
}

.service-section.left .service-text-side {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.service-section.right .service-text-side {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.service-text-side{
  max-width: 50%;
  z-index: 2;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 35px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.service-list {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {

  .services-header {
    padding-top: 40px;
  }

  .services-header-title {
    margin-bottom: 20px;
    font-size: 38px;
  }

  .collage {
    display: none;
  }

  .service-section {
    padding: 80px 0;
    margin-top: 20px;
  }
  
  .service-bg-image {
    width: 100%;
    opacity: 0.6;
  }

  .service-bg-image img {
    filter: brightness(0.25);
    object-position: center;
  }


  .service-text-side {
    max-width: 100%;
    text-align: center !important;
    padding: 0 10px;
  }

  .service-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .service-list {
    font-size: 16px;
    margin-bottom: 30px;
    list-style-position: inside;
    text-align: left;
    display: inline-block;
    max-width: 550px; 
  }
  
  .service-list li {
    margin-bottom: 12px;
  }
}

@media (max-width: 576px) {
  .services-header-title {
    font-size: 28px;
  }

  .service-section {
    padding: 50px 0;
  }

  .service-title {
    font-size: 24px;
  }

  .service-list {
    font-size: 14px;
    padding: 0 15px;
  }
}


@media (max-width: 992px) {
  .collage {
    display: flex;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .collage::-webkit-scrollbar {
    display: none;
  }

  .item {
    flex: 0 0 auto;
    width: calc(20% - 7px);
    min-width: 100px;
    height: 90px;
    border-radius: 10px;
    clip-path: none !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .item span {
    font-size: 11px;
    text-align: center;
    padding: 0 4px;
  }
}

@media (max-width: 992px) {
  .item:focus,
  .item:active {
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .item:focus span,
  .item:active span {
    color: white !important;
    transform: none !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45) !important;
  }

  .item {
    -webkit-tap-highlight-color: transparent;
  }
}