/* Hero Section */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(to bottom, #f5f5f7 0%, #ffffff 100%);
}

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

.hero-subhead {
  font-size: 1.5rem;
  font-weight: 400;
  color: #86868b;
  max-width: 700px;
  margin: 0 auto;
}

/* Gallery Filter */
.gallery-filter {
  padding: 2rem 0;
  border-bottom: 1px solid #d2d2d7;
}

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

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

.filter-btn:hover {
  background-color: #f5f5f7;
}

.filter-btn.active {
  background-color: #1d1d1f;
  color: white;
  border-color: #1d1d1f;
}

/* Gallery Grid */
.gallery-grid {
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

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

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

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(10px);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.grid-item:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

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

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

.load-more {
  display: block;
  margin: 3rem auto 0;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid #1d1d1f;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1d1d1f;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.testimonial i {
  font-size: 2.5rem;
  color: #1d1d1f;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.testimonial blockquote {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #1d1d1f;
}

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

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

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.cta p {
  font-size: 1.25rem;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

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

.btn-primary {
  background-color: #1d1d1f;
  color: white;
}

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

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

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

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

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #86868b;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

.modal-text {
  padding: 3rem 2rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1d1d1f;
  margin-bottom: 2rem;
}

.modal-details {
  font-size: 0.9rem;
  color: #86868b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subhead {
    font-size: 1.25rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-image {
    border-radius: 8px 8px 0 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}