@media (max-width: 1023px) {
  :root {
    --sidebar-width: 260px;
  }
}

@media (max-width: 767px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "content";
  }

  .hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar.open ~ .sidebar-backdrop,
  .sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    padding: 20px 16px;
  }

  .tag-cloud {
    display: none;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }
}
