/* Genel Stiller */
body {
  font-family: "Roboto", sans-serif;
  color: #333;
}

/* Navbar Stilleri */
.navbar-brand img {
  margin-right: 10px;
}

/* Carousel Stilleri */
.carousel-item {
  height: 500px;
  position: relative;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

/* Carousel Butonlarını Sabitleme */
.carousel-control-prev,
.carousel-control-next {
  width: auto; /* Otomatik genişlik */
  height: auto; /* Otomatik yükseklik */
  position: absolute;
  top: 50%; /* Dikey ortala */
  transform: translateY(-50%); /* Dikey ortalama için */
  z-index: 10;
}

.carousel-control-prev {
  left: 10px; /* Sol taraftan mesafe */
}

.carousel-control-next {
  right: 10px; /* Sağ taraftan mesafe */
}

/* Buton ikonlarını sabitle */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px; /* İkon genişliği */
  height: 30px; /* İkon yüksekliği */
  background-size: 100% 100%; /* İkon boyutunu koru */
}

/* Buton arka planını şeffaf yap */
.carousel-control-prev,
.carousel-control-next {
  background-color: transparent;
  border: none;
  opacity: 0.7; /* Hafif şeffaflık */
}

/* Buton üzerine gelindiğinde */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1; /* Daha belirgin hale getir */
}

/* Mobil cihazlar için buton boyutları */
@media (max-width: 768px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }

  .carousel-control-prev {
    left: 5px;
  }

  .carousel-control-next {
    right: 5px;
  }
}

/* Kart Stilleri */
.card {
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Footer Stilleri */
footer {
  margin-top: 50px;
}

/* Makine kartları için özel stil */
#makine-parkuru .card {
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
}

#makine-parkuru .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#makine-parkuru .card-img-top {
  height: 200px;
  object-fit: cover;
}

#makine-parkuru .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

#makine-parkuru .list-group-item {
  padding: 8px 15px;
  font-size: 0.9rem;
}

#makine-parkuru .list-group-flush {
  margin-top: 10px;
}

/* Responsive düzen için */
@media (max-width: 768px) {
  #makine-parkuru .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Ürün grupları sayfası için özel stiller */
#urun-gruplari .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 10px;
  overflow: hidden;
}

#urun-gruplari .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Resim container - en önemli kısım */
#urun-gruplari .card-img-container {
  position: relative;
  height: 220px; /* Sabit yükseklik */
  overflow: hidden;
  background-color: #f8f9fa; /* Boşluklar için arka plan rengi */
}

#urun-gruplari .card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resmi keserek sığdır, en-boy oranı korur */
  object-position: center; /* Resmi ortala */
  transition: transform 0.5s ease;
}

#urun-gruplari .card:hover .card-img-top {
  transform: scale(1.05); /* Hover efekti */
}

/* Kart içeriği */
#urun-gruplari .card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#urun-gruplari .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* Kart alt kısmı */
#urun-gruplari .card-footer {
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

#urun-gruplari .btn {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
  #urun-gruplari .card-img-container {
    height: 180px; /* Mobilde daha kısa */
  }

  #urun-gruplari .card-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  #urun-gruplari .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #urun-gruplari .card-img-container {
    height: 200px;
  }
}

/* Ürün detay sayfası için özel stiller */
#urun-detay .card {
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

#urun-detay .card-img-top {
  height: 400px; /* Daha büyük bir yükseklik */
  object-fit: contain; /* Resmi bozmadan sığdır */
  object-position: center;
  border-radius: 8px;
}

#urun-detay .card-body {
  padding: 1.5rem;
}

#urun-detay .card-title {
  color: #0d6efd;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

#urun-detay h4 {
  color: #495057;
  margin-bottom: 1rem;
  font-weight: 500;
}

#urun-detay .list-group-item {
  border: none;
  padding: 0.5rem 0;
  background: transparent;
}

#urun-detay .list-group-item:before {
  content: "• ";
  color: #0d6efd;
  font-weight: bold;
  margin-right: 0.5rem;
}

#urun-detay .card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem 1.5rem;
}

#urun-detay .btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
  #urun-detay .card-img-top {
    height: 300px; /* Mobilde biraz daha küçük */
  }

  #urun-detay .card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  #urun-detay .card-img-top {
    height: 250px; /* Küçük ekranlarda daha da küçült */
  }

  #urun-detay .card-body,
  #urun-detay .card-footer {
    padding: 1rem;
  }
}

/* Ana sayfa ürün grupları linkleri için */
.product-group-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-group-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-group-link .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 10px;
  overflow: hidden;
}

.product-group-link:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Resim container */
.product-group-link .card-img-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-group-link .card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-group-link:hover .card-img-top {
  transform: scale(1.05);
}

/* Kart içeriği */
.product-group-link .card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-group-link .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  transition: color 0.3s;
}

.product-group-link:hover .card-title {
  color: #0a58ca;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
  .product-group-link .card-img-container {
    height: 180px;
  }

  .product-group-link .card-title {
    font-size: 1rem;
  }
}

/* Sadece proje-sayfasi sınıfına sahip sayfalarda geçerli olacak kurallar */
.proje-sayfasi .card-img-bottom {
  width: 100%;
  height: 60vh; /* Daha büyük ekran yüksekliği */
  object-fit: cover;
  max-height: 1000px;
  min-height: 500px;
}

/* Mobil cihazlar için */
@media (max-width: 768px) {
  .proje-sayfasi .card-img-bottom {
    height: 50vh; /* Mobilde daha büyük */
    max-height: 800px; /* Mobil max-height */
    min-height: 400px; /* Mobil min-height */
  }
}

/* Tabletler için */
@media (max-width: 992px) {
  .proje-sayfasi .card-img-bottom {
    height: 55vh; /* Tablet için */
    max-height: 900px; /* Tablet max-height */
    min-height: 450px; /* Tablet min-height */
  }
}

/* Büyük ekranlar için */
@media (min-width: 1200px) {
  .proje-sayfasi .card-img-bottom {
    height: 65vh; /* Büyük ekranlar için */
    max-height: 1000px; /* Büyük ekran max-height */
    min-height: 500px; /* Büyük ekran min-height */
  }
}

/* Proje Kartları */
.project-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex: 1 1 calc(25% - 20px); /* 4 sütunlu düzen */
  min-width: 250px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 160px; /* Yüksekliği 200px'den 160px'e düşürdük */
  object-fit: cover;
}

.project-card-body {
  padding: 15px; /* Padding'i 20px'den 15px'e düşürdük */
}

.project-card-title {
  font-size: 1.1rem; /* Başlık font büyüklüğünü azalttık */
  margin-bottom: 8px; /* Alt boşluğu azalttık */
}

.project-card-text {
  font-size: 0.9rem; /* Metin font büyüklüğünü azalttık */
  margin-bottom: 12px; /* Alt boşluğu azalttık */
}
.project-card-link {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .project-card {
    flex: 1 1 calc(50% - 20px); /* Mobilde 2 sütun */
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 1 1 100%; /* Mobilde tek sütun */
  }
}
/* Büyük Kartlar İçin Stiller */
.buyuk-kart {
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
}

.buyuk-kart .proje-resim-wrapper {
  min-height: 350px;
}

.buyuk-kart .card-body {
  padding: 2.5rem;
}

.buyuk-kart .card-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.buyuk-kart .card-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.buyuk-kart .btn-primary {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

/* Daha Geniş Container */
.container-xl {
  max-width: 1400px;
}

/* Büyük Ekranlarda Kartları Daha Da Büyük Yap */
@media (min-width: 1400px) {
  .buyuk-kart {
    min-height: 400px;
  }

  .buyuk-kart .proje-resim-wrapper {
    min-height: 400px;
  }

  .buyuk-kart .card-body {
    padding: 3rem;
  }

  .buyuk-kart .card-title {
    font-size: 2.25rem;
  }

  .buyuk-kart .card-text {
    font-size: 1.25rem;
  }
}

/* Tablet ve Mobil Cihazlar İçin Ayarlar */
@media (max-width: 992px) {
  .buyuk-kart {
    min-height: auto;
  }

  .buyuk-kart .proje-resim-wrapper {
    min-height: 250px;
  }

  .buyuk-kart .card-body {
    padding: 1.5rem;
  }

  .buyuk-kart .card-title {
    font-size: 1.5rem;
  }

  .buyuk-kart .card-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .buyuk-kart .proje-resim-wrapper {
    min-height: 200px;
  }
}

/* Proje Detay Sayfası Stili */
.proje-resim {
  width: 100%;
  height: 600px; /* Tam ekran yüksekliği */
  object-fit: cover;
  border-radius: 8px;
}

.carousel-item img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-text {
  line-height: 1.6;
  color: #444;
}

#proje-baslik {
  font-weight: 700;
  color: #333;
}

@media (max-width: 991px) {
  .proje-resim {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .proje-resim {
    height: 300px;
  }

  #proje-baslik {
    font-size: 1.5rem;
  }
}
/* İçerik stili */
.card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-text {
  line-height: 1.6;
  color: #444;
}

/* Ana başlık stili */
#proje-baslik {
  font-weight: 700;
  color: #333;
}

/* Mobil uyumluluk için */
@media (max-width: 767px) {
  .proje-resim {
    height: 300px;
  }

  #proje-baslik {
    font-size: 1.5rem;
  }
}

/* WhatsApp Sabit Buton */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #128c7e;
}

.whatsapp-icon {
  color: white;
}

/* Mobil Cihazlar İçin */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    font-size: 24px;
  }
}
/* WhatsApp Butonu için Link Stillerini Kaldır */
.whatsapp-float {
  text-decoration: none !important; /* Alt çizgiyi kaldır */
  outline: none !important; /* Odak çerçevesini kaldır */
  border: none !important; /* Kenarlıkları kaldır */
}

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
  text-decoration: none !important; /* Hover durumunda alt çizgiyi kaldır */
  outline: none !important; /* Odak durumunda çerçeveyi kaldır */
  border: none !important; /* Kenarlıkları kaldır */
}
.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

strong, b {
  font-weight: bold !important;
}
