@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,300&display=swap');

body {
  display: flex;
  flex-direction: column;
  background-color: #191765;
  margin-left: auto;
  margin-right: auto;
  background-image: url(./images/left.png);
  background-repeat: no-repeat;
  background-position-x: left;
  background-position-y: 1%;
  max-width: 100vw;
}

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

ul {
  list-style-type: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #191765;
  z-index: 14;
}

.container {
  padding: 15px;
  margin-left: 15px;
}

#logo {
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
}

.nav-toggle {
  position: absolute;
  top: 1rem;
  right: 20px;
  cursor: pointer;
}

.mobile-nav-hidden {
  display: block;
  height: 0;
  overflow: hidden;
}

.header {
  padding-left: 5px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  overflow: visible;
  width: 100%;
  background: #191765;
  background-image: url(./images/mobile-menu-left.png), url(./images/mobile-menu-right.png);
  background-repeat: no-repeat;
  background-position: left 40%, right 100%;
  background-size: 45% 60%, 40% 60%;
  z-index: 10;
}

.hidden {
  display: none;
  position: absolute;
  top: 62px;
  right: 38px;
}

.open {
  display: block;
  cursor: pointer;
}

.mobile-nav-menu li {
  padding: 18px 0;
}

.mobile-nav-menu {
  margin-top: 25%;
}

.mobile-li {
  display: flex;
  justify-content: space-between;
  margin: auto 55px;
  align-items: center;
}

.mobile-nav-menu .mobile-nav {
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  align-items: center;
  color: #edecff;
}

.desktop {
  display: none;
}

.headline {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#greeting {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 72px;
  text-align: center;
  letter-spacing: 0.37px;
  color: #7d73fc;
  margin-top: 7rem;
}

.introduction {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  color: #edecff;
}

.text {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #c8c8d4;
  margin: 0 30px 0 30px;
}

.divider1 {
  border: 1px solid #646369;
  width: 95%;
  margin: 5rem auto;
  margin-bottom: 1rem;
}

.about {
  display: flex;
  flex-wrap: wrap;
  padding: 0 5%;
  background-image: url(./images/right.png);
  background-repeat: no-repeat;
  background-position-x: right;
}

h4 {
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  align-items: center;
  letter-spacing: 0.03em;
  color: #9490ff;
}

#frame {
  width: 40%;
  margin-top: 15px;
  padding: 0 2px;
}

#lang {
  width: 50%;
  margin: 15px 0 0 20px;
}

#skill {
  margin: 0 0 0 20px;
}

.headline-headers {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  display: flex;
  align-items: center;
  letter-spacing: 0.03em;
  color: #9490ff;
}

.language-items li {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  display: flex;
  flex-direction: column;
  color: #f5f5ff;
}

.framework-items li {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  display: flex;
  flex-direction: column;
  color: #f5f5ff;
}

.skill-items li {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  display: flex;
  flex-direction: column;
  color: #f5f5ff;
}

.divider2 {
  border: 1px solid #646369;
  width: 95%;
  margin: 2rem auto;
  margin-bottom: 4rem;
}

.social-handle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  margin: 30px 25px;
}

#m-button {
  text-align: center;
}

.button {
  display: none;
}

.header-image {
  background: #edecff;
  filter: blur(50px);
  position: relative;
}

.grid-container {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 25% 25% 25% 25%;
}

.heading {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 52px;
  display: flex;
  align-items: center;
  color: #9490ff;
  margin: 90px 30px -40px 10px;
  padding: 23px;
  width: 60%;
}

.divider-work {
  border: 1px solid #646369;
  width: 95%;
  margin: 4rem auto;
}

.col-1 > img {
  width: 85%;
  margin: 5px 30px 5px 30px;
}

.title {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 32px;
  line-height: 44px;
  margin-left: 30px;
  display: flex;
  color: #fff;
}

.supporting-text {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #dcdce8;
  margin: 0 30px 0 30px;
}

.lang-box {
  display: flex;
  flex-direction: row;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #fff;
  margin: 20px 35px 20px 30px;
  justify-content: space-between;
}

.lang-box li {
  border-right: 1px solid #555;
  padding: 10px 20px;
}

.lang-box .border-check {
  border-right: 0;
}

.work-button > button {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #edecff;
  background: #7d73fc;
  padding: 12px;
  margin: 10px 0 15px 30px;
  border: 0;
}

.work-button .card-btn:hover {
  background: #7d73fc;
  box-shadow: 0 8px 16px rgba(125, 115, 252, 0.48);
  cursor: pointer;
}

.work-button .card-btn:focus {
  background: #5e42d7;
}

.works {
  width: 100%;
  background-image: url(./images/left1.png), url(./images/right1.png), url(./images/left2.png), url(./images/right2.png);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position-x: left, right, left, right;
  background-position-y: 18%, 47%, 80%, 98%;
}

.contact-section {
  padding: 0 30px;
}

.contact-description {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 32px;
  line-height: 44px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #9390ff;
  margin-top: 100px;
  margin-bottom: 0;
}

.contact-description p {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #f5f5ff;
}

.contact-description h2 {
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 500;
}

.contact-description h3 {
  display: none;
}

.contact-form textarea {
  height: 148px;
}

.form-input {
  width: 100%;
  height: 48px;
  margin: 12px 0;
  font-family: 'Inter', sans-serif;
  padding: 10px;
}

.button-container {
  margin: 40px auto;
  margin-bottom: 71px;
  text-align: center;
}

.form-button {
  padding: 12px;
  background: #7d73fc;
  border: 1px solid #7d73fc;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: white;
  font-weight: 500;
}

.form-button:hover {
  background: #7d73fc;
  box-shadow: 0 8px 16px rgba(125, 115, 252, 0.48);
}

.form-button:focus {
  background: #5e42d7;
}

.social-handle-footer {
  display: flex;
  justify-content: center;
  align-items: baseline;
  position: relative;
  gap: 1rem;
  margin: 0 0 11px 0;
  padding-top: 25px;
  border-top: 1px #3a3837 solid;
}

.contact-email {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #ebebff;
  margin: 0 0 40px 0;
}

.error {
  color: red;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

/* Modal Pop-up */

.content {
  margin: 10% auto;
  width: 90%;
  padding: 3%;
  padding-top: 0;
  background: #191765;
  border: 1px solid #aaa;
  box-shadow: 0 48px 48px rgba(37, 47, 137, 0.08);
}

.someHeader {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #fff;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 15% auto;
}

.desktopModal {
  display: none;
}

.mobileModal {
  width: 100%;
}

.someText {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #fff;
}

.devLanguages {
  margin: 10% auto;
}

.devLanguages ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.devLanguages li {
  padding: 10px 15px;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #fff;
  border-left: 1px solid #555;
}

.modalButtons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modalButtons div {
  background: #7d73fc;
  border: 0;
  margin: 0;
  gap: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px;
}

.modalButtons div a {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  align-items: center;
  text-align: center;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  align-content: center;
  font-family: 'Roboto', sans-serif;
  padding: 8px;
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: normal;
}

.close:hover,
.close:focus {
  font-size: 30px;
  text-decoration: none;
  cursor: pointer;
}

/* Desktop version */

@media only screen and (min-width: 768px) {
  body {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    margin: auto;
    background-image: url(./images/leftcircle.png), url(./images/rightcircle.png);
    background-repeat: no-repeat;
    background-position: 2% 5%, 98% 13%;
  }

  header {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(25, 23, 101, 0.16);
    z-index: 14;
    backdrop-filter: blur(4px);
  }

  .container > div {
    animation-duration: 2s;
    animation-name: logo-turn;
  }

  @keyframes logo-turn {
    from {
      transform: rotateY(90deg);
      opacity: 0;
    }

    to {
      transform: rotateY(0deg);
      opacity: 1;
    }
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 84%;
    margin: 0 auto;
  }

  .nav-toggle {
    display: none;
  }

  .desktop {
    display: block;
    width: 15rem;
    margin-bottom: 0;
    overflow: visible;
    height: 25px;
  }

  .nav-menu {
    display: flex;
    position: static;
    margin: 0;
  }

  .nav-menu .desktop-nav {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    position: relative;
  }

  .mail {
    display: inline-block;
  }

  .mobile-nav-hidden {
    display: none;
  }

  /* nav-menu animations */

  .nav-menu a::after {
    content: '';
    position: absolute;
    background: #9391ff;
    height: 3px;
    width: 100%;
    left: 0;
    bottom: -5px;
    transform: scale(0, 1);
    transition: 0.5s;
  }

  .nav-menu .mail:hover::after {
    transform: scale(0, 1);
  }

  .nav-menu a:hover::after {
    transform: scale(1, 1);
  }

  .nav-menu li {
    display: inline-block;
    padding: 5px;
    margin-right: 10px;
  }

  .headline {
    padding: 5px 5%;
  }

  .headline > h1 {
    animation-duration: 1.5s;
    animation-name: r-slidein;
  }

  @keyframes r-slidein {
    from {
      margin-left: 500px;
      margin-right: -500px;
      opacity: 0;
    }

    to {
      margin-left: 0;
      margin-right: 0;
      opacity: 1;
    }
  }

  .text {
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    color: #b3bac5;
    width: 60%;
    margin: 1px auto;
  }

  #greeting {
    font-weight: 700;
    font-size: 90px;
    line-height: 105px;
    text-align: center;
    color: #9391ff;
    margin: 15% auto;
    margin-bottom: 5px;
  }

  .introduction {
    font-weight: 500;
    font-size: 40px;
    line-height: 47px;
    text-align: center;
    color: #dfe1e6;
  }

  .about-headline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    padding: 0 10%;
  }

  .width-reduction {
    width: 90%;
  }

  .divider1,
  .divider2 {
    border: 1px solid #646369;
    width: 63%;
    margin: 5rem auto;
    margin-bottom: 1rem;
  }

  .about {
    text-align: start;
    background-image: none;
    padding-left: 18%;
  }

  h4 {
    font-weight: 700;
    font-size: 18px;
    line-height: 29px;
    align-items: center;
    color: #9390ff;
  }

  .about > * {
    flex: 1;
    margin-top: 10px;
  }

  #skill {
    margin-left: 0;
    margin-top: 15px;
  }

  .headline-headers {
    font-weight: 700;
    font-size: 18px;
    line-height: 29px;
    display: flex;
    align-items: center;
    letter-spacing: 0.03em;
    color: #9490ff;
  }

  .language-items li {
    color: #fff;
    font-weight: 400;
    font-size: 13.1389px;
    line-height: 25px;
  }

  .framework-items li {
    font-weight: 400;
    color: #fff;
    font-size: 14.1935px;
    line-height: 28px;
  }

  .skill-items li {
    color: #fff;
    font-weight: 400;
    font-size: 14.6667px;
    line-height: 28px;
  }

  .social-container > * {
    position: static;
  }

  .social-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .social-handle {
    display: flex;
    justify-content: center;
    align-items: baseline;
  }

  .button {
    position: static;
    display: block;
  }

  #m-button {
    position: static;
  }

  .works {
    width: 100%;
    background-image: url(./images/desktop1.png), url(./images/desktop2.png), url(./images/desktop3.png), url(./images/desktop4.png);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position-x: left, right, left, right;
    background-position-y: 18%, 50%, 72%, 88%;
    padding: 3% 5%;
  }

  .heading {
    font-weight: 700;
    font-size: 64px;
    line-height: 114px;
    color: #9390ff;
    margin: 8% 0;
    margin-bottom: 0;
  }

  .divider-work {
    border: 1px solid #646369;
    width: 97%;
    margin: 7rem auto;
    margin-top: 1rem;
  }

  .workCards {
    margin: 4% 0;
    display: flex;
    align-items: center;
  }

  .workCards:hover {
    box-shadow: 0 0 30px rgba(0, 0, 14, 2);
  }

  .work {
    display: flex;
    align-items: center;
  }

  .workCards:nth-child(even) {
    flex-direction: row-reverse;
  }

  .col-1 {
    flex: 3;
  }

  .col-1 img {
    width: 90%;
    height: 427px;
    transition: 1s;
  }

  .col-2 {
    flex: 2;
  }

  .title {
    font-weight: 700;
    font-size: 40px;
    line-height: 52px;
    color: #fff;
  }

  .supporting-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #dfe1e6;
  }

  .lang-box {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
  }

  .lang-box li {
    padding: 10px 20px;
    width: 30%;
  }

  .contact-section {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .contact-description .mobile {
    display: none;
  }

  .contact-description .deskt {
    font-weight: 700;
    font-size: 40px;
    line-height: 24px;
    align-items: center;
    text-align: center;
    display: block;
  }

  .contact-width {
    width: 50%;
  }

  .form-button {
    cursor: pointer;
  }

  footer {
    display: flex;
    justify-content: center;
    border-top: 1px #3a3837 solid;
    padding-top: 10px;
  }

  .social-handle-footer {
    padding: 0 20px;
    width: 240px;
    border-top: none;
  }

  .content {
    margin: 1% auto;
    padding: 2%;
    width: 80%;
    height: 60%;
  }

  .someHeader {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 32px;
    color: #fff;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }

  .desktopModal {
    display: block;
    width: 100%;
    height: 100%;
  }

  .mobileModal {
    display: none;
  }

  .someText {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    color: #fff;
  }

  .devLanguages {
    margin: 0;
  }

  .devLanguages ul {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
  }

  .modalButtons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
}
