@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic-wrapper {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  .about-text {
    min-width: 100%;
  }

  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col .contents {
    padding: 0 20px;
  }

  .box-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-logo {
    width: 70px;
    height: 70px;
  }

  #backToTop {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .about-text {
    min-width: 100%;
    padding: 0 1rem;
  }

  .profile-pic-wrapper {
    margin-left: 0;
    margin-top: 0;
    width: 240px;
    height: 240px;
  }

  .profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-wrapper h2 {
    font-size: 2rem;
  }

  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col .contents {
    padding: 0 16px;
  }

  .col h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .col .box {
    padding: 1rem;
  }

  .box-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .timeline-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .col .box::before {
    top: 20%;
    transform: translateY(-50%);
    right: calc(100% + 9.5px);
  }

  .col .box h3 {
    font-size: 0.85rem;
  }

  .col .box h4 {
    font-size: 1rem;
  }

  .col .box p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  section {
    padding: 0 1rem;
    margin: 2rem 0;
  }

  #backToTop {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    bottom: 1rem;
    right: 1rem;
  }
}

