@import url('https://fonts.googleapis.com/css2?family=Dosis&family=Roboto:wght@500&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
}
:root {
  --main-color: #c89666;
}
/* minimized header */
/* header {
 
  height: 4.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0px;
} */
header {
  background: var(--main-color);
  display: flex;
  flex-direction: column;
  width: 20vw;
  height: 100vh;
  position: fixed;
  left: 0px;
  top: 0px;
  justify-content: space-evenly;
  align-items: center;
  z-index: 1;
}
header h1 {
  margin: 0px 20px;
}
.navbar-icon {
  margin: 0px 10px;
  border: 1px solid whitesmoke;
  padding: 5px;
}
.nav-bar a {
  text-decoration: none;

  font-size: 1.5rem;
  color: #fff;
}
.nav-bar li {
  opacity: 0.5;
  transition-property: font-size, opacity;
  transition-duration: 500ms, 100ms;
  list-style: none;
}
.nav-link:hover,
.nav-link:active {
  /* background-color: rgb(255, 255, 255); */
  color: #495057;
  transition: 0.3s ease-in;
}
/* .nav-bar li:hover {
  opacity: 0.8;
  font-weight: bolder;
  font-size: 1.6rem;
  color: black;
} */
.smart-btn {
  font-family: 'Roboto Condensed', sans-serif;
}

.on-scroll {
  opacity: 1;
  font-size: 1.6rem;
  color: brown;
}

/* body */
body {
  background: white;
  text-align: center;
}

/* .social-media i {
  font-size: 1.3rem;
  background-color: black;
  color: wheat;
  padding: 10px;
  border-radius: 50%;
} */

.social-media i {
  color: wheat;
  font-size: 1.5rem;
}

/* about */

.home {
  background-image: url(./img/portfolio_background2.jpg);
  background-size: cover;
}
.home {
  position: relative;
  /* z-index: -1; */
}
.text-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}
.text-center h1 {
  font-size: 4rem;
  text-align: start;
  font-family: 'Times New Roman', Times, serif;
  color: #8f5517;
}
.hire-me,
.down-cv {
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  padding: 0.1rem;
  /* border: 1px #e1b382 solid; */
  text-decoration: none;
  margin-right: 2rem;
  text-transform: none;
  /* border-radius: 100px;
  background: var(--main-color); */
  z-index: 1;
}
.btn a {
  text-decoration: none;
  color: white;
  transition: 0.5s;
  z-index: 1;
  position: relative;
  padding: 1rem;
  display: inline-flex;
}
.btn a::before {
  z-index: 0;
  content: '';
  position: absolute;
  background: url(./img/btn-bg1.png);
  width: 0%;
  height: 110%;
  top: 0;
  left: 0;

  background-size: fill;
  background-origin: left;
  transition: 0.5s;
}
.btn a:nth-child(2)::before {
  background: url(./img/btn-bg2.png);
}
.btn a:hover::before {
  width: 100%;
}
.btn span {
  position: relative;
  z-index: 1;
}
.btn {
  margin-top: 2rem;
  text-align: left;
}
/* .hire-me:hover,
.down-cv:hover {
 
  background: url(./img/btn-bg1.png);
  background-size: cover;
  transition: .5s;
  transform-origin: left;
} */
.about h1 {
  font-size: 4rem;
  text-transform: uppercase;
  line-height: 1em;
  font-family: 'Roboto', sans-serif;
  font-weight: lighter;
}
.sub-heading {
  font-family: 'Open Sans Condensed', sans-serif;
  font-size: 2rem;
}

/* about me */
.profile-pic {
  height: 300px;
  width: 300px;
  background-color: lightgray;
}
.about-container {
  width: inherit;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  margin: auto;
  box-shadow: 4px 4px 30px 0px rgb(1 0 43 / 7%);
  padding: 10px;
}
.about-content {
  margin-left: 2rem;
}
.my-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 2rem;
  margin-bottom: 20px;
}
.info-box {
  text-align: left;
  font-size: 1.5rem;
}
.info-box i {
  font-size: 1.5rem;
  color: var(--main-color);
  margin-right: 8px;
}
.info-box span {
  font-size: 1.2rem;
  font-weight: 600;
  color: grey;
}
.info-box b {
  padding-right: 0.5rem;
}
.profile-pic img {
  height: inherit;
  width: inherit;
}
.about-summary {
  padding-top: 2rem;
  text-align: justify;
}
.info-box b::before {
  content: '     >     ';
  color: #c89666;
  font-weight: 800;
  width: 5px;
  position: absolute;
  left: -16px;
}
.info-box {
  display: inline-flex;
  position: relative;
}

/* education */

h2 {
  font-size: 2.5rem;

  font-family: 'Roboto', sans-serif;
  font-weight: lighter;
  margin-bottom: 2em;
}

.skill-icons i {
  font-size: 3rem;
  padding: 5px 20px;
  margin: 10px;
}
p {
  font-family: 'Dosis', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: grey;
  letter-spacing: 0.1em;
  line-height: 1.5em;
}

/* resume */
/*education*/
.education {
  width: 70vw;
  margin-bottom: 5rem;
}
.education h4 {
  text-align: left;
  text-transform: capitalize;
  margin-left: 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #45505b;
}
.edu-card {
  box-shadow: 4px 4px 30px 0px rgb(1 0 43 / 7%);
  /* padding: 0.5rem; */
  /* margin: 0.5rem; */
  /* width: 30vw; */
  margin-left: 3vw;
  border-left: 2px solid #0563bb;
  text-align: left;
}
.edu-head {
  text-transform: uppercase;
  font-size: 1.3rem;
  color: #0563bb;
  text-align: left;
  position: relative;
  padding-left: 1rem;
}
.edu-head::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;

  background-color: white;
  border: 2px solid #0563bb;
  border-radius: 50%;
  left: -10px;
  top: 0px;
}
.edu-card p {
  margin-bottom: 0px;
  padding-bottom: 2rem;
  margin-left: 1rem;
}
.edu-card .date {
  font-size: 1rem;
  text-align: left;
  padding: 1rem;
  font-style: italic;
  color: grey;

  background: #f7f8f9;
  display: inline-block;
}
.edu-card .institute {
  font-size: 1.2rem;
  text-align: left;
  padding-left: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
/* skills */
.skills {
  position: relative;
}
.skills .fab {
  font-size: 2rem;
}
.skill-bar-container {
  width: 70vw;
  margin: auto;
  padding: 20px;
  box-shadow: 4px 4px 30px 0px rgb(1 0 43 / 7%);
}
.skill-bar-container h4 {
  text-transform: capitalize;
  text-align: left;
  padding-bottom: 2rem;
  border-bottom: 2px solid grey;
}
.progress {
  border-radius: 0%;
}
.progress-bar {
  background-color: var(--main-color);
}
.single-skill {
  padding: 5px;
}
.single-skill .label {
  text-align: left;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
/* interests */

/* projects */
.portfolio_project {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; */
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  /* background-color: lightblue; */
  /* row-gap: 5px;
  column-gap: 5px; */
}

.portfolio_item {
  /* padding: 2px; */
  margin: 5px;
  overflow: hidden;
  background-color: lightblue;
}

.portfolio_img {
  height: 300px;
  width: 100%;
  object-fit: fill;
  align-items: center;

  transition: opacity 250ms linear, transform 750ms cubic-bezier(0.5, 0, 0.5, 1);
}

/* .portfolio_item:focus {
  position: relative;
  z-index: 2;
} */
.portfolio_img:hover,
.portfolio_item:focus .portfolio_img {
  transform: scale(1.15);
  opacity: 0.5;
}
/* contact me */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background-image: url(./img/contactus.jpg); */
  background-size: cover;

  /* overflow: hidden;
  position: relative; */
}

.container {
  /* border: black 1px solid; */
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;

  align-items: center;
  margin-bottom: 2rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 80%;
}
.box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0;
  margin: 10px 0px;
  background: #ffffff;
  border-left: 1px solid var(--main-color);
  border-radius: 5%;
  box-shadow: 4px 4px 30px 0px rgb(1 0 43 / 7%);
  padding: 20px;

  width: 80%;
}

.box .icon {
  min-width: 60px;
  height: 60px;

  border-radius: 50%;
  color: rgba(255, 255, 255, 1);
  /* background-color: rgb(193, 66, 66, 0.4); */
  background-color: var(--main-color);
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-text {
  margin-left: 20px;
}
.contact-text h4 {
  font-size: 1.5rem;
  color: rgba(39, 39, 46, 1);
  text-align: left;
  font-weight: bold;
}
.contact-text p {
  font-size: 1rem;
}

.contact-form {
  background: white;
  padding: 20px;

  box-shadow: 4px 4px 30px 0px rgb(1 0 43 / 7%);
  width: 80%;
  margin-top: 2rem;
}
.contact-form h3 {
  font-size: 2rem;
  color: rgba(39, 39, 46, 1);
  font-weight: 900;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.input-box {
  position: relative;
  width: 100%;
  margin-top: 10px;
}
.input-box input,
.input-box textarea {
  padding: 10px 0px;
  margin: 10px 0px;
  width: 100%;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}
.input-box span {
  position: absolute;
  left: 0px;
  padding: 5px 0px;
  font-size: 1rem;
  margin: 10px 0px;
  pointer-events: none;
  transition: 0.5s;
  color: #6666;
}
.contact-form .input-box input:focus ~ span,
.contact-form .input-box input:valid ~ span,
.contact-form .input-box textarea:focus ~ span,
.contact-form .input-box textarea:valid ~ span {
  font-size: 14px;
  transform: translateY(-20px);
  color: rgb(193, 66, 66, 1);
  font-style: italic;
  font-weight: bolder;
}

.input-box input[type='submit'] {
  background-color: var(--main-color);
  cursor: pointer;
  border: none;
  width: 100px;
  color: white;
  font-size: 1.5rem;
  padding: 10px;
  display: flex;
}

.footer {
  min-height: 10vh;
  text-align: center;
  background-color: rgb(250, 242, 242);
  margin-top: 1rem;
}
.footer span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  font-size: 1.2rem;
}
.home,
.about,
.resume,
.projects,
.contact {
  border-bottom: 1px dashed brown;

  margin: auto;
  padding: 4em 1rem;
  min-height: 100vh;
  max-width: 80vw;
}

/*MEDIA QUERIES ------------------------------------------*/

/* for small screen */
@media (max-width: 637px) {
  .user-icon img {
    /* display: none; */

    height: 8em;
    background: wheat;
    border-radius: 50%;
    margin-bottom: 2em;
  }
  .text-center h1 {
    font-size: 3rem;
  }
  body,
  .home,
  .about,
  .resume,
  .projects,
  .contact {
    z-index: 0;
    max-width: 100vw;
  }
  .navbar-icon {
    display: block;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1;
  }
  header {
    left: -50vw;
    width: 50vw;
    transition: 0.5s ease-in-out;
  }
  .active {
    left: 0px;
  }
  /* header {
    display: flex;
    flex-direction: column;
    width: 20vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    justify-content: space-evenly;
  } */

  .nav-bar {
    /* display: none;
    z-index: 5555; */
  }
  .active {
    /* display: block;
    width: 100%;
    position: absolute;

    top: 4.5em;
    background: #c89666;

    z-index: 5555; */
  }

  .nav-bar {
    /* text-align: center; */
  }
  .nav-bar ul {
    /* list-style: none; */
  }
  .nav-bar li {
    /* padding: 0.5em; */
  }

  .social-media i {
    /* margin-right: 1.2rem; */
  }
}

/* for big sceen */
@media (min-width: 636px) {
  /* header {
    display: flex;
    flex-direction: column;
    width: 20vw;
    height: 100vh;
    position: fixed;
    left: 0px;
    top: 0px;
    justify-content: space-evenly;
  } */

  .nav-icon {
    /* hidden */
    display: none;
  }
  .nav-bar {
    text-align: center;
  }
  .nav-bar ul {
    list-style: none;
  }
  .nav-bar li {
    padding: 0.5em;
  }
  .user-icon {
    border-bottom: 1px solid saddlebrown;
    padding-bottom: 2rem;
  }
  .social-media > a {
    margin: 0px 5px;
    /* text-decoration: none; */
    color: black;
  }

  .user-icon img {
    height: 8em;
    background: wheat;
    border-radius: 50%;
    margin-bottom: 2em;
    /* position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%); */
  }

  .user-icon h4 {
    font-size: 1.5rem;
  }

  .main-body {
    padding-left: 20vw;
  }

  .my-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  /* .container {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-info,
  .contact-form {
    margin-top: 2rem;
    margin-right: 1rem;
  } */
}
@media (max-width: 1024px) and (min-width: 636px) {
  header {
    width: 30vw;
  }
  .main-body {
    padding-left: 30vw;
  }
  .portfolio_project {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .portfolio_img {
    height: 200px;
  }
  .text-center h1 {
    font-size: 4rem;
  }
}
@media (min-width: 1024px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-info,
  .contact-form {
    margin-top: 2rem;
    margin-right: 1rem;
  }
}
@media (max-width: 1275px) {
  .about .info-box b,
  .abou .info-box span {
    font-size: smaller;
  }
}

@media (max-width: 1035px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .profile-pic {
    margin-bottom: 2rem;
    height: 250px;
    width: 250px;
  }
}
