body {
  overflow-x: hidden;
}

/* Navbar */

@media screen and (max-width: 1010px) {
  #menu-btn {
    display: block;
  }

  .navbar {
    position: relative;
  }

  .navbar .list {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 400px;
    flex-direction: column;
    justify-content: center;
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    transform-origin: top right;
    transform: scale(0);
    transition: 0.25s;
  }

  #nav-open {
    height: 400px;
    max-height: 100vh;
    transform: scale(1);
  }
}

/* Hero */

@media screen and (max-width: 1125px) {
  section.hero {
    height: initial;
  }

  .hero .container {
    margin-top: 100px;
    flex-wrap: wrap;
  }

  .hero .text {
    width: 100%;
    margin-top: 20px;
  }

  .hero .image {
    margin: auto;
  }

  .hero .description {
    width: 100%;
  }
}

/* About */

@media screen and (max-width: 900px) {
  .about .text {
    width: 100%;
    margin-bottom: 80px;
  }

  .about .skills {
    width: 100%;
  }
}

/* Services */

@media screen and (max-width: 1050px) {
  .services .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 750px) {
  .services .container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Portfolio */

@media screen and (max-width: 1050px) {
  .portfolio .card {
    width: 50%;
  }
}

@media screen and (max-width: 700px) {
  .portfolio .card {
    width: 100%;
  }
}

/* Blog */

@media screen and (max-width: 900px) {
  .blog .card {
    width: 100%;
    margin-bottom: 40px;
  }
}

/* Contact */

@media screen and (max-width: 850px) {
  .contact form {
    width: 100%;
    margin-bottom: 80px;
  }

  .contact .detail {
    width: 100%;
  }
}

/* Footer */

@media screen and (max-width: 1050px) {
  footer .description {
    width: 100%;
  }
}

/* __________ Mobile __________ */

@media screen and (max-width: 500px) {
  section {
    overflow-x: hidden;
  }

  section h2.head {
    font-size: 32px;
  }

  section .container {
    width: 90%;
  }

  .hero .name {
    font-size: 28px;
  }

  .testimonial .card {
    padding: 30px 30px;
  }

  footer .logo {
    font-size: 36px;
  }
}
