.ref-hero {
    background: radial-gradient(circle at center bottom, #0f172a 0%, #1e1b4b 100%);
    padding: 140px 0 100px;
    position: relative;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-bg {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; padding: 0 24px; }

.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #93c5fd; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px;
}
.hero-desc {
    color: #cbd5e1; font-size: 1.2rem; max-width: 600px; margin: 0 auto; line-height: 1.6;
}

/* 2. BODY & FILTER */
.ref-body { background: #f8fafc; padding: 60px 0 120px; }
.ref-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Filtre Butonları */
.filter-nav {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 25px; border-radius: 30px; border: 1px solid #e2e8f0;
    background: white; color: #64748b; font-weight: 600; cursor: pointer;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: #0f172a; color: white; border-color: #0f172a;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

/* LOGO GRID */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Sütunlu */
    gap: 20px;
}

.logo-card {
    background: white; border-radius: 16px; 
    height: 110px; /* Sabit yükseklik */
    border: 1px solid #e2e8f0; position: relative; overflow: hidden;
    transition: all 0.4s ease; padding: 0; /* Padding'i sıfırladık çünkü a etiketi kaplayacak */
}

/* YENİ EKLENEN KISIM: Linkin kartı tamamen kaplamasını ve ortalamasını sağlar */
.logo-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Logo Resmi */
.logo-img {
    /* BURAYI GÜNCELLEDİM: %100 yerine daha küçük değerler vererek boşluk bıraktık */
    max-width: 100%; 
    max-height: 100%;
    filter: grayscale(100%) opacity(0.6); 
    transition: 0.4s; object-fit: contain;
}

/* Hover Durumu */
.logo-card:hover {
    transform: translateY(-5px);
    border-color: white;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    z-index: 2;
}
.logo-card:hover .logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Kategori Etiketi (Hoverda Çıkar) */
.project-tag {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: #3b82f6; color: white; font-size: 0.75rem; font-weight: 700;
    text-align: center; padding: 5px;
    transform: translateY(100%); transition: 0.3s;
}
.logo-card:hover .project-tag { transform: translateY(0); }


/* RESPONSIVE */
@media (max-width: 1024px) {
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
}