@import url("variables.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth !important;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color-dark);
}

body {
  background: var(--body-bg-1);
  color: var(--text-white);
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header Part */
#header {
  position: fixed;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  z-index: 9999;
  transition: all 0.3s linear;
}
#header.sticky {
  background: var(--theme-color-light);
}
#header.sticky .logo,
#header.sticky.menu li a {
  color: #fff;
}
#header.sticky .menu li a:hover {
  color: black;
}
#header.sticky .logo span {
  color: black;
}

#header .logo {
  flex-basis: 400px;
}
#header .logo h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}
#header .logo span {
  color: var(--theme-color-dark);
}

#menu {
  display: flex;
  align-items: center;
}
#menu li {
  list-style-type: none;
  padding: 0 0.5rem;
}
#menu li a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  transition: 0.2s ease-in-out;
}
#menu li a:hover {
  color: var(--theme-color-dark);
  font-size: 15px;
}

/* Section_1 Part */
#section_1 {
  min-height: 700px;
  width: 930px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-white);
}
#section_1 .part_1 {
  margin-right: auto;
  flex-basis: 55%;
  width: 500px;
  height: 500px;
  text-align: left;
}
#section_1 .part_1 img {
  width: 100%;
  height: 100%;
  margin-left: -10%;
}
#section_1 .part_2 {
  padding: 5rem 2rem 2rem 0rem;
  flex-basis: 45%;
  height: 500px;
  margin-right: auto;
}
#section_1 .part_2 p:nth-child(1) {
  margin-top: 5rem;
}
#section_1 .part_2 p {
  font-size: 25px;
  font-weight: 400;
  text-align: left;
}
#visitor {
  color: var(--theme-color-dark);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  max-width: 200px;
}
.typing_part {
  margin-top: -5rem;
  width: 100%;
  position: relative;
}
#section_1 .part_2 .typing {
  width: 100%;
  color: var(--theme-color-dark);
  font-size: 25px;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: #fafafa;
}

.btn {
  border: 1px solid var(--theme-color-dark);
  border-radius: 10px;
  background-color: var(--body-bg-1);
  color: var(--text-white);
  padding: 0.5rem 3rem;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s linear;
  position: relative;
}
.btn:hover {
  color: black;
  background-color: var(--theme-color-light);
}

.btn.disabled {
  border: 1px solid transparent;
  background-color: #333;
  color: black;
  cursor: not-allowed;
}

#section_1 .btn {
  margin-top: 2rem;
}

#down {
  transition: 0.2s linear;
}
.btn:hover #down {
  position: relative;
  animation: down 1s infinite;
}

@keyframes down {
  0% {
    top: 0;
  }
  50% {
    top: 10px;
  }
  100% {
    top: 15px;
  }
}

/* About Part */
#about {
  margin-top: 10rem;
  padding: 5rem 2rem;
  background-color: var(--body-bg-2);
  width: 100%;
  height: 100%;
  position: relative;
  color: var(--text-white);
}
#about .part_1 h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  position: relative;
}
#about .part_1 h2:after {
  content: "- who i am -";
  font-size: 15px;
  width: 100%;
  height: 10%;
  position: absolute;
  top: 80%;
  left: 0;
  color: var(--theme-color-dark);
}

#about .part_2 {
  margin-top: 3rem;

  display: flex;
  justify-content: center;
  grid-gap: 2rem;
}
#about .part_2 .image_part {
  flex-basis: 400px;
  width: 100px;
  height: 300px;
  position: relative;
}
#about .part_2 .image_part img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  cursor: pointer;
  transition: all 0.2s linear;
}
#about .part_2 .image_part img:hover {
  filter: grayscale(0);
  box-shadow: var(--box-shadow);
}

#about .part_2 .info {
  flex-basis: 420px;
  width: 200px;
  position: relative;
}
#about .part_2 .info h3 {
  font-size: 18px;
  font-weight: 400;
}
#about .part_2 .info marquee {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-color-dark);
}
#about .part_2 .info p {
  font-size: 15px;
  font-weight: 300;
  text-align: justify;
}
#about .part_2 .info q {
  color: var(--theme-color-dark);
}

#about .part_2 .info .btn {
  background-color: #1c2841;
  margin-top: 2rem;
}
#about .part_2 .info .btn:hover {
  background-color: var(--theme-color-light);
  color: black;
  margin-top: 2rem;
}

/* Services Part */
#services {
  width: 930px;
  padding: 5rem 2rem;
  color: var(--text-white);
  position: relative;
}
#services .part_1 h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  position: relative;
}
#services .part_1 h2:after {
  content: "- what i provide -";
  font-size: 15px;
  width: 100%;
  height: 10%;
  position: absolute;
  top: 80%;
  left: 0;
  color: var(--theme-color-dark);
}

#services .part_2 {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
}
#services .part_2 .box {
  width: 280px;
  background: #222;
  color: var(--text-white);
  padding: 1rem;
  text-align: center;
  border-radius: 6px;

  transition: all linear 0.5s;
}
#services .part_2 .box:hover {
  background-color: var(--theme-color-light);
  color: #000;
  box-shadow: var(--box-shadow);
}

#services .part_2 .box h4 {
  font-size: 20px;
  font-weight: 400;
  color: var(--theme-color-dark);
  transition: all 0.2s linear;
}

#services .part_2 .box p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  transition: all 0.2s linear;
}
#services .part_2 .box:hover h4,
#services .part_2 .box:hover p {
  transform: scale(1.05);
}
#services .part_2 .box:hover h4 {
  color: black;
}

/* Skills Part */
#skills {
  padding: 5rem 2rem;
  background-color: var(--body-bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}
#skills .part_1 h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  position: relative;
}
#skills .part_1 h2:after {
  content: "- what i know -";
  font-size: 15px;
  width: 100%;
  height: 10%;
  position: absolute;
  top: 80%;
  left: 0;
  color: var(--theme-color-dark);
}

#skills .part_2 {
  width: 930px;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  grid-gap: 2rem;
}
#skills .part_2 .info {
  flex-basis: 400px;
  width: 700px;
  height: 300px;
  position: relative;
}
#skills .part_2 .info h3 {
  font-size: 18px;
  font-weight: 700;
}
#skills .part_2 .info p {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 300;
  text-align: justify;
  line-height: 2rem;
}
#skills .part_2 .card {
  flex-basis: 420px;
  width: 300px;
  position: relative;
}

#skills .part_2 .skills {
  background-color: #222;
  padding: 1rem;
  cursor: pointer;
  transition: all linear 0.5s;
}
.skills:hover {
  box-shadow: var(--box-shadow);
}
.skill-name:nth-child(1) {
  margin-top: 0px;
}
.skill-name {
  margin-top: 2rem;
  font-weight: bold;
}
.skill-bar {
  height: 5px;
  border-radius: 4px;
  background: #282828;
}
.skill-per {
  height: 5px;
  border-radius: 4px;
  background: var(--theme-color-light);
  position: relative;
  animation: skillbar 3.5s 1;
}

.skill-per:before {
  content: attr(per);
  position: absolute;
  padding: 4px 6px;
  background: var(--text-white);
  border-radius: 4px;
  font-size: 12px;
  color: var(--body-bg-1);
  top: -35px;
  right: 0;
  transform: translateX(50%);
}
.skill-per:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--text-white);
  border-radius: 2px;
  top: -15px;
  right: 0;
  transform: translateX(50%) rotate(45deg);
}
@keyframes skillbar {
  from {
    width: 0;
    background: blue;
  }
  to {
    width: 100%;
    background: var(--theme-color-light);
  }
}

#skills .part_2 .card .button {
  margin-top: 1rem;
}
#skills .part_2 .card .btn {
  background-color: var(--body-bg-2);
}
#skills .part_2 .card .btn:hover {
  background-color: var(--theme-color-light);
  color: black;
}

#skills .part_3 {
  width: 930px;
  margin-top: 3rem;
  background-color: #222;
  padding: 1rem;
  cursor: pointer;
  transition: all linear 0.5s;
}
#skills .part_3:hover {
  box-shadow: var(--box-shadow);
}

/* Contact Part */
#contact {
  padding: 5rem 2rem;
  background-color: var(--body-bg-2);
  width: 100%;
  height: 100%;
  position: relative;
}
#contact .part_1 h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  position: relative;
}
#contact .part_1 h2:after {
  content: "- get in touch -";
  font-size: 15px;
  width: 100%;
  height: 10%;
  position: absolute;
  top: 80%;
  left: 0;
  color: var(--theme-color-dark);
}
#contact .part_2 {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  grid-gap: 2rem;
}
#contact .part_2 .info {
  flex-basis: 500px;
  width: 700px;
  position: relative;
}
#contact .part_2 .info h3 {
  font-size: 18px;
  font-weight: 700;
}
#contact .part_2 .info p {
  margin-top: 1rem;
  font-size: 15px;
  font-weight: 300;
}
#contact .part_2 .info ul {
  margin-top: 1rem;
  padding: 1rem 1rem 1rem 0rem;
}
#contact .part_2 .info ul li {
  list-style-type: none;
  padding: 1rem 1rem 1rem 0rem;
}

#contact .part_2 .info ul li i {
  float: left;
  margin-right: 30px;
  margin-top: 5px;
}
#contact .part_2 .info ul li p {
  margin-top: 2px;
  margin-left: 2.5rem;
}

#contact .part_2 .contact_form {
  flex-basis: 320px;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #222;
  padding: 1rem;
  border-radius: 6px;
  transition: all linear 0.5s;
}

.contact_form:hover {
  box-shadow: 15px 20px 15px rgb(0, 128, 0, 30%);
}

.cform {
  margin-top: 15px;
}

.input-data {
  width: 100%;
  background: #222;
  position: relative;
}
.input-data textarea {
  width: 100%;
  min-height: 71px;
  resize: none;
  background: #222;
  color: #fafafa;
  font-size: 15px;
  border: none;
  margin-top: 50px;
  border-bottom: 2px solid silver;
}
.input-data input {
  width: 100%;
  color: #fafafa;
  font-size: 15px;
  border: none;
  border-bottom: 2px solid silver;
  margin-top: 50px;
  background: #222;
}
.input-data input:focus,
textarea:focus {
  outline: none;
}
.input-data input:focus ~ label,
.input-data input:valid ~ label {
  transform: translateY(-20px);
  color: limegreen;
}
textarea:focus ~ label,
textarea:valid ~ label {
  transform: translateY(-70px);
  color: limegreen;
}
.input-data label {
  position: absolute;
  bottom: 10px;
  left: 0;
  color: grey;
  pointer-events: none;
  margin-top: 30px;
  transition: all 0.3s ease-in-out;
}
.input-data textarea label {
  position: absolute;
  bottom: 50px;
  left: 0;
  color: grey;
  pointer-events: none;
  margin-top: 0px;
  transition: all 0.3s ease-in-out;
}
.input-data .line {
  position: absolute;
  bottom: 0.1px;
  height: 2px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}
.input-data .line1 {
  position: absolute;
  top: 93%;
  bottom: 0px;
  height: 2px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}
.input-data .line:before,
.input-data .line1:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: limegreen;
  transition: all 0.3s ease-in-out;
  transform: scaleX(0);
}

.input-data input:focus ~ .line:before,
.input-data input:valid ~ .line:before,
textarea:focus ~ .line1:before,
textarea:valid ~ .line1:before {
  transform: scaleX(1);
}
.input-data .btn {
  margin-top: 30px;
  width: 100%;
}
.input-data .btn i {
  transition: all 0.2s ease-in-out;
}
.input-data .btn:hover i {
  position: relative;
  animation: right 1s infinite;
}

.c_box {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.c_box .icon {
  width: 70px;
}
.icon img {
  width: 100%;
}
.icon:nth-child(2) {
  width: 40px;
}
.icon:nth-child(3) img {
  width: 80%;
}

#section_7 {
  margin-top: 25px;
}

/*sidebar items*/
#sidebar {
  display: none;
  position: fixed;
  bottom: 10rem;
  left: 0.1rem;
  z-index: 99;
  border: none;
  outline: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  transition: 0.2s ease-in-out;
}
#sidebar_items {
  position: relative;
}
#sidebar_items ul {
  position: relative;
}
#sidebar_items ul li {
  list-style-type: none;
  display: block;
  padding: 0.5rem 0rem;
}
#sidebar_items ul li a {
  border-radius: 50%;
  padding: 0.3rem 0.5rem;
  position: relative;
  transition: 0.2s linear;
}
#sidebar_items ul li:nth-child(1) a {
  border-radius: 50%;
  padding: 0.3rem 0.7rem;
  position: relative;
  transition: 0.2s linear;
}
#sidebar_items ul li:nth-child(1):after {
  content: "";
  position: absolute;
  top: 4%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(1):hover:after {
  content: "Facebook";
  left: 110%;
}
#sidebar_items ul li:nth-child(2):after {
  content: "";
  position: absolute;
  top: 20%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(2):hover:after {
  content: "Instagram";
  left: 110%;
}
#sidebar_items ul li:nth-child(3):after {
  content: "";
  position: absolute;
  top: 37%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(3):hover:after {
  content: "YouTube";
  left: 110%;
}
#sidebar_items ul li:nth-child(4):after {
  content: "";
  position: absolute;
  top: 54%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(4):hover:after {
  content: "Linkedin";
  left: 110%;
}
#sidebar_items ul li:nth-child(5):after {
  content: "";
  position: absolute;
  top: 70%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(5):hover:after {
  content: "Github";
  left: 110%;
}
#sidebar_items ul li:nth-child(6):after {
  content: "";
  position: absolute;
  top: 87%;
  left: 100%;
  width: 100%;
  height: 10%;
  color: lime;
  font-size: 15px;
  transition: all 0.2s linear;
}
#sidebar_items ul li:nth-child(6):hover:after {
  content: "WhatsApp";
  left: 110%;
}

#sidebar_items ul li:nth-child(1) a {
  border: none;
  background-color: #1877f2;
}
#sidebar_items ul li:nth-child(2) a {
  border: none;
  background-color: #c32aa3;
}
#sidebar_items ul li:nth-child(3) a {
  border: none;
  background-color: #ff0000;
}
#sidebar_items ul li:nth-child(4) a {
  border: none;
  background-color: #0a66c2;
}
#sidebar_items ul li:nth-child(5) a {
  border: none;
  background-color: #211f1f;
}
#sidebar_items ul li:nth-child(6) a {
  border: none;
  background-color: #25d366;
}

/*Footer section*/
#footer {
  width: 100%;
  padding: 1rem 5rem;
  background-color: #121212;
  position: relative;
  text-align: center;
}
#footer h2 {
  font-size: 18px;
}
#footer p {
  font-size: 10px;
}
#footer h2 i {
  color: limegreen;
}
#top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: limegreen;
  color: #fafafa;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  transition: 0.2s ease-in-out;
}

#top:hover {
  margin-bottom: 15px;
  color: #fafafa;
  background-color: #121212;
  box-shadow: 15px 20px 15px rgba(0, 0, 0, 0.3);
}
#top i {
  font-size: 15px;
}

#menu_btn,
#projects .filter_bar.mobile {
  display: none;
}
/* Medium Screen Viewers */
@media (max-width: 800px) {
  .preloader {
    padding: 0rem 1rem;
    height: 100%;
  }
  .preloader:before {
    font-size: 4em;
  }
  .counter {
    font-size: 8em;
  }
  .counter:after {
    font-size: 0.2em;
  }
  .text {
    font-size: 20px;
    margin: 5px;
    letter-spacing: 3px;
  }

  #header {
    padding: 1rem 2rem;
    width: 100%;
  }
  #header.sticky {
    padding: 1rem 2rem;
    width: 100%;
  }
  #header.sticky .menu li a:hover {
    color: var(--theme-color-light);
  }
  #header .logo {
    flex-basis: 300px;
  }
  #header .logo h1 {
    font-size: 30px;
  }
  #menu_btn {
    display: block;
  }
  #menu_btn p {
    font-size: 30px;
    cursor: pointer;
  }

  #menu {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 20vh;
    right: -100vw;
    text-align: center;
    background-color: #121212;
    z-index: 20000;
    transition: all 0.4s linear;
  }
  #menu.active {
    right: 0;
  }
  #menu li {
    margin-top: 2rem;
    display: block;
    padding: 0.2rem 0.5rem;
    font-size: 30px;
  }
  #section_1 {
    width: 100%;
    min-height: 25rem;
    padding: 2rem;
    flex-direction: column;
  }
  #section_1 .part_1 {
    display: none;
  }
  #section_1 .part_2 {
    flex-basis: 100%;
    margin-top: 10rem;
    width: 100%;
    height: 100%;
    position: relative;
  }
  #section_1 .part_2 p:nth-child(1) {
    margin-top: 0rem;
  }
  .typing_part {
    margin-top: 0rem;
    width: 100%;
    position: relative;
  }

  #about {
    margin-top: 10rem;
    padding: 5rem 2.6rem;
  }
  #about .part_2,
  #skills .part_2,
  #contact .part_2 {
    flex-direction: column;
  }
  #skills .part_2,
  #projects .part_2 {
    width: 100%;
  }
  #about .part_2 .image_part {
    width: 100%;
    flex-basis: 0;
  }
  #about .part_2 .info {
    margin-top: 20px;
    width: 100%;
  }

  #services,
  #skills,
  #projects,
  #contact {
    padding: 5rem 2.6rem;
    width: 100%;
  }

  #services .part_2 .box {
    width: 100%;
  }

  #skills .part_2 .info {
    width: 100%;
    flex-basis: 250px;
  }
  #skills .part_2 .card {
    margin-top: 20px;
    flex-basis: 40%;
    width: 100%;
    height: 100%;
    position: relative;
  }
  #skills .part_3 {
    width: 100%;
  }
  #projects .part_2 .container {
    height: 1000px;
  }
  #projects .part_2 .container .p_cards {
    width: 100%;
  }
  #projects .part_2 .container .p_cards .p_image {
    width: 100%;
  }
  #projects .filter_bar {
    display: none;
  }
  #projects .filter_bar.mobile {
    display: flex;
  }

  .filter_bar::before {
    content: "🔍";
    width: 30%;
    top: 15%;
    left: 3%;
  }

  .custom_select {
    width: 100%;
    margin-left: 2rem;
  }

  .filter_bar ul {
    flex-direction: column;
    grid-gap: 1rem;
  }

  .filter_bar ul li {
    width: 100%;
    text-align: center;
  }

  #contact .part_2 .info {
    width: 100%;
  }
  .btn.send_btn {
    padding: 0.5rem 2rem;
  }
  #section_7 {
    margin-top: 25px;
  }
  #sidebar {
    left: -0.6rem;
  }
  #top {
    right: 0.2rem;
    padding: 12px;
  }
  #footer {
    padding: 1rem 2rem;
  }
}
