:root {
    --bs-primary: #2d60ff;
    --bs-success: #20c997;
    --bs-warning: #ffc107;
    --bs-dark: #1a1d53;
}

/* Background Image Styles */
.hero-bg {
background: linear-gradient(90deg, rgba(0, 2, 7, 0.6) 30%, rgba(45, 96, 255, 0.15) 60%),

url('/static/images/backgrounds/hands-scanning.jpg') no-repeat center center;
background-size: cover;
}

.solution-bg {
background: linear-gradient(90deg, rgba(0, 2, 7, 0.75) 30%, rgba(7, 0, 0, 0.18) 50%),
url('/static/images/backgrounds/bg-woman1.jpg') no-repeat center center;
background-size: cover;
}

.cta-bg {
background: linear-gradient(90deg, rgba(0, 2, 7, 0.75) 30%, rgba(7, 0, 0, 0.75) 100%),
url('/static/images/backgrounds/high-angle-woman-scanning.jpg') no-repeat center center;
background-size: cover;
}

/* Custom Components */
.solution-badge {
    background: linear-gradient(135deg, #2d60ff 0%, #0ea5e9 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.floating-shape-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: #2d60ff;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.floating-shape-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: #20c997;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.icon-wrapper-enterprise {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-card {
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.enterprise-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.enterprise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(45, 96, 255, 0.15);
    border-color: #2d60ff;
}



/* Optimized Impact Header */
.impact-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem; /* Reduced from default 1rem+ */
}

.icon-wrapper-enterprise {
    width: 70px; /* Slightly smaller for better balance */
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.impact-metric {
    font-size: 2rem; /* Slightly smaller font */
    font-weight: 800;
    line-height: 1;
    flex-grow: 1;
    min-width: 0;
    letter-spacing: -0.5px; /* Tighter letter spacing */
}

.impact-card {
    padding: 1.75rem; /* Reduced from 2rem */
    background: white;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.impact-content {
    padding: 0.25rem 0; /* Reduced vertical padding */
}

.impact-title {
    font-size: 1.2rem; /* Slightly smaller */
    font-weight: 700;
    color: var(--bs-dark);
    line-height: 1.3;
    margin-bottom: 0.75rem; /* Reduced */
}

.impact-description {
    color: #6c757d;
    font-size: 0.92rem; /* Slightly smaller */
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Even more optimized for smaller screens */
@media (max-width: 992px) {
    .icon-wrapper-enterprise {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }

    .impact-metric {
        font-size: 1.75rem;
    }

    .impact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .impact-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .icon-wrapper-enterprise {
        margin: 0 !important;
    }

    .impact-metric {
        width: 100%;
        font-size: 1.6rem;
    }

    .impact-card {
        padding: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .icon-wrapper-enterprise {
        width: 75px;
        height: 75px;
        min-width: 75px;
    }

    .impact-metric {
        font-size: 2.1rem;
    }
}



/* Business Impact Section */
.impact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(45, 96, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 96, 255, 0.12);
    border-color: rgba(45, 96, 255, 0.2);
}

.impact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-success), var(--bs-warning), var(--bs-info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.impact-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.impact-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.impact-card:hover .impact-icon {
    transform: scale(1.05);
}

.impact-metric {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bs-dark);
    flex-grow: 1;
}

.impact-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.impact-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.impact-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

.impact-meta {
    padding-top: 1rem;
    margin-top: auto;
}


.display-enterprise {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Responsive */
@media (max-width: 768px) {
    .impact-card {
        padding: 1.75rem;
    }

    .impact-header {
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .impact-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
    }

    .impact-metric {
        font-size: 1.75rem;
    }

    .display-enterprise {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .impact-card {
        padding: 2.25rem;
    }

    .impact-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        font-size: 2rem;
    }

    .impact-metric {
        font-size: 2.5rem;
    }
}




/* ============= MOBILE RESPONSIVE STYLES ============= */

/* Prevent zooming on mobile */
html, body {
    touch-action: manipulation;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-bg {
        padding: 3rem 0 !important;
        min-height: auto !important;
    }

    .hero-bg .display-7 {
        font-size: 1.75rem !important;
    }

    .hero-bg .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Solution Badge */
    .solution-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.25rem;
    }

    /* Hero Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Business Metrics */
    .d-flex.flex-wrap.gap-5 {
        gap: 2rem !important;
        justify-content: space-around;
        width: 100%;
    }

    .d-flex.flex-wrap.gap-5 > div {
        text-align: center;
        flex: 0 0 45%;
    }

    .d-flex.flex-wrap.gap-5 h3 {
        font-size: 1.5rem;
    }

    /* Section Headers */
    .display-6, .display-7, .display-enterprise {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    section.py-8 {
        padding: 3rem 0 !important;
    }

    .mb-8, .mb-6 {
        margin-bottom: 2rem !important;
    }

    /* Business Solutions Grid */
    .col-md-6, .col-lg-4 {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    .enterprise-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    .icon-wrapper-enterprise {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1rem !important;
    }

    .icon-wrapper-enterprise i {
        font-size: 1.5rem !important;
    }

    /* Impact Cards */
    .impact-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .impact-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .icon-wrapper-enterprise.bg-primary.bg-opacity-10,
    .icon-wrapper-enterprise.bg-success.bg-opacity-10,
    .icon-wrapper-enterprise.bg-warning.bg-opacity-10,
    .icon-wrapper-enterprise.bg-info.bg-opacity-10 {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto !important;
    }

    .impact-metric {
        font-size: 1.75rem !important;
        width: 100%;
        text-align: center;
    }

    .impact-title {
        font-size: 1.1rem !important;
        text-align: center;
    }

    /* Industry Solutions */
    .benefit-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
        flex-direction: column;
    }

    .benefit-card .flex-shrink-0 {
        margin: 0 auto 1rem auto !important;
    }

    .benefit-card .flex-shrink-0 .rounded-3 {
        width: 60px !important;
        height: 60px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .benefit-card .flex-shrink-0 i {
        font-size: 1.5rem !important;
    }

    /* How It Works Steps */
    .row.g-5 {
        gap: 2rem 0;
    }

    .col-lg-3 {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .col-lg-3 .rounded-circle {
        width: 80px !important;
        height: 80px !important;
    }

    .col-lg-3 .rounded-circle span {
        font-size: 1.5rem !important;
    }

    /* Final CTA */
    .cta-bg .row {
        flex-direction: column;
    }

    .cta-bg .col-lg-8 {
        text-align: center;
    }

    .cta-bg .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }

    .cta-bg .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 0.5rem auto;
    }

    /* Background shapes adjustment */
    .floating-shape {
        display: none; /* Hide floating shapes on mobile for better performance */
    }

    /* Padding adjustments */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Text alignment for mobile */
    .text-center-mobile {
        text-align: center !important;
    }

    .text-start-mobile {
        text-align: left !important;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    /* Even smaller font sizes */
    .hero-bg .display-7 {
        font-size: 1.5rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .display-enterprise {
        font-size: 1.5rem !important;
    }

    /* Compact cards */
    .enterprise-card {
        padding: 1.25rem !important;
    }

    .impact-card {
        padding: 1.25rem !important;
    }

    .benefit-card {
        padding: 1.25rem !important;
    }

    /* Smaller icons */
    .icon-wrapper-enterprise {
        width: 60px !important;
        height: 60px !important;
    }

    .icon-wrapper-enterprise i {
        font-size: 1.25rem !important;
    }

    /* Business metrics */
    .d-flex.flex-wrap.gap-5 > div {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    .d-flex.flex-wrap.gap-5 h3 {
        font-size: 1.25rem;
    }

    /* How it works */
    .col-lg-3 .rounded-circle {
        width: 70px !important;
        height: 70px !important;
    }

    /* Background images optimization */
    .hero-bg, .solution-bg, .cta-bg {
        background-attachment: scroll !important; /* Remove fixed background for mobile */
    }
}

/* Tablet adjustments (577px - 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .col-md-6 {
        width: 50% !important;
        float: left;
    }

    .col-lg-4 {
        width: 50% !important;
    }

    /* Clearfix for tablet */
    .row.g-4::after,
    .row.g-5::after {
        content: "";
        clear: both;
        display: table;
    }

    /* Adjust impact cards for tablet */
    .col-lg-3.col-md-6 {
        width: 50% !important;
    }

    /* Industry solutions - 2 columns */
    .col-lg-4 {
        width: 50% !important;
    }

    /* How it works - 2 columns */
    .col-lg-3 {
        width: 50% !important;
        margin-bottom: 2rem;
    }
}

/* Large mobile devices (landscape) */
@media (max-width: 992px) and (orientation: landscape) {
    .hero-bg {
        min-height: 100vh !important;
        padding: 2rem 0 !important;
    }

    .hero-bg .row.align-items-center {
        align-items: flex-start !important;
    }

    section.py-8 {
        padding: 2rem 0 !important;
    }
}

/* Ensure proper spacing between stacked elements */
@media (max-width: 992px) {
    section.py-8 {
        padding: 3rem 0 !important;
    }

    .mb-8 {
        margin-bottom: 2rem !important;
    }
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6,
p, span, div, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Improve button tap targets on mobile */
.btn {
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Better touch handling for mobile */
button,
a.btn,
input,
select,
textarea {
    font-size: 16px !important; /* Prevent iOS zoom on focus */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .benefit-card:hover,
    .enterprise-card:hover,
    .impact-card:hover {
        transform: none;
    }

    .benefit-card,
    .enterprise-card,
    .impact-card {
        transition: none;
    }
}

/* Loading optimization for mobile */
@media (max-width: 768px) {
    .bg-light-custom,
    .bg-white,
    .bg-primary {
        will-change: transform;
        backface-visibility: hidden;
    }
}