/* Projects Section Styles */
.our-projects-section {
  padding: 80px 0;
  width: 100%;
  overflow: hidden;
}

/* Project filters */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3rem;
}

.project-filter,
.filter-btn {
  padding: 8px 20px;
  border: 2px solid #007bff;
  background: transparent;
  color: #007bff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.project-filter:hover,
.filter-btn:hover,
.project-filter.active,
.filter-btn.active {
  background: #007bff;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Swiper customization for projects */
.our-projects-section .swiper {
  overflow: visible;
}

.our-projects-section .swiper-slide {
  height: auto;
  display: flex;
  width: auto !important;
}

.our-projects-section .swiper-pagination {
  position: static;
  margin-top: 30px;
}

.our-projects-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #007bff;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.our-projects-section .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

.our-projects-section .swiper-button-next,
.our-projects-section .swiper-button-prev {
  width: 50px;
  height: 50px;
  margin-top: -25px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  color: #007bff;
  transition: all 0.3s ease;
}

.our-projects-section .swiper-button-next:hover,
.our-projects-section .swiper-button-prev:hover {
  background: #007bff;
  color: white;
  transform: scale(1.1);
}

.our-projects-section .swiper-button-next::after,
.our-projects-section .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Project cards */
.project-card,
.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover,
.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card .project-image,
.portfolio-item .project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-card .project-image img,
.portfolio-item .project-image img {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img,
.portfolio-item:hover .project-image img {
  transform: scale(1.1);
}

.project-card .project-overlay,
.portfolio-item .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 123, 255, 0.8),
    rgba(0, 86, 179, 0.8)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay,
.portfolio-item:hover .project-overlay {
  opacity: 1;
}

.project-card .project-actions,
.portfolio-item .project-actions {
  display: flex;
  gap: 10px;
}

.project-card .project-actions a,
.portfolio-item .project-actions a {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.project-card:hover .project-actions a,
.portfolio-item:hover .project-actions a {
  transform: translateY(0);
}

.project-card .project-actions a:hover,
.portfolio-item .project-actions a:hover {
  background: #007bff;
  color: white;
  transform: scale(1.1);
}

.project-card .project-content,
.portfolio-item .project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card .project-category,
.portfolio-item .project-category {
  font-size: 0.85rem;
  color: #007bff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.project-card .project-title,
.portfolio-item .project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card .project-title a,
.portfolio-item .project-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card .project-title a:hover,
.portfolio-item .project-title a:hover {
  color: #007bff;
}

.project-card .project-description,
.portfolio-item .project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-card .project-meta,
.portfolio-item .project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
}

.project-card .project-tags,
.portfolio-item .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.project-card .project-tag,
.portfolio-item .project-tag {
  background: #f8f9fa;
  color: #666;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Grid layout when not using Swiper */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

/* Loading states */
.our-projects-section .swiper.swiper-initialized {
  opacity: 1;
}

.our-projects-section .swiper:not(.swiper-initialized) {
  opacity: 0.5;
}

/* Filter animation states */
.project-card.filtering,
.portfolio-item.filtering {
  transition: all 0.4s ease;
}

.project-card.hidden,
.portfolio-item.hidden {
  opacity: 0.3;
  transform: scale(0.8) translateY(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .our-projects-section {
    padding: 60px 0;
  }

  .our-projects-section .swiper-button-next,
  .our-projects-section .swiper-button-prev {
    display: none;
  }

  .project-filters {
    gap: 8px;
  }

  .project-filter,
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card .project-image,
  .portfolio-item .project-image {
    height: 200px;
  }

  .project-card .project-content,
  .portfolio-item .project-content {
    padding: 20px;
  }
}
