
@media screen and (max-width: 1400px) {
  #profile {
    height: fit-content;
    margin-bottom: 6rem;
  }

  .about-containers {
    flex-wrap: wrap;
  }

  #contact,
  #projects {
    height: fit-content;
  }

  .details-container {
    max-width: 600px;
    margin: 0 auto;
  }

  .education-list {
    padding: 0.5rem;
  }

  .education-item {
    margin-bottom: 1rem;
  }
}


@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .hamburger-menu {
    position: static;
  }

  #hamburger-nav .logo {
    font-size: 1.75rem;
  }

  #hamburger-nav .theme-toggle {
    margin-left: auto;
    margin-right: 1rem;
  }

  .menu-links {
    position: fixed;
    top: 10vh;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 998;
  }

  .menu-links.open {
    max-height: 400px;
  }

  .menu-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    text-align: left;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .menu-links a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
  }

  .menu-links a.active {
    color: var(--accent);
    font-weight: 600;
  }

  #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%;
  }

  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }

  .about-containers {
    margin-top: 0;
  }
}


@media screen and (max-width: 900px) {
  #hamburger-nav {
    padding: 0 1.5rem;
  }

  #hamburger-nav .logo {
    font-size: 1.5rem;
  }

  .menu-links a {
    font-size: 1rem;
    padding: 0.7rem 1.25rem;
  }

  section {
    margin: 0 4%;
  }
}


@media screen and (max-width: 600px) {
  #hamburger-nav {
    padding: 0 1rem;
    height: 8vh;
    min-height: 56px;
  }

  #hamburger-nav .logo {
    font-size: 1.25rem;
    gap: 0.35rem;
  }

  #hamburger-nav .logo img {
    height: 2.25rem;
  }

  #hamburger-nav .theme-toggle {
    padding: 6px 10px;
    font-size: 16px;
    margin-right: 0.5rem;
  }

  .hamburger-icon {
    width: 26px;
    height: 20px;
  }

  .menu-links a {
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    text-align: center;
  }

  footer {
    height: fit-content;
    margin-bottom: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }

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

  .contact-info-container {
    margin: 0;
  }

  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }

  .contact-info-container p {
    color: var(--text);
  }

  .nav-links li a {
    color: var(--text);
  }

  .experience-sub-title {
    font-size: 1.25rem;
    color: var(--muted-text);
  }

  .logo {
    font-size: 1.25rem;
    color: var(--text);
  }

  .section__pic-container {
    width: 200px;
    height: 200px;
    justify-content: center;
    margin: 0 auto 2rem;
  }

  .title {
    font-size: 2rem;
    color: var(--text);
  }

  .text-container {
    text-align: justify;
    color: var(--muted-text);
  }

  footer .copyright {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 400px) {
  #hamburger-nav {
    padding: 0 0.75rem;
  }

  #hamburger-nav .logo {
    font-size: 1.1rem;
  }

  #hamburger-nav .logo img {
    height: 2rem;
  }

  #hamburger-nav .theme-toggle {
    font-size: 14px;
    padding: 5px 8px;
  }

  .menu-links a {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

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