/* =================================================================== */
/* PROJECTS PAGE SPECIFIC STYLES                                      */
/* =================================================================== */

.projectsSection {
  padding: 80px 0px;
  background: #ffffff;
  min-height: calc(100vh - 600px);
}

.projectsContainer {
  margin: 0 auto;
  max-width: calc(100% - 11vw);
}

/* Projects Grid - 4 columns x 3 rows */
.projectsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Project Card */
.projectCard {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: fit-content;
}

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

.projectImageWrapper {
  position: relative;
  width: auto;
  height: auto;
  border-radius: 0px;
  overflow: hidden;
  background: #f8f8f8;
  height: 265px;
}

.projectImage {
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  min-height: 268px;
}

.projectCard:hover .projectImage {
  transform: scale(1.05);
}

/* Project Overlay (always visible) */
.projectOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.projectInfo {
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.projectInfo {
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 12px 24px;
    border-radius: 0px;
    transition: all 0.3s ease;
    background: rgb(255 255 255 / 66%);
}


.projectCard:hover .projectInfo {
  background: white;
}
  

.projectTitle {
  font-size: 18px;
  font-weight: 500;
  font-family: 'Rubik', 'Heebo', sans-serif;
  color: #2B2A29;
  text-align: right;
  font-family: Heebo;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.projectCategory {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  font-family: 'Heebo', sans-serif;
}

/* Project Label (below image) */
.projectLabel {
  padding: 15px 0;
  text-align: center;
}

.projectName {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  font-family: 'Rubik', 'Heebo', sans-serif;
}

/* =================================================================== */
/* RESPONSIVE DESIGN                                                  */
/* =================================================================== */

@media (max-width: 1200px) {
  .projectsGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .projectImageWrapper {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .projectsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .projectImageWrapper {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .projectsSection {
    padding: 60px 15px;
  }
  
  .projectsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .projectImageWrapper {
    height: 200px;
  }
  
  .projectTitle {
    font-size: 16px;
  }
  
  .projectCategory {
    font-size: 13px;
  }
  
  .projectName {
    font-size: 15px;
  }

  .projectImage {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .projectsSection {
    padding: 40px 15px;
  }
  
  .projectsGrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .projectImageWrapper {
    height: 250px;
  }
}