:root {
  --primary: #fa0e41;
}

* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: #282730;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navigation starts */
.nav__bar {
  width: 100vw;
  display: flex;
  justify-content: center;
}

.nav__container {
  width: 80%;
  height: 20%;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.nav__container .left {
  margin-left: 2rem;
  color: var(--primary);
  font-size: 26px;
}
.nav__container .right {
  display: flex;
}

.nav__links {
  margin-right: 1rem;
}
.nav__links a {
  color: #f4eee0;
  font-size: 24px;
}
.nav__links a:hover {
  color: var(--primary);
  transition: all 250ms ease;
}
.menu__btn,
.close__btn {
  position: absolute;
  right: 0;
  display: none;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.close__btn {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  top: 2rem;
  left: 1rem;
}
.right__slider {
  display: none;
  position: absolute;
  top: 0;
  right: -22rem;
  width: 20rem;
  height: 100vh;
  background-color: var(--primary);
  z-index: 100;
}
.right__slider ul {
  position: absolute;
  top: 7rem;
  left: 2rem;
}
.right__slider ul li a:hover {
  color: black;
}

/* Navigation ends */

/* Home starts */
.home__container {
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: center;
}

.home__wrapper {
  width: 80%;
  display: flex;
  justify-content: center;
  height: 90vh;
}
.home__wrapper .left {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__wrapper .left .title {
  font-size: 2rem;
  font-weight: 500;
  color: rgb(163, 163, 163);
}
.home__wrapper .left .description {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}
.home__wrapper .left .description span {
  color: var(--primary);
}
.home__wrapper .right {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home__wrapper .right .img__container {
  width: 40rem;
  height: 40rem;
  background-color: white;
  border-radius: 50%;
  background-image: url('./image/profile.jpg');
  object-fit: cover;
}
.home__wrapper .right .img__container img {
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Home ends */

/* About starts */
.about__container {
  position: relative;

  background-color: #282730;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__wrapper {
  height: 80%;
  width: 80%;
  display: flex;
}

.about__wrapper .left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about__wrapper .left .img__container {
  width: 35rem;
  height: 50rem;
  background-color: white;
  border-radius: 1rem;
}
.about__wrapper .left .img__container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.about__wrapper .right {
  flex: 1;
}

.about__wrapper .right .title {
  margin: 0.5rem;
}
.about__wrapper .right .title p {
  color: rgb(247, 245, 245);
  font-size: 48px;
  font-weight: 600;
}
.about__wrapper .right .description {
  margin: 0.5rem;
  color: rgb(188, 187, 187);
}
.about__wrapper .right .about__links__container {
}
.about__links__container ul {
  width: max-content;
  display: flex;
}
.about__links__container ul li {
  position: relative;
  margin: 0.5rem 0.5rem;
  color: rgb(232, 229, 229);
}
.about__links__container ul li:hover {
  cursor: pointer;
}
.about__links__container ul li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  border-bottom: 2px solid var(--primary);
  display: none;
}
@keyframes slide {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
.about__wrapper .about__links__container ul li:hover::after {
  display: block;
  animation: slide 500ms;
}

.about__wrapper .about__content__container {
  display: none;
  height: 20rem;
}
.about__wrapper .about__content__container span {
  color: var(--primary);
}

.about__wrapper .active-tab {
  display: block;
}

/* About ends */

/* Services starts */
.service__container {
  position: relative;
  background-color: #282730;
  width: 100vw;
  height: 70vh;
  max-height: 200vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service__wrapper {
  height: 80%;
  width: 80%;
}
.service__wrapper .title {
  margin: 1rem 0rem;
  font-size: 4rem;
  font-weight: 600;
  color: rgb(241, 234, 234);
}

.services__grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.services__grid .service1 {
  width: 25rem;
  height: 20rem;
  background-color: rgb(65, 62, 62);
  border-radius: 1rem;
}
.services__grid .service2 {
  width: 25rem;
  height: 20rem;
  background-color: rgb(65, 62, 62);

  border-radius: 1rem;
}
.services__grid .service3 {
  width: 25rem;
  height: 20rem;
  background-color: rgb(65, 62, 62);
  border-radius: 1rem;
}
.service__card {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0rem 2.5rem;
}
#service__grid__element {
  position: relative;
  transition: 250ms all ease-in-out;
}
#service__grid__element:hover {
  background-color: var(--primary);
  transform: translateY(-1rem);
  height: fit-content;
  border-radius: 20px;
}
@keyframes up {
  0% {
    top: 0;
  }
  100% {
    top: -0.5rem;
  }
}
.service__icon {
  display: flex;
  align-items: center;
  width: 5rem;
  height: 5rem;
}
.service__icon img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.service__title {
  font-size: 1.5rem;
  color: white;
}
.service__description {
  overflow: hidden;
  font-size: 1rem;
  color: rgb(198, 195, 195);
  max-height: 7.5rem;
}
.service__card:hover .service__description,
#service__grid__element {
  cursor: pointer;
  overflow: visible;
  max-height: fit-content;
  margin-bottom: 10px;
}
.service__card:hover .learn__more {
  display: none;
}
.learn__more {
  margin: 1rem 0;
  color: rgb(198, 195, 195);
}
.learn__more:hover {
  cursor: pointer;
}

/* Services ends */

/* My Works starts*/
.work__container {
  width: 100vw;
  height: 70vh;
  max-height: max-content;
  position: relative;
  background-color: #282730;
  display: flex;
  justify-content: center;
  align-items: center;
}
.work__wrapper {
  height: 80%;
  width: 80%;
}
.work__title {
  margin: 1rem 0rem;
  font-size: 4rem;
  font-weight: 600;
  color: rgb(241, 234, 234);
}
.work__slide__container {
  display: flex;
  justify-content: left;
  width: 100%;
  position: relative;
}

/* slide container */
.work__slide {
  width: 100vw;
  left: 0;
  position: relative;
  margin: auto;
}
/* slides */
.work__grid__slide {
  width: 100%;
  height: 30rem;
  /* display: grid;
  grid-template-columns: repeat(3, 27rem); */
  /* align-items: center;
  justify-items: center; */
  display: flex;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  /* display: none; */
}
.prev {
  left: -2.5rem;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.work__card {
  flex: 1;
  width: 25rem;
  height: 30rem;
  background-color: white;
  border-radius: 1rem;
  position: relative;
  overflow-y: hidden;
  transition: all ease 150ms;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  overflow-x: hidden;
}
.work__card.none {
  background: none;
}

.work__card img {
  width: 400px;
  height: 480px;
  border-radius: 1rem;
}
.work__card .layer {
  opacity: 0;
  top: 30rem;
  /* top: 0; */
  position: absolute;
  background: linear-gradient(
    rgba(42, 31, 31, 1) 9%,
    rgba(255, 0, 0, 1) 91%,
    rgb(177, 22, 43) 100%
  );
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all ease 250ms;
}
.work__card .layer .title {
  font-size: 1.5rem;
  color: white;
}
.work__card .layer .description {
  font-size: 1rem;
  text-align: center;
  color: white;
}
.work__card .layer .icon__container {
  width: 4rem;
  height: 4rem;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 1rem 0;
}

.work__card .layer img {
  width: 3rem;
  height: 3rem;
}

.work__card:hover > .layer {
  opacity: 0.7;
  transform: translateY(-30rem);
}

.work__card:hover {
  transform: scale(1.05);
}

/* My Works ends*/

/* Contact starts */
.contact__container {
  width: 100vw;
  height: 70vh;

  position: relative;
  background-color: #282730;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
}
.contact__wrapper .left {
  height: 70%;
  flex: 1;
  position: relative;
  top: -4rem;
}
.contact__wrapper .left .contact__title {
  font-size: 3rem;
  color: white;
  margin-bottom: 3rem;
}
.contact__wrapper .left .contact__info {
  width: 80%;
  min-height: 5rem;
  max-height: max-content;
  margin-bottom: 1rem;
}
.gmail__info,
.phone__info {
  display: flex;
  color: rgb(212, 209, 209);
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}
.left img {
  margin-right: 2rem;
  /* margin-bottom:0.25rem;
  margin-top: 1rem; */
  width: 2rem;
  height: 2rem;
}

.left .social__links {
  width: 80%;
  height: 4rem;
  display: flex;
  margin-bottom: 2rem;
}
.left .social__links img {
  margin-top: 2rem;
}

.contact__wrapper .right {
  flex: 2;
  margin-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact__container .right .input__name,
.contact__container .right .input__message,
.contact__container .right .input__email {
  width: 100%;
  padding: 1rem 0;
  margin: 1rem;
  background-color: rgb(84, 82, 82);
  font-size: 1rem;
  padding-left: 1.5rem;
  color: #d0d0d1;
  border-radius: 0.8rem;
  border: none;
}

.input__message {
  resize: none;
}

.contact__container .right button,
.left button {
  padding: 1rem 5rem;
  border: none;
  border-radius: 1rem;
  background-color: rgba(255, 0, 0, 0.763);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Contact ends */

.copyright {
  position: relative;
  height: 2rem;
  top: 2rem;
  width: 100vw;
  display: flex;
  justify-content: center;
  color: rgb(194, 194, 194);
}

/* css for small screen */
@media only screen and (max-width: 800px) {
  /* Nav section */
  .nav__container .right {
    display: none;
  }
  .menu__btn {
    display: block;
  }

  /* Home section */
  .home__wrapper {
    display: flex;
    flex-direction: column-reverse;
  }
  .home__wrapper .left .title {
    /* font-size: 1.2rem; */
  }
  .home__wrapper .left {
    width: 100%;
    margin-bottom: 8rem;
  }
  .home__wrapper .right {
    margin-top: 3rem;
    width: 100%;
  }
  .home__wrapper .right .img__container,
  .home__wrapper .right .img__container img {
    width: 20rem;
    height: 20rem;
    background-image: url('./image/me.jpg');
  }

  /* About Section */
  .about__container {
    height: max-content;
  }
  .about__wrapper {
    display: flex;
    flex-direction: column;
  }
  .about__content__container {
    height: max-content;
  }
  .about__wrapper .left .img__container {
    width: 20rem;
    height: 25rem;
  }

  /* Service Section */
  .service__container {
    z-index: -1;
    margin-top: 5vh;
    height: max-content;
  }
  .service__wrapper .title {
    margin-top: 5vh;
  }
  .services__grid {
    margin-top: -1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: max-content;
    z-index: 10;
  }
  #service__grid__element {
    margin-top: 2vh;
  }

  /* Works Section */
  .work__container {
    z-index: -2;
  }
  .work__wrapper {
  }
  .work__slide__container {
    position: relative;
    display: flex;
  }
  .prev,
  .next {
    position: absolute;
    z-index: 10;
  }
  .work__grid__slide {
    margin-top: 4rem;
    width: 100%;
    height: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .work__card {
    width: 100%;
    height: 15rem;
    margin-right: 0.5rem;
  }
  .work__card img {
    height: 15rem;
    overflow-x: hidden;
  }
  .layer {
    display: none;
  }
  .work__card:hover > .layer {
    opacity: 0;
    transform: translateY(0rem);
  }
  .prev {
    left: -2rem;
  }

  /* Contact Section */
  .contact__container {
    height: 100vh;
  }
  .contact__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .contact__wrapper .left,
  .contact__wrapper .right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .contact__wrapper .right {
    margin-right: 5rem;
  }
}
