/* ============================================
   HOME PROJECTS SECTION - SITE 2
   ============================================ */

.home-projects-2 {
  padding: 80px 0;
  background: var(--color-white);
}

/* ============================================
   HEADER
   ============================================ */

.home-projects-2 .projects-header {
  margin-bottom: 60px;
}

.home-projects-2 .eyebrow {
  font-size: var(--section-eyebrow-size);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.home-projects-2 .header-content {
  max-width: 75%;
}

.home-projects-2 .header-content h2 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--section-heading-size);
  line-height: 1.2;
  color: var(--color-text-dark);
  margin: 0 0 20px 0;
}

.home-projects-2 .description {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 30px 0;
}

/* CTA Button */
.home-projects-2 .cta-wrapper {
  display: flex;
  justify-content: flex-start;
}

.home-projects-2 .btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.home-projects-2 .btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(120, 104, 230, 0.3);
  background: var(--color-accent);
}

.home-projects-2 .btn-purple .icon {
  font-size: 18px;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */

.home-projects-2 .projects-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-projects-2 .gallery-row {
  display: grid;
  gap: 20px;
}

/* First Row: 3 Large Images */
.home-projects-2 .row-large {
  grid-template-columns: repeat(3, 1fr);
}

.home-projects-2 .row-large .gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}

/* Second Row: 4 Smaller Images */
.home-projects-2 .row-small {
  grid-template-columns: repeat(4, 1fr);
}

.home-projects-2 .row-small .gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

/* Image Styles */
.home-projects-2 .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-projects-2 .gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   TABLET (1024px - 1199px)
   ============================================ */

@media (max-width: 1199px) and (min-width: 1024px) {
  .home-projects-2 {
    padding: 60px 0;
  }

  .home-projects-2 .projects-header {
    margin-bottom: 50px;
  }

  .home-projects-2 .text-content h2 {
    font-size: var(--section-heading-size-tablet);
  }

  .home-projects-2 .description {
    font-size: 15px;
  }
}

/* ============================================
   MOBILE (<1024px)
   ============================================ */

@media (max-width: 1023px) {
  .home-projects-2 {
    padding: 50px 0;
  }

  .home-projects-2 .projects-header {
    margin-bottom: 40px;
  }

  .home-projects-2 .eyebrow {
    font-size: 11px;
    text-align: center;
  }

  .home-projects-2 .header-content {
    max-width: 100%;
  }

  .home-projects-2 .header-content h2 {
    font-size: var(--section-heading-size-mobile);
    text-align: center;
  }

  .home-projects-2 .description {
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
  }

  .home-projects-2 .cta-wrapper {
    justify-content: center;
  }

  /* Gallery: Stack on mobile */
  .home-projects-2 .row-large {
    grid-template-columns: 1fr;
  }

  .home-projects-2 .row-small {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-projects-2 .gallery-row {
    gap: 15px;
  }

  .home-projects-2 .row-large .gallery-item {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .home-projects-2 .header-content h2 {
    font-size: 24px;
  }

  .home-projects-2 .btn-purple {
    padding: 14px 28px;
    font-size: 15px;
  }

  .home-projects-2 .row-small {
    grid-template-columns: 1fr;
  }

  .home-projects-2 .row-small .gallery-item {
    aspect-ratio: 16 / 9;
  }
}
