/* --- ANA SAYFA MARKALAR BÖLÜMÜ ---
   NOT: Diğer bölümlerle (hakkımızda vb.) çakışmasın diye tüm sınıf ve
   @keyframes adları "brands" önekiyle yazılmıştır. */

.brands-section {
    position: relative;
    padding: 80px 0 90px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    z-index: 2;
    overflow-x: clip;
    isolation: isolate;
    border-top: 1px solid #EEF2F6;
}

.brands-z { position: relative; z-index: 3; }
.brands-section .brands-orange { color: var(--c-orange, #FF6B00); }

/* --- BAŞLIK ALANI --- */
.brands-header { max-width: 720px; margin: 0 auto 45px auto; text-align: center; }

.brands-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: 1.5px solid var(--c-orange, #FF6B00);
    border-radius: 30px;
    color: var(--c-orange, #FF6B00);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: rgba(255, 107, 0, 0.05);
}

.brands-title {
    font-family: var(--font-main, 'Jost', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-blue, #0A2B5E);
    line-height: 1.2;
    margin-bottom: 14px;
}

.brands-subtitle { font-size: 1rem; color: #64748B; line-height: 1.6; margin: 0; }

/* --- 4'LÜ LOGO GRID --- */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-bottom: 45px;
}

.brand-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 190px;
    background: #FFFFFF;
    border: 1px solid #E6ECF3;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(10, 43, 94, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--c-orange, #FF6B00);
    border-radius: 0 0 4px 4px;
    transition: width 0.35s ease;
}

.card-full-link { position: absolute; inset: 0; z-index: 5; border-radius: 16px; }

.brand-logo-img {
    max-width: 78%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 18px 40px rgba(255, 107, 0, 0.12);
}
.brand-card:hover::before { width: 130px; }
.brand-card:hover .brand-logo-img { transform: scale(1.05); }

/* --- ALT BİLGİ & CTA BARI --- */
.brands-bottom-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 60px;
    border: 1px solid #EEF2F8;
    border-radius: 18px;
    background: linear-gradient(100deg, #EAF2FF 0%, #F8FAFF 45%, #FFFFFF 70%, #FFF1E4 100%);
}

.brands-bottom-bar::before,
.brands-bottom-bar::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 0, 0.18);
    pointer-events: none;
}
.brands-bottom-bar::before { left: -190px; bottom: -200px; }
.brands-bottom-bar::after  { right: -200px; bottom: -230px; }

.bottom-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-orange, #FF6B00);
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.bottom-divider {
    flex-shrink: 0;
    width: 1px;
    height: 70px;
    background: #CBD5E1;
    position: relative;
    z-index: 1;
}

.bottom-info-text { flex: 1; position: relative; z-index: 1; }

.bottom-info-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-blue, #0A2B5E);
}

.bottom-info-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #64748B;
    max-width: 520px;
}

.brands-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--c-blue, #0A2B5E);
    color: #FFFFFF;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(10, 43, 94, 0.25);
    transition: all 0.3s ease;
}
.brands-cta-btn:hover {
    background: var(--c-orange, #FF6B00);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}
.brands-cta-btn i { transition: transform 0.3s ease; }
.brands-cta-btn:hover i { transform: translateX(5px); }

/* --- KÖŞE NESNELERİ (önceki bölümün üzerine taşar, animasyon/filter YOK) --- */
.brands-deco {
    position: absolute;
    top: -90px;
    width: clamp(160px, 18vw, 300px);
    height: auto;
    z-index: 10;
    pointer-events: none;
}
.brands-deco-left  { left: 2%; }
.brands-deco-right { right: 2%; }

/* --- HAREKETLİ ARKA PLAN (kendi katmanında kırpılır) --- */
.brands-bg-wave {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    contain: paint;
}

.brands-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.brands-glow-left  { top: 10%;   left: -5%;  background: var(--c-orange, #FF6B00); }
.brands-glow-right { bottom: 5%; right: -5%; background: var(--c-blue, #0A2B5E); }

/* Akan dalgalar */
.brands-wave {
    position: absolute;
    left: 0;
    width: 2400px;
    height: 120px;
    fill: none;
    stroke-width: 2;
}
.brands-wave-1 { top: 18%; stroke: rgba(255, 107, 0, 0.22); animation: brandsWaveSlide 14s linear infinite; }
.brands-wave-2 { top: 62%; stroke: rgba(10, 43, 94, 0.16);  animation: brandsWaveSlide 20s linear infinite reverse; }

@keyframes brandsWaveSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-600px); }
}

/* Geometrik şekiller */
.brands-geo { position: absolute; display: block; opacity: 0.5; animation: brandsGeoFloat 10s ease-in-out infinite; }
.bg-circle { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 107, 0, 0.25); }
.bg-ring   { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(10, 43, 94, 0.2); }
.bg-square { width: 30px; height: 30px; border: 2px solid rgba(255, 107, 0, 0.35); border-radius: 6px; animation-name: brandsGeoSpin; animation-duration: 18s; animation-timing-function: linear; }
.bg-tri    { width: 34px; height: 30px; background: rgba(10, 43, 94, 0.16); clip-path: polygon(50% 0, 100% 100%, 0 100%); animation-name: brandsGeoSpin; animation-duration: 22s; animation-timing-function: linear; }
.bg-dots   { width: 70px; height: 70px; background-image: radial-gradient(rgba(255, 107, 0, 0.5) 2px, transparent 2px); background-size: 14px 14px; }

.bg1 { top: 14%; left: 22%; }
.bg2 { top: 30%; left: 8%;   animation-delay: -2s; }
.bg3 { top: 70%; left: 14%;  animation-delay: -4s; }
.bg4 { top: 22%; right: 24%; animation-delay: -1s; }
.bg5 { top: 55%; right: 8%;  animation-delay: -5s; }
.bg6 { top: 78%; right: 26%; animation-delay: -3s; }
.bg7 { top: 8%;  left: 48%;  animation-delay: -6s; }
.bg8 { top: 44%; left: 3%;   animation-delay: -7s; }

@keyframes brandsGeoFloat {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(14px, -18px); }
    66%      { transform: translate(-12px, 10px); }
}
@keyframes brandsGeoSpin {
    from { transform: rotate(0deg) translateY(0); }
    50%  { transform: rotate(180deg) translateY(-16px); }
    to   { transform: rotate(360deg) translateY(0); }
}

/* Ekolayzer */
.brands-eq {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2%;
    opacity: 0.35;
}
.brands-eq span {
    flex: 1;
    max-width: 10px;
    height: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.55), rgba(10, 43, 94, 0.25));
    transform-origin: bottom;
    animation: brandsEqBounce 1.6s ease-in-out infinite alternate;
}
@keyframes brandsEqBounce {
    0%   { transform: scaleY(0.12); }
    100% { transform: scaleY(0.85); }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .brands-section { padding: 60px 0; }
    .brands-title { font-size: 2rem; }

    .brands-grid { gap: 16px; }
    .brand-card { flex: 0 0 calc(50% - 8px); height: 150px; }

    .brands-bottom-bar { flex-direction: column; text-align: center; padding: 28px 24px; gap: 18px; }
    .bottom-divider { display: none; }
    .bottom-info-text p { margin: 0 auto; }

    .brands-deco { top: -50px; width: 120px; }
    .brands-eq { height: 60px; }
}

@media (max-width: 576px) {
    .brands-section { padding: 45px 0; }
    .brands-title { font-size: 1.65rem; }
    .brands-subtitle { font-size: 0.88rem; }

    .brands-grid { gap: 12px; }
    .brand-card { flex: 0 0 calc(50% - 6px); height: 110px; padding: 12px; border-radius: 14px; }
    .brand-card::before { width: 60px; }
    .brand-logo-img { max-height: 48px; }

    .bottom-icon { width: 70px; height: 70px; font-size: 1.8rem; }
    .bottom-info-text h3 { font-size: 1.2rem; }
    .bottom-info-text p { font-size: 0.9rem; }
    .brands-cta-btn { width: 100%; justify-content: center; }

    .brands-deco { top: -34px; width: 80px; }
    .brands-eq span:nth-child(even) { display: none; }
    .brands-geo { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .brands-wave, .brands-geo, .brands-eq span { animation: none; }
}