/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --max-width: 100%;
  }

  .page-wrapper {
    padding: var(--space-lg) var(--space-md);
  }

  .contact-sidebar {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile-name {
    justify-content: center;
  }

  .profile-location {
    justify-content: center;
  }

  .profile-buttons {
    justify-content: center;
  }

  .theme-toggle {
    position: relative;
    order: -1;
    align-self: flex-end;
    margin-bottom: var(--space-md);
  }

  .footer-section {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chatbot-panel {
    width: calc(100vw - 48px);
    max-width: 340px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1rem;
  }

  .card {
    padding: var(--space-lg);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .chatbot {
    right: var(--space-md);
    bottom: var(--space-md);
  }
}
