* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: 16px;
}

ul li {
  list-style: none;
}

li a {
  text-decoration: none;
}

img:hover {
  transform: scale(1.1);
}

:root {
  --main-bg-color: #e5e5e5;
  --section-bg-color: #fff;
  --card-role-color: #7a869a;
  --card-client-color: #344563;
  --tag-button-color: #6070ff;
  --tag-bg-color: #ebebff;
  --primary-color: #396df2;
  --header-color: #172b4d;
}

body {
  margin: auto 2.4rem;
  background-color: var(--main-bg-color);
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  margin: 0 -2.4rem;
  background-color: var(--section-bg-color);
}

/* logo */
.my-logo {
  font-weight: 700;
  font-style: normal;
  font-size: 1.125rem;
  color: #6070ff;
  line-height: 1.25rem;
  text-decoration: none;
  animation: logo-rotate 1s alternate 1s;
}

@keyframes logo-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

nav {
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  width: 100%;
  background-color: var(--tag-button-color);
  flex-direction: column;
  backdrop-filter: blur(0.5rem);
  mix-blend-mode: multiply;
}

.mobile-menu-content {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
}

.mobile-menu-content a {
  font-size: 2rem;
  line-height: 2.75rem;
  font-weight: 600;
  color: var(--section-bg-color);
  text-decoration: none;
  transition: all 0.2s ease-in 0.1s;
}

.mobile-menu-content a:hover {
  color: var(--header-color);
}

.hidden {
  display: none;
}

.mobile-menu .close-menu {
  align-self: flex-end;
  padding-right: 3rem;
  font-size: 3.2rem;
  color: var(--section-bg-color);
}

.header,
.headline-section,
.cards-container,
.about-myself-section {
  background-color: var(--section-bg-color);
}

.menu {
  display: none;
}

/* main section */

main {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* headline section */
.headline-section {
  display: flex;
  flex-direction: column;
  padding: 8.2rem 1.5rem;
  margin: -0.1rem -2.4rem;
  gap: 0.25rem;
  border-bottom-left-radius: 5.6rem;
  background-image: url(../images/header-shapes\ mobile.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.header-content {
  font-style: normal;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 3.25rem;
  color: var(--header-color);
}

.project-title {
  font-style: normal;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2.75rem;
  color: var(--header-color);
}

.description {
  font-style: normal;
  font-weight: 400;
  font-size: 0.94rem;
  line-height: 1.5rem;
  color: #344563;
}

.connect {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #7f8cff;
  border: none;
}

/* social media section */
.social-media {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  width: 10rem;
  list-style: none;
}

/* ./end of headline section */

/* works section */
.works-section {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(10%, 1fr));
  justify-content: center;
}

.cards-container {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1.25rem;
  border: 1px solid #dfe1e6;
  border-radius: 1.25rem;
  margin-top: 5.6rem;
  width: 85vw;
}

.snapshoot-portfolio.desktop,
.left-block .project-title.desktop,
.left-block .card-client.desktop,
.left-block .card-role.desktop,
.left-block .description.desktop,
.left-block .tags .tags-button.desktop {
  display: none;
}

.snapshoot-portfolio {
  padding-bottom: 2rem;
}

.snapshoot-portfolio:hover {
  transition: all 0.1s ease-in 0.1s;
  transform: scale(1.05);
}

.project-detail {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.813rem;
  line-height: 1rem;
  margin: 1rem 0;
}

.card-client {
  color: var(--card-client-color);
}

.card-role {
  color: var(--card-role-color);
}

.tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 1.25rem;
  list-style: none;
}

nav .menu a:hover {
  color: var(--section-bg-color);
  background-color: var(--tag-button-color);
  cursor: pointer;
  border-radius: 0.56rem;
  padding: 0.3rem 0.5rem;
  transition: all 0.2s ease-in 0.1s;
}

.tags-button {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--tag-button-color);
  border-radius: 0.5rem;
  border: none;
  padding: 0.3rem 0.7rem;
  background-color: var(--tag-bg-color);
  margin: 1rem 0;
}

button:hover,
.tags-button:hover {
  color: var(--section-bg-color);
  background-color: var(--tag-button-color);
  transition: all 0.1s ease-in 0.1s;
}

button:focus,
.tags-button:focus {
  color: var(--section-bg-color);
  background-color: #2230d2;
  transition: all 0.1s ease-in 0.1s;
}

button:active,
.tags-button:active {
  color: var(--tag-button-color);
  background-color: var(--section-bg-color);
  border: 1px solid #7f8cff;
}

button:disabled,
.tags-button:disabled {
  color: #5e6c84;
  border: 1px solid #c1c7d0;
}

.project-action {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--primary-color);
  background-color: var(--section-bg-color);
  border-radius: 0.5rem;
  border: 1px solid #6070ff;
  padding: 0.75rem;
  gap: 0.625rem;
  margin: 1rem 0;
}

/* ./works section */

/* About myself section */
.about-myself-section {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  padding: 7rem 1.5rem;
  gap: 1rem;
  border-top-right-radius: 5.6rem;
  margin-top: 7rem;
  margin-right: 3rem;
  margin-left: -2.2rem;
  width: 24rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 2.4rem 0;
}

.lang-arrow {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0 1.5rem;
}

.arrow {
  height: 0.5rem;
}

.skill-name {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: #000;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 2rem 1rem;
}

.language-wrapper {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  color: #253858;
  background-color: #f7f7f9;
  border-radius: 0.5rem;
  padding-left: 1rem;
}

.language {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 1.5rem 0;
}

.resume-btn {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--primary-color);
  background-color: var(--section-bg-color);
  border-radius: 0.5rem;
  border: 1px solid #6070ff;
  padding: 1rem 0;
  margin: 1rem 0;
  width: 50%;
}

/* About myself section */

/* contact section */
.contact-section {
  background-color: #fff;
  margin-left: -2.4rem;
  margin-right: -3.2rem;
}

.contact-wrapper {
  background-image: url(../images/contact-form-shapes-mobile.png);
  background-size: 69%;
  background-repeat: no-repeat;
  background-position-x: right;
  background-color: #6070ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 5.6rem;
  padding: 5rem 1.5rem;
}

.contact-section h1 {
  margin-top: 20%;
  color: #fff;
  font-size: 2.5rem;
  line-height: 3.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-section p {
  color: #ebebff;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.75rem;
  padding: 0 1.25rem;
  transition: all 1s ease-in-out;
}

.contact-section p:hover {
  transform: translateX(10px);
}

form {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  width: 100%;
}

form input[type="text"],
input[type="email"],
input[type="submit"],
form textarea {
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 0.7rem 0;
  border: 0;
  width: 100%;
}

form input[type="submit"] {
  font-size: 1.07rem;
  font-weight: 500;
  line-height: 1.5rem;
  color: #6070ff;
  text-align: center;
  width: 8rem;
}

input[type="submit"]:hover {
  color: #fff;
  background-color: #6070ff;
  transition: all 0.1s ease-in 0.1s;
}

input[type="submit"]:focus {
  color: var(--section-bg-color);
  background-color: #2230d2;
  transition: all 0.1s ease-in 0.1s;
}

input[type="submit"]:active {
  color: var(--tag-button-color);
  background-color: var(--section-bg-color);
  border: 1px solid #7f8cff;
}

.contact-section img {
  margin-bottom: -4.5rem;
  align-items: center;
}

.form-control label {
  display: none;
}

/* form validation */

/* span error */
span.error {
  display: none;
}

/* input error */
input.is-invalid {
  border: 3px solid #e92709;
}

input.valid {
  border: 3px solid rgb(4, 82, 4);
}

span.error.active {
  display: inline-block;
  color: #e92709;
  background-color: #fff;
  font-weight: 500;
  padding: 0.56rem;
  border-radius: 0.5rem;
  animation: spanError 1s alternate 1s;
}

@keyframes spanError {
  0% {
    opacity: 0.25;
  }

  25% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* end of form validation */

/* contact section */

/* desktop version */
@media screen and (min-width: 768px) {
  .hamburger {
    display: none;
  }

  body {
    margin: 0;
  }

  header {
    padding: 1rem 10rem 2rem 10rem;
    justify-content: space-between;
    margin: 0;
    position: fixed;
    left: 0;
    right: 0;
  }

  nav .menu {
    display: flex;
    justify-content: space-between;
  }

  nav > ul .nav-item {
    padding: 0 1rem;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #344563;
    text-align: center;
  }

  .headline-section {
    background-image: url(../images/Header\ bgdesktop@2x.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
    gap: 1.5rem;
  }

  .header-content {
    font-style: normal;
    font-weight: 700;
    font-size: 3rem;
    line-height: 3.75rem;
    color: #091e42;
    letter-spacing: 0.023rem;
    margin-top: 18%;
  }

  .snapshoot-portfolio.desktop,
  .left-block .project-title.desktop,
  .left-block .card-client.desktop,
  .left-block .card-role.desktop,
  .left-block .description.desktop,
  .left-block .tags .tags-button.desktop {
    display: block;
  }

  .snapshoot-portfolio.mobile,
  .left-block .project-title.mobile,
  .left-block .card-client.mobile,
  .left-block .card-role.mobile,
  .left-block .description.mobile {
    display: none;
  }

  .description {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .left-block {
    overflow-x: auto;
  }

  .cards-container {
    gap: 1.25rem;
    min-width: 75vw;
    min-height: auto;
    padding: 1.5rem;
  }

  .project-detail .card-client,
  .project-detail .card-role {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .project-detail .card-client {
    font-weight: 500;
  }

  .project-detail .card-role {
    font-weight: 400;
  }

  .cards-container .description.desktop {
    width: 100%;
  }

  .cards-container:nth-child(odd) {
    display: flex;
    flex-direction: row;
  }

  .cards-container:nth-child(even) {
    display: flex;
    flex-direction: row-reverse;
  }

  .cards-container > .snapshoot-portfolio {
    width: 50%;
    height: 100%;
    padding: 0 6px 6px 6px;
  }

  /* about section */
  .about-myself-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-left: 0;
    padding-top: 0;
  }

  .about-myself-section .about-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6em;
    padding-left: 1.25rem;
    margin-top: 3rem;
  }

  .resume-btn {
    width: 10rem;
  }

  .skill-list {
    padding-right: 6em;
    padding-top: 13rem;
  }

  .language-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .language-list {
    display: flex;
    flex-direction: row;
  }

  .bottom-separator {
    width: 50vw;
  }

  /* contact section */

  .contact-wrapper {
    background-image: url(../images/contact\ form\ bgdesktop@1x.png);
    background-size: 92%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 6rem 33%;
    border-top-left-radius: 12em;
  }

  .contact-section {
    margin: 0;
  }

  form input[type="submit"] {
    padding-right: 23%;
    margin-left: 40%;
    margin-right: 40%;
  }

  .home-indicator {
    display: none;
  }

  header nav ul li a.active {
    border-bottom: 3px solid var(--tag-button-color);
    font-weight: 600;
  }
}

/* ./desktop version */
