:root {
  --first-color: #212832;
  --second-color: #0088FF;
  --third-color: #393e46b9;
  --main-font: "Poppins", sans-serif;
}

body {
  background-color: var(--first-color);
  overflow-x: hidden !important;

}

h1, h2, h3.h4, h5, h6 {
  font-family: var(--main-font);
}

a {
  text-decoration: none;
}

.sec-color {
  color: var(--second-color);
}

.scrolly {
  position: fixed;
  right: -40px;
  bottom: 28px;
  color: white;
  background-color: var(--second-color);
  padding: 10px;
  border-radius: 8px;
  transition: 0.5s;
}

.scrolly.show {
  right: 10px;
}



/* start animation head-section */


.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  height: 8rem;
}

.content h2 {
  color: #fff;
  font-size: 3em;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  width: 100%;
  text-align: center;
}

.content h2:nth-child(1) {
  color: transparent;
  -webkit-text-stroke: 2px var(--second-color);
}

.content h2:nth-child(2) {
  color: white;
  animation: animate 4s ease-in-out infinite;
}

@keyframes animate {

  0%,
  100% {
    clip-path: polygon(0% 45%,
        16% 44%,
        33% 50%,
        54% 60%,
        70% 61%,
        84% 59%,
        100% 52%,
        100% 100%,
        0% 100%);
  }

  50% {
    clip-path: polygon(0% 60%,
        15% 65%,
        34% 66%,
        51% 62%,
        67% 50%,
        84% 45%,
        100% 46%,
        100% 100%,
        0% 100%);
  }
}

/* end animation head-section */

/* start nav */
nav {
  background-color: transparent;
  width: 100%;
  border-bottom: 1px solid #c5c5c54a;
  position: fixed !important;
  z-index: 9999999999999999;

  .navbar-toggler {
    background-color: white;
    color: var(--second-color);
    border: none;
  }

  .navbar-brand {
    img {
      width: 160px;
    }
  }

  .collapse a {
    color: white;

    &:hover {
      color: var(--second-color);
    }
  }

  .collapse a.active {
    color: var(--second-color) !important;
  }
}

/* end nav */




/* start main-sec */
.main-sec {
  position: relative;

  .container {
    .row {
      height: 100vh;
    }

    .text {
      h1 {
        color: white;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 60px;
        line-height: 60px;
        margin: 20px 0;
      }

      .p {
        color: white;
      }
    }
  }

  .net {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    z-index: -1;
  }
}

/* end main-sec */


/* start about */
.about {

  h2 {
    color: white;
    font-size: 40px;
  }

  .container {
    p {
      color: hsl(0, 0%, 100%);
      font-family: var(--main-font);
      font-size: 14px;
      line-height: 30px;
    }

    .row {
      .image {
        img {
          width: 80%;
        }
      }
    }
  }
}

/* end about */

/* start services */
.services {
  .container {


    p {
      color: hsl(0, 0%, 75%);
      font-family: var(--main-font);
      margin-top: 80px;
    }

    .row {

      .card {

        padding: 40px;

        height: 100%;
        background-color: transparent;
        color: white;
        border: 1px solid;
        transition: 0.5s;
        border-radius: 15px;

        i {
          color: var(--second-color);
        }

        p {
          color: hsl(0, 0%, 75%);
          font-family: var(--main-font);
        }

        &:hover {
          background-color: white;

          h3 {
            color: black;

            i {
              color: var(--second-color);
            }
          }

          p {
            color: black;
          }
        }
      }
    }
  }



}

/* end services */

/* start projects */
.projects {
  .container {
    align-content: center;
  }

  h2 {
    color: white;
    font-size: 40px;
  }

  .card {
    background-color: transparent;
    border-radius: 10px;
    border: 3px solid white;
    position: relative;
    overflow: hidden;
    transition: 0.5s;

    &:hover {
      box-shadow: 0 0 10px white;
      transform: scale(1.01);

      .overlay {
        transform: translateY(0);
      }
    }

    a {
      position: absolute;
      background-color: var(--second-color);
      padding: 5px 20px;
      border-radius: 10px;
      color: white;
      bottom: 10px;
      right: 10px;
    }

    img {
      border-radius: 10px;
    }
  }

}

/* end projects */

/* start contact  */
.contact {
  .container {
    align-content: center;
  }

  h2 {
    color: white;
    font-size: 40px;
  }

  form {
    label {
      color: white;
      font-weight: bold;
      margin-bottom: 10px;
      font-family: var(--main-font);
      font-size: 14px;
    }

    .name input, .email input, textarea {
      outline: none;
      background-color: white;
      border: none;
      border-radius: 10px;

      &::placeholder {
        color: hsla(0, 0%, 0%, 0.27);
        font-weight: bold;
        font-family: var(--main-font);
      }
    }

    .submit {
      background-color: var(--second-color);
      color: white;
      margin-top: 20px;
    }
  }
}

/* end contact  */


/* start footer */
footer {
  border-top: 1px solid transparent;
  box-shadow: 0px 0px 2px var(--second-color);

  .container {
    .social {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 50px;
      padding: 26px;

      a {
        background-color: var(--second-color);
        color: white;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        transition: 0.3s;

        &:hover {
          color: var(--second-color);
          background-color: var(--first-color);
          border: 1px solid white;
        }
      }
    }
  }
}

/* end footer */



/* waves */
.ocean {
  height: 80px;
  width: 100%;
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  overflow-x: hidden;
  transform: rotate(180deg);
}

.wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23003F7C'/%3E%3C/svg%3E");
  position: absolute;
  width: 200%;
  height: 100%;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
}

.wave:nth-of-type(2) {
  bottom: 0;
  animation: wave 18s linear reverse infinite;
  opacity: 0.5;
}

.wave:nth-of-type(3) {
  bottom: 0;
  animation: wave 20s -1s linear infinite;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* end waves */


/* start loading */
.loading {
  background-color: var(--first-color);
  color: var(--second-color);
  font-family: Consolas, Menlo, Monaco, monospace;
  font-weight: bold;
  font-size: 78px;
  position: fixed;
  z-index: 99999999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-text-fill-color: white;
  -webkit-text-stroke-width: 2px;
}

.loading img {
  width: 60px;
}

.loading:before {
  content: "{";
  display: inline-block;
  animation: pulse 0.4s alternate infinite ease-in-out;
}

.loading:after {
  content: "}";
  display: inline-block;
  animation: pulse 0.4s 0.3s alternate infinite ease-in-out;
}

@keyframes pulse {
  to {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* end loading */
