/*--------------------------------------------------------------
# Custom Project Styling Enhancements
--------------------------------------------------------------*/

/* Improved project section spacing */
.project-one {
  padding: 80px 0;
}

.project-one__top {
  margin-bottom: 40px;
}

/* Improved project grid layout */
.project-one .row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Enhanced project card styling */
.project-one__single {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  background-color: var(--erepair-white);
  height: 100%;
}

.project-one__single:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.project-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-one__img {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

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

.project-one__single:hover .project-one__img img {
  transform: scale(1.05);
}

.project-one__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(30, 64, 175, 0), rgba(30, 64, 175, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-one__single:hover .project-one__overlay {
  opacity: 1;
}

.view-project {
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 30px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.project-one__single:hover .view-project {
  transform: translateY(0);
  opacity: 1;
}

.project-one__content {
  padding: 25px;
  background-color: var(--erepair-white);
  position: relative;
  z-index: 1;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.project-one__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.project-one__sub-title {
  font-size: 14px;
  color: var(--erepair-base);
  margin: 0;
  font-weight: 500;
  transition: color 0.3s ease;
  background-color: rgba(30, 64, 175, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.project-one__date {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.project-one__title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  color: var(--erepair-black);
  transition: color 0.3s ease;
}

.project-one__single:hover .project-one__title {
  color: var(--erepair-base);
}

/* Improved section title styling */
.project-one__top.text-center {
  margin-bottom: 50px !important;
  position: relative;
}

.project-one__top.text-center::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #c3dcfb, var(--erepair-base));
  border-radius: 3px;
}

.section-title.text-center .section-title__tagline {
  display: inline-block;
  position: relative;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--erepair-base);
  font-weight: 600;
  background-color: rgba(30, 64, 175, 0.08);
  padding: 6px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.section-title.text-center .section-title__title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(to right, var(--erepair-base), #c3dcfb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title.text-center .mt-3.text-muted {
  font-size: 16px;
  line-height: 1.6;
  color: #666 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styling below grid */
.text-center.mt-5 {
  margin-top: 50px !important;
}

.text-center.mt-5 .thm-btn {
  padding: 15px 40px;
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.15);
  transition: all 0.4s ease;
}

.text-center.mt-5 .thm-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(30, 64, 175, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-one__img {
    height: 220px;
  }
  
  .project-one__title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .project-one__img {
    height: 200px;
  }
}

/*--------------------------------------------------------------
# Projects Gallery Page Enhancements
--------------------------------------------------------------*/

/* Improved gallery grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.project-gallery-card {
  background-color: var(--erepair-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

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

.project-header {
  padding: 25px;
  position: relative;
  z-index: 1;
  background-color: var(--erepair-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-header h3 {
  color: var(--erepair-black);
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
}

.project-header p {
  color: var(--erepair-base);
  margin: 0;
  font-size: 14px;
}

/* Enhanced gallery images styling */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  height: 280px;
}

.gallery-image {
  position: relative;
  overflow: hidden;
}

.gallery-image:first-child {
  grid-row: span 2;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-image:hover img {
  transform: scale(1.1);
}

.gallery-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(30, 64, 175, 0), rgba(30, 64, 175, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-image:hover .overlay {
  opacity: 1;
}

.overlay i {
  color: white;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-image:hover .overlay i {
  transform: scale(1);
}

/* Improved project stats section */
.project-stats {
  padding: 20px 25px;
  background-color: var(--erepair-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-left {
  display: flex;
  gap: 20px;
}

.stats-item {
  text-align: center;
}

.stats-item strong {
  color: var(--erepair-base);
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.stats-item span {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

.view-all-btn {
  background-color: #c3dcfb;
  color: var(--erepair-black);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
  background-color: var(--erepair-base);
  color: var(--erepair-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* Responsive adjustments for gallery */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-images {
    height: 250px;
  }
}
