@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .skills-grid,
  .project-grid,
  .repo-grid,
  .github-stats,
  .contact-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  main,
  .site-header,
  footer {
    width: min(1150px, 94vw);
  }

  .header-actions {
    width: 100%;
  }

  .icon-btn {
    flex: 1;
  }

  .skills-grid,
  .project-grid,
  .repo-grid,
  .github-stats,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contrib-grid {
    grid-template-columns: repeat(20, 10px);
  }
}

