.ourProjects {
  padding: 5% 0; /* Yüzde bazlı padding */
  clear: both;
}
#buttons {
  margin-bottom: 2%;
}


#buttons .buttonDisable {
  border: 1px solid #929292;
  background-color: white !important;
 
  border-radius: 6%;
}
 #buttons .allActive {
  border-color: #986667; /* Hover durumunda değişecek border rengi */
  color: #986667;
  border: 2px solid #986667 !important;
  background-color: white !important;
  border-radius: 6%;
}


#buttons button:active {
  border-color: #986667; 
  color: #986667;
  border-radius: 6%;
}
.relative {
  position: relative;
  width: 100%;
  height: auto; 
  max-height: 16rem; 
}
.relative img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.group:hover .overlay {
  opacity: 1;
}

.project-card {
  position: relative;
  max-width: 100%;
  height: 400px;
  background-image: url('path-to-your-image.jpg'); /* Replace with the correct image path */
  background-size: cover;
  background-position: center;
}

.project-overlay {
position: absolute;
  top: 0;
  left: 1%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.project-overlay h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.project-buttons button {
  background-color: transparent;
  border: 1px solid white;
  padding: 3%;
  border-radius: 6%;
  line-height: 43%;
  color: white;
  width: 28%;
  font-size: 1rem;
}
.project-buttons{
width: 46%;
  display: flex;
  justify-content: center;
  gap: 6%;

}
.details-link{
position: relative;
  top: 6%;
  color: white;
  font-size: 150%;
  font-weight: bolder;
  text-decoration: underline;
}
.details-link:hover {
  color: rgb(107, 107, 107); 
}
.text {
  color: white;
  font-size: 1.25rem; 
  font-weight: bold;
}


.full-width-image {
  width: 102%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-overlay h2 {
      font-size: 3vw;
  }

  .details-link {
      font-size: 1.2rem;
  }

  .project-buttons button {
      width: 90%; 
      font-size: 0.9rem;
  }
}



@media (max-width: 768px) {
  #buttons {
    display: flex;
    flex-wrap: wrap; /* Butonlar küçük ekranlarda alt alta geçebilir */
    justify-content: center; /* Ortala */
    gap: 10px; /* Butonlar arasına boşluk */
    padding: 1% 5%; /* Küçük ekranlarda padding */
    }

  #buttons button {
    flex: 1 1 calc(50% - 10px); /* Butonlar iki sütun halinde dizilir */
    padding: 10px 20px; /* İçerik boşluğu */
    font-size: 0.9rem; /* Yazı boyutunu biraz küçült */
  }
  .relative {
      height: 12rem; /* Küçük ekranlar için yüksekliği küçülttük */
  }
  .text {
      font-size: 1rem; /* Yazı boyutunu küçülttük */
  }
}

@media (max-width: 480px) {
  #buttons {
    gap: 8px; 

  }

  #buttons button {
    flex: 1 1 100%; /* Tam genişlikte butonlar */
    padding: 8px 12px; /* Daha dar padding */
    font-size: 0.8rem; /* Yazı boyutunu küçült */
    width: 50%;
  }
  .project-buttons button {
    font-size: 0.8rem; /* Daha küçük yazı boyutu */
    padding: 6px 12px; /* Daha dar padding */
    width: 100%; /* Buton genişliğini tam yap */
  }
  .relative {
      height: 10rem; /* Daha da küçültülmüş yükseklik */
  }
}
