/* Referanslarımız Sayfası Stilleri */

/* Sayfa Başlığı Bölümü */
.page-title-section {
    background-color: white;
    padding: 60px 0;
    margin-top: 140px;
}

.page-title-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title-section h1 {
    color: #002290;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Sayfa Genel Ayarları */
.references-page {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container */
.references-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sayfa Başlığı */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #002290;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* Referanslar Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Referans Item */
.reference-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Logo Container */
.reference-logo {
    width: 120%;
    height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reference-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    min-width: 100px;
    min-height: 50px;
}

.reference-item:hover .reference-logo img {
    transform: scale(1.05);
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 40px 0;
        margin-top: 100px;
    }
    
    .page-title-section h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .page-title-section h1 {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .references-page {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .reference-item {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .references-page {
        padding: 80px 0 50px;
    }
    
    .page-header {
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        margin-top: 30px;
    }
    
    .reference-item {
        height: 110px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .reference-item {
        height: 100px;
        padding: 12px;
    }
}

/* Animasyon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reference-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Her satırdaki öğelere farklı gecikme */
.reference-item:nth-child(1) { animation-delay: 0.1s; }
.reference-item:nth-child(2) { animation-delay: 0.15s; }
.reference-item:nth-child(3) { animation-delay: 0.2s; }
.reference-item:nth-child(4) { animation-delay: 0.25s; }
.reference-item:nth-child(5) { animation-delay: 0.3s; }
.reference-item:nth-child(6) { animation-delay: 0.35s; }
.reference-item:nth-child(7) { animation-delay: 0.4s; }
.reference-item:nth-child(8) { animation-delay: 0.45s; }
.reference-item:nth-child(9) { animation-delay: 0.5s; }
.reference-item:nth-child(10) { animation-delay: 0.55s; }

/* Diğer öğeler için genel gecikme */
.reference-item:nth-child(n+11) {
    animation-delay: 0.6s;
}

/* Hover efekti için ek stil */
.reference-item {
    position: relative;
    overflow: hidden;
}

.reference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 34, 144, 0.08) 0%, rgba(0, 83, 166, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-item:hover::before {
    opacity: 1;
}

/* Logo hover efekti için z-index */
.reference-logo {
    position: relative;
    z-index: 1;
}

/* Sayfa yüklenirken başlık animasyonu */
.page-header h1 {
    animation: fadeInUp 0.8s ease-out;
}

.page-header p {
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}
