/* Base styles */
.services-modal-main-box {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  overflow-y: scroll;
  position: fixed;
  display: none;
  margin-bottom: 10px;
  top: 0;
  z-index: 2;
  overflow-x: hidden;
}

.services-modal-bg-blur {
  width: 100vw;
  height: 100vh;
  background-color: #00000054;
  position: fixed;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  top: 0;
  z-index: 2;
}

.services-modal-frame-out {
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.services-modal-frame-inner {
  width: 1100px;
  background-color: #101010ab;
  border-radius: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 40px;
  padding-bottom: 30px;
  border: 1px solid #272727;
  backdrop-filter: blur(22px);
}

.service-modal-frame-content-frame {
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.services-title-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
  margin-top: 30px;
}

.service-title-icon {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
}

.service-title-text {
  text-align: left;
  font-size: 50px;
  font-weight: 500;
  margin: 0 0 0% 0%;
  width: 100%;
  line-height: 50px;
  font-family: "Basetica";
  margin-top: 10px;
  color: #ffffffe3;
}

.services-opening {
  margin-top: 35px;
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 50px;
}

.services-close-button {
  position: fixed;
  right: 0;
  width: 60px;
  height: 60px;
  background-color: #7ddbbc;
  top: 0;
  margin-right: 20px;
  margin-top: 20px;
  display: none;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  color: black;
  z-index: 2;
  border-radius: 100%;
  background-image: url(../img/close.svg);
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.25s;
  cursor: pointer;
}

.services-close-button:hover {
  transform: scale(1.1);
}

.services-close-button:active {
  transform: scale(0.95);
}

.service-2-box-container {
  display: flex;
  flex-direction: row;
  width: 90%;
  align-items: flex-start;
  align-content: space-around;
  justify-content: space-between;
}

.service-2-box-text {
  width: 60%;
  min-height: 400px;
  display: flex;
  align-content: flex-start;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 17px;
  line-height: 24px;
  flex-direction: column;
  min-width: 310px;
}

.service-2-box-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  height: 600px;
  background-position: center;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.service-2-box-image-area {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  align-content: flex-start;
  width: 45%;
  flex-direction: column;
}

.service-lower-text-block {
  margin-top: 34px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.services-modal-frame-other-services {
  width: 1100px;
  background-color: #15151596;
  border-radius: 40px;
  margin-top: 30px;
  margin-bottom: 70px;
  padding-top: 30px;
  padding-bottom: 73px;
  border: 1px solid #272727;
}

.services-icon-container-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.services-individual-icon-cont {
  width: 25%;
  padding: 7px;
  margin: 7px;
  width: 24%;
  background-color: #343434;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 9px;
  border: 1px solid #ffffff0d;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
  justify-content: space-between;
  color: white;
}

.services-individual-icon-cont:hover {
  scale: 1.05;
  background-color: #191919de;
  border-color: #beff004a;
}

.services-individual-icon-cont:active {
  scale: 0.95;
  background-color: #dbff7b1f;
  border-color: #beff004a;
}

.services-ind-icon-img {
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  margin-left: 5px;
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
}

.services-ind-icon-text {
  margin-left: 10px;
  font-size: 14px;
}

.services-all-services-title {
  font-size: 40px;
  width: 100%;
  text-align: center;
  font-weight: 500;
  margin-bottom: 36px;
  color: #ffffffc4;
}

.floating-services {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2;
}

.list-of-examples {
  font-size: 23px;
  font-weight: 300;
  line-height: 31px;
  margin-bottom: 30px;
  margin-top: 18px;
  color: #ffffffdb;
}

.modal-subtitle {
  display: flex;
  flex-direction: row;
  font-size: 18px;
  font-weight: 400;
  width: -webkit-fill-available;
}

.material-symbols-outlined {
  margin-right: 5px;
}

.service-text-sub {
  padding-left: 13px;
  margin-left: 12px;
  margin-top: 8px;
  font-weight: 300;
  margin-bottom: 20px;
  border-left: 1px solid transparent;
  border-image: linear-gradient(to bottom, #cecece9c, transparent) 1 100%;
  font-size: 15px;
}

.serviceModalMainDescription {
  margin-left: 5%;
  width: 70%;
  color: #ffffffd4;
}

.highlighted-section {
  background: linear-gradient(90deg, rgb(245 0 255 / 44%) 0%, rgb(255 0 105 / 52%) 100%);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 8px 0 20px 0;
  /* background: #ff0056; */
}

.highlighted-section .service-text-sub {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
  border: 0;
}

/* Preview Image and Cards */
.service-preview-image {
  width: 400px;
  height: 240px;
  border-radius: 12px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.service-preview-image.loaded {
  opacity: 1;
}

.stacked-cards {
  position: relative;
  width: 200px;
  height: 120px;
}

.card {
  position: absolute;
  width: 120px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), rgb(0 0 0) 0px 5px 50px;
  left: -98px;
  top: -33px;
  border: 1px solid #ffffff6e;
  opacity: 0;
  transform: translateX(-100px);
  transition: none;
  background-color: #1a1a1a;
}

.card.bottom {
  background: #4a4a4a;
  left: 6px;
  scale: 0.9;
}

.card.middle {
  background: #4a4a4a;
  left: -40px;
  scale: 0.95;
}

.card.top {
  background: #4a4a4a;
}

.explore {
  position: absolute;
  left: 149px;
  top: 44%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffffc4;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-20px);
  transition: none;
}

.arrow-circle {
  width: 32px;
  height: 32px;
  background: #ffffffbd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

/* Loading States */
.card-loading {
  position: relative;
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
  background-size: 200% 100%;
  animation: loading-gradient 1.5s infinite;
}

.card-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(10px);
  z-index: -1;
}

/* Animation States */
.service-preview-image.loaded .card {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.5s ease;
}

.service-preview-image.loaded .card.bottom {
  transition-delay: 0.1s;
}

.service-preview-image.loaded .card.middle {
  transition-delay: 0.2s;
}

.service-preview-image.loaded .card.top {
  transition-delay: 0.3s;
}

.service-preview-image.loaded .explore {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease 0.4s;
}

/* Hover Effects */
@media (hover: hover) {
  .service-preview-image.loaded:hover .card {
    transition: all 0.3s ease;
  }

  .service-preview-image.loaded.hover-ready:hover .card.bottom {
    transform: translateX(10px);
  }

  .service-preview-image.loaded.hover-ready:hover .card.middle {
    transform: translateX(5px);
  }

  .service-preview-image.loaded.hover-ready:hover .card.top {
    transform: translateX(0px);
  }
}

/* Animations */
@keyframes loading-gradient {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 735px) and (max-width: 1113px) {
  .services-modal-frame-out {
    width: 100%;
  }

  .services-modal-frame-inner {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .service-modal-frame-content-frame {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .services-opening {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .service-2-box-text {
    width: 45%;
  }

  .service-2-box-image-area {
    width: 45%;
  }

  .services-modal-frame-other-services {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 650px;
  }

  .services-icon-container-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-individual-icon-cont {
    width: 45%;
  }

  .service-preview-image {
    width: 320px;
    height: 192px;
  }

  .stacked-cards {
    width: 160px;
    height: 96px;
  }

  .card {
    width: 96px;
    height: 160px;
    left: -70px;
    top: -26px;
  }

  .card.bottom {
    left: 3px;
  }

  .card.middle {
    left: -34px;
  }

  .explore {
    left: 117px;
  }

  .arrow-circle {
    width: 36px;
    height: 36px;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 735px), screen and (max-height: 400px) {
  .services-modal-frame-out {
    width: 100%;
  }

  .services-modal-frame-inner {
    width: 100%;
  }

  .service-modal-frame-content-frame {
    width: 80%;
  }

  .service-2-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
  }

  .service-2-box-text {
    width: 100%;
    margin-bottom: 49px;
  }

  .service-2-box-image {
    height: 440px;
  }

  .service-2-box-image-area {
    width: 80%;
  }

  .services-modal-frame-other-services {
    width: 100%;
    margin-bottom: 30px;
  }

  .services-icon-container-row {
    display: flex;
    flex-direction: column;
    align-content: center;
  }

  .services-individual-icon-cont {
    width: 80%;
    max-width: 320px;
  }

  .service-preview-image {
    width: 100%;
    height: 168px;
    margin-top: 20px;
    /* background-color: red; */
    margin-left: auto;
    margin-right: auto;
  }

  .stacked-cards {
    width: 218px;
    height: 84px;
  }

  .card {
    width: 84px;
    height: 140px;
    left: -46px;
    top: -28px;
    border-radius: 16px;
  }

  .card.bottom {
    left: 6px;
  }

  .card.middle {
    left: -16px;
  }

  .explore {
    /* left: 0; */
    /* font-size: 16px; */
    top: 29%;
    right: auto;
  }

  .stacked-cards:hover .explore {
    right: -110px;
  }

  .arrow-circle {
    width: 44px;
    height: 44px;
  }

  .arrow-circle svg {
    width: 20px;
    height: 20px;
  }

  .serviceModalMainDescription {
    width: 100%;
    margin-left: 0;
  }
}
.stacked-cards:hover .explore {
}
.section-icon {
  width: 28px;
  margin-right: 9px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 28px;
  opacity: 0.8;
}
