/* Hero Section */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
              url('images/hero-bg.jpg') center/cover no-repeat;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.subhead {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* Gallery Controls */
.gallery-controls {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.filter-buttons {
  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: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Masonry Grid */
.gallery-grid {
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 2rem;
  grid-auto-flow: dense;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.gallery-link {
  display: block;
  height: 100%;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover .image-overlay {
  opacity: 1;
}

.image-overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.image-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  padding: 3rem 0;
}

.load-more-btn {
  padding: 1rem 2.5rem;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Testimonials */
.testimonials {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #f8f8f8;
}

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

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

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 500px;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.client-name {
  font-weight: 600;
  color: #555;
}

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

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #555;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #000;
  color: white;
  border: 1px solid #000;
}

.btn-primary:hover {
  background-color: #333;
  border-color: #333;
}

.btn-secondary {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

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

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  width: 80%;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
}

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

.modal-content img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .subhead {
    font-size: 1.2rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .client-logos {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-content {
    width: 90%;
    padding: 1.5rem;
  }
}