/* ===================================
   Industries Page Styles
   =================================== */

/* Hero Section */
.industries-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.industries-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.industries-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 1s ease-in-out;
}

.industries-hero .hero-image.active {
    opacity: 1;
}

.industries-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(74, 58, 255, 0.9) 0%, rgba(34, 193, 195, 0.8) 100%); */
    z-index: 2;
}

.industries-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 3;
}

.industries-hero .container {
    position: relative;
    z-index: 4;
}

.industries-hero .hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.industries-hero .hero-tag {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.industries-hero .hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.industries-hero .title-line {
    display: block;
}

.industries-hero .title-line.highlight {
    background: linear-gradient(135deg, #00f5ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industries-hero .hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.industries-hero .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card, .impact-card {
  background: #181818;
  color: #e0e0e0;
  border: 1.5px solid #333;
  box-shadow: 0 4px 24px rgba(255,255,255,0.04);
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover, .impact-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,255,255,0.10);
  border-color: #444;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.large {
    grid-column: span 2;
}

.service-icon, .impact-icon {
  background: #232323;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  border: 2px solid #333;
  box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 20px;
}

.service-icon i, .impact-icon i {
  font-size: 2rem;
  color: #f5f5f5;
}

.service-card h3, .impact-card h3 {
  color: #f5f5f5;
}

.service-card p, .impact-card p {
  color: #e0e0e0;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(74, 58, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(74, 58, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(74, 58, 255, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Service Stats */
.service-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Section Backgrounds */
.bg-light, .industry-impact {
  background: #111 !important;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/><circle cx="40" cy="60" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Industry Impact Section */
.industry-impact {
    background: #111 !important;
    color: #fff;
}

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

.impact-card {
    background: #181818;
    color: #e0e0e0;
    border: 1.5px solid #333;
    box-shadow: 0 4px 24px rgba(255,255,255,0.04);
    border-radius: 20px;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.impact-card:hover::before {
    opacity: 0.05;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: #232323;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}

.impact-icon i, .impact-icon svg {
  font-size: 2rem;
  color: #f5f5f5;
  width: 2rem;
  height: 2rem;
  display: block;
}

.impact-icon svg:empty {
  background: #444;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: block;
}

/* Ensure all section titles and text in Healthcare/Industry Impact are white */
.industry-impact h2, .industry-impact h3, .industry-impact h4, .industry-impact p, .industry-impact span, .industry-impact li {
  color: #fff !important;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.impact-number .suffix {
    color: var(--secondary);
}

.impact-label {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* CTA Section - Fixed and Customizable */
/* .cta { */
    /* background: linear-gradient(135deg, #e6a161 0%, #9c5442 100%); */
    /* background: linear-gradient(135deg, #c07835 0%, #9c5442 100%); */
    /* color: white; */
    /* text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0; /* Ensure proper padding */
    /* min-height: 300px; /* Ensure minimum height for visibility */
    /* display: flex;
    align-items: center;
    z-index: 1;
}  */

/* Alternative color schemes - uncomment one to change CTA color */
/*
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
*/

/*
.cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
*/

/* 
.cta {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
} */


/*
.cta {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
*/

/* .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-actions .btn {
    min-width: 200px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} */

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    color: white;
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-outline {
    background: none;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Ensure primary buttons in CTA match the orange/brown theme */
.cta .btn-primary {
    background-color: #A8E6A3;
    border-color: #A8E6A3;
    color: #1A2740;
}

.cta .btn-primary:hover {
    background-color: #A3D1F6;
    border-color: #A3D1F6;
    color: #1A2740;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-card.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Fix hero section for mobile */
    .industries-hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .industries-hero .hero-background {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .industries-hero .hero-image {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
        background-size: cover;
        background-position: center center;
        object-fit: cover;
    }
    
    .industries-hero .hero-overlay,
    .industries-hero .hero-gradient {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Ensure hero tag is centered on mobile */
    .industries-hero .hero-content {
        text-align: center !important;
        padding-top: 20vh;
    }

    .industries-hero .hero-tag {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: max-content !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .service-stats {
        gap: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .impact-card {
        padding: 1.5rem;
    }
    
    .industries-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .industries-hero .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-icon {
        width: 60px;
        height: 60px;
    }
    
    .impact-icon i {
        font-size: 1.5rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
  .industries-hero .hero-title {
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .impact-card,
    .feature-item,
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        transition: none;
    }
    
    .industries-hero .hero-image {
        transition: none;
    }
}

/* Focus States */
.service-card:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.feature-item:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .industries-hero,
    .cta {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .impact-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 

.industry-impact .section-title, .industry-impact .section-description, .industry-impact h2, .industry-impact h3, .industry-impact h4, .industry-impact p {
  color: #fff !important;
  opacity: 1 !important;
}

/* Healthcare Section - Ensure bright white text */
.healthcare .section-header .section-title,
.healthcare .section-header .section-description,
.healthcare .section-header h2,
.healthcare .section-header h3,
.healthcare .section-header h4,
.healthcare .section-header p,
.healthcare .section-header span {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* All healthcare section text should be bright white */
.healthcare h2,
.healthcare h3,
.healthcare h4,
.healthcare p,
.healthcare span,
.healthcare li,
.healthcare .section-title,
.healthcare .section-description {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Section tag in healthcare */
.healthcare .section-tag,
.healthcare .section-tag span {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Override main.css section styles for healthcare with higher specificity */
.healthcare.section-padding .section-header .section-title,
.healthcare.bg-light .section-header .section-title,
section.healthcare .section-title,
section#healthcare .section-title {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important; /* Add slight shadow for better readability */
  font-weight: 700 !important; /* Make it bold for better visibility */
}

.healthcare.section-padding .section-header .section-description,
.healthcare.bg-light .section-header .section-description,
section.healthcare .section-description,
section#healthcare .section-description {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important; /* Add slight shadow for better readability */
  font-weight: 400 !important; /* Ensure normal weight for description */
}

/* Ultra-specific override for the exact text content */
section#healthcare .section-header h2:contains("HIPAA-Compliant"),
section#healthcare .section-header p:contains("Advanced healthcare") {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Comprehensive override for ALL text in healthcare section */
#healthcare *,
.healthcare * {
  color: #ffffff !important;
}

/* Specific overrides for common text elements in healthcare */
#healthcare h1, #healthcare h2, #healthcare h3, #healthcare h4, #healthcare h5, #healthcare h6,
#healthcare p, #healthcare span, #healthcare div, #healthcare li, #healthcare a,
.healthcare h1, .healthcare h2, .healthcare h3, .healthcare h4, .healthcare h5, .healthcare h6,
.healthcare p, .healthcare span, .healthcare div, .healthcare li, .healthcare a {
  color: #ffffff !important;
  opacity: 1 !important;
}