@media screen and (max-width: 768px) {
  .container {
    justify-content: center;
    align-items: center;
  }

  .header {
    flex-wrap: wrap;
    height: auto;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .header-left {
    margin-top: 2em;
    margin-left: 0.2em;
    box-sizing: border-box;
    padding: 0;
  }

  .header-right {
    margin-top: 1.4em;
    margin-left: 1.5em;
    align-self: center;
    box-sizing: border-box;
  }

  .header-right img {
    max-width: 350px;
  }

  .header-left h2 {
    font-size: 18px;
  }

  .header-left h1 {
    margin-left: 0;
    font-size: 30px;
    margin-bottom: 0;
  }

  .buttons span {
    font-size: 12px;
  }

  .header-left span {
    margin-top: 0;
  }

  .proffesion h3 {
    font-size: 16px;
  }

  .border-left {
    height: 16px;
    margin-right: 5px;
  }

  .buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }

  .navigation {
    display: none;
  }

  .content {
    margin: 0;
    flex: 1;
    max-width: 100%;
    overflow: hidden;
  }

  .about-me {
    flex-wrap: wrap;
    display: flex;
    flex-direction: column-reverse;
    background-color: #fafafa;
    gap: 2em;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    padding-bottom: 10px;
  }
  .about-left img {
    max-width: 350px;
    height: 386px;
  }

  .img-wrap {
    position: relative;
    max-width: 350px;
    height: 385px;
    display: inline-block;
  }

  .about-me-info {
    background-color: #000000;
    transition: all 0.5s;
    position: absolute;
    width: 100%;
    height: 385px;
    top: 0;
    left: 0;
    text-align: left;
    color: #ffc455;
    opacity: 0.8;
  }

  .about-me-social {
    margin-top: 1em;
    margin-right: 1em;
    display: flex;
    justify-content: flex-end;
    gap: 1em;
  }

  .about-left {
    padding: 0;
    text-align: center;
    margin: 0;
  }

  .about-right {
    padding: 0;
    margin: 0;
    max-width: 100%;
    text-align: center;
    align-self: center;
  }

  .about-right h2 {
    border-bottom: 6px solid #ffc455;
    line-height: 1px;
    padding-left: 0px;
    padding-right: 0px;
    display: inline-block;
    text-align: center;
  }

  .about-right h1 {
    color: #00c8da;
    line-height: 34px;
    text-align: center;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0;
  }
  .contact-container {
    max-width: 350px;
    margin: 0 auto;
    height: auto;
    box-sizing: border-box;
  }

  .contact-form-input {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
  }

  .contact-footer {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    margin-bottom: 0;
  }

  .my-projects {
    padding-top: 40px;
  }

  .my-projects img {
    object-fit: contain;
    max-width: 340px;
    height: 340px;
  }

  #project-visestate img {
    max-width: 340px;
  }

  .projects-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1em;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 0;
  }

  .project-one {
    margin-top: 1em;
  }

  #error-message {
    position: absolute;
    display: none;
    margin: 0;
    pad: 0;
    color: red;
    font-weight: bold;
    left: 50%;
    transform: translate(-25%);
  }

  #error-message {
    position: absolute;
    display: none;
    margin: 0;
    pad: 0;
    color: red;
    font-weight: bold;
    left: 50%;
    transform: translate(-50%);
  }
}
