* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", "sans-serif";
  -webkit-font-smoothing: antialised;
}
html {
  scroll-behavior: smooth;
}
.header {
  position: fixed;
  width: 100%;
  z-index: 999;
}

.header.sticky {
  background: crimson;
}

nav {
  display: flex;
  padding: 1% 6%;
  margin-top: 10px;
  justify-content: space-between;
  align-items: center;
}
nav a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}
.nav-links {
  flex: 1;
  text-align: right;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
}
.nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}
.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 3px;
  background: crimson;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li:hover::after {
  width: 100%;
}

/* icons will be hidden for bigger screen */
nav .fa {
  display: none;
}

/* --------------------------------home section -------------------*/

.home {
  display: flex;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(./images/background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  color: #fff;
  min-height: 500px;
}

.home .max-width {
  width: 100%;
  display: flex;
}
.home .max-width .row {
  margin-right: 0;
}
.home .home-content {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.home .home-content .text-1 {
  font-size: 27px;
  margin: auto;
}
.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
  margin-top: -10px;
}
.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
  margin-top: -20px;
}
.home-content .text-3 span {
  color: crimson;
  font-weight: 500;
}
.hero-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  background: crimson;
  border: 2px solid crimson;
  padding: 12px 34px;
  position: relative;
  cursor: pointer;
  margin-top: 20px;
}
.hero-btn:hover {
  border: 2px solid #f44336;
  color: crimson;
  background: #fff;
  transition: 0.8s;
  border-radius: 8%;
}

.scroll-up-btn {
  position: fixed;
  height: 45px;
  width: 42px;
  background: crimson;
  right: 30px;
  bottom: 30px;
  text-align: center;
  line-height: 45px;
  color: #fff;
  z-index: 9999;
  font-size: 30px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 950px) {
  .nav-links ul li {
    display: block;
  }
  .nav-links {
    position: fixed;
    background: black;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 1s;
  }
  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }
  .nav-links ul {
    margin: 30px;
  }
  .home .home-content .text-2 {
    font-size: 70px;
  }
  .home .home-content .text-3 {
    font-size: 35px;
  }
}

@media screen and (max-width: 860px) {
  .home .home-content .text-2 {
    font-size: 60px;
    margin: auto;
  }
  .home .home-content .text-3 {
    font-size: 40px;
    margin: auto;
  }
}

@media screen and (max-width: 690px) {
  .home .home-content .text-2 {
    font-size: 50px;
    margin: auto;
  }
  .home .home-content .text-3 {
    font-size: 30px;
    margin: auto;
  }
}
@media screen and (max-width: 500px) {
  .home .home-content .text-2 {
    font-size: 35px;
    margin: auto;
  }
  .home .home-content .text-3 {
    font-size: 25px;
    margin: auto;
  }
  .hero-btn {
    font-size: 13px;
  }
}

/* ----------------------------- About Me -------------------------- */

.about .max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}
.about .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin: 20px 0;
  padding: 40px 0;
}
.about .title::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 3px;
  background: crimson;
  margin-left: -190px;
  transform: translateY(55px);
}
.about .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.about .about-content .left {
  width: 45%;
}
.about .about-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 6px;
}
.about .about-content .right {
  width: 55%;
}
.about .about-content .right p {
  text-align: justify;
}
.about .about-content .right p span {
  color: crimson;
}

@media screen and (max-width: 947px) {
  .about .about-content .column {
    width: 100%;
  }
  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }
  .about .about-content .right {
    flex: 100%;
  }
}
@media screen and (max-width: 1104px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
}

/* ------------------------------------------My Services------------------------------------------------------- */

.title {
  margin-bottom: 30px;
}
.title-text {
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 30px;
  font-family: "Poppins";
}
.title-underline {
  width: 250px;
  background: crimson;
  border: 2px solid crimson;
  margin: auto;
}

/* #############-----articles--------######### */

#services {
  margin-top: 150px;
  background: #111;
  padding: 20px 0 80px 0;
}
.services-container {
  max-width: 90vw;
  margin: 0 auto;
  color: #e0e2db;
}
.service-item {
  overflow: hidden;
  position: relative;
  padding: 60px;
  margin: 10px 10px;
  border-radius: 10px;
}
.service-item .fa {
  font-size: 60px;
  margin-bottom: 30px;
  color: #fff;
}
.service-item-black {
  /* background: linear-gradient(to right, #333333, #dd1818); */
  background: linear-gradient(to right, #ed213a, #93291e);
  opacity: 0.8;
}
.service-item-white {
  /* background: linear-gradient(to left, #333333, #dd1818); */
  background: linear-gradient(to left, #ed213a, #93291e);
  opacity: 0.8;
}
.front-text {
  text-align: center;
  transition: transform 2s;
}
.back-text {
  position: absolute;
  bottom: -15em;
  width: 75%;
  margin: 0 auto;
  height: 100%;
  transition: bottom 2s;
  padding: 30px 0;
}
.back-text h1 {
  margin-bottom: 20px;
}

/* 

If case of Button

.back-text button {
  margin-top: 20px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #e6af2e;
  font-size: 20px;
  color: #e6af2e;
}
.banner-text button:hover {
  background-color: #e6af2e;
  color: #191716;
}
.service-item-white button {
  background: #e6af2e;
  color: #191716;
}
.service-item-white button:hover {
  background: #191716;
  border-color: #e0e2db;
  color: #e6af2e;
} */

.service-item:hover .front-text {
  transform: translateY(-200px);
}
.service-item:hover .back-text {
  bottom: 0;
}

@media screen and (min-width: 776px) {
  .services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  /* .services-container .service-item:nth-of-type(1) {
    order: 1;
  }
  .services-container .service-item:nth-of-type(2) {
    order: 2;
  }
  .services-container .service-item:nth-of-type(3) {
    order: 4;
  }
  .services-container .service-item:nth-of-type(4) {
    order: 3;
  } */
}

/* ------------------------------------------My Skills------------------------------------------------------- */
.skills {
  margin-top: 80px;
  padding: 20px 0 80px 0;
}
.skills .title {
  margin: 30px;
}
.skills-text {
  text-align: center;
  font-weight: 500;
  font-size: 30px;
}
.skills-underline {
  width: 180px;
  background: crimson;
  border: 2px solid crimson;
  margin: auto;
}
.skills .row {
  margin: 1rem 0;
}
.skills .item {
  padding: 0.5rem 0;
  margin: 0.3rem 0;
  margin-left: 100px;
  margin-right: 100px;
}
.skills .item-text {
  display: flex;
  justify-content: flex-start;
  font-weight: 600;
  font-size: 20px;
  position: relative;
}
.skills .item-text span:last-child {
  position: absolute;
}
.skills .item-text .w-80 {
  margin-left: 75%;
}
.skills .item-text .w-50 {
  margin-left: 45%;
}
.skills .item-text .w-90 {
  margin-left: 85%;
}
.skills .item-text .w-70 {
  margin-left: 65%;
}
.skills .item-text .w-75 {
  margin-left: 70%;
}
.skills .item-text .w-60 {
  margin-left: 55%;
}
.progress {
  margin: 0.8rem 0;
  border-radius: 10px;
  height: 8px;
  width: 100%;
  background-color: lightgray;
  overflow: hidden;
}
.progress-bar {
  background: crimson;
  height: 100%;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}
.progress-bar.w-80 {
  width: 80%;
}
.progress-bar.w-50 {
  width: 50%;
}
.progress-bar.w-90 {
  width: 90%;
}
.progress-bar.w-70 {
  width: 70%;
}
.progress-bar.w-75 {
  width: 75%;
}
.progress-bar.w-60 {
  width: 60%;
}
.skills .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
}

@media screen and (max-width: 1100px) {
  .skills .row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 2rem;
  }
}
@media screen and (max-width: 650px) {
  .skills .item-text {
    font-weight: 600;
    font-size: 16px;
  }
}

/* ----------------------------------------My Projects------------------------------- */

#lightbox-overlay {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(29, 31, 33, 0.95);
  transition: opacity 0.3s ease-in;
}
#lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

#lightbox-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 80%;
  max-width: 60%;
  background: transparent url(".images/loading.gif") 50% 50% no-repeat;
}

/*  -------------------------------------------------------------------------- */

#project {
  background: #111;
  padding: 20px 0 80px 0;
}

.project-container {
  max-width: 90vw;
  margin: 0 auto;
}
.project-item {
  color: #fff;
  background: linear-gradient(to bottom, #ed213a, #93291e);
  margin: 20px 0;
  opacity: 0.9;
  border-radius: 20px;
}
#project .text-container h1 {
  color: #111;
}
#project .text-container ol {
  margin-left: 20px;
}
#project img {
  width: 100%;
  height: 20rem;
  display: block;
}
.img-container {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
}
.img-container .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: #fff;
  transition: opacity 4s;
  opacity: 0;
}
.img-container:hover img {
  opacity: 0.4;
}
.img-container:hover .fa {
  opacity: 1;
}

.text-container {
  padding: 10px 5px 30px 5px;
}

.text-container p {
  margin: 15px 0 25px 0;
}
.text-container a {
  text-decoration: none;
  font-size: 20px;
  padding: 2px;
  background: crimson;
  border: 1px solid crimson;
  color: #fff;
  margin-bottom: 20px;
}
.text-container a:hover {
  background: #fff;
  color: crimson;
  border-radius: 8px;
}

@media screen and (min-width: 576px) {
  .project-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }
}
@media screen and (min-width: 992px) {
  .project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }
}

/* ---------------------------- Contact Me------------------------ */

.contact {
  padding: 20px 0 80px 0;
  margin: 30px;
}
.contact .max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}
.contact .title-text {
  color: #111;
}
.contact .contact-content {
  display: flex;
  justify-content: space-between;
}
.contact .contact-content .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact .contact-content .left p {
  text-align: justify;
}
.contact .contact-content .left .icons {
  margin: 10px 0;
}
.contact .contact-content .row {
  display: flex;
  height: 65px;
  align-items: center;
}
.contact .contact-content .row .info {
  margin-left: 30px;
}
.contact .contact-content .row i {
  font-size: 25px;
  color: crimson;
}
.contact .contact-content .info .head {
  font-weight: bold;
}
.contact .contact-content .info .sub-title {
  color: #333;
}
.contact .right form .fields {
  display: flex;
}
.contact .right form .field,
.contact .right form .fields .field {
  height: 45px;
  width: 100%;
  margin-bottom: 15px;
}
.contact .right form .textarea {
  height: 80px;
  width: 100%;
}
.contact .right form .name {
  margin-right: 10px;
}
.contact .right form .field input,
.contact .right form .textarea textarea {
  height: 100%;
  width: 100%;
  border: 1px solid lightgrey;
  border-radius: 6px;
  outline: none;
  padding: 0 15px;
  font-size: 17px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}
.contact .right form .field input:focus,
.contact .right form .textarea textarea:focus {
  border-color: #b3b3b3;
}
.contact .right form .textarea textarea {
  padding-top: 10px;
  resize: none;
}
.contact .right form .button-area {
  display: flex;
  align-items: center;
}
.right form .button-area button {
  color: #fff;
  display: block;
  width: 160px;
  height: 45px;
  outline: none;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  flex-wrap: nowrap;
  background: crimson;
  border: 2px solid crimson;
  transition: all 0.8s ease;
}
.right form .button-area button:hover {
  color: crimson;
  border-radius: 6px;
  background: none;
}

@media screen and (max-width: 900px) {
  .contact-content .column .contact-form .fields {
    display: inline-block;
  }
  .contact .title-text {
    font-size: 25px;
  }
}
@media screen and (max-width: 700px) {
  .contact .contact-content {
    display: inline-block;
    margin-left: -50px;
  }
}
@media screen and (max-width: 470px) {
  .contact .title-text {
    font-size: 15px;
  }
}

/* ---------------------------------------Footer-------------------------- */
.footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.icons .fa {
  font-size: 30px;
  color: crimson;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
  transition: transform 0.5s;
}
.icons .fa:hover {
  transform: translateY(-15px);
}
