/* ============================================================
   MEDIAQUERIES — Supplemental responsive overrides
   ============================================================ */

/* ─── Hamburger / Mobile Nav ─────────────────────────────── */
@media screen and (max-width: 1200px) {
  .hamburger-menu {
    display: flex;
  }

  #desktop-nav .nav-links-container {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 998;
    padding: 1rem 0;
  }

  #desktop-nav .nav-links-container.active {
    display: block;
  }

  #desktop-nav .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    align-items: stretch;
  }

  #desktop-nav .nav-links li {
    width: 100%;
  }

  #desktop-nav .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 0;
    text-align: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  }

  #desktop-nav .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Experience: 2 columns at tablet */
  .experience-details-container .about-containers {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Projects: 2 columns at tablet */
  #projects .about-containers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media screen and (max-width: 600px) {
  /* Experience: 1 column on mobile */
  .experience-details-container .about-containers {
    grid-template-columns: 1fr;
  }

  /* Projects: 1 column on mobile */
  #projects .about-containers {
    grid-template-columns: 1fr;
  }

  /* Achievement: stack vertically and fix height cutoff */
  #achievement .about-containers {
    flex-direction: column;
    align-items: center;
  }
  #achievement .details-container {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 2rem;
  }

  /* Smaller chips on mobile */
  .article-container article {
    min-width: 8rem;
    padding: 0.5rem 0.75rem;
  }

  .article-container .icon {
    height: 1rem;
  }

  .article-container h3 { font-size: 0.8rem; }
  .article-container p  { font-size: 0.7rem; }
}

/* ─── Landscape phones ────────────────────────────────────── */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #profile {
    flex-direction: row;
    min-height: 100vh;
    padding: 1.5rem 2rem;
    gap: 3rem;
  }

  .section__pic-container img {
    width: 10rem;
    height: 10rem;
  }

  .section__text .title {
    font-size: 1.75rem;
  }

  .section__text__p2 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .btn-container {
    flex-direction: row;
    gap: 0.75rem;
  }

  .btn {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  #socials-container {
    gap: 0.5rem;
  }
}

/* ─── High-DPI / Retina ───────────────────────────────────── */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .section__pic-container img,
  .about-pic,
  .project-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ─── Print ───────────────────────────────────────────────── */
@media print {
  nav,
  .arrow,
  .btn-container,
  #socials-container {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  section {
    break-inside: avoid;
    margin: 0;
    padding: 1rem;
    max-width: 100%;
  }

  #profile {
    min-height: auto;
  }

  .title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .section__pic-container img,
  .about-pic {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}