/* ============================================
   BRAND SECTION CSS — Triple A-Tech
   Dark Theme | Glowing Logos | No Cards
   ============================================ */

/* ===== BRAND GRID ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 1.5rem;
    align-items: center;
    justify-items: center;
}

/* ===== BRAND ITEM ===== */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-item:hover {
    transform: translateY(-6px);
}

/* ===== LOGO RING (ANIMATED BORDER) ===== */
.brand-logo-ring {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.5s ease;
}

/* Animated rotating gradient border */
.brand-logo-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(52, 152, 219, 0.3),
        rgba(46, 204, 113, 0.3),
        transparent
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-border 4s linear infinite;
    animation-play-state: paused;
}

.brand-item:hover .brand-logo-ring::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Glow effect behind logo */
.brand-logo-ring::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.brand-item:hover .brand-logo-ring::after {
    opacity: 1;
}

/* ===== BRAND LOGO IMAGE ===== */
.brand-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(0.9) grayscale(20%);
    transition: all 0.4s ease;
}

.brand-item:hover .brand-logo {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.08);
}

/* ===== PLACEHOLDER (NO LOGO) ===== */
.brand-logo-placeholder {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.brand-item:hover .brand-logo-placeholder {
    color: rgba(52, 152, 219, 0.7);
    background: rgba(52, 152, 219, 0.08);
}

/* ===== BRAND NAME ===== */
.brand-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.brand-item:hover .brand-name {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== EMPTY STATE ===== */
.brand-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem 1rem;
    }

    .brand-logo-ring {
        width: 80px;
        height: 80px;
    }

    .brand-logo,
    .brand-logo-placeholder {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 0.75rem;
    }

    .brand-logo-ring {
        width: 72px;
        height: 72px;
    }

    .brand-logo,
    .brand-logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .brand-name {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.5rem;
    }

    .brand-logo-ring {
        width: 64px;
        height: 64px;
    }

    .brand-logo,
    .brand-logo-placeholder {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 0.68rem;
    }
}