/* 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;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
}

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

/* Filter Controls */
.filter-controls {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid #d2d2d7;
  background: transparent;
  font-size: 0.875rem;
  color: #1d1d1f;
  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 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

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

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

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

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

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

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

blockquote {
  font-style: italic;
  color: #86868b;
  margin-bottom: 1rem;
}

.client-name {
  font-weight: 500;
  color: #1d1d1f;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #1d1d1f;
  color: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

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

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

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

.btn-primary {
  background-color: #0071e3;
  color: white;
  border: none;
}

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

.btn-link {
  color: white;
  background: transparent;
  border: none;
}

.btn-link:hover {
  text-decoration: underline;
}

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

.modal-content {
  background: white;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1d1d1f;
  z-index: 100;
}

.modal-body {
  display: flex;
  height: 100%;
}

.modal-images {
  flex: 1;
  background: #f5f5f7;
  min-height: 400px;
}

.modal-details {
  flex: 0 0 400px;
  padding: 2rem;
  overflow-y: auto;
}

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

.modal-category {
  color: #86868b;
  margin-bottom: 1.5rem;
}

.modal-description {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.875rem;
  color: #86868b;
}

.spec-value {
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subhead {
    font-size: 1.25rem;
  }

  .filter-container {
    flex-wrap: wrap;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-details {
    flex: 0 0 auto;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}