/* MEDIA QUERIES
------------------------------------*/

/* ≥500px */
@media screen and (min-width: 500px) {
  .project-item img {
    width: 300px;
    margin-bottom: 0;
  }
  .resume > header::before {
    height: 250px;
  }
}

/* ≥650px */
@media screen and (min-width: 650px) {
  .home .content-wrapper {
    padding: 20px;
  }
  .content-bg {
    padding: 30px;
  }
  .project-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .page-title {
    font-size: 3.75rem;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ≥860px */
@media screen and (min-width: 860px) {
  .project-item {
    display: flow-root;
  }
  .project-item img {
    float: left;
    margin-right: 20px;
  }
  .work-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 20px;
  }
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≥1100px */
@media screen and (min-width: 1100px) {
  h1 {
    font-size: 7rem;
  }
  h2 {
    font-size: 3.6rem;
  }
  .resume > header::before {
    height: 375px;
  }
  .download-link {
    position: fixed;
    top: 90px;
    left: 20px;
  }
  .page-title {
    font-size: 4.375rem;
  }
}

/* Mobile Navigation */
@media screen and (max-width: 47.9375rem) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 100%;
    flex-direction: column;
    background: var(--neutral-50);
    width: 100%;
    padding: var(--space-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar {
    flex-wrap: wrap;
  }
}

/* Mobile Responsive for Animations */
@media screen and (max-width: 47.9375rem) {
  .animations-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .animation-container {
    height: 150px;
  }
}

@media screen and (max-width: 30rem) {
  .header-content {
    flex-direction: column;
    gap: 0.625rem;
    text-align: center;
  }
}
