/* Hero Section */
.hero {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #f9f9f9, #ffffff);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero .subheading {
  font-size: 1.5rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #ddd;
  background: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Masonry Grid */
.gallery-container {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

/* Load More Button */
.load-more {
  display: block;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.load-more:hover {
  background: #000;
  color: #fff;
}

/* Testimonials */
.testimonials {
  padding: 4rem 2rem;
  text-align: center;
  background: #f9f9f9;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #555;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.6;
}

.client-name {
  margin-top: 1rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  padding: 4rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  opacity: 0.9;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  width: 80%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

#modal-image {
  width: 100%;
  height: auto;
}

.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subheading {
    font-size: 1.25rem;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: center;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
    width: 90%;
  }
}