/* Optimized Responsive Media Queries */

@media screen and (max-width: 1200px) {
  #navbar { display: none; }
  #hamburger-nav { display: flex; }

  .menu-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }

  .menu-links.open { display: flex; }
  .hamburger-icon { display: flex; flex-direction: column; cursor: pointer; }
  .menu-links li a { font-size: 1rem; color: #000; }
}

@media (max-width: 768px) {
  .TITLE, #contact .TITLE { font-size: 2rem; }
  .section_text_p1, .section_text_info_p2, .section_text_project { font-size: 1rem; }

  /* Generic Centering */
  .section-container, .about-details_container, .about-containers,
  .exp_details-container2, .project-container, .contacts-container,
  #profile, #social-container, .btn-container1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
  }

  /* Profile */
  .section__pic-container, .section__pic-container1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
  }

  .section__pic-container img, .section__pic-container1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .btn-3, .btn, button {
    width: 200px;
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
  }

  /* About */
  .details-container { width: 100%; }
  .details-container .icon { width: 24px; }
  .text-container p { font-size: 14px; line-height: 1.5; }

  /* Experience */
  #experience { padding: 2rem 1rem; }
  .exp_details-container { font-size: 14px; padding: 0 1rem; }
  .skill {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    text-align: center;
  }
  .icons { width: 60px; height: 60px; }
  .skill p { font-size: 13px; }

  /* Projects */
  .project-card {
    width: 360px;
    max-width: 360px;
    min-width: 360px;
    text-align: center;
  }
  .project-info p { font-size: 13px; }
  .project-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  /* Contact */
  .contact-left, .contact-right { width: 100%; max-width: 90%; }
  .contact-item { flex-direction: column; align-items: center; }
  .form-row { flex-direction: column; }
  label, input, textarea { text-align: left; }
  .contact-left h2 { font-size: 1.6rem; }

  /* Footer */
  footer #navbar, footer .navlinks {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  footer .navlinks li a, footer p { font-size: 13px; }
}

@media (max-width: 600px) {
  .section__pic-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
  }
}