@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  outline: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

:root {
  --main-color: #39b54a;
  --sec-font: 'Varela Round', sans-serif;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

main {
  height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url(img/bg.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

main header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
  background: transparent;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  padding: 0 30px;
  overflow: hidden;
}

main header .nav::-webkit-scrollbar {
  display: none;
}

main header .nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  left: 0;
  transition: 0.3s;
  height: 0;
  overflow: hidden;
  display: none;
}

main header .nav.active {
  height: 30px;
  overflow: auto;
}

main header .nav nav ul {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

main header .nav nav ul li:last-child {
  margin-right: 0;
}

.section_name {
  color: var(--main-color);
  font-family: var(--sec-font);
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.2); */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sticky ul li a {
  color: #000;
}

.sticky .menu .line {
  background: #000;
}

main header h1.logo {
  font-family: var(--sec-font);
  color: var(--main-color);
}

main header .menu {
  width: 30px;
  height: 30px;
  display: none;
  cursor: pointer;
  z-index: 2999;
  position: relative;
}

main header .menu .line {
  width: 100%;
  height: 3px;
  background: #fff;
  margin-bottom: 7px;
  transition: 0.5s;
}

main header .menu .line:nth-child(1).active {
  transform: rotate(45deg);
  position: relative;
  top: 10px;
}

main header .menu .line:nth-child(2).active {
  transform: rotate(-45deg);
}

main header .menu .line:nth-child(3).active {
  opacity: 0;
}

main header ul li {
  display: inline-block;
  margin-right: 20px;
}

main header ul li a {
  color: #fff;
  transition: 0.3s;
  position: relative;
}

main header ul li a:hover {
  color: var(--main-color);
}

main header ul li a::before {
  position: absolute;
  content: '';
  width: 0;
  height: 2px;
  background: var(--main-color);
  bottom: 0;
  transition: 0.5s;
  right: 0;
}

main header ul li a:hover::before {
  width: 100%;
  left: 0;
}
/* 
main h1.text {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 80%;
}

main h1.text button {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--main-color);
  border-radius: 2px;
  border: none;
  font-family: var(--sec-font);
  font-size: 18px;
  cursor: pointer;
}

main h1.text button a {
  color: #fff;
}

main h1 span {
  color: var(--main-color);
  text-transform: uppercase;
  font-family: 'Varela Round', sans-serif;
} */

main .my_code {
  width: 80%;
  padding: 20px;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #151718;
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-size: 1.8rem;
}

@media screen and (max-width: 768px) {
  main .my_code {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 425px) {
  main .my_code {
    font-size: 1rem;
  }
}

@media screen and (max-width: 375px) {
  main .my_code {
    font-size: 0.9rem;
    width: 95%;
  }
}

main .my_code .first_line {
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
  animation: animated-text 2s steps(30, end) 1s 1 normal both;
  font-family: 'Varela Round', sans-serif;
}

main .my_code p:nth-child(2) {
  animation-delay: 1.5s;
}

main .my_code p:nth-child(3) {
  animation-delay: 2s;
}

main .my_code p:nth-child(4) {
  animation-delay: 2.5s;
}

main .my_code p:nth-child(5) {
  animation-delay: 3s;
}

main .my_code p:last-child {
  animation-delay: 4.2s;
}

main .my_code .first_line .bracket,
main .my_code .first_line.bracket {
  color: #fff;
}

main .my_code .sec_line {
  margin-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  animation: animated-text 2s steps(30, end) 1s 1 normal both;
  font-family: 'Varela Round', sans-serif;
}

@keyframes animated-text {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

main .my_code .sec_line .name {
  color: #8965a8;
  font-family: 'Varela Round', sans-serif;
}

main .my_code .sec_line .double_points {
  color: #fff;
}

main .my_code .sec_line .content {
  color: #03a9f4;
  margin-left: 5px;
  font-family: 'Varela Round', sans-serif;
}

main .my_code .sec_line .content.number {
  color: #e91e63;
  font-family: 'Varela Round', sans-serif;
}

.skills {
  background: #fff;
  padding: 2rem;
}

.skills .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: auto;
  flex-wrap: wrap;
}

.skills .container .web,
.skills .container .others {
  width: 50%;
}

.skills .container .web,
.others {
  padding: 0.5rem;
}

.skills .container .web h4,
.skills .container .others h4 {
  padding-top: 1rem;
  padding-bottom: 0.2rem;
}

.skills .container .web .lang,
.skills .container .others .lang {
  display: block;
  width: 70%;
  height: 20px;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.skills .container .web .lang span,
.skills .container .others .lang span {
  display: block;
  height: calc(100% - 10px);
  background: var(--main-color);
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  border-radius: 2rem;
  max-width: calc(100% - 10px);
}

.skills .container .web .lang .html_css {
  width: 100%;
}

.skills .container .web small,
.skills .container .others small {
  color: var(--main-color);
}

.skills .container .web .btp {
  width: 90%;
}

.skills .container .web .lang .js {
  width: 20%;
}

.skills .container .web .lang .figma {
  width: 70%;
}

.skills .container .web .lang .Illustrator {
  width: 0%;
}

.skills .container .others .ae {
  width: 0%;
}

.skills .container .others .xd {
  width: 0%;
}

.skills .container .others .ap {
  width: 0%;
}

.projects .container {
  width: 80%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: auto;
}

.projects .container .card {
  width: 350px;
  height: 400px;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  margin: auto;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.projects .container .card .card-img {
  width: 100%;
  height: 50%;
  background: black;
  overflow: hidden;
  position: relative;
}

.projects .container .card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  cursor: pointer;
}

.projects .container .card .card-img:hover img {
  transform: scale(1.2) rotate(5deg);
}

.projects .container .card .card-side {
  width: 100%;
  height: 50%;
  padding: 20px;
}

.projects .container .card .card-side .name_preview {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.projects .container .card .card-side .type {
  margin: 10px 0;
  font-family: var(--sec-font);
}

.projects .container .card .card-side .name_preview h2 {
  color: var(--main-color);
}

.projects .container .card .card-side .tech h3 {
  color: var(--main-color);
}

.projects .container .card .card-side .tech p {
  margin: 10px 0 0;
  font-family: var(--sec-font);
}

.projects .container .card .card-side .btn {
  border: solid 1px var(--main-color);
  background: none;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  transition: 0.8s;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.projects .container .card .card-side .btn div {
  width: 25%;
  height: 100%;
  background: var(--main-color);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: -1;
  transition: 0.5s;
}

.projects .container .card .card-side .btn:hover div {
  top: 0;
}

.projects .container .card .card-side .btn div:nth-child(2) {
  left: 25%;
  transition-delay: 0.2s;
}

.projects .container .card .card-side .btn div:nth-child(3) {
  left: 50%;
  transition-delay: 0.4s;
}

.projects .container .card .card-side .btn div:nth-child(4) {
  left: 75%;
  transition-delay: 0.6s;
}

.projects .container .card .card-side .btn a {
  color: #000;
  text-decoration: none;
  transition: 0.5s;
  color: var(--main-color);
  transition: 0.8s;
}

.projects .container .card .card-side .btn:hover a {
  color: #fff;
}

/* .projects .container .card .card-side .btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  z-index: -1;
  background: var(--main-color);
  transition: 0.8s;
}

.projects .container .card .card-side .btn:hover::before {
  height: 100%;
  border-radius: 0 0 50% 50%;
} */

@media screen and (max-width: 898px) {
  main h1.text {
    font-size: 1.2rem;
  }
  .container {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .skills .container .web,
  .skills .container .others {
    width: 100%;
    padding: 0;
  }

  .skills .container .web .lang,
  .skills .container .others .lang {
    width: 100%;
    padding: 0;
  }
}

.contact {
  margin-bottom: 50px;
}

.contact .container {
  width: 80%;
  margin: auto;
}

.contact .container form .field {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact .container form .field .content {
  width: calc(50% - 20px);
  margin-bottom: 10px;
  margin: 0 10px 10px;
}

.contact .container form .field .content input {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--main-color);
  transition: 0.5s;
}

.contact .container form .field .content textarea:hover,
.contact .container form .field .content input:hover {
  background: rgba(57, 181, 74, 0.2);
}

.contact .container form .field .content textarea:focus,
.contact .container form .field .content input:focus {
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.8);
  background: rgba(57, 181, 74, 0.5);
  color: #000;
}

.contact .container form .send_content button:focus {
  box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.5);
}

.contact .container form .field .content input:last-child {
  margin-bottom: 0;
}

.contact .container form .field .content textarea {
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--main-color);
  resize: none;
  transition: 0.5s;
}

.contact .container form .send_content {
  width: 100%;
  margin: 15px 0 0;
}

.contact .container form .send_content button {
  padding: 10px 20px;
  background: var(--main-color);
  border: none;
  color: #fff;
  width: 120px;
  height: 50px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
}

/* footer {
  width: 100%;
  height: 30px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0 15px;
  border-top: 1px solid var(--main-color);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  font-weight: lighter;
}

footer p .fa {
  color: crimson;
}

footer p span {
  color: var(--main-color);
  cursor: pointer;
}

footer .icons {
  display: flex;
  width: 5%;
  justify-content: space-between;
}

footer .icons .ico .fab {
  cursor: pointer;
  color: var(--main-color);
} */

footer {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: var(--main-color);
}

footer p {
  color: #fff;
  font-size: 0.8rem;
}

footer p span {
  font-family: var(--sec-font);
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

footer .icons {
  display: flex;
  align-items: center;
  height: 100%;
}

footer .icons .ico:not(:last-child) {
  margin-right: 20px;
}

footer .icons .ico {
  cursor: pointer;
  position: relative;
}

footer .icons .ico .fab {
  font-size: 0.9rem;
}

/* footer .icons .ico::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
} */

footer .icons .ico .fab {
  color: #fff;
}

@media screen and (max-width: 376px) {
  footer .icons .ico:not(:last-child) {
    margin-right: 10px;
  }
  footer p span {
    display: block;
  }
}

@media screen and (max-width: 1440px) {
  /* footer .icons {
    width: 7%; */
}

@media screen and (max-width: 1024px) {
  /* footer .icons {
    width: 9%;
  } */
}

@media screen and (max-width: 768px) {
  /* footer .icons {
    width: 11%;
  } */
}

@media screen and (max-width: 425px) {
  /* footer .icons {
    width: 20%;
  } */
}

@media screen and (max-width: 354px) {
  /* footer {
    height: 70px;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  } */

  .contact {
    margin-bottom: 90px;
  }
}

@media screen and (max-width: 768px) {
  header #menu {
    display: block;
  }

  header ul.navbar {
    display: none;
  }

  header #nav {
    display: block;
  }

  .contact .container form .field .content {
    width: 100%;
  }
}

@media screen and (max-width: 375px) {
  .projects .container .card .card-side .name_preview h2 {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 341px) {
  .projects .container .card .card-side {
    height: 60%;
  }
  .projects .container .card .card-img {
    height: 40%;
  }
}
