/* ========================
   MEDIA QUERIES
   Organized: Mobile → Tablet → Desktop
======================== */

/* ========================
   SOCIAL ICON
======================== */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* iPhone SE / Small Devices (≤ 375px) */
@media (max-width: 375px) {
  .header-logo img {
    width: 80%;
    max-width: 180px;
  }

  .nav-menu li {
    font-size: 0.9rem;
  }

  .line-item-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* iPhone 12/13/14 / Samsung Galaxy S Series (≤ 430px) */
@media (max-width: 430px) {
  .invoice-container,
  .invoice-form {
    padding: 1rem;
  }

  .form-control {
    width: 100%;
  }

  .gallery-grid {
    gap: 0.5rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* Small Tablets / Large Phones (≤ 600px) */
@media (max-width: 600px) {
  .columns {
    flex-direction: column;
    gap: 1rem;
  }

  .image-card img {
    width: 100%;
    height: auto;
  }

  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
  .header-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-logo img {
    width: 70%;
    max-width: 200px;
    margin: 1rem auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .column {
    text-align: center;
  }

  .gallery-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .image-card img {
    width: 100%;
    height: auto;
  }

  footer {
    text-align: center;
    padding: 1rem;
  }

  .social-icons {
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

/* Medium Desktops (≤ 1024px) */
@media (max-width: 1024px) {
  .invoice-container {
    padding: 1.5rem;
  }

  .btn {
    font-size: 1rem;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow);
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
}

/* Large Desktops (≥ 1200px) */
@media (min-width: 1200px) {
  .invoice-container {
    max-width: 1000px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--shadow);
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
}
