/* Modern Industries Page Styles */

/* Design System Variables */
:root {
    /* Colors (HSL format) */
    --background: 0 0% 100%;
    --foreground: 210 11% 15%;
    --card: 0 0% 100%;
    --card-foreground: 210 11% 15%;
    --primary: 210 100% 50%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 200 100% 60%;
    --secondary: 210 60% 98%;
    --secondary-foreground: 210 11% 15%;
    --muted: 210 40% 98%;
    --muted-foreground: 215 16% 47%;
    --accent: 195 100% 50%;
    --accent-foreground: 0 0% 100%;
    --navy: 210 100% 12%;
    --navy-light: 210 50% 25%;
    --teal: 180 100% 25%;
    --teal-light: 180 100% 35%;
    --slate: 210 20% 98%;
    --slate-dark: 210 20% 10%;
    --border: 214.3 31.8% 91.4%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--navy)), hsl(var(--teal)));
    --gradient-card: linear-gradient(135deg, hsl(var(--slate)), hsl(0 0% 100%));
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.2);
    --shadow-glow: 0 0 40px hsl(var(--primary-glow) / 0.3);
    --shadow-card: 0 4px 20px -4px hsl(var(--slate-dark) / 0.1);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Impact Section */
.impact-section {
    padding: 4rem 0;
    background: hsl(var(--background));
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: hsl(var(--card));
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border));
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--navy));
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
    justify-items: center;
}

/* Industry Card */
.industry-card {
    background: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border));
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    width: 100%;
    max-width: 350px;
}

.industry-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-4px) !important;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.industry-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--navy) / 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-hover-content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-hover-content span {
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--navy));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.card-badge {
    background: hsl(var(--secondary));
    color: hsl(var(--primary));
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.industry-card:hover .card-arrow {
    background: hsl(var(--primary));
    color: white;
}

.card-arrow .icon {
    width: 1rem;
    height: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: hsl(var(--slate));
}

.cta-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--navy));
    margin-bottom: 1rem;
}

.cta-content p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: hsl(var(--card));
    border-radius: 1rem;
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--navy) / 0.8), transparent);
    border-radius: 1rem 1rem 0 0;
}

.modal-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
}

.modal-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-title p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-close i {
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.category-item {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.category-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--navy));
    margin-bottom: 0.25rem;
}

.category-title p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.category-toggle {
    margin-left: 1rem;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.category-services {
    margin-top: 1rem;
    display: none;
}

.category-services.expanded {
    display: block;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: hsl(var(--slate));
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.service-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--primary));
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.service-text {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem 1.5rem;
}

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

.animate-fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Override any animation classes that might interfere */
.industry-card.animate-fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

@media (max-width: 768px) {
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    
    .industry-card {
        max-width: 100%;
        width: 100%;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1.25rem;
        min-height: 140px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .modal-title h2 {
        font-size: 1.75rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem 1rem;
    }
    
    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .industry-card {
        max-width: 100%;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-content {
        padding: 1rem;
        min-height: 120px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.8rem;
    }
}
