* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px solid skyblue; */
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rc {
  stroke: #fff;
  stroke-width: 5px;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawtext 1.5s linear forwards 0.5s;
}

.rc {
  width: 60%;
  animation: svg 1s ease-in forwards 1.6s;
}

@keyframes drawtext {
  from {
    stroke-dashoffset: 2000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes svg {
  from {
    fill: transparent;
  }

  to {
    fill: #fff;
  }
}

html,
body,
main,
.greetings,
.about,
.skills,
.about-info-con {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
  color: white;
  font-family: "Roboto", sans-serif;
  width: 90%;
  margin: auto;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
}

section:not(.project):not(.contact) {
  margin-bottom: 7vh;
}

img {
  max-width: 100%;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* To avoid zooming on IOS devices when typing the fields */
input,
textarea {
  font-size: 17px;
}

textarea {
  resize: none;
}

/* For links */
.link {
  color: white;
}

.menu-button,
.close-button {
  background-color: transparent;
  outline: none;
  border: none;
  position: absolute;
  padding: 15px;
  right: 4px;
  top: 4px;
}

.menu-button-img {
  background: #000;
  border-radius: 4px;
}

.menu-button-img,
.close-button-img {
  min-width: 31px;
  padding: 6px;
}

.nav {
  top: 50%;
  left: 50%;
  transform: translate(100%, -50%);
  width: 100%;
  height: 100%;
  background-color: #fff;
  visibility: hidden;
  z-index: 2;
  transition: opacity 0.3s, height 0.3s;
  display: flex;
  align-items: center;
}

.nav-list {
  list-style-type: none;
  flex-direction: column;
}

.menu-button,
.nav {
  position: fixed;
}

.menu-button {
  z-index: 1;
}

.nav-item {
  transition: background-color 0.3s;
}

.nav-link,
.nav-link-content {
  display: block;
  text-align: left;
}

.nav-link {
  font-family: "Inter", sans-serif;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 2rem;
  -webkit-tap-highlight-color: transparent;
}

.nav-link-content {
  padding: 29px 0 0 52px;
  transition: font-size 0.2s ease;
}

a[href="#greetings"] span {
  padding-top: 0;
}

.nav-social-links-con {
  width: 130px;
  display: flex;
  justify-content: space-between;
  align-self: flex-end;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link-logo {
  fill: #000;
  width: 25px;
}

.flex {
  display: flex;
}

.capital {
  text-transform: capitalize;
}

.uppercase {
  text-transform: uppercase;
}

.greetings {
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.greetings-heading {
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 43px;
  margin-bottom: 80px;
}

.skills-logos-design {
  width: 260px;
}

.arrow-down-con {
  position: absolute;
  bottom: 20px;
}

.arrow-down-icon {
  width: 45px;
}

/* Remove later */
.about {
  padding: 10px;
}

.about-info-con {
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
}

.pic-about {
  text-align: center;
}

.personal-pic {
  width: 171px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.left-quote {
  align-self: flex-start;
}

.my-journey {
  padding: 7px;
}

.right-quote {
  align-self: flex-end;
}

.skills-logos {
  height: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills-logo-con {
  width: 50%;
  height: 25%;
  justify-content: center;
  align-content: center;
}

.skill-logo {
  width: 80px;
}

/*** Projects section ***/
.project {
  position: relative;
  width: 258.394px;
  height: 258.394px;
  display: flex;
  background: white;
  color: black;
  border: 2px solid #757575;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  margin: 6rem auto;
}

.project::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: -1;
  width: 100%;
  height: 100%;
  border: 1px solid white;
  box-shadow: 15px 19px 32px rgba(255, 255, 255, 0.27);
}

.project-repo-link {
  align-self: flex-end;
}

.project-name {
  font-size: 2rem;
  display: flex;
  align-items: center;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.project-name::before {
  content: url(/assets/dash.svg);
  width: 40px;
  height: 60px;
}

.aga-chainska-name::before {
  height: 143px;
}

.project-link {
  color: black;
  text-decoration: none;
}

.projects-tools-used {
  list-style-type: none;
  display: flex;
  justify-content: space-evenly;
  margin-top: 15px;
}

.tool-used {
  font-size: 0.72rem;
  font-weight: 500;
  display: inline-block;
}

.project-description {
  width: 97%;
  margin-bottom: 20px;
}

.project-links-con {
  width: 43%;
  justify-content: space-between;
}

/* Contact & Resume Sections */
.contact-email-con,
.resume-con {
  padding: 3rem 0;
}

.contact-email,
.resume {
  font-size: 1rem;
  text-align: left;
}

.contact-email-link .resume-link {
  font-weight: 400;
  text-decoration: none;
}

/* footer */
.page-footer {
  justify-content: center;
}

.footer-links-con {
  width: 50%;
  justify-content: space-between;
}

.footer-link,
.nav-social-link {
  padding: 10px 0;
}

.footer-link-logo {
  width: 25px;
  fill: #fff;
}

.footer-link,
.nav-social-link,
.email-link {
  align-self: flex-end;
}

/* Used for sections headings */
.sections-heading {
  font-size: 2.5rem;
}

/* Media Queries */
@media screen and (min-width: 380px) {
}

@media screen and (min-width: 480px) {
}

@media screen and (min-width: 768px) {
  .menu-button,
  .close-button {
    padding: 0px;
    right: 50px;
    top: 50px;
  }

  .menu-button-img,
  .close-button-img {
    width: 40px;
  }

  .nav-link {
    font-size: 40px;
  }

  .nav-link-content {
    padding: 45px 0 0 89px;
  }

  .nav-social-links-con {
    width: 160px;
  }

  .nav-link-logo {
    width: 30px;
  }

  .greetings-heading {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: normal;
    margin-bottom: 55px;
  }

  .skills-logos-design {
    width: 330px;
  }

  .about-info-con {
    flex-wrap: nowrap;
  }

  .pic-about,
  .summary {
    align-self: center;
  }

  .personal-pic {
    width: 90%;
    margin-bottom: 0;
  }

  .projects-con {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-con:last-child {
    margin-bottom: 6rem;
  }

  .project {
    margin-bottom: 0;
  }

  .contact-email-link:hover,
  .resume-link:hover {
    text-decoration: none;
  }

  .footer-links-con {
    width: 23%;
  }
}

@media screen and (min-width: 992px) {
  /**** Navbar ****/
  .menu-button,
  .close-button {
    padding: 0px;
    right: 70px;
    top: 70px;
  }

  .menu-button-img,
  .close-button-img {
    width: 45px;
  }

  .nav-link {
    font-size: 56px;
  }

  .nav-link-content {
    padding: 54px 0 0 120px;
  }

  .nav-social-links-con {
    width: 204px;
  }

  .nav-link-logo {
    width: 36px;
  }

  .greetings {
    flex-direction: row;
    justify-content: space-between;
  }

  .greetings-heading {
    width: 50%;
    font-size: 3rem;
    margin: 0;
  }

  .skills-logos-design {
    width: 360px;
  }

  .arrow-down-con {
    left: 50%;
    transform: translateX(-50%);
  }

  /* About section  */
  .pic-about {
    width: 40%;
  }

  .summary {
    width: 60%;
  }

  .personal-pic {
    width: 75%;
  }

  /* Skills section */
  .skill-logo {
    width: 80px;
  }

  /* Projects section */
  .project-links-con {
    width: 45%;
  }
}

@media screen and (min-width: 1200px) {
  .sections-heading {
    font-size: 4rem;
  }

  /**** Navbar ****/
  .nav {
    width: 760px;
    left: auto;
    right: 0;
  }

  .menu-button,
  .close-button {
    padding: 0px;
    right: 60px;
    top: 40px;
    cursor: pointer;
  }

  .menu-button-img,
  .close-button-img {
    width: 20px;
    min-width: auto;
    padding: 0;
  }

  .menu-button-img {
    width: 30px;
    background: transparent;
    border-radius: 0;
  }

  .nav-link {
    font-size: 54px;
  }

  .nav-link-content {
    padding: 45px 0 0 95px;
  }

  .nav-social-links-con {
    width: 160px;
  }

  .nav-link-logo {
    width: 26px;
    transition: transform 0.1s ease;
  }
  .nav-link-logo:hover {
    transform: scale(1.2);
  }

  /* Nav links hover */
  .nav-link-content:hover {
    font-size: 5rem;
  }

  /* Overlay when using navbar */
  .overlay {
    width: 100%;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    height: 0;
    visibility: hidden;
  }

  /* Greetings section  */
  .greetings-heading {
    font-size: 4rem;
  }

  .skills-logos-design {
    width: 430px;
  }

  /* About section */
  .my-journey {
    font-size: 1.5rem;
  }

  /* Skills section */
  .skills {
    height: 90%;
    margin-bottom: 79px;
    display: flex;
    flex-wrap: wrap;
  }

  .skills-logos {
    height: 220px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
    align-items: center;
  }

  .skills-logo-con {
    height: auto;
  }

  .skills-logo-con:nth-child(odd) {
    justify-self: flex-end;
    align-self: flex-end;
  }

  .skills-logo-con:nth-child(even) {
    justify-self: flex-start;
    align-self: flex-start;
  }

  .big-logo {
    width: 80%;
    max-width: 100px; /* To make logos stop growing and looking weird on big screens */
  }

  /* Projects section */
  .projects-con {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact & Resume sections  */
  .contact-email-link,
  .resume-link {
    font-size: 1.2rem;
  }
}

/* Used to show hidden elements  */
.show {
  height: 100%;
  visibility: visible;
  opacity: 1;
}

/* To hide element by visibility */
.vis-hidden {
  visibility: hidden;
}

/* To hide elements with JS */
.overf-hidden {
  overflow: hidden;
}
