/* ============================
   TABLET & MOBILE (shared nav breakpoint)
   ============================ */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1.5rem;
  }

  .nav-name {
    font-size: 1.6rem;
  }

  /* Swap the inline About/Projects/Contact row for a hamburger + dropdown */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-steel-blue-border);
    padding: 0 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
    padding: 1.5rem 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hero {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  }

  .bio-text {
    font-size: 1.1rem;
  }

  .projects,
  .contact {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

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

  .project-detail {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  }

  .project-title {
    font-size: 2.1rem;
  }

  /* Continue-exploring cards: split the row evenly based on how many
     there are — one card stretches full width, two cards meet in the
     middle at equal width — rather than sizing to their own text. */
  .continue-card {
    flex: 1 1 0;
  }
}

/* ============================
   SMALL PHONES
   ============================ */
@media (max-width: 480px) {
  .nav-name {
    font-size: 1.35rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-separator {
    display: none;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .continue-nav {
    gap: 0.75rem;
  }

  .continue-card {
    padding: 0.75rem 1rem;
  }

  .continue-direction {
    font-size: 0.7rem;
  }

  .continue-title {
    font-size: 0.9rem;
  }
}
