@media (max-width: 480px) {
  /* navbar */

  .bg-img {
    height: 100vh;
  }

  header {
    width: 95%;
    height: 100vh;
  }

  .navbar-links {
    display: none;
  }

  /* important h2 underline */

  .main-about-container h2,
  .main-resume-container h2,
  .main-skill h2,
  .main-projects-container h2,
  .contact-container h2 {
    font-weight: 500;
    padding-bottom: 1rem;
    font-size: 3rem;
  }

  /* btn animation */

  .active span:nth-child(1) {
    background: var(--main-color);
  }

  .not-active span:nth-child(1) {
    background: var(--text-color);
  }

  .active span:nth-child(2) {
    background: var(--text-color);
  }

  .not-active span:nth-child(2) {
    background: var(--main-color);
  }

  .active span:nth-child(3) {
    background: var(--main-color);
  }

  .not-active span:nth-child(3) {
    background: var(--text-color);
  }

  body.open .btn {
    position: fixed;
    left: 87%;
  }

  body.open .navbar-logo {
    position: fixed;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    z-index: 15;
  }

  body.open .navbar {
    width: 100%;
    padding: 0;
  }

  body.open .navbar-links {
    display: inline-block;
    position: fixed;
    width: 15rem;
    height: 85vh;
    border: 1px solid var(--main-color);
    background-color: var(--bg-color);
    top: 10vh;
    left: -30rem;
    border-radius: 1rem;
    z-index: 10;
    overflow: hidden;
    animation: openMenu 0.3s ease forwards;
  }

  @keyframes openMenu {
    to {
      left: 2rem;
    }
  }

  body.open .link-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 2rem;
    font-size: 1.8rem;
    font-weight: 500;
    list-style: none;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 0.05rem;
    z-index: 15;
  }

  .list-item i {
    display: block;
    color: white;
  }

  /* ---------- header main ---------- */
  .header-main {
    width: 100%;
    height: 100%;
  }

  .header-main-container {
    width: 100%;
  }

  .header-main-container h3 {
    font-size: 1.8rem;
  }

  .header-main-container h1 {
    font-size: 2.3rem;
  }

  .header-btn {
    display: flex;
  }

  .header-btn button {
    width: 14rem;
    height: 4rem;
  }

  .arrow {
    width: 3rem;
    height: 3rem;
    background: #343a40b7;
  }

  .arrow a {
    font-size: 2rem;
  }
  /* ---------------------------------------- main ---------------------------------------- */
  /* ---------- main about ---------- */
  .main-about-container {
    width: 95%;
    height: auto;
  }

  .main-about {
    display: grid;
    height: auto;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .main-img-bg {
    width: 100%;
    height: 20rem;
  }

  .img {
    background-position: 10% 40%;
  }

  .main-content {
    width: 95%;
    height: auto;
    position: relative;
    padding-bottom: 10%;
  }

  .main-content h3 {
    margin-top: 2rem;
  }
  /* ---------- main resume ---------- */
  .main-resume-bg {
    width: 100%;
    height: auto;
    background-color: var(--bg-dark-color);
    padding: 5% 0;
    margin-top: 0rem;
  }

  .main-resume-container {
    width: 95%;
    height: auto;
    margin: 0 auto 4rem;
  }

  .main-resume-timeline {
    width: 100%;
    height: auto;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .timeline-bg {
    width: 95%;
    height: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
  }

  /* ---------- timline content ---------- */
  .timeline-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 30%;
    padding: 3% 5%;
    margin: 0 0 2rem;
  }

  /* ----------- main skill ----------- */

  .main-skill {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 10%;
  }

  .skill-grid {
    width: 100%;
    height: auto;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  /* ---------- main projects ---------- */

  .cards {
    width: 95%;
  }

  /* ---------- contact ---------- */

  .contact {
    width: 90%;
    height: auto;
    margin: 4rem auto;
  }

  .name-subject {
    width: 100%;
    height: auto;
    display: block;
    gap: 2rem;
  }
}
