/* Projects Page Specific Styles */

/* Hero Section */
.projects-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('../../img/projects-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 120px 0 80px;
 
}

.projects-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
   background: url(../img/breadcrb.jpg);
  z-index: 0;
}


.projects-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.projects-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.projects-hero p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #e9e9e9;
  color: #333;
}

.filter-btn.active {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Project Features Preview */
.project-features-preview {
  display: flex;
  gap: 8px;
  margin: 0.75rem 0 1rem;
  border-radius: 6px;
  overflow: hidden;
  height: 80px;
}

.feature-image-preview {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-image-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-image-preview:hover img {
  transform: scale(1.05);
}

.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.project-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.project-card p {
  color: #666;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.95rem;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.project-card__date {
  font-size: 0.9rem;
  color: #888;
}

.project-card__link {
  color: #ff6600;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.project-card__link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-card__link:hover {
  color: #e65c00;
}

.project-card__link:hover i {
  transform: translateX(5px);
}

/* Load More Button */
#loadMoreBtn {
  margin-top: 2rem;
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#loadMoreBtn:hover {
  background: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.project-modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  z-index: 3;
  transition: color 0.3s ease;
}

.project-modal__close:hover {
  color: #ff6600;
}

.project-modal__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

/* Project Gallery */
.project-gallery {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #f5f5f5;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 2;
  transform: translateY(-50%);
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: #ff6600;
  color: #fff;
  transform: scale(1.1);
}

.gallery-thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff6600 #f0f0f0;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #ff6600;
  border-radius: 10px;
}

.thumbnail {
  width: 70px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
  opacity: 1;
  border-color: #ff6600;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Details */
.project-details {
  padding: 2.5rem;
}

.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.95rem;
}

.meta-item i {
  color: #ff6600;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.project-description {
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.8;
}

.project-features {
  margin: 2rem 0;
}

.project-features h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  padding-bottom: 0.75rem;
}

.project-features h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff6600;
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f9f9f9;
  padding: 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-cta {
  margin-top: 2rem;
  text-align: center;
}

.project-cta .btn {
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .project-gallery {
    height: 400px;
  }
  
  .project-details {
    padding: 2rem;
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .project-gallery {
    height: 350px;
  }
  
  .project-details {
    padding: 1.75rem;
  }
  
  .project-title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .project-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .project-gallery {
    height: 300px;
  }
  
  .project-details {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.6rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .project-features-preview {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .projects-hero h1 {
    font-size: 2.5rem;
  }
  
  .project-features-preview {
    height: 60px;
    margin: 0.5rem 0 1rem;
  }
  
  .project-card__content {
    padding: 1.25rem 1rem;
  }
  
  .project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-gallery {
    height: 250px;
  }
  
  .project-details {
    padding: 1.25rem;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
  
  .meta-item {
    font-size: 0.9rem;
  }
  
  .gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .thumbnail {
    width: 50px;
    height: 40px;
  }
}

/* Animation for project cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Add delay to each card */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
