@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
:root {
  font-size: 62.5%;
}
body {
  font-family: "Poppins", sans-serif;
  background: #333;
  color: white;
}

/* ########  Utility  Classes  ########### */

h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.8rem;
}
p {
  font-size: 1.6rem;
}
a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}
.text-orange {
  color: orange;
}
.text-gray {
  color: rgb(209, 207, 207);
}
.btn {
  margin: 2rem auto;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(40, 48, 62, 1);
  color: white;
  box-shadow: 0 0 10px rgb(40, 48, 62);
  transition: all 0.3s ease;
}
.btn:hover {
  background: transparent;
  border: 2px solid orange;
  color: orange;
  box-shadow: none;
}
.main-heading {
  text-align: center;
  margin: 2rem;
  text-transform: uppercase;
}

.container {
  max-width: 100%;
  border-bottom: 2px groove orange;
}
.navbar-wrapper,
.header-wrapper,
.about-wrapper,
.skills,
.services-wrapper,
.project-wrapper,
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
/* ####### Below btn ### */
.scroll-up {
  position: fixed;
  bottom: 50px;
  right: 50px;
  background: rgb(130, 127, 127);
  width: 60px;
  height: 60px;
  text-align: center;
  padding: 2rem;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}
.scroll-up:hover {
  background: none;
  font-size: 5rem;
}
.scroll-up.show {
  display: flex;
}

/* ######### NavBAr styling #############33 */
.navbar {
  padding: 1rem;
  margin-bottom: 3rem;
  position: fixed;
  width: 100%;
  background: rgba(40, 48, 62, 0.9);
  z-index: 999;
}
.navbar-items {
  list-style: none;
  padding: 1rem;
}
.items {
  display: inline-block;
  margin-left: 3rem;
  font-size: 2rem;
}
.items a {
  display: block;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.items a:hover {
  border-bottom: 2px solid orange;
  font-size: 2.05rem;
}
.phone {
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.phone:hover {
  border: 2px solid orange;
  color: orange;
}
.menu {
  font-size: 2.5rem;
  display: none;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}
.menu:hover {
  color: orange;
}

/* ###########  Header Styling ################ */
.header {
  padding-top: 18rem;
}
.text-box {
  padding: 2rem;
  width: 50%;
  margin: auto;
}
.icon-wrapper {
  font-size: 2.5rem;
  margin: 1rem;
  text-align: center;
}
.icon-wrapper a i {
  border-radius: 50%;
  padding: 1rem;
  transition: all 0.3s ease;
}
.icon-wrapper a i:hover {
  border: 2px solid orange;
  color: orange;
}
.primary-btn {
  display: block;
  width: 200px;
}

.img-box {
  margin: 2rem;
}
.img-box img {
  width: 300px;
  height: 300px;
  /* border: 3px solid orange; */
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px orange;
}

/* ############   About Styling ################## */

.about-section {
  margin-top: 2rem;
  padding: 3rem;
}
.secondary-btn {
  display: block;
  width: 150px;
}

/* ########## Skill Styling ############ */
.skill-wrapper {
  margin-bottom: 9rem;
}
.skills {
  margin: auto 2rem;
}
.skill-scale {
  margin: 2rem auto;
  width: 90%;
  height: 1rem;
  background-color: gray;
  position: relative;
}
.skill-scale::after {
  content: "";
  height: 100%;
  background: linear-gradient(to right, rgb(40,48,62) , orange, orange);
  position: absolute;
  top: 0;
  left: 0;
}
.web::after {
  width: 80%;
  animation: web 3s ease-in-out 1s forwards;
  transition: all 0.3s ease;
}
.html::after {
  width: 90%;
  animation: html 3s ease-in-out 1s forwards;
}
.js::after {
  width: 75%;
  animation: js 5s ease-in-out 1s forwards;
}
.react::after {
  width: 60%;
  animation: react 3s ease-in-out 1s forwards;
}

/* ##########  Services section ############## */

.services-detail {
  background: rgb(33, 32, 32);
  padding: 1rem;
  border-radius: 2rem;
  text-align: justify;
  transition: all 0.3s ease;
}
.services-detail i {
  display: block;
  font-size: 4rem;
  color: orange;
  text-align: center;
  font-weight: 700;
  margin: 1rem;
}
.services-detail:hover {
  box-shadow: 0 0 10px rgb(33, 32, 32);
}

/* ############ Project Section ############### */
.projects {
  position: relative;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.content {
  text-align: center;
  width: 100%;
  padding: 4rem;
  background: rgba(33, 32, 32, 0.8);
  border-radius: 2rem;
}
.project1 {
  background-image: url("./img/calc.jpg");
  background-size: cover;
}
.project2 {
  background-image: url("./img/weather.jpg");
  background-size: cover;
}
.project3 {
  background-image: url("./img/todo.jpg");
  background-size: cover;
}
.project4 {
  background-image: url("./img/web.jpg");
  background-size: cover;
}
.projects i {
  display: block;
  font-size: 3rem;
  color: orange;
}
.projects:hover {
  box-shadow: 0 0 3px rgb(33, 32, 32);
}
.projects:hover .info {
  display: flex;
  top: 0;
  background:rgb(33,32,32,0.9);
}
.info {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  width: 100%;
  align-items: center;
  position: absolute;
  top: 10%;
  left: 0;
  padding: 3rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  animation: info 0.3s ease forwards;
}
.info i {
  display: block;
  text-align: center;
  color: orange;
  font-weight: 800;
}
.info i:hover {
  font-size: 3.1rem;
}

/*  ############  contact Styling ############# */
.contact-wrapper {
  align-items: flex-start;
}
.contact-info {
  padding: 2rem;
  width: 55%;
  position: relative;
  left: -100%;
  transition: all 0.3s ease;
  animation: contact 3s ease-in forwards 0.5s;
}
.info-wrapper {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
.info-wrapper i {
  font-size: 3rem;
  margin: auto 1rem;
  color: orange;
}
.detail {
  padding: 1rem;
}
.contact-form {
  width: 45%;
  padding: 1rem;
  position: relative;
  right: -100%;
  transition: all 0.3s ease;
  animation: form 3s ease-in forwards 1s;
}
.input {
  display: block;
  background: rgb(40, 48, 62);
  border: none;
  outline: none;
  margin-top: 1rem;
  padding: 1rem;
  width: 100%;
  border-radius: 1rem;
  color: white;
  font-size: 2rem;
  font-weight: 500;
}
.input::placeholder {
  font-size: 1.5rem;
  font-weight: 600;
}
#text-area {
  resize: none;
}
.msg-btn {
  margin: 1rem auto;
  display: block;
  border: 2px solid orange;
  /* outline: none; */
  padding: 1rem;
  cursor: pointer;
}

/* ############  Footer Section #################### */
.footer-wrapper {
  padding: 2rem;
}
.footer-wrapper p {
  text-align: center;
  color: lightgray;
}

/* ######  Skill Section Animationn #########3 */
@keyframes web {
  0% {
    width: 0%;
  }
  50% {
    width: 90%;
  }
  100% {
    width: 80%;
  }
}
@keyframes html {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 90%;
  }
}
@keyframes js {
  0% {
    width: 0%;
  }
  50% {
    width: 90%;
  }
  100% {
    width: 75%;
  }
}
@keyframes react {
  0% {
    width: 0%;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 65%;
  }
}

/* Peojects Animation  */

@keyframes info {
  0% {
    top: 10%;
  }
  100% {
    top: 0;
  }
}

/* Contact form */
@keyframes contact {
  0% {
    left: -100%;
  }
  100% {
    left: 0;
  }
}

@keyframes form {
  0% {
    right: -100%;
  }
  100% {
    right: 0;
  }
}

/* REsponsoive Design   */

@media (max-width: 950px) {
  .navbar-items {
    display: none;
    position: absolute;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.96);
    width: 70%;
    height: 500px;
    padding: 8rem 1rem 2rem 1rem;
    top: 0;
    right: -100%;
    transition: all 1s ease;
    border-radius: 2rem;
  }
  .active {
    display: flex;
    right: 0;
  }
  .menu {
    display: block;
  }

  /* Utility Classes  */
  .header-wrapper,
  .about-wrapper,
  .services-wrapper,
  .project-wrapper,
  .contact-wrapper {
    flex-direction: column;
    width: 100%;
  }
  .contact-info,
  .contact-form {
    width: 100%;
  }
  .text-box {
    width: 100%;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  p {
    font-size: 1.2rem;
  }
  .img-box img {
    width: 200px;
    height: 200px;
  }
}
