.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}
.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}
.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #343434;
  --secondary-color: #748182;
  --third-color: #1c1c1c;
  /* --forth-color: #f7f7f7 */
  --main-duration: 0.3s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  font-family: "Poppins", sans-serif;
}
body:not(:has(a[href="#home"].active)) .navbar {
  background-color: #fff;
  z-index: 999;
  color: var(--main-color) !important;

  a {
    color: var(--main-color) !important;
  }
  a.active {
    &::after {
      background-color: var(--main-color);
    }
  }
  .navbar-toggler {
    color: var(--main-color) !important;
  }
  animation: navbar 0.4s forwards;
}

@keyframes navbar {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}
ul {
  list-style: none !important;
}

button,
input,
textarea {
  font: inherit;
  border: none;
  outline: none;
}

button:focus,
a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-type: none;
  li {
    display: inline-block;
  }
}

span,
a {
  display: inline-block;
}

.container {
  width: 88%;
  padding-inline: 10px;
  margin-inline: auto;
  overflow: hidden;

  @media screen and (max-width: 992px) {
    width: 95%;
  }
  @media screen and (max-width: 776px) {
    width: 99%;
  }
}

nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: 999;

  color: #fff !important;
  a {
    color: #fff !important;
    cursor: pointer;
    padding-inline: 0 !important;
    font-size: 1rem !important;
  }
  a.active {
    position: relative;
    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: #fff;
      left: 0;
      bottom: 5px;
    }
  }
  .navbar-toggler {
    color: #fff !important;
    border: none;
  }
  @media screen and (max-width: 992px) {
    ul {
      background-color: #fff;
      width: 100%;
      padding-block: 2rem;
    }
    li a {
      color: var(--main-color) !important;
    }
    a.active::after {
      background-color: var(--main-color);
    }
  }
}

/* Header */
.header {
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../Images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  .content {
    h1 {
      font-size: 4rem;
      font-weight: bold;
    }
    h2 {
      font-size: 2.5rem;
    }
    .icons .icon a {
      background-color: rgba(0, 0, 0, 0.4);
      padding: 12px;
      border-radius: 50%;

      i {
        font-size: 1rem;
      }
    }
  }
}

section.about {
  padding-block: 10rem;
  padding-right: 0;

  @media screen and (max-width: 992px) {
    padding-block: 3rem;
    text-align: center;
  }

  .content {
    @media screen and (max-width: 992px) {
      flex-direction: column;
      width: 100%;
      justify-content: center !important;
      align-items: center !important;
      gap: 2rem;
    }
  }
  .left {
    position: relative;

    @media screen and (max-width: 992px) {
      width: 100%;
    }

    img {
      margin: 0 auto;
      object-fit: cover;
      position: relative;
      z-index: 2;

      @media screen and (max-width: 992px) {
        margin: 0 auto;
        padding: 0;
      }
    }
    &::after {
      content: "";
      position: absolute;
      width: 19rem;
      height: 28rem;
      left: -35px;
      bottom: -46px;
      /* background-color: red; */
      background-image: url(../Images/dots.png);
      background-repeat: repeat;
      z-index: 1;
    }
  }
  .right {
    text-align: left;
    h2 {
      font-size: 3rem;
      color: var(--main-color);
      font-weight: 800;
    }
    p {
      font-size: 1.3rem;
      color: var(--secondary-color);
    }
    .skills {
      .web {
        height: 2rem;
        width: 100%;
        padding: 5px 10px;
        border-radius: 5px;
        background: #f7f7f7;
        -webkit-box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        position: relative;

        span {
          position: absolute;
          top: -2px;
          left: 0px;
          height: 116%;
          width: 95%;
          border-radius: 5px;
          background-color: var(--third-color);
          transition: all 1s;
          color: #fff;
          text-align: right;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          padding-right: 10px;
        }
      }
      .branding {
        height: 2rem;
        width: 100%;
        padding: 5px 10px;
        border-radius: 5px;
        background: #f7f7f7;
        -webkit-box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        position: relative;

        span {
          position: absolute;
          top: -2px;
          left: 0px;
          height: 116%;
          width: 80%;
          border-radius: 5px;
          background-color: var(--third-color);
          transition: all 1s;
          color: #fff;
          text-align: right;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          padding-right: 10px;
        }
      }
      .development {
        height: 2rem;
        width: 100%;
        padding: 5px 10px;
        border-radius: 5px;
        background: #f7f7f7;
        -webkit-box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15) inset;
        position: relative;

        span {
          position: absolute;
          top: -2px;
          left: 0px;
          height: 116%;
          width: 90%;
          border-radius: 5px;
          background-color: var(--third-color);
          transition: all 1s;
          color: #fff;
          text-align: right;
          display: flex;
          justify-content: flex-end;
          align-items: center;
          padding-right: 10px;
        }
      }
    }

    .btns {
      button.cv {
        background-color: var(--third-color);
        border: 1px solid var(--third-color);
        color: #fff;
        transition: background-color var(--main-duration) ease-in-out,
          color var(--main-duration) ease-in-out;

        &:hover {
          background-color: #fff;
          color: var(--main-color);
        }
      }
      button.contact {
        border: 1px solid var(--third-color);
        color: var(--main-color);
        transition: background-color var(--main-duration) ease-in-out,
          color var(--main-duration) ease-in-out;

        &:hover {
          background-color: var(--third-color);
          color: #fff;
        }
      }
    }
    @media screen and (max-width: 992px) {
      width: 100%;
    }
  }
}

section.services {
  padding-block: 5rem;
  background-color: #f7f7f7;
  max-width: 100%;
  overflow: hidden;
  position: relative;

  .content {
    h2 {
      font-size: 3.5rem;
      font-weight: bold;
      margin-bottom: 4rem;
      color: var(--main-color);
      position: relative;
      z-index: 2;

      &::after {
        content: "";
        width: 42%;
        height: 28px;
        background-image: url(../Images/dots.png);
        background-repeat: repeat;
        position: absolute;
        bottom: -4px;
        left: 201px;
        z-index: -1;
      }
    }

    .cards {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      flex-direction: row;

      @media screen and (max-width: 776px) {
        flex-direction: column;
      }

      .card {
        width: calc(100% / 3 - 1rem);
        padding: 50px 20px;
        background: #fff;
        -webkit-box-shadow: 0px 10px 30px -8px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 10px 30px -8px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
        border-radius: 5px;
        border: none;

        @media screen and (max-width: 992px) {
          width: 100%;
        }

        span.icon {
          background-color: #f4f4f4;
          border-radius: 50%;
          padding: 2px 20px;
          transition: background-color var(--main-duration) ease-in-out;

          i {
            transition: color var(--main-duration) ease-in-out;
          }
        }

        h3 {
          margin-top: 1rem;
        }
        &:hover span {
          background-color: var(--main-color);

          i {
            color: #fff;
          }
        }
      }
    }
  }
}
section.portfolio {
  padding-block: 10rem;
  background-color: #fff;
  position: relative;

  .content {
    h2 {
      font-size: 3.5rem;
      font-weight: bold;
      margin-bottom: 4rem;
      color: var(--main-color);
      position: relative;
      z-index: 2;

      &::after {
        content: "";
        width: 24%;
        height: 29px;
        background-image: url(../Images/dots.png);
        background-repeat: repeat;
        position: absolute;
        bottom: 0px;
        left: 427px;
        z-index: -1;
      }
    }

    .navs {
      .nav {
        margin-block: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        font-weight: bold;
        font-size: 1.2rem;
        margin-bottom: 4rem;
      }
      .nav-pills {
        color: var(--main-color) !important;
        background-color: transparent !important;
      }
      .nav-link {
        color: var(--main-color) !important;
        padding-inline: 0 !important;
        margin-inline: 1rem;
      }
      .nav-pills .nav-link.active,
      .nav-pills .show > .nav-link {
        background-color: transparent;
        cursor: pointer;
        padding-inline: 0 !important;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          width: 100%;
          height: 2px;
          background-color: var(--main-color) !important;
          left: 0;
          bottom: 5px;
        }
      }
    }
    .tab-content {
      .cards {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
        margin: 0 auto;

        .card {
          width: calc(100% / 3 - 2rem);
          position: relative;

          @media screen and (max-width: 992px) {
            width: calc(50% - 2rem);
          }

          @media screen and (max-width: 776px) {
            width: 100%;
          }
          img {
            object-fit: cover;
          }

          .overlay {
            position: absolute;
            top: 100px;
            left: 100px;
            right: 100px;
            bottom: 100px;
            opacity: 0;
            background-color: #f7f7f7;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            color: var(--main-color);
            transition: all var(--main-duration) ease-in-out;

            .icons {
              display: flex;
              align-items: center;
              justify-content: center;
              gap: 1rem;

              span.icon {
                background-color: var(--main-color);
                padding: 5px 10px;
                border-radius: 50%;
                border: 1px solid var(--main-color);
                transition: background-color var(--main-duration) ease-in-out;

                i {
                  color: #fff;
                  transition: color var(--main-duration) ease-in-out;
                }

                &:hover {
                  background-color: #fff;
                  border-radius: 50%;

                  i {
                    color: var(--main-color);
                  }
                }
              }
            }
          }
          &:hover {
            .overlay {
              opacity: 0.8;
              top: 8px;
              left: 8px;
              right: 8px;
              bottom: 8px;
            }
          }
        }
      }
      .brand {
        .cards {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          gap: 2rem;
          flex-wrap: wrap;
          margin: 0 auto;
        }
      }
    }
  }
}
section.clients {
  padding-block: 5rem 10rem;
  background-color: #f7f7f7;
  position: relative;
  max-width: 100%;

  h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 4rem;
    color: var(--main-color);
    position: relative;
    z-index: 2;

    &::after {
      content: "";
      width: 49%;
      height: 37px;
      background-image: url(../Images/dots.png);
      background-repeat: repeat;
      position: absolute;
      bottom: -7px;
      left: 176px;
      z-index: -1;
    }
  }

  .carousel-indicators button.active {
    opacity: 0.9;
    background-color: var(--secondary-color);
  }
  .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color) !important;
    opacity: 0.5;
    border-radius: 50%;
  }
  .carousel-indicators {
    position: absolute !important;
    right: 0;
    bottom: -25px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
    gap: 2rem;
    /* background-color: red; */
  }
  .carousel-inner {
    .carousel-item {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 1rem;
      position: relative;

      img {
        width: 10rem !important;
        height: 10rem;
        object-fit: cover;
        border-radius: 50%;
      }
      p {
        font-size: 1rem;
      }
      p.desc {
        margin-bottom: 5rem;
      }
      h3 {
        color: var(--main-color);
      }
    }
  }
}
section.count {
  padding-block: 6rem;
  background-color: #fff;

  .cards {
    .card {
      border: none;
      text-align: center;

      i {
        font-size: 2rem;
        margin: 1rem auto;
        text-align: center;
        width: auto;
      }
      h2 {
        font-size: 2rem;
        font-weight: bold;
      }
    }
  }
}
section.team {
  padding-block: 5rem;
  background-color: #f7f7f7;

  .content {
    position: relative;
    h2 {
      font-size: 3.5rem;
      font-weight: bold;
      margin-bottom: 4rem;
      color: var(--main-color);
      position: relative;
      z-index: 2;

      &::after {
        content: "";
        width: 25%;
        height: 26px;
        background-image: url(../Images/dots.png);
        background-repeat: repeat;
        position: absolute;
        bottom: -3px;
        left: 456px;
        z-index: -1;
      }
    }
    .cards {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: row;
      gap: 2rem;

      @media screen and (max-width: 992px) {
        justify-content: flex-start;
        flex-wrap: wrap;
        flex-direction: row;
      }
      @media screen and (max-width: 776px) {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: row;
      }
      .card {
        width: calc(100% / 3 - 2rem);

        border: none;
        outline: none;
        overflow: hidden;

        &:hover {
          .overlay {
            opacity: 0.9;
          }
        }

        @media screen and (max-width: 992px) {
          width: calc(100% / 2 - 2rem);
        }
        @media screen and (max-width: 776px) {
          width: 100%;
        }
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: scale var(--main-duration) ease-in-out;
          z-index: 1;
          position: relative;
        }
        .overlay {
          position: absolute;
          top: 8px;
          left: 8px;
          right: 8px;
          bottom: 8px;
          opacity: 0;
          background-color: #f7f7f7;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: flex-end;
          padding-bottom: 4rem;
          gap: 1rem;
          color: var(--main-color);
          z-index: 3;
          transition: opacity var(--main-duration) ease-in-out;

          .icons {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            list-style: none;

            li.icon {
              width: calc(100% / 4 - 1rem);
              background-color: var(--third-color);
              border-radius: 50%;
              padding: 10px 10px;
              transition: background-color var(--main-duration) ease-in-out;
              cursor: pointer;

              &:hover {
                background-color: #fff;
                i {
                  color: var(--third-color);
                }
              }

              i {
                font-size: 1.4rem;
                color: #f7f7f7;
                text-align: center;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: color var(--main-duration) ease-in-out;
                margin-top: 2px;
                margin-left: -2px;
                margin-bottom: -2px;
              }
            }
          }
        }

        .card-body {
          background-color: #5b5b5b;
          z-index: 2;
          position: relative;
        }
        &:hover {
          img {
            scale: 1.2;
          }
        }
      }
    }
  }
}
section.contact {
  padding-block: 5rem;
  background-color: #fff;

  .content {
    position: relative;
    h2 {
      font-size: 3.5rem;
      font-weight: bold;
      margin-bottom: 4rem;
      color: var(--main-color);
      position: relative;
      z-index: 2;

      &::after {
        content: "";
        width: 49%;
        height: 26px;
        background-image: url(../Images/dots.png);
        background-repeat: repeat;
        position: absolute;
        bottom: -3px;
        left: 181px;
        z-index: -1;
      }
    }
    .cards {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 4rem;
      flex-wrap: nowrap;
      flex-direction: row;
      margin-bottom: 5rem;

      @media screen and (max-width: 992px) {
        flex-direction: column;
      }
      .card {
        width: calc(100% / 3 - 4rem);
        border: none;
        outline: none;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1.5rem;

        span {
          background-color: rgb(241, 231, 231);
          padding: 20px 20px;
          border-radius: 50%;
          width: fit-content;
          transition: background-color var(--main-duration) ease-in-out;

          &:hover {
            background-color: var(--third-color);

            i {
              color: #fff;
            }
          }
          i {
            font-size: 1.2rem;
            text-align: center;
            margin-top: 2px;
            margin-left: -2px;
            transition: color var(--main-duration) ease-in-out;
          }
        }
        p {
          font-size: 1.2rem;
        }
      }
    }
    form {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 2rem;
      @media screen and (max-width: 992px) {
        flex-direction: column;
      }
      input#name,
      input#email {
        flex: 0 0 calc(50% - 2rem);
        padding: 0.8rem;
        border-radius: 10px;
        outline: none;
        border: 1px solid rgb(241, 231, 231);
        background-color: #f4f4f4;

        @media screen and (max-width: 992px) {
          width: 100%;
        }
      }
      textarea {
        width: 100%;
        height: 10rem;
        background-color: #f4f4f4;
        padding: 0.8rem;
      }
      button {
        padding: 10px 40px;
        background-color: var(--third-color);
        color: #fff;

        border-radius: 5px;
      }
    }
  }
}
section.footer {
  padding-block: 2rem;
  background-color: var(--third-color);
  text-align: center;

  p {
    font-size: 1rem;
    color: rgb(116, 129, 130);
  }
}

/* Modal  */
.modal.show .modal-dialog {
  margin-top: 10rem;
}
