/* Brand Family Banners - CSS-based professional banners */

.brand-family-banner {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.brand-family-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.brand-family-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 2;
    transition: background 0.4s ease;
}

.brand-family-banner:hover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.3));
}

.brand-family-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.08"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.15;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.brand-family-banner:hover::after {
    opacity: 0.25;
}

.brand-family-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.brand-family-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-family-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-family-stats {
    display: flex;
    gap: 2rem;
    color: white;
    font-size: 0.875rem;
}

.brand-family-stat {
    text-align: center;
}

.brand-family-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.brand-family-stat-label {
    display: block;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Specific brand colors with glass morphism */
.banner-delixi {
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.banner-delixi::before {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.4) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(96, 165, 250, 0.2) 100%);
}

.banner-kinee {
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    position: relative;
}

.banner-kinee::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4) 0%, rgba(239, 68, 68, 0.3) 50%, rgba(248, 113, 113, 0.2) 100%);
}

.banner-madincos {
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
}

.banner-madincos::before {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.4) 0%, rgba(16, 185, 129, 0.3) 50%, rgba(52, 211, 153, 0.2) 100%);
}

.banner-unimat {
    background: rgba(234, 88, 12, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(234, 88, 12, 0.3);
    position: relative;
}

.banner-unimat::before {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.4) 0%, rgba(234, 88, 12, 0.3) 50%, rgba(251, 146, 60, 0.2) 100%);
}

/* Product Family Grid */
.product-families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.family-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.family-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.family-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.family-card-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.family-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.family-card-stat {
    text-align: center;
}

.family-card-stat-number {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.family-card-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Icons for different product families */
.icon-automation { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-electrical { background: linear-gradient(135deg, #f093fb, #f5576c); }
.icon-control { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-instrumentation { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.icon-power { background: linear-gradient(135deg, #fa709a, #fee140); }
.icon-safety { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.icon-communication { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.icon-sensors { background: linear-gradient(135deg, #ffecd2, #fcb69f); }

/* Responsive design */
@media (max-width: 768px) {
    .brand-family-banner {
        height: 150px;
    }
    
    .brand-family-title {
        font-size: 1.5rem;
    }
    
    .brand-family-stats {
        gap: 1rem;
    }
    
    .product-families-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .family-card {
        padding: 1.5rem;
    }
}
