/* ═══════════════════════════════════════════════════
   YANNIS ZONGO PORTFOLIO — mediaqueries.css
═══════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ─────────────────────────── */
@media screen and (max-width: 1024px) {
  section {
    padding: 5rem 3rem;
  }

  #about {
    padding: 5rem 3rem;
  }

  footer {
    padding: 2rem 3rem;
  }

  #desktop-nav {
    padding: 0 3rem;
  }

  #profile {
    gap: 2.5rem;
  }

  .hero-badge-grid {
    width: 220px;
  }
}

/* ── Switch to hamburger nav (≤ 900px) ─────────── */
@media screen and (max-width: 900px) {
  #desktop-nav  { display: none; }
  #hamburger-nav { display: flex; }

  #profile {
    flex-direction: column;
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    align-items: center;
  }

  .hero-text { order: 1; }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-container {
    justify-content: center;
  }

  .socials-row {
    justify-content: center;
  }

  .hero-badge-grid {
    order: 2;
    width: 100%;
    max-width: 320px;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobile (≤ 640px) ──────────────────────────── */
@media screen and (max-width: 640px) {
  section {
    padding: 4rem 1.25rem;
  }

  #about {
    padding: 4rem 1.25rem;
  }

  .about-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .about-pic-wrap {
    flex: none;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .about-pic {
    aspect-ratio: 1 / 1;
  }

  .hero-badge-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 260px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1rem;
  }

  .footer-links {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 360px;
    min-width: unset;
  }

  .timeline {
    padding-left: 1.75rem;
  }

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

  .project-filters {
    gap: 0.4rem;
  }
}