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

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

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

/* Filter Controls */
.filter-controls {
  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: 30px;
  border: 1px solid #d2d2d7;
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Gallery Grid */
.gallery-grid {
  padding: 4rem 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.grid-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

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

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

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

.grid-item:hover img {
  transform: scale(1.05);
}

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

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

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

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

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

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

.testimonial {
  padding: 2rem;
  background: white;
  border-radius: 12px;
}

.testimonial i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #86868b;
}

.testimonial blockquote {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.testimonial cite {
  font-style: normal;
  color: #86868b;
}

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

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #86868b;
}

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

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

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

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

.cta-btn:hover {
  opacity: 0.85;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .subhead {
    font-size: 1.25rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}