@import url("https://use.fontawesome.com/releases/v5.13.0/css/all.css");

.fp-prev:before {
    color:#000;
    content: '\f35a'; /* You should use \ and not /*/
    font-family: "Font Awesome 5 Free"; /* This is the correct font-family*/
    font-style: normal;
    font-weight: normal;
    font-size:40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ededed;
}

.main-nav {
  position: fixed;
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  min-height: 8vh;
  padding: 1rem;
  transition: 0.6s;
  z-index: 10;
}

.main-nav.sticky {
  background: rgba(31, 31, 134);
  justify-content: space-between;
  padding: 0.5rem;
}

.logo {
  position: relative;
  color: aliceblue;
  font-size: 1.5rem;
  letter-spacing: 2px;
  transition: 0.6s;
}

.logo span {
  color: crimson;
  transition: 0.6s;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 40%;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: aliceblue;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 500ms ease-in-out;
}

.nav-links a:hover {
  color: crimson;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  background: crimson;
  height: 2px;
  width: 25px;
  margin: 5px;
  transition: all 0.3s ease;
}

.language {
  width: 5%;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.english {
  color: crimson;
}

/* ========================= NEXT SECTION ======================= */

#showcase {
  height: 100vh;
  background: rgba(31, 31, 134, 0.75);
  color: aliceblue;
  position: relative;
  text-align: center;
}

#showcase:before {
  content: "";
  background: url(img/showcase1.jpg) no-repeat center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-content: center;
  height: 90%;
}

#info h1 {
  font-size: 2.5rem;
}

#info p {
  font-size: 1.3rem;
  padding: 20px;
}

/* موقت  */
#info2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:center;
  align-content: center;
  height: 90%;
}

#info2 h1 {
  font-size: 5rem;
}

#info2 p {
  font-size: 2rem;
  padding: 20px;
}

/*  */

.btn {
  background-color: rgba(209, 63, 63, 0.9);
  padding: 0.8rem 1.9rem;
  color: aliceblue;
  text-decoration: none;
  border: none;
  border-radius: 20px;
  transition: all 500ms ease-in;
}

.btn:hover {
  background: aliceblue;
  color: crimson;
}

/* ========================= NEXT SECTION ======================= */
#main {
  width: 100%;
  text-align: center;
  padding: 3rem 0;
}

#main h1 {
  text-align: center;
  font-size: 2.5rem;
  color: rgb(31, 31, 134);
  letter-spacing: 2px;
  font-weight: bold;
}

.main-line {
  display: inline-block;
  width: 5rem;
  height: 3px;
  background: crimson;
  margin-bottom: 2rem;
}

.wrap-main {
  width: 80%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  align-content: center;
  margin: auto;
  background: rgba(255, 255, 255, 0.699);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-radius: 10px;
}

.wrap-main img {
  height: 40vh;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-radius: 20px;
  margin: 10px;
}

.main-section__texts {
  width: 70%;
  text-align: left;
}

.social-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.social-links div {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  min-width: 30%;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.699);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  border-radius: 10px;
}

.social-links div a {
  color: rgb(31, 31, 134);
  list-style: none;
  margin: 1rem;
}

.social-links div a:hover {
  color: crimson;
}

/* ========================= NEXT SECTION ======================= */

#skills {
  width: 100%;
  text-align: center;
  background-color: rgb(31, 31, 134);
  color: aliceblue;
  padding: 3rem 0;
}

#current-skills h1 {
  text-align: center;
  font-size: 2.5rem;
  color: aliceblue;
  letter-spacing: 2px;
  font-weight: bold;
}

.main-line-skills {
  display: inline-block;
  width: 5rem;
  height: 3px;
  background: crimson;
  margin-bottom: 1rem;
}

#current-skills h2 {
  text-align: center;
  font-size: 1.5rem;
  color: aliceblue;
  margin-bottom: 6rem;
}

.skills-wrap {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: 2rem;
}

.first {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 230px;
  background: rgba(255, 255, 255, 0.897);
  border-radius: 10px;
  color: aliceblue;
  border: orange 1px solid;
  margin: 1rem;
}

.first .header {
  background: orange;
  padding: 1rem;
  border-radius: 10px 10px 0 0;
  border-bottom: lightgray 1px solid;
}

.first .body {
  padding: 1rem;
  color: rgb(31, 31, 134);
  text-align: left;
}

.first .bottom {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem;
  font-size: 2.7rem;
  border-top: lightgray 1px solid;
}

.fa-html5 {
  color: orangered;
}

.fa-css3-alt {
  color: blue;
}

.fa-bootstrap {
  color: #7d48c9;
}

.fa-js {
  color: #eed324;
}

.fa-react {
  color: #4c6ef5;
}

.fa-node-js {
  color: green;
}

.fa-angular {
  color: crimson;
}

.fa-database {
  color: #4c6ef5;
}

.fa-server {
  color: #f783ac;
}

.fa-users {
  color: darkcyan;
}

.fa-search {
  color: darkslategrey;
}

.fa-clock {
  color: plum;
}

.second {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 230px;
  background: rgba(255, 255, 255, 0.897);
  border-radius: 10px;
  color: aliceblue;
  border: rgb(5, 107, 73) 1px solid;
  margin: 1rem;
}

.second .header {
  background: rgb(5, 107, 73);
  padding: 1rem;
  border-radius: 10px 10px 0 0;
  border-bottom: lightgray 1px solid;
}

.second .body {
  padding: 1rem;
  color: rgb(5, 107, 73);
  text-align: left;
}

.second .bottom {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem;
  font-size: 2.7rem;
  border-top: lightgray 1px solid;
}

.third {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 230px;
  background: rgba(255, 255, 255, 0.897);
  border-radius: 10px;
  color: aliceblue;
  border: crimson 1px solid;
  margin: 1rem;
}

.third .header {
  background: crimson;
  padding: 1rem;
  border-radius: 10px 10px 0 0;
  border-bottom: lightgray 1px solid;
}

.third .body {
  padding: 1rem;
  color: rgb(31, 31, 134);
  text-align: left;
}

.third .bottom {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem;
  font-size: 2.7rem;
  border-top: lightgray 1px solid;
}

.fourth {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 230px;
  background: rgba(255, 255, 255, 0.897);
  border-radius: 10px;
  color: aliceblue;
  border: darkorchid 1px solid;
  margin: 1rem;
}

.fourth .header {
  background: darkorchid;
  padding: 1rem;
  border-radius: 10px 10px 0 0;
  border-bottom: lightgray 1px solid;
}

.fourth .body {
  padding: 1rem;
  color: rgb(31, 31, 134);
  text-align: left;
  padding-left: 30px;
}

.fourth .bottom {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem;
  font-size: 2.7rem;
  border-top: lightgray 1px solid;
}

/* ========================= NEXT SECTION ======================= */

#works {
  width: 100%;
  color: rgb(31, 31, 134);
  text-align: center;
  padding-top: 3rem;
}

.my-works h1 {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.works-line {
  display: inline-block;
  width: 5rem;
  height: 3px;
  background: crimson;
  margin-bottom: 1rem;
}

.my-works h4 {
  margin-bottom: 2rem;
}

.works-wrap {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.work-one {
  width: 250px;
  padding-bottom: 3rem;
}

.work-one img {
  height: 30vh;
  width: 100%;
}

.work-one h2 {
  text-align: left;
  margin: 0.5rem 0;
}

.work-one p {
  width: 100%;
  text-align: left;
}

.work-two {
  width: 250px;
  padding-bottom: 3rem;
}

.work-two img {
  height: 30vh;
  width: 100%;
}

.work-two h2 {
  text-align: left;
  margin: 0.5rem 0;
}

.work-two p {
  width: 100%;
  text-align: left;
}

.work-three {
  width: 250px;
  padding-bottom: 3rem;
}

.work-three img {
  height: 30vh;
  width: 100%;
}

.work-three h2 {
  text-align: left;
  margin: 0.5rem 0;
}

.work-three p {
  width: 100%;
  text-align: left;
}

/* ========================= NEXT SECTION ======================= */

#contact {
  width: 100%;
  background: rgb(31, 31, 134);
  color: aliceblue;
  text-align: center;
  padding: 3rem 0;
}

.contact-me h1 {
  text-align: center;
  font-size: 2.5rem;
  color: aliceblue;
  letter-spacing: 2px;
  font-weight: bold;
}

.contact-line {
  display: inline-block;
  width: 5rem;
  height: 3px;
  background: crimson;
  margin-bottom: 1rem;
}

.contact-me p {
  margin: auto;
  width: 60%;
  padding-bottom: 2rem;
  text-align: left;
}

.wrap-form {
  width: 100%;
  color: crimson;
  font-weight: bold;
  margin: auto;
}

.wrap-form input:focus,
.wrap-form textarea:focus {
  outline: none;
  background-color: rgb(237, 237, 238);
  border-color: rgba(220, 20, 60, 0.514);
}

.name {
  width: 60%;
  text-align: left;
  margin: auto;
}

.name input {
  width: 100%;
  margin: 0.3rem 0 1rem 0;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
}

.email {
  width: 60%;
  text-align: left;
  margin: auto;
}

.email input {
  width: 100%;
  margin: 0.3rem 0 1rem 0;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
}

.massege {
  width: 60%;
  text-align: left;
  margin: auto;
}

.massege textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
}

.btn-s {
  background-color: rgb(209, 63, 63);
  padding: 0.5rem 1.9rem;
  color: aliceblue;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-top: 1.5rem;
  cursor: pointer;
}

.btn-s:hover {
  background: aliceblue;
  color: rgb(209, 63, 63);
}

/* ========================= NEXT SECTION ======================= */

#main-footer {
  padding-top: 32px;
  width: 100%;
  text-align: center;
  border-bottom: 3px solid rgb(31, 31, 134);
}

.logo-footer {
  color: rgb(31, 31, 134);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin: 1rem;
}

.logo-footer span {
  color: crimson;
}
.main-footer__links {
  list-style: none;
  text-align: center;
  padding-bottom: 20px;
}

.main-footer__link {
  display: inline-block;
  margin: 0px 16px;
}

.main-footer__link a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

.main-footer__link a:hover {
  color: crimson;
}

.footer-social-links div {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-evenly;
  width: 200px;
  font-size: 1.8rem;
  margin: auto;
}
.footer-social-links div a {
  color: rgb(31, 31, 134);
  list-style: none;
}

.footer-social-links div a:hover {
  color: crimson;
}

#main-footer p {
  margin: 0.5rem;
  color: black;
}

#toUpBtn {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  cursor: pointer;
  transition: 500ms;
  opacity: 0.5;
}

#toUpBtn:hover {
  font-size: 2.5rem;
  opacity: 1;
}

.fa-caret-square-up {
  /* display: none; */
  font-size: 2rem;
  color: crimson;
}

/* ============================================================= */
@media (max-width: 50rem) {
  body {
    overflow-x: hidden;
  }
  .nav-links {
    position: absolute;
    height: 92vh;
    width: 50%;
    top: 8.2vh;
    right: 0;
    background: rgba(31, 31, 134, 0.77);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }
  .nav-links li {
    opacity: 0;
  }
  .burger {
    display: block;
  }

  .language {
    width: 9%;
  }

  /* ================================================ */

  #main {
    height: auto;
  }

  #main h1 {
    padding-top: 1rem;
  }

  .main-line {
    display: inline-block;
    width: 5rem;
    height: 3px;
    background: crimson;
    margin-bottom: 1rem;
  }

  .wrap-main {
    width: 90%;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    border-radius: none;
  }

  .wrap-main img {
    height: 32vh;
    margin-bottom: 1rem;
  }

  .main-section__texts {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.699);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    border-radius: 10px;
    padding: 10px;
  }

  .social-links {
    margin: 2rem;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

  .social-links div a {
    color: rgb(31, 31, 134);
    list-style: none;
    /* margin: 1rem; */
  }

  /* ================================================ */

  .first, .second, .third, .fourth {
    width: 100%;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -5px);
}
