/* ============================================
   Resim Boyut Düzeltmeleri
   Tüm resimlerin düzenli görünmesi için
   ============================================ */

/* Portfolio/Proje Resimleri */
.portfolio-item-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Proje Sayfası Resimleri (projecttemplate.php) */
.team-member .member-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-member .member-img {
    overflow: hidden;
    position: relative;
}

.team-member .member-img img {
    transition: transform 0.3s ease;
}

.team-member:hover .member-img img {
    transform: scale(1.05);
}

/* Ürün Resimleri (Anasayfa Modülü) */
.single__service .service__icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

/* Ürün Listesi Sayfası */
.portfolio-main-items .portfolio-item-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Blog/Haber Resimleri */
.blog-item-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Referans/Müşteri Logoları */
.client-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 15px;
}

/* Slider Resimleri */
.slide-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Genel Resim Düzeltmesi */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect Ratio Container (Modern Tarayıcılar için) */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hover Efekti */
.portfolio-item-img img,
.single__service .service__icon img {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item-img img,
.single__service:hover .service__icon img {
    transform: scale(1.05);
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .portfolio-item-img img {
        height: 250px;
    }
    
    .single__service .service__icon img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .portfolio-item-img img {
        height: 200px;
    }
    
    .single__service .service__icon img {
        height: 150px;
    }
}

/* Loading Placeholder */
.portfolio-item-img,
.single__service .service__icon {
    background-color: #f5f5f5;
    position: relative;
}

.portfolio-item-img::before,
.single__service .service__icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Resim Yüklendiğinde Placeholder'ı Gizle */
.portfolio-item-img img[src],
.single__service .service__icon img[src] {
    z-index: 1;
}
