/* Impact Section */
.impact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    margin: 0 auto;
}
/* Desktop View (1024px and above) */
@media (min-width: 1024px) {
    .desktop-size {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .mobile-size {
        display: none;
    }

    .impact-card {
        background: linear-gradient(180deg, #2d1b69 0%, #11047a 50%, #1e0a5c 100%);
        border: none;
        border-radius: 5px;
        padding: 80px 60px;
        margin: 20px 0;
        width: 80%;
        max-width: 1200px;
        position: sticky;
        top: 15%;
        color: white;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    }

    .impact-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 45%;
        gap: 30px;
    }

    .impact-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50%;
        gap: 30px;
    }

    /* Desktop Header Styles */
    .impact-subtitle {
        font-size: 1.2em;
        font-weight: 400;
        opacity: 0.8;
        letter-spacing: 0.05em;
        margin-bottom: 10px;
        text-align: left;
    }

    .impact-title {
        font-size: 3.5em;
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        margin-bottom: 30px;
        text-align: left;
    }

    /* Desktop Avatar Container */
    .impact-avatar-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

    .impact-avatar-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .impact-avatar-info p:first-child {
        font-size: 1.3em;
        font-weight: 600;
        margin: 0;
        color: white;
    }

    .impact-avatar-info p:last-child {
        font-size: 1.1em;
        font-weight: 400;
        font-style: italic;
        opacity: 0.8;
        margin: 0;
        color: white;
        position: relative;
    }

    /* Desktop Description */
    .impact-description {
        font-size: 1.3em;
        font-weight: 400;
        line-height: 1.7;
        font-style: italic;
        opacity: 0.95;
        color: white;
        text-align: center;
        max-width: 100%;
        margin: 0;
    }
}

/* Mobile View (below 1024px) */
@media (max-width: 1023px) {
    .desktop-size {
        display: none;
    }

    .mobile-size {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .impact-card {
        background: linear-gradient(180deg, #2d1b69 0%, #11047a 50%, #1e0a5c 100%);
        border: none;
        border-radius: 20px;
        padding: 60px 40px;
        margin: 20px 0;
        width: 80%;
        max-width: 600px;
        position: sticky;
        top: 13%;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    /* Mobile Header Styles */
    .impact-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        text-align: center;
    }

    .impact-subtitle {
        font-size: 1.2em;
        font-weight: 400;
        opacity: 0.8;
        letter-spacing: 0.05em;
        margin-bottom: 15px;
        text-align: center;
    }

    .impact-title {
        font-size: 3em;
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        margin-bottom: 10px;
        text-align: center;
    }

    /* Mobile Description */
    .impact-description {
        font-size: 1em;
        font-weight: 300;
        line-height: 1.6;
        font-style: italic;
        opacity: 0.95;
        color: white;
        text-align: center;
        max-width: 90%;
        margin: 30px auto;
    }

    /* Mobile Avatar */
    .impact-card p:nth-last-child(2) {
        font-size: 1.2em;
        font-weight: 600;
        margin: 15px 0 5px 0;
        color: white;
        font-style: normal;
    }

    .impact-card p:last-child {
        font-size: 1.1em;
        font-weight: 400;
        font-style: italic;
        opacity: 0.8;
        margin: 0;
        color: white;
    }

    .impact-background-img {
        width: 65% !important;
    }
}

/* Common Styles for Both Views */
.impact-img-container {
    width: 80%;
    position: relative;
    justify-items: center;
}

.impact-img {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 40px;
    object-fit: cover;
}

.impact-background-img {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50%;
    height: 80%;
    object-fit: cover;
    border-radius: 15px;
    z-index: 1; /* Ensure background is behind other content */
}

/* Front Image Container (Metrics Card) */
.impact-front-img {
    position: relative;
    z-index: 2;
    margin-left: 80px; /* Push right to show background image */
}

.impact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Revenue Metrics Container - Desktop Only */
.revenue-metrics-container {
    position: absolute;
    top: 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;

    /* Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;

    /* Typography */
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Right Side - Secondary Metrics */
.revenue-metrics-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
    flex: 1;
}

.revenue-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.revenue-secondary-left-tag {
    background: rgba(9, 154, 183, 0.864);
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin: 8px 0px;
    text-align: center;
}

.revenue-secondary-right-tag {
    background: rgba(112, 62, 238, 0.769);
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.revenue-secondary-number {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Operations Metrics Container - Desktop Only */
.operations-metrics-container {
    position: absolute;
    top: 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;

    /* Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;

    /* Typography */
    color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Left Metric - Sale Cycle Reduction */
.operations-left-metric {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.operations-left-tag {
    background: rgba(181, 136, 244, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 500;
}

.operations-left-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

/* Right Metric - Online Sales Increase */
.operations-right-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.operations-right-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.operations-right-tag {
    background: rgba(112, 62, 238, 0.769);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* Local Support Metrics Container - Desktop Only */
.local-metrics-container {
    position: absolute;
    top: 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;

    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Typography */
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Top Tag */
.local-top-tag {
    background: rgba(181, 136, 244, 0.8);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    align-self: flex-start;
}

/* Main Content Area */
.local-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

/* Heart and Number Row */
.local-number-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.local-heart {
    font-size: 24px;
    color: #f472b6;
}

.local-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.local-percent {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.9;
}

/* Bottom Label */
.local-label {
    color: rgb(121, 255, 242);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 1200px) {
    .impact-front-img {
        margin-left: 50px; /* Reset margin for smaller screens */
    }
    .revenue-secondary-number {
        font-size: 2em;
    }

    .revenue-secondary-left-tag,
    .revenue-secondary-right-tag {
        font-size: 0.6em;
        padding: 4px 10px;
    }

    .operations-left-tag {
        font-size: 0.6em;
    }

    .operations-left-number.operations-right-number {
        font-size: 2.2em;
    }

    .local-number {
        font-size: 3em;
    }
}

/* Tablet Adjustments */
@media (max-width: 800px) {
    .impact-card {
        padding: 40px 30px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
        width: 85%;
    }

    .impact-title {
        font-size: 2.5em;
    }

    .impact-subtitle {
        font-size: 1.1em;
    }

    .impact-description {
        font-size: 1.1em;
    }

    .impact-img {
        width: 100%;
    }

    .revenue-metrics-right {
        gap: 20px;
    }

    .operations-left-tag {
        font-size: 0.8em;
    }

    .operations-left-number {
        font-size: 3em;
    }

    .operations-right-number {
        font-size: 3em;
    }

    .impact-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Tablet Adjustments */
@media (max-width: 650px) {
    .impact-card {
        padding: 40px 30px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
        width: 85%;
    }

    .impact-title {
        font-size: 2.5em;
    }

    .impact-subtitle {
        font-size: 1.1em;
    }

    .impact-description {
        font-size: 1.1em;
    }

    .impact-img {
        width: 100%;
    }

    .revenue-metrics-right {
        gap: 20px;
    }

    .operations-left-tag {
        font-size: 0.6em;
    }

    .operations-left-number {
        font-size: 2em;
    }

    .operations-right-number {
        font-size: 2em;
    }

    .impact-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Phone Adjustments */
@media (max-width: 480px) {
    .impact-card {
        padding: 30px 20px;
        width: 90%;
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .impact-img {
        width: 100%;
    }

    .impact-background-img {
        display: none;
    }

    .impact-front-img {
        margin-left: 0; /* Reset margin for mobile */
    }

    .impact-title {
        font-size: 2em;
    }

    .impact-subtitle {
        font-size: 1em;
    }

    .impact-description {
        font-size: 1em;
        margin: 20px auto;
    }

    .impact-avatar {
        width: 50px;
        height: 50px;
    }

    .revenue-secondary-number {
        font-size: 2em;
    }

    .revenue-tag {
        font-size: 0.8em;
    }

    .revenue-label {
        font-size: 0.8em;
    }

    .revenue-metrics-right {
        gap: 10px;
    }

    .operations-metrics-container {
        gap: 15px;
    }

    .operations-left-number,
    .operations-right-number {
        font-size: 2em;
    }

    .operations-left-tag {
        font-size: 0.6em;
    }

    .local-number {
        margin-top: 10px;
        font-size: 2.6em;
    }

    .local-label {
        font-size: 0.8em;
    }
}

@media (max-width: 390px) and (max-height: 750px) {
    .impact-description {
        font-size: 0.9em;
        margin: 15px auto;
    }

    .impact-avatar-info {
        width: 70%;
    }

    .impact-avatar-info-ceo {
        font-size: 0.8em !important;
    }

    .impact-avatar-info p:last-child {
        font-size: 0.6em !important;
    }

    .impact-avatar {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 390px) {
    .revenue-secondary-number {
        font-size: 2em;
    }

    .revenue-tag {
        font-size: 0.6em;
    }
    .revenue-metrics-right {
        gap: 5px;
    }

    .revenue-secondary-number {
        font-size: 1.4em;
    }
    .revenue-secondary-tag {
        font-size: 0.6em;
    }

    .operations-left-tag {
        font-size: 0.5em;
    }

    .operations-right-tag {
        font-size: 0.5em;
    }

    .operations-left-number {
        font-size: 1.6em;
    }

    .operations-right-number {
        font-size: 1.6em;
    }

    .local-number {
        font-size: 2.5em;
    }

    .local-label {
        font-size: 0.8em;
    }
}

@media (max-width: 390px) and (max-height: 750px) {
    .impact-description {
        font-size: 0.9em;
        margin: 15px auto;
    }

    .impact-avatar-info {
        width: 70%;
    }

    .impact-avatar-info-ceo {
        font-size: 0.8em !important;
    }

    .impact-avatar-info p:last-child {
        font-size: 0.6em !important;
    }

    .impact-avatar {
        width: 45px;
        height: 45px;
    }
}
