/* تنظیمات کانتینر برای قرارگیری دقیق در یک ردیف */
.brand-hub-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* مجبور کردن به 4 ستون مساوی */
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: inherit;
    perspective: 1000px; 
}

/* ساختار لوکس کارت شیشه‌ای */
.brand-card {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

/* پس‌زمینه متحرک */
.card-bg-animated {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* محتوای روی کارت */
.card-content {
    position: relative;
    z-index: 1;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transform: translateZ(40px); /* برجستگی بیشتر */
}

/* هدر و آیکون‌ها */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}
.card-icon {
    width: 65px; height: 65px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    color: #1a1a2e; /* رنگ آیکون */
}
.card-icon svg {
    width: 32px; height: 32px;
}
.card-icon-badge {
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
}

/* متون */
.card-title {
    font-size: 1.6em;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    transition: color 0.4s ease;
}
.card-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
    transition: color 0.4s ease;
}

/* دکمه */
.artistic-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.artistic-btn svg { width: 18px; height: 18px; transition: transform 0.4s ease; }
.artistic-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.9), transparent);
    transform: translateX(-150%); transition: transform 0.6s ease;
}

/* هاور کارت‌ها */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-card:hover { border-color: transparent; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); }
.brand-card:hover .card-bg-animated { opacity: 1; animation: gradientMove 4s ease infinite; }
.brand-card:hover .card-title,
.brand-card:hover .card-desc,
.brand-card:hover .card-icon-badge { color: #ffffff; }
.brand-card:hover .card-icon-badge { background: rgba(0, 0, 0, 0.2); }
.brand-card:hover .card-icon { transform: scale(1.1) rotate(5deg); background: #ffffff; }
.brand-card:hover .card-icon svg { color: #1a1a2e; }

.brand-card:hover .artistic-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}
.brand-card:hover .artistic-btn svg { transform: translateX(-5px); }
.brand-card:hover .artistic-btn::before { transform: translateX(150%); }

/* رنگ‌های اختصاصی هاور */
.quantum-card .card-bg-animated { background-image: linear-gradient(45deg, #00d2ff, #3a7bd5, #00d2ff); }
.studio-card .card-bg-animated { background-image: linear-gradient(45deg, #7F00FF, #E100FF, #7F00FF); }
.nexus-card .card-bg-animated { background-image: linear-gradient(45deg, #ff416c, #ff4b2b, #ff416c); }
.webnexon-card .card-bg-animated { background-image: linear-gradient(45deg, #1cb5e0, #000046, #1cb5e0); }

/* ریسپانسیو (برای تبلت 2 ستون، موبایل 1 ستون) */
@media (max-width: 1100px) {
    .brand-hub-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .brand-hub-container { grid-template-columns: 1fr; }
}