/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Gallery Filter */
.gallery-filter {
  padding: 3rem 2rem 1rem;
  text-align: center;
}

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

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

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

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

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-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;
}

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

.grid-item:hover {
  transform: translateY(-5px);
}

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

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

.grid-item:hover .project-overlay {
  opacity: 1;
}

.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: 2rem auto 4rem;
  padding: 1rem 2.5rem;
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

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

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

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

.testimonial p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial span {
  font-weight: 500;
  color: #666;
}

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

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

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: white;
  color: #0071e3;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* 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;
  width: 80%;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.modal-text {
  padding: 2rem;
}

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

.modal-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.modal-details {
  margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
  
  .modal-image {
    height: 250px;
  }
}