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

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

.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;
  margin-bottom: 2rem;
}

/* 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: 30px;
  border: 1px solid #d2d2d7;
  background: transparent;
  font-size: 1rem;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

.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;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  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);
}

.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: 0 auto;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 1px solid #1d1d1f;
  color: #1d1d1f;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more:hover {
  background-color: #1d1d1f;
  color: white;
}

/* Project Modal */
.project-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: 5% auto;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #1d1d1f;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

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

.modal-text {
  padding: 3rem;
}

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

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

.modal-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

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

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

.testimonial {
  background-color: 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: 1.5rem;
}

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

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

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f7 100%);
}

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

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

.cta-section p {
  font-size: 1.1rem;
  color: #86868b;
  margin-bottom: 2rem;
}

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

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

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

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subhead {
    font-size: 1.2rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-text {
    padding: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}