/* ─── 1400px ─────────────────────────────────────────── */
@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
}

/* ─── 1200px ─────────────────────────────────────────── */
@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }
  #profile,
  .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  section,
  .section-container {
    height: fit-content;
  }
  section {
    margin: 0 5%;
    padding: 80px 5% 50px;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }

  /* timeline stays readable */
  .timeline {
    padding-left: 1.5rem;
  }

  /* education: one centred column */
  .edu-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .education-card.color-container {
    width: 100%;
    min-width: 0;
    max-width: none;
    text-align: center;
    align-items: center;
  }
  #education {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #education .experience-details-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .certs-row { text-align: center; width: 100%; }
}

/* ─── 900px ──────────────────────────────────────────── */
@media screen and (max-width: 900px) {
  #profile {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 84px 6% 60px;
    justify-content: flex-start;
    align-items: center;
    min-height: auto;
    height: auto;
    margin-bottom: 0;
  }
  #profile .section__pic-container::before { display: none; }
  .profile-pic { width: 220px; height: 220px; }

  .section__text {
    align-items: center;
    text-align: center;
  }
  .status-badge { align-self: center; }

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

  #about .section-container {
    flex-direction: column;
    align-items: center;
  }
  #about .about-pic { width: 180px; height: 220px; }

  /* achievements strip stacks vertically */
  .achievements-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .ach-item { justify-content: center; text-align: center; min-width: 0; }
  .ach-sep { width: 100%; height: 1px; margin: 0; }

  /* projects: one full-width card per swipe, dots show position */
  .slider-btn { display: none; }
  .projects-slider {
    gap: 1rem;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
  }
  .projects-slider .color-container {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }
  .projects-slider .color-container:hover { transform: none; }
  .project-img { height: 180px; }

  /* contact */
  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ─── 600px ──────────────────────────────────────────── */
@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: fit-content;
  }
  #profile {
    height: auto;
    margin-bottom: 0;
    padding: 84px 5% 50px;
  }
  article {
    font-size: 1rem;
  }
  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
    justify-content: center;
  }
  footer .nav-links-container { width: 100%; }
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }
  .contact-info-container {
    margin: 0;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  .experience-sub-title {
    font-size: 1.25rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  /* only apply column direction to footer nav-links, not hamburger menu */
  footer .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  /* let the photo set its own height so it never overlaps the text below */
  .section__pic-container {
    width: auto;
    height: auto;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: left;
  }

  /* sections */
  section:not(#profile) { padding: 70px 5% 50px; }

  /* skills grid single column */
  .experience-details-container .about-containers {
    grid-template-columns: 1fr;
  }

  /* timeline tighter on small screens */
  .timeline { padding-left: 1.2rem; }
  .timeline-content { padding: 1rem 1rem; }
  .timeline-role { font-size: 0.95rem; }
  .timeline-header { flex-direction: column; gap: 0.4rem; }

  /* project cards */
  .project-desc { -webkit-line-clamp: 4; }

  /* education cards: a little more compact */
  .education-card { padding: 1.4rem 1.1rem; }
  .education-card .project-title { font-size: 0.95rem; }

  /* certs wrap tighter */
  .certs-list { gap: 0.45rem; }
  .cert-chip { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
}

/* ─── Projects slider — always horizontal regardless of breakpoint ── */
.projects-slider {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  overflow-x: auto !important;
}
.projects-slider .color-container {
  flex-shrink: 0 !important;
}

/* ─── Hamburger menu — consistent sizing at all breakpoints ── */
.menu-links {
  list-style: none;
  padding-left: 0;
}
.menu-links li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.menu-links li:last-child { border-bottom: none; }
.menu-links a {
  font-size: 1rem !important;   /* lock all items to same size */
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  padding: 0.1rem 0;
  transition: color 0.26s ease, transform 0.26s ease;
}
.menu-links a:hover {
  color: var(--clr-accent);
  transform: translateX(4px);
}
