/* Kankacım, Referanslar Bölümü - MAVİ KONSEPT */

.references-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    border-top: 1px solid #eee;
    overflow: hidden; /* Animasyon taşmalarını önler */
}

.ref-header {
    text-align: center;
    margin-bottom: 60px;
}

.ref-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.ref-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    /* Başlık altı çizgi MAVİ (#317da8) */
    background-color: #317da8;
    margin: 10px auto 0;
    border-radius: 2px;
}

.ref-desc {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Referanslar Kapsayıcısı - Flexbox ile Ortalama */
.references-grid {
    display: flex;
    flex-wrap: wrap; /* Sığmayan aşağı kaysın */
    justify-content: center; /* Ortalar */
    gap: 30px;
    max-width: 1550px; /* Site genişliği */
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Kutusu */
.ref-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    /* 4'lü dizilim hesabı: %25 - boşluklar */
    width: calc(25% - 23px); 
    height: 180px; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px; 
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;

    /* ANİMASYON BAŞLANGIÇ DURUMU */
    opacity: 0;
    transform: translateY(40px);
}

/* Animasyon Tetiklenince */
.ref-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Resmi */
.ref-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover Efektleri */
.ref-item:hover {
    transform: translateY(-10px); /* Daha belirgin kalkış */
    /* Gölgeye hafif MAVİ tint ekledik */
    box-shadow: 0 15px 30px rgba(49, 125, 168, 0.15);
    /* Kenarlık MAVİ (#317da8) */
    border-color: #317da8;
}

.ref-item:hover img {
    transform: scale(1.15); /* Büyüme efekti */
}

/* Placeholder */
.ref-placeholder {
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .ref-item {
        /* Tablette yan yana 3 tane */
        width: calc(33.33% - 20px);
        height: 150px;
    }
}

@media (max-width: 768px) {
    .ref-item {
        /* Mobilde yan yana 2 tane */
        width: calc(50% - 15px);
        height: 130px;
        padding: 15px;
    }
}