/* ---------- PORTFÖY DETAY STYLES ---------- */
/* — Reset & Temel Ayarlar — */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f9f9f9;
}

a {
  text-decoration: none;
}

.portfolio-detail {
  background: #fff;
  padding: 4rem 1rem 6rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color .3s;
}

.back-link i {
  margin-right: .5rem;
}

.back-link:hover {
  color: #A20000;
}

/* Başlık & vurgu çubuğu */
.detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #333;
  position: relative;
  margin-bottom: .5rem;
}

.detail-header h1::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #A20000;
  border-radius: 2px;
}

.detail-header .meta {
  font-size: .95rem;
  color: #777;
  margin-bottom: 2rem;
}

/* Ana görsel + overlay */
.main-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  /* ✅ Maksimum yüksekliği sınırla */
  object-fit: cover;
  /* ✅ Görseli orantılı ve düzgün şekilde kırpar */
  transition: transform .5s ease;
}

.main-image:hover img {
  transform: scale(1.03);
}

.main-image .img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

/* Açıklama & özellikler grid */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
}

.description p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

/* Özellik listesi */
.features {
  list-style: none;
  padding: 0;
}

.features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #444;
  font-size: .98rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.features li:nth-child(1) {
  animation-delay: .3s;
}

.features li:nth-child(2) {
  animation-delay: .45s;
}

.features li:nth-child(3) {
  animation-delay: .6s;
}

.features li:nth-child(4) {
  animation-delay: .75s;
}

.features li:nth-child(5) {
  animation-delay: .9s;
}

.features li i {
  color: #A20000;
  margin-right: .75rem;
}

/* Çağrı butonu */
.btn-cta {
  display: inline-block;
  margin-bottom: 3rem;
  padding: 0.75rem 2rem;
  background: #A20000;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background .3s, transform .3s;
  opacity: 0;
  animation: fadeUp 0.6s .2s forwards;
}

.btn-cta:hover {
  background: #A20000;
  transform: translateY(-2px);
}

/* Galeri: scroll-snap */
.gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.gallery img {
  flex: 0 0 auto;
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  scroll-snap-align: start;
  transition: transform .3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Fade-in animasyonu */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gallery img {
    width: 160px;
    height: 100px;
  }
}