/**
 * Industries Page Styling
 * Premium enterprise design for ChowdhuryX
 */

/* ==================== Hero Section ==================== */
.page-header {
    background: linear-gradient(135deg, var(--brand-primary, #0066cc) 0%, #005a8d 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 { 
    color: white !important; 
    font-size: 2.75rem; 
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.page-header p { 
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.25rem;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ==================== Industries Grid ==================== */
.industries-section {
    padding: 3rem 0 5rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 0;
}

/* ==================== Industry Cards ==================== */
.industry-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-top: 4px solid var(--brand-primary, #0066cc);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary, #0066cc) 0%, var(--brand-secondary, #ff6b35) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.industry-card:hover {
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
    transform: translateY(-10px);
    text-decoration: none;
    color: inherit;
}

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

/* Unique color coding for each industry */
.industry-card:nth-child(1) { border-top-color: #0066cc; }
.industry-card:nth-child(1) .industry-icon { color: #0066cc; }

.industry-card:nth-child(2) { border-top-color: #e74c3c; }
.industry-card:nth-child(2) .industry-icon { color: #e74c3c; }

.industry-card:nth-child(3) { border-top-color: #9b59b6; }
.industry-card:nth-child(3) .industry-icon { color: #9b59b6; }

.industry-card:nth-child(4) { border-top-color: #3498db; }
.industry-card:nth-child(4) .industry-icon { color: #3498db; }

.industry-card:nth-child(5) { border-top-color: #f39c12; }
.industry-card:nth-child(5) .industry-icon { color: #f39c12; }

.industry-card:nth-child(6) { border-top-color: #27ae60; }
.industry-card:nth-child(6) .industry-icon { color: #27ae60; }

.industry-card:nth-child(7) { border-top-color: #16a085; }
.industry-card:nth-child(7) .industry-icon { color: #16a085; }

.industry-card:nth-child(8) { border-top-color: #e67e22; }
.industry-card:nth-child(8) .industry-icon { color: #e67e22; }

.industry-card:nth-child(9) { border-top-color: #e91e63; }
.industry-card:nth-child(9) .industry-icon { color: #e91e63; }

.industry-card:nth-child(10) { border-top-color: #34495e; }
.industry-card:nth-child(10) .industry-icon { color: #34495e; }

.industry-card:nth-child(11) { border-top-color: #8e44ad; }
.industry-card:nth-child(11) .industry-icon { color: #8e44ad; }

.industry-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(5deg);
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark, #1a1a1a);
    font-weight: 700;
    line-height: 1.3;
}

.industry-card p {
    color: var(--gray, #666);
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.industry-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary, #0066cc);
    font-weight: 600;
    margin-top: auto;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.industry-card:hover .industry-card-cta {
    color: var(--brand-secondary, #ff6b35);
    gap: 0.75rem;
}

.industry-card:hover .industry-card-cta i {
    transform: translateX(5px);
}

.industry-card-cta i {
    transition: transform 0.3s ease;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark, #1a1a1a) 0%, var(--gray-dark, #333) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 16px;
    margin: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: white !important;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 1rem auto 2.5rem;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    min-width: 200px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background-color: white;
    color: var(--dark, #1a1a1a);
    border-color: white;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3.5rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .industry-card {
        padding: 2rem;
    }
    
    .industry-icon {
        font-size: 3rem;
    }
    
    .cta-section {
        padding: 3.5rem 1.5rem;
        margin: 3rem 0 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .industry-card h3 {
        font-size: 1.25rem;
    }
    
    .industry-icon {
        font-size: 2.5rem;
    }
}

/* ==================== Accessibility ==================== */
.industry-card:focus-visible {
    outline: 3px solid var(--brand-primary, #0066cc);
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .industry-card,
    .industry-icon,
    .industry-card-cta,
    .industry-card::before {
        transition: none;
    }
    
    .industry-card:hover {
        transform: none;
    }
    
    .industry-card:hover .industry-icon {
        transform: none;
    }
}
