
@media screen and (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    padding: 0 var(--space-2);
  }

  .hero-title {
    font-size: 4.8rem;
  }
}


@media screen and (max-width: 1024px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }

  .hero-title {
    font-size: 4.2rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 3.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }

  .nav-links {
    position: fixed;
    top: 7.2rem;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) var(--space-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .project-card {
    max-width: 100%;
  }

  .hero-section {
    padding-top: calc(7.2rem + var(--space-4));
    padding-bottom: var(--space-4);
  }

  .projects-section,
  .contact-section {
    padding: var(--space-6) var(--space-2);
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .section-heading {
    margin-bottom: var(--space-4);
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-image {
    height: 18rem;
  }
}