/* Projects Section Styles */
.projects-preview-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.project-preview-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-preview-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.project-preview-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-preview-card:hover .project-preview-image img {
  transform: scale(1.1);
}

.project-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 77, 46, 0) 0%,
    rgba(26, 77, 46, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-preview-card:hover .project-preview-overlay {
  opacity: 1;
}

.project-preview-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-location-badge {
  display: inline-block;
  background: rgba(175, 230, 127, 0.15);
  color: #2d7a4f;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.project-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4d2e;
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-preview-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.project-preview-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  margin-top: auto;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
}

.project-stat-icon {
  color: #afe67f;
  font-size: 1.1rem;
}

.project-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2d7a4f 0%, #1a4d2e 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.project-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.4);
  color: white;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-preview-image {
    height: 240px;
  }

  .project-preview-content {
    padding: 24px;
  }

  .project-preview-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .project-preview-image {
    height: 220px;
  }

  .project-preview-card {
    margin-bottom: 20px;
  }
}

/* Section title styling */
.section-subtitle {
  color: #afe67f;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-main-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a4d2e;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .section-main-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.fade-in-up-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}
