@import url('https://fonts.googleapis.com/css2?family=Crete+Round&family=Poppins&family=Roboto:wght@700&family=Inter:wght@400;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

hr {
  width: 80vw;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: #3c3a39;
  color: white;
  flex-direction: column;
  align-items: flex-start;
}

header.active {
  height: 90vh;
  justify-content: stretch;
}

li {
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 22px;
  line-height: 43px;
  text-align: center;
  color: #fff;
  padding: 5px;
}

.card-stacks li {
  background: rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.project-stacks li {
  display: inline;
  border: 1px solid #8993a4;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  transition: 350ms;
  cursor: pointer;
}

.project-stacks li:hover {
  background: rgba(0, 0, 0, 0.349);
}

#desktop-nav ul li {
  text-align: center;
}

header.active #desktop-nav ul li {
  text-align: left;
  padding: 0;
}

#logo {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 24px;
  color: white;
}

#desktop-nav {
  display: none;
  width: 100%;
  margin-top: 4rem;
}

#desktop-nav ul {
  flex-direction: column;
  width: 100%;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #fff;
  border: 1px solid transparent;
  transition: 350ms;
}

.menu-bars {
  background: transparent;
  border: none;
  outline: none;
  position: absolute;
  top: 1.28rem;
  right: 1rem;
}

.menu-bars i {
  width: 18px;
  height: 12px;
  color: white;
}

@media (min-width: 720px) {
  header {
    flex-direction: row;
    align-items: center;
  }

  #desktop-nav,
  #desktop-nav ul {
    flex-direction: column;
    width: initial;
    margin-top: 0;
  }
}

main {
  display: flex;
  flex-direction: column;
}

#intro,
#about-me {
  background-color: #1c1a19;
  color: white;
  position: relative;
}

#intro {
  padding: 10%;
  padding-bottom: 20vh;
}

.intro-icon {
  position: absolute;
  right: 0;
  bottom: 0;
}

.desktop-icon {
  display: none;
}

.card h2 {
  font-family: 'Crete Round', serif;
  font-style: normal;
  font-weight: normal;
  font-size: 32px;
  line-height: 44px;
  color: #fff;
}

.intro-greet,
#about-me h2 {
  color: #ff6b00;
  font-family: 'Crete Round', serif;
  font-style: normal;
  font-weight: normal;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: 0.37px;
}

.intro-me {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  align-items: center;
  color: #fff5e1;
}

.intro-text {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.social {
  display: flex;
}

.social-link {
  padding: 5px;
  background-color: transparent;
  transition: 350ms;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.096);
}

.social-icon {
  height: 20px;
}

.about-me-section,
.stacks {
  position: relative;
  padding: 10%;
  padding-bottom: 20vh;
}

#projects {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #e5e5e5;
  padding: 10%;
}

#projects h2 {
  font-family: 'Crete Round', serif;
  font-style: normal;
  font-weight: normal;
  font-size: 40px;
  line-height: 52px;
  display: flex;
  align-items: center;
  color: #1c1a19;
}

#projects hr {
  margin: 25px 0;
  border-color: #212121;
}

.first-card-description,
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 200px;
  margin: 20px;
}

.first-card-img {
  width: 85vw;
  height: auto;
}

.background-div {
  background: linear-gradient(0deg, #2a2728, #98909280, rgba(255, 255, 255, 0));
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.description,
.white-description {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}

.blue-color,
.blue-color * {
  color: #091e42 !important;
}

.ml-0 {
  margin-left: 0 !important;
}

.card {
  padding: 20%;
  position: relative;
  width: 80vw;
  background-size: cover;
  background-position: 50%;
  text-shadow: 0 0 2px rgb(0, 0, 0);
}

.card-link {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.gtime {
  background-image: url('../media/png/gtime.png');
}

.weather {
  background-image: url('../media/png/weather.png');
}

.conference {
  background-image: url('../media/png/conference.png');
}

.katchy {
  background-image: url('../media/png/katchy.png');
}

.project-stacks {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 15px;
  padding: 20px 0;
}

#about-me,
.about-me-section,
.stacks {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.about-me-text {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #f4f5f7;
}

.link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #ff6b00;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #fff;
  align-self: start;
  border: 1px solid transparent;
  transition: 350ms;
  cursor: pointer;
  outline: none;
}

.link:hover {
  color: #f55800;
  background: #fff5e1;
  border: 1px solid #f55800;
}

.centered-link {
  align-self: center;
}

.about-me-icon {
  position: absolute;
  right: 0;
  bottom: 0;
}

.list-title {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 32px;
  line-height: 44px;
}

.languages {
  list-style: inside url('../media/svg/rectangle.svg');
}

.frameworks {
  list-style: inside url('../media/svg/square.svg');
}

.skills {
  list-style: inside url('../media/svg/circle.svg');
}

#contact {
  padding: 10%;
}

#contact h2 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  color: #172b4d;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input {
  border: none;
  outline: none;
  border-bottom: solid 2px #dbd8d7;
}

textarea {
  color: #3c3a39;
  border: none;
  outline: none;
}

input,
textarea {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 24px;
  margin: 5px;
  padding: 5px;
  min-width: 50vw;
}

.name-form {
  display: none;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 5vh;
  filter:
    invert(67%) sepia(46%) saturate(986%) hue-rotate(179deg)
    brightness(92%) contrast(82%);
}

@media all and (min-width: 720px) {
  .top-social {
    flex-direction: column;
    position: absolute;
    left: 5px;
    bottom: 35%;
  }

  .mobile-icon {
    display: none;
  }

  .desktop-icon {
    display: block;
    height: 50%;
  }

  #intro {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .menu-bars {
    display: none;
  }

  #desktop-nav {
    display: block;
  }

  #desktop-nav ul {
    display: flex;
    margin-right: 10vw;
  }

  .nav-link {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 20px;
    color: #fff;
    padding: 15px;
    border: 1px solid transparent;
    transition: 350ms;
  }

  .nav-link:hover {
    border: 1px solid #d2d5db;
  }

  #logo {
    font-size: 24px;
  }

  .first-card {
    display: flex;
  }

  .first-card-img {
    width: 40vw;
  }

  .cards-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    width: auto;
    height: 40vh;
    padding: 2%;
    cursor: pointer;
  }

  .card,
  .card * {
    transition: all 350ms;
  }

  .card-link,
  .card:hover .background-div,
  .card:hover .card-description {
    opacity: 0;
  }

  .card:hover .card-link {
    opacity: 1;
  }

  .stacks {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
  }

  .about-me-section {
    align-items: flex-start;
  }

  .about-me-section > * {
    max-width: 50vw;
    margin: 15px 0;
  }

  #contact {
    display: flex;
    padding: 10% 5%;
  }

  #contact h2 {
    width: 30vw;
  }

  #fullname {
    display: none;
  }

  #email,
  textarea {
    min-width: 50vw;
  }

  .name-form {
    display: flex;
    min-width: 100%;
  }

  #name,
  #surname {
    min-width: 49%;
  }

  .footer-social {
    justify-content: center;
  }

  .social-icon {
    width: 3vw;
    height: 32px;
  }
}
