:root {
  --back-color: #ffffff;
  --main-color: #9933ff;
}
/* mobile */
@media screen and (max-width: 767px) {
  html {
    font-size: 1.6875rem;
  }
  body {
    overflow-x: hidden;
  }
  .header {
    width: 100%;
    background-color: #050a14;
    position: fixed;
    top: 0;
    z-index: 10000;
  }
  nav {
    display: none;
    text-align: center;
    position: fixed;
    right: 1%;
  }
  #menu {
    background: none;
  }
  nav h2 {
    display: none;
  }
  ul li a {
    display: block;
  }
  ul li a:hover {
    text-decoration: none;
    color: white;
    padding-left: 20px;
  }
  .hin {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 28px;
  }
  .header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .block {
    display: block;
    position: fixed;
    background-color: var(--main-color);
    top: 2rem;
  }
  .menu {
    background: #9933ff;
    color: #ffffff;
    border-radius: 10px;
    padding: 5px;
    text-decoration: solid;
    transition: 0.3s;
    display: block;
  }
  .menu:hover {
    background: none;
    border: solid 0.125rem var(--main-color);
    color: white;
  }

  .home {
    margin-top: 10rem;
  }
  .home h1 {
    font-size: 2rem;
    text-align: center;
  }
  .home h4 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 8px;
  }
  .home p {
    font-size: 10px;
    text-align: center;
    margin-top: 8px;
  }

  .about {
    display: grid;
    grid-template-columns: 2fr;
    text-align: center;
    margin-bottom: 2rem;
  }
  .about img {
    margin: 0;
    width: 250px;
    text-align: center;
    position: relative;
    left: 16%;
  }
  .about h2 {
    font-size: 1rem;
  }
  /* 2 */

  .about2 {
    display: grid;
    grid-template-columns: 2fr;
    text-align: center;
    margin-bottom: 2rem;
    text-align: center;
  }
  .about2 .test {
    width: 80%;
    text-align: center;
  }
  .about2 .test h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .about2 .test h2 br {
    display: none;
  }
  .about2 .test p {
    font-size: 12px;
    margin: 0;
  }
  .about .test span {
    font-size: 5px;
  }
  .about2 img {
    width: 11rem;
    position: relative;
    left: +11%;
    margin-top: 1rem;
  }
  .about2 .test .btn {
  }
  .services .box-ser,
  .projects .box {
    font-size: 15px;
  }

  .projexts {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr;
    margin-bottom: 2rem;
    text-align: center;
  }
  .projexts .text3 {
    width: 100%;
    font-size: 14px;
    padding-bottom: 12px;
  }
  .projexts .text3 h2 {
    padding-top: 12px;
  }
  .projexts br {
    display: none;
  }
  .projexts .text3 .btn {
    padding: 5px;
    margin-bottom: 12px;
  }
  .projexts img {
    width: 12rem;
    position: relative;
    left: 9%;
  }
  .projexts .list {
    margin-top: 5px;
  }
  .projexts .btn {
    margin-top: 5px;
  }
  .akillss {
    font-size: 12px;
  }
  .akillss .bar {
    height: 10px;
  }

  .contact {
  }
  #inpMessage {
    height: auto;
    width: auto;
    margin-bottom: 10px;
  }
  .contact .btn {
    width: 51%;
    margin-bottom: 10px;
    border-radius: 0;
  }
  .footer {
    display: flex;
  }
  .footer h2 {
    font-size: 18px;
    margin-top: 0;
  }
  .footer p {
    font-size: 15px;
    margin-top: 0;
  }
  .footer .icon i {
    font-size: 15px;
  }
}

/* tab */

@media screen and (min-width: 768px) and (max-width: 991px) {
  body {
    padding: 0;
    margin: 0;
  }
  .menu {
    display: none;
  }
}
