.cover {
  position: relative;
  overflow-x: clip;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: rgb(255, 255, 255);
    border-radius: 0 5vw 0 0;
    z-index: 1;
  }

  &::after {
    content: "";
    position: absolute;
    background-position: left;
    width: 360px;
    height: 430px;
    left: -75px;
    bottom: -250px;
    z-index: 2;
    background-size: cover;
    background-image: url(./images/watermark.svg);
  }
}

@media (min-width: 992px) {
  .cover {
    margin-top: 80px;
    height: 99vh;
  }
}

.cover .message {
  position: absolute;
  inset: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -210px;

  & > * {
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgb(from #414141 r g b / 0.5));
  }

  & p {
    margin: 0;
    font-size: calc(4.2vw + 16px);
    font-weight: 900;
  }

  & h2 {
    font-size: calc(3.5vw + 16px);
    font-weight: 700;
    text-align: center;
  }
}

.cover-slick {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  right: 0;
  z-index: -1;
}

.cover-slick div {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.cover .toggle-slick {
  position: absolute;
  top: 125px;
  right: 15px;
  background: none;
  border: 0;
}

@media (max-width: 991px) {
  .cover .toggle-slick {
    display: none;
  }
}

.cover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  text-align: center;

  max-width: 600px;
  margin-top: -60px;
}

/**/

h2.dot {
  font-size: calc(1.72vw + 16px);
  font-weight: 900;
  color: var(--prime1);
  width: min-content;
  line-height: 1;
  margin: auto 0;
  span {
    color: var(--prime6);
  }
}

/**/
@media (min-width: 992px) {
  .odot {
    & .container {
      max-width: 87%;
    }
  }
}
.odot {
  margin-top: 10rem;
  .row {
    display: grid;
    grid-template-areas: "buck content empty";
    grid-template-columns: 1fr 2.75fr 1fr;
    align-items: center;
    width: 100%;
  }
  & .img {
    grid-area: buck;
  }
  & .img img {
    object-fit: cover;
    width: 250px;
    height: 300px;
  }
  & .text {
    text-align: justify;
    grid-area: content;
    margin: 0 auto;
    font-size: calc(0.5vw + 16px);
    line-height: 1.3;
    color: var(--prime1);
  }

  & .text::before {
    /* content: ""; */
    position: absolute;
    right: -250px;
    width: 250px;
    height: 100%;
    background-image: url(./images/buck.png);
    background-size: cover;
    background-position: center;
  }

  & .text p:has(a) {
    text-align: center;
  }

  & a {
    width: fit-content;
    text-align: center;
    font-weight: 900;
    position: relative;
    color: var(--prime1);
  }

  & a::before {
    content: "\f177";
    font-family:
      "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    text-rendering: optimizeLegibility;
    left: -2.5rem;
    color: #7dae58;
    font-size: 0.95rem;
    top: 10px;
  }
}

.services {
  position: relative;
  width: 100%;
  z-index: 2;
  margin-top: -9.5rem;

  & .container-fluid {
    position: relative;
  }

  & .container-fluid::after {
    content: "";
    position: absolute;
    bottom: -3rem;
    right: 3%;
    width: calc(100% - 325px);
    height: 1px;
    background: var(--prime6);
  }

  & .row {
    padding-right: 95px;
  }
}

@media (max-width: 1600px) {
  .services .row {
    padding-right: 40px;
  }
}

.services-slick {
  width: min(100%, 70%);
  padding: 0.5rem 0.5rem;
  margin: 0 auto;
  position: relative;

  & a {
    display: block;
    text-align: center;
    margin: 1rem;
    font-weight: 700;
    font-size: calc(0.47vw + 16px);
    color: var(--prime1);
    border-left: 1px solid #d9d9d9;
    padding: 0 1rem;
        line-height: 1;
  }

  & .is-last-visible a {
    border-left: none;
  }

  & figure {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  & img {
    display: block;
    margin: 0 auto;
    margin-bottom: 0.75rem;
    width: 50px;
    height: 50px;
    object-fit: contain;
  }
}

/* Projects */

.projects {
  margin-top: 10rem;
  h2.dot {
    font-size: calc(3vw + 16px);
    width: max-content;
  }
}

.gridded {
  padding-inline: 0.25rem;
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 500px));
  grid-template-rows: repeat(3, minmax(400px, 1fr));
  gap: 1.82rem;

  & > div {
    overflow: hidden;
  }

  & .grade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    opacity: 0.05;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
  }

  & a {
    padding: 1rem 5rem 1rem 1.5rem;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    height: 100%;
    color: #fff;
    position: relative;

    & .info {
      padding-bottom: 2rem;
      opacity: 0;
      position: relative;
      transition: opacity 0.3s ease;
    }

    & h3 {
      position: relative;
      z-index: 1;
      line-height: 1;
      font-weight: 900;
      font-size: calc(1.15vw + 16px);
    }

    & h3 + p {
      margin: 0;
      list-style: 1;
      color: #fff;
      position: relative;
      z-index: 1;
      font-size: calc(0.5vw + 16px);
    }

    & h3 + p::before {
      content: "";
      position: relative;
      margin-block: 1rem;
      display: block;
      top: 0;
      right: 0;
      width: 80px;
      height: 2px;
      border-radius: 2px;
      background-color: var(--prime6);
    }

    &:hover {
      text-decoration: none;
    }

    &:hover .grade {
      opacity: 0.75;
    }

    &:hover .info {
      opacity: 1;
    }
  }

  & .p_2 a,
  & .p_3 a {
    padding: 1rem 2.5rem 1rem 1.5rem;
  }
}

.gridded .p_1 {
  border-top-right-radius: 5rem;
  grid-column: span 2 / span 2;
  background-color: var(--prime1);
}

.gridded .p_2 {
  border-top-left-radius: 5rem;
  grid-column-start: 3;
  background-color: var(--prime2);
}
.gridded .p_3 {
  grid-row-start: 2;
  background-color: var(--prime3);
}
.gridded .p_4 {
  grid-column: span 2 / span 2;
  grid-row-start: 2;
  background-color: var(--prime4);

  & h3 {
    width: 75%;
  }
}
.gridded .p_5 {
  grid-row-start: 3;
  grid-column: span 2 / span 2;
  background-color: var(--prime5);
  border-bottom-right-radius: 5rem;
}

.gridded > div:last-child {
  border-bottom-left-radius: 5rem;
  grid-column-start: 3;
  background-color: var(--prime5);

  & a {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    position: relative;

    &::after {
      content: "";
      position: absolute;
      bottom: -20px;
      right: -20px;
      width: 100%;
      height: 100%;
      background-image: url(./images/buck_w.svg);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: right;
      opacity: 0.25;
    }
  }

  .box {
    color: #fff;
    background-color: var(--prime5);
    width: 250px;
    height: 210px;
    padding: 2rem 0.25rem;
  }

  & h3 {
    font-size: calc(0.9vw + 16px);
  }
}
/**/

@media (max-width: 991px) {
  .cover {
    top: 65px;
    position: absolute;
    padding: 0;
    width: 100%;
    height: 360px;

    &::after {
      width: 250px;
      height: 250px;
      left: -75px;
      bottom: -355px;
      z-index: -1;
      opacity: 0.5;
    }
  }

  .cover .message {
    padding-top: 100px;

    & p {
      line-height: initial;
    }
  }

  .cover::before {
    height: 100px;
  }
  .services {
    padding-top: 28.5rem;

    & .container-fluid::after {
      width: 65%;
      margin-inline: auto;
      inset: auto 0 -2.5rem 0;
    }
  }
  .services .row {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  h2.dot {
    font-size: calc(3vw + 16px);
    width: max-content;
  }
  .services-slick {
    padding-inline: 0;
    margin-inline: 0;
    width: 100%;
    margin-inline: auto;

    & a {
      border: none;
      margin: 1rem 0;
      font-weight: 400;
      font-size: 1.1rem;
      padding: 0 1.8rem;
    }

    & img {
      width: 40px;
      height: 40px;
    }
  }
  .odot {
    margin-top: 6.25rem;

    & .text {
      padding-inline: 1rem;

      & p:has(a) {
        text-align: center;
      }

      & a::before {
        left: -1.8rem;
        top: 4px;
      }
    }
    .row {
      grid-template-columns: 1fr;
      justify-items: center;
      margin-inline: auto;
      grid-template-areas:
        "buck"
        "content"
        "empty";
    }
    & .img img {
      display: none;
    }
  }

  .projects {
    margin-top: 5rem;
    h2.dot {
      width: 100%;
      text-align: center;
    }
    .gridded {
      margin-top: 1rem;
      gap: 0;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: auto;
      justify-items: center;
      margin-inline: auto;

      & > div {
        aspect-ratio: 1 / 1;
        border-radius: 0;
        grid-column: span 1;
        grid-column-start: auto;
        grid-row-start: auto;
        grid-row: auto;
        aspect-ratio: 1;
        margin: 0.8rem;
      }

      & .grade {
        opacity: 0.9;
      }

      & a {
        padding: 1rem 2rem 2rem 1.5rem;
      }

      & a .info {
        opacity: 1;
      }
    }
    .gridded > div:last-child {
      .box {
        width: 53%;
        height: 51%;
      }
    }
  }
}

@media (max-width: 768px) {
  .projects .gridded {
    gap: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    margin-inline: auto;

    & > div {
      min-height: 59vw;
      border-radius: 0;
      grid-column: span 1;
      grid-row: auto;
      aspect-ratio: 3 / 2;
      margin-block: 0.8rem;
    }

    & .grade {
      opacity: 0.9;
    }

    & a {
      padding: 1rem 2rem 2rem 1.5rem;
    }

    & a .info {
      opacity: 1;
    }
  }
}

@media (max-width:991px){
        [dir='rtl'] .slick-prev{
    right:1rem;
}
[dir='rtl'] .slick-next{
    left:1rem;
}
}
/**/

/**/

/**/
