@media screen and (max-width: 980px) {
  .hero,
  .project-grid,
  .project-card,
  .skill-groups,
  .edu-row,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 2rem;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .timeline {
    border-left: 0;
    margin-left: 0;
  }

  .timeline li {
    padding-left: 0;
  }

  .timeline li::before {
    display: none;
  }
}

@media screen and (max-width: 760px) {
  .desktop-nav,
  .site-header > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(8, 9, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .btn {
    width: 100%;
  }

  .project-preview {
    min-height: 150px;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}
