@media screen and (max-width: 1024px) and (min-width: 481px) {
  section {
    padding: 3rem 5% 8rem;
  }

  .home {
    gap: 4rem;
  }

  .home-img {
    width: 350px;
    height: 350px;
  }

  .home-img img {
    width: 350px;
    height: 350px;
  }

  .home-content h1 {
    font-size: 2.5rem;
  }

  .home-skeleton {
    gap: 4rem;
    padding: 3rem 5% 8rem;
  }

  .skeleton-img {
    width: 350px;
    height: 350px;
  }

  .project-item {
    width: 48%;
  }

  .arsenal {
    row-gap: 2.5rem;
  }

  .arsenal .lang-exp,
  .arsenal .tech-skills,
  .arsenal .framework-libs {
    width: 48%;
  }

  .arsenal .framework-libs {
    width: 48%;
  }

  #contact .wrapper {
    width: 90%;
    max-width: 600px;
  }

  form#contact-form {
    width: 100%;
    padding: 2rem 2.5rem;
    height: auto;
  }
}

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

  .header {
    height: 50px;
    padding: 1.2rem 1.2rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  #default-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  #hamburger-icon {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 0;
    margin: 0 0;
    row-gap: 10px;
    position: absolute;
    top: 50px;
    right: 20px;
    width: 110px;
    z-index: 1000;
    border-radius: 5px 0 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.459);
    box-shadow: inset 0 0 2px 2px rgba(2, 99, 116, 0.589);
  }

  .nav-sec {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .navbar a {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 4px;
    font-weight: 500;
    transition: 0.3s ease;
    margin-bottom: 5px;
    border-bottom: 2px solid transparent;
  }

  section {
    padding: 1rem;
  }

  .home {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 0 1rem;
    gap: 1rem;
  }

  .home-skeleton {
    flex-direction: column-reverse;
    gap: 1rem;
    padding: 5rem 1rem 5rem;
  }

  .skeleton-content {
    width: 100%;
  }

  .skeleton-img {
    width: 280px !important;
    height: 280px !important;
  }

  .home-img {
    margin-top: 0.4rem;
    border-radius: 0;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow:
      inset -10px 10px 30px 10px var(--bg-color),
      inset 10px -10px 60px 20px var(--bg-color);
  }

  .home-img img:hover {
    box-shadow: 0 0 0px var(--bg-color);
  }

  .home-img::after {
    opacity: 0;
    display: none;
    visibility: hidden;
  }

  .home-content {
    align-items: start;
    margin-top: 0;
    padding: 1rem;
  }

  .home-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
  }

  .home-content h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
  }

  .home-content p {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 1rem;
    height: fit-content;
  }

  .bio-para {
    display: none;
  }

  .bio-para.show {
    display: block;
  }

  .social-icons {
    width: 100%;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 2.5rem;
  }

  .btn-group {
    justify-content:start;
    width: 100%;
    height: 40px;
    gap: 5%;
    margin-top: -1rem;
    margin-bottom: 1rem;
  }

  .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4rem;
    font-size: 1.2rem;
  }

  .timeline-content {
    width: 100%;
    text-align: center;
    padding: 40px 8px;
    margin: 0 auto;
  }

  .timeline-content h3 {
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 600;
  }

  .timeline-content p {
    color: var(--text-color);
    font-size: 12px;
    font-weight: 300;
    line-height: 22px;
  }

  h2.heading-arsenal {
    padding-top: 50px;
  }

  .arsenal {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    row-gap: 20px;
  }

  .arsenal .lang-exp,
  .framework-libs,
  .tech-skills {
    width: 95%;
    padding: 1.2rem;
  }

  .arsenal .framework-libs {
    width: 95%;
  }

  .arsenal .lang-exp .skills,
  .framework-libs .skills,
  .tech-skills .skills {
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background-color: var(--bg-color);
    margin-bottom: 0.5rem;
  }

  .arsenal .lang-exp span,
  .framework-libs span,
  .tech-skills span {
    font-size: .8rem;
    margin-bottom: 0.2rem;
    font-weight: 400;
  }

  .project-item {
    width: 100%;
    height: 400px;
  }

  .project-item:nth-child(3),
  .project-item:nth-child(5),
  .project-item:nth-child(6),
  .project-item:nth-child(4) {
  }

  .project-item .visit-project {
    height: 40px;
    font-size: 1rem;
    padding: 0.6rem 2.5rem;
  }

  section#contact .wrapper {
    width: 350px;
  }

  #contact h2 {
    transform: translateY(20px);
  }

  .background {
    width: 400px;
  }

  .shape:first-child {
    left: -120px;
    top: 70px;
    height: 200px;
    width: 200px;
  }

  .shape:last-child {
    right: -180px;
    bottom: -180px;
    height: 280px;
    width: 280px;
  }

  form#contact-form {
    height: auto;
    width: 100%;
    padding: 2rem 1rem;
    max-width: 100%;
  }

  input,
  textarea {
    height: 45px;
    margin-top: 5px;
  }

  textarea {
    min-height: 100px;
    max-height: 110px;
  }

  #contact-form .submit-btn {
    margin-top: 10px;
  }
}