/* Hero Section */
.hero {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(to right, #f5f5f7, #ffffff);
  margin-bottom: 64px;
}

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

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

/* Gallery Filter */
.gallery-filter {
  margin-bottom: 48px;
  text-align: center;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #d2d2d7;
  border-radius: 30px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

/* Gallery Grid */
.gallery-grid {
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto 80px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px;
  margin-bottom: 48px;
}

.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;
  display: block;
}

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

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

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

.project-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.load-more {
  display: block;
  margin: 0 auto;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #1d1d1f;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* 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-color: white;
  margin: 40px auto;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.modal-details {
  padding: 32px;
}

.modal-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-description {
  font-size: 18px;
  line-height: 1.6;
  color: #1d1d1f;
  margin-bottom: 32px;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-item span {
  font-size: 24px;
  color: #86868b;
}

.spec-value {
  font-size: 16px;
  color: #1d1d1f;
}

/* Testimonials */
.testimonials {
  padding: 80px 24px;
  background-color: #f5f5f7;
  text-align: center;
}

.testimonials h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 48px;
  color: #1d1d1f;
}

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

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

.client-logo {
  font-size: 40px;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.testimonial blockquote {
  font-size: 18px;
  line-height: 1.6;
  color: #1d1d1f;
  margin-bottom: 24px;
  font-style: italic;
}

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

/* CTA Section */
.cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, #f5f5f7);
}

.cta h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d1d1f;
}

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

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  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 {
  border: 1px solid #1d1d1f;
  color: #1d1d1f;
  background: transparent;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero-subhead {
    font-size: 20px;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    flex-direction: column;
  }
  
  .project-specs {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}