/* start Global Rules */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Roboto", serif;
  background-color: var(--textDarkMode);
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
:root {
  --main-color: #f0b90b;
  --second-color: #1f2937;
  --textDarkMode: #181a20;
  --textLightMode: #eaecef;
  --FontAwesome: "Font Awesome 6 Free";
}
.dark-theme {
  --second-color: #eaecef;
  --textDarkMode: #eaecef;
  --textLightMode: #181a20;
  footer {
    background-color: #e2e8f0;
  }
}
.special-heading {
  text-align: center;
  font-size: 50px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--main-color);
  margin: 30px 0;
  letter-spacing: 1px;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: #1f2937;
}
/* end Global Rules */

/* start nav */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: var(--textDarkMode);
}
nav {
  box-shadow: 0px -8px 20px 1px var(--textLightMode);
}
nav .main {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--textLightMode);
  animation: up-and-down 3s linear infinite;
  -webkit-animation: up-and-down 2s linear infinite;
  position: relative;
}
@media (max-width: 400px) {
  nav .main {
    font-size: 19px;
  }
  @media (max-width: 320px) {
    nav .main {
      font-size: 16px;
    }
  }
}
nav .mood svg,
nav .mood path {
  height: 20px;
  width: 20px;
}
nav .language-selector {
  height: 20px;
  cursor: pointer;
}
nav .language-selector img {
  height: 100%;
}
/* nav .lightMood.activ {
  display: none;
}
nav .nav-bar .lightMood.active {
  display: block;
} */
nav .main span:nth-child(1) {
  color: var(--main-color);
}
/* nav .main::before {
  content: "<";
  position: absolute;
  left: -15px;
  color: var(--main-color);
}
nav .main::after {
  content: "/>";
  position: absolute;
  right: -26px;
} */
nav div:nth-child(2) a {
  position: relative;
  text-transform: capitalize;
  color: var(--textLightMode);
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
nav div:nth-child(2) a::before {
  content: "";
  width: 0%;
  position: absolute;
  bottom: -5px;
  background-color: var(--main-color);
  height: 2px;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
nav div:nth-child(2) a.active,
nav div:nth-child(2) a:hover {
  color: var(--main-color);
}
nav div:nth-child(2) a.active::before,
nav div:nth-child(2) a:hover::before {
  width: 100%;
}
nav button {
  border: none;
  background-color: transparent;
}
nav button svg {
  height: 20px;
}
@media (max-width: 992px) {
  nav .nav-bar {
    right: 23px;
    z-index: 100;
    transition: 0.6s;
    position: absolute;
    top: 62px;
    flex-direction: column;
    width: calc(100% - 3rem);
    align-items: start !important;
    background-color: #ffffff29;
    padding: 20px;
    display: none !important;
    -webkit-transition: 0.6s;
    -moz-transition: 0.6s;
    -ms-transition: 0.6s;
    -o-transition: 0.6s;
  }
  nav .nav-bar.show {
    transition: 0.6s;
    display: flex !important;
    -webkit-transition: 0.6s;
    -moz-transition: 0.6s;
    -ms-transition: 0.6s;
    -o-transition: 0.6s;
  }
  nav div:nth-child(2) a {
    margin-bottom: 10px;
    width: 100%;
    padding-bottom: 5px;
  }
}

/* end nav */

/* start header */
.header {
  padding-top: 61.5px;
}
.header .img {
  position: relative;
}
.header .img::before {
  position: absolute;
  content: "";
  background-color: var(--main-color);
  padding: 160px;
  border-radius: 10px 100px 58px 20px;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.header div img {
  height: 400px;
}
.header div {
  color: var(--textLightMode);
}
.header h1 {
  text-transform: uppercase;
}
.header h1 span:nth-child(2) {
  color: var(--main-color);
}
.header h2,
.header h2 span {
  color: var(--main-color);
  text-transform: uppercase;
  font-size: 20px;
  position: relative;
  width: fit-content;
  min-height: 25px;
  overflow: hidden;
}
@media (max-width: 550px) {
  .header h2 {
    font-size: 17px;
  }
}
.header h2::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--textDarkMode);
  top: 0px;
  left: 0;
  z-index: 1;
  border-left: 1px solid var(--main-color);
  padding-left: 5px;
  animation: autoType 7s steps(14) infinite;
  -webkit-animation: autoType 7s steps(14) infinite;
}
@keyframes autoType {
  50% {
    left: 100%;
  }
  100% {
    left: 0%;
  }
}
.header h2 .tag {
  opacity: 0.5;
  margin-left: 5px;
}
.header p {
  line-height: 30px;
  letter-spacing: 0.5px;
}
.header ul {
  flex-wrap: wrap;
}
.header ul a {
  margin-right: 20px;
  display: block;
  margin-bottom: 20px;
}
.header ul img {
  transition: 0.3s;
  height: 40px;
  max-width: 45px;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
.header ul img:hover {
  scale: 1.3;
}
.header .Contact a {
  color: var(--textLightMode);
  border: 1px solid var(--main-color);
  padding: 7px 30px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  position: relative;
  overflow: hidden;
  margin-right: 20px;
  margin-bottom: 20px;
  white-space: normal;
}
.header .Contact a::before {
  position: absolute;
  content: "";
  left: 0;
  background-color: var(--main-color);
  height: 100%;
  top: 0;
  color: var(--bs-black);
  z-index: -1;
  width: 0%;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}
.header .Contact a:hover {
  color: var(--textDarkMode);
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}
.header .Contact a:hover::before {
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
  width: 100%;
}
/* end header */

/* start skills */
.skills img {
  height: 25px;
  width: 25px;
}
.skills .gitImg {
  background-color: white;
  border-radius: 50%;
}
.skills div {
  color: var(--textLightMode);
}
.skills .prog {
  position: relative;
  height: 9px;
  width: 100%;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 30px;
}
.skills .prog span {
  border-radius: 25px;
  width: 0;
  height: 100%;
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  transition: width 0.3s linear;
  -webkit-transition: width 0.3s linear;
  -moz-transition: width 0.3s linear;
  -ms-transition: width 0.3s linear;
  -o-transition: width 0.3s linear;
}
.skills span {
  font-size: 18px;
}
.skills .css {
  background-color: #0277bd;
  /* width: 100%; */
}
.skills .c-css {
  color: #0277bd;
}
.skills .html {
  background-color: #e8a72a;
  /* width: 100%; */
}
.skills .c-html {
  color: #e8a72a;
}
.skills .bootstrap {
  background-color: #7710f7;
  /* width: 90%; */
}
.skills .c-bootstrap {
  color: #7710f7;
}
.skills .js {
  background-color: #f0dc4e;
  /* width: 80%; */
}
.skills .c-js {
  color: #f0dc4e;
}
.skills .vue {
  background-color: #41b783;
  /* width: 50%; */
}
.skills .c-vue {
  color: #41b783;
}
.skills .sql {
  background-color: #591a1e;
  /* width: 85%; */
}
.skills .c-sql {
  color: #591a1e;
}
.skills .c {
  background-color: #68217a;
  /* width: 60%; */
}
.skills .c-c {
  color: #68217a;
}
.skills .git {
  background-color: #000000;
  /* width: 65%; */
}
.skills .c-git {
  color: #000000;
}
/* end skills */

/* start services */
.services .box {
  box-shadow: 0px 0px 7px -3px black;
  position: relative;
  background-color: var(--second-color);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  top: 0;
  min-height: 340px;
}
.services .box:hover {
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  top: -15px;
  box-shadow: 0px 0px 10px 1px white;
}
.services .box span {
  font-size: 40px;
}
.services h3 {
  color: var(--textLightMode);
  margin: 10px 0;
}
.services p {
  color: #9ca3af;
}
/* end services */

/* start projects */
.projects .box {
  background-color: var(--second-color);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  box-shadow: 0px 0px 7px -3px black;
}
.projects .box:hover {
  scale: 1.03;
  box-shadow: 0px 0px 10px 1px white;
}
.projects img {
  height: 150px;
  margin: 0 auto 20px;
  display: block;
}
.projects span {
  color: var(--textLightMode);
  text-transform: uppercase;
}
.projects a {
  color: var(--main-color);
}
/* end projects */

/* start contact */
.contact form {
  max-width: 500px;
  margin: auto;
  background-color: var(--second-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0px 0px 7px -3px black;
}
.contact label {
  margin-top: 10px;
  display: block;
  color: var(--textLightMode);
  margin-bottom: 10px;
  text-transform: capitalize;
}
.contact input {
  color: var(--textLightMode);
  transition: 0.3s;
  width: 100%;
  border: 0;
  padding: 10px;
  border-radius: 5px;
  background-color: #6976875e;
  outline: 1px solid transparent;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
.contact p {
  color: red;
  min-height: 25px;
  margin: 0;
  display: none;
}
.contact form .error .error-txt {
  display: block;
}
.contact textarea {
  color: var(--textLightMode);
  transition: 0.3s;
  border-radius: 5px;
  width: 100%;
  resize: none;
  min-height: 100px;
  background-color: #6976875e;
  padding: 10px;
  outline: 1px solid transparent;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
.contact input:focus-visible,
.contact textarea:focus-visible {
  /* border: 1px solid var(--main-color); */
  outline: 1px solid var(--main-color);
}
.contact button {
  transition: 0.3s;
  color: var(--second-color);
  padding: 10px 30px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  background-color: var(--main-color);
  width: 100%;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  margin: 10px 0;
  border: none;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
.contact button:hover {
  background-color: #e8a72a;
}
/* end contact */

/* start footer */
footer {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--second-color);
  font-size: 18px;
}
footer div {
  color: var(--textLightMode);
  padding-bottom: 5px;
}
footer span:nth-child(1) {
  color: var(--main-color);
  text-transform: uppercase;
}
footer .scroltop {
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  left: 20px;
}
footer .scroltop svg {
  position: relative;
  background-color: var(--main-color);
  border-radius: 50%;
  height: 40px;
  padding: 10px;
  width: 40px;
  opacity: 0;
  animation-name: apper;
  animation-timeline: scroll(y);
}
footer .icons a {
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  footer {
    flex-direction: column;
  }
}
@media (max-width: 550px) {
  footer div {
    font-size: 15px;
  }
}
/* end footer */

/* start animation */
.autoShow {
  animation: autoShowanimation both;
  -webkit-animation: autoShowanimation both;
  animation-timeline: view(70% 5%);
}
@keyframes up-and-down {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: -10px;
  }
}
@keyframes apper {
  0% {
    opacity: 0;
    display: none;
  }
  100% {
    opacity: 1;
    display: block;
  }
}
@keyframes autoShowanimation {
  0% {
    opacity: 0;
    transform: translateY(200px) scale(0.3);
    -webkit-transform: translateY(200px) scale(0.3);
    -moz-transform: translateY(200px) scale(0.3);
    -ms-transform: translateY(200px) scale(0.3);
    -o-transform: translateY(200px) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
    -webkit-transform: translateY(0px) scale(1);
    -moz-transform: translateY(0px) scale(1);
    -ms-transform: translateY(0px) scale(1);
    -o-transform: translateY(0px) scale(1);
  }
}
/* end animation */
