/* Customer Page Design System */
:root {
    /* Colors - Industrial Theme */
    --color-primary: #00d2ff;
    --color-secondary: #3a7bd5;
    --color-dark: #1a1a2e;
    --color-darker: #0f0f1e;
    --color-light: #f5f7fa;
    --color-white: #ffffff;
    --color-text-primary: #1a202c;
    --color-text-secondary: #4a5568;
    --color-text-light: #718096;
    --color-border: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--color-light);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.customer-page {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-dark) 100%);
    padding: var(--spacing-xxl) var(--spacing-md);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 180px;
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Section */
.filter-section {
    background: var(--color-white);
    padding: var(--spacing-lg) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.filter-tabs::-webkit-scrollbar {
    height: 6px;
}

.filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.filter-tab {
    flex-shrink: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tab:hover {
    background: #e8f4f8;
    color: var(--color-secondary);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

/* Customers Section */
.customers-section {
    padding: var(--spacing-xxl) 0;
}

.industry-group {
    margin-bottom: var(--spacing-xxl);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.industry-group.hidden {
    display: none;
}

.industry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-border);
    position: relative;
}

.industry-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

.industry-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    position: relative;
}

.industry-badge {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Customers Grid */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .customers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1200px) {
    .customers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Customer Card - Enhanced Design */
.customer-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient background overlay - subtle */
.customer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(58, 123, 213, 0.02) 0%, 
        rgba(0, 210, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.customer-card:hover::before {
    opacity: 1;
}

/* Top-left corner accent */
.customer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent var(--color-primary) transparent;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

.customer-card:hover::after {
    opacity: 0.15;
    border-width: 0 0 50px 50px;
}

/* Shine effect on hover */
.customer-card .shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.customer-card:hover .shine {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Left border accent */
.customer-card .left-accent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.customer-card:hover .left-accent {
    height: 70%;
}

/* Bottom-right corner decoration */
.customer-card .corner-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

.customer-card .corner-decoration::before,
.customer-card .corner-decoration::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    opacity: 0.2;
}

.customer-card .corner-decoration::before {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 20px;
}

.customer-card .corner-decoration::after {
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
}

.customer-card:hover .corner-decoration {
    opacity: 1;
    width: 40px;
    height: 40px;
}

/* Hover state */
.customer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Customer name styling */
.customer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-xs);
}

.customer-card:hover .customer-name {
    color: var(--color-secondary);
    transform: scale(1.02);
}

/* Add subtle text shadow on hover */
.customer-card:hover .customer-name {
    text-shadow: 0 2px 8px rgba(58, 123, 213, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-box {
        min-width: 140px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .industry-title {
        font-size: 1.5rem;
    }
    
    .industry-badge {
        font-size: 0.7rem;
    }
    
    .filter-tabs {
        gap: var(--spacing-xs);
    }
    
    .filter-tab {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state-text {
    font-size: 1.2rem;
    font-weight: 500;
}
