* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Hero Section Starts */
.retail-hero {
    position: relative;
    height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.retail-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.retail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retail-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-left: 80px;
}

.retail-content h1 {
    font-size: 44px;
    color: #ff1e1e;
    font-weight: 700;
}

.retail-divider {
    height: 3px;
    width: 60%;
    margin: 15px 0 20px;
    background: linear-gradient(to right, transparent, #e5000c, transparent);
}

.retail-content p {
    font-size: 20px;
    color: #fff;
    width: 500px;
}

.retail-detection {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.retail-box {
    position: absolute;
    border: 2px solid;
    opacity: 0;
    transform: scale(0.85);
    animation: boxLoop 8s ease-in-out infinite;
    box-shadow: 0 0 12px currentColor;
}

.retail-box span {
    position: absolute;
    top: -22px;
    left: 0;

    font-size: 12px;
    color: #fff;

    padding: 3px 8px;
    border-radius: 3px;

    background: rgba(0, 0, 0, 0.7);

    opacity: 0;
    animation: textLoop 8s ease-in-out infinite;
}

@keyframes boxLoop {

    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    8% {
        opacity: 1;
        transform: scale(1);
    }

    22% {
        opacity: 1;
        transform: scale(1.02);
    }

    30% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 0;
    }
}

@keyframes textLoop {
    0% { opacity: 0; }
    8% { opacity: 1; }
    22% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.retail-box1 {
    top: 22%;
    left: 65%;
    width: 12%;
    height: 70%;
    border-color: red;
    animation-delay: 0s;
}
.retail-box1 span { animation-delay: 0s; border: 1px solid red; }

.retail-box2 {
    top: 12%;
    left: 84%;
    width: 10%;
    height: 50%;
    border-color: yellow;
    animation-delay: 2s;
}
.retail-box2 span { animation-delay: 2s; border: 1px solid yellow; }

.retail-box3 {
    top: 30%;
    left: 78%;
    width: 15%;
    height: 25%;
    border-color: lime;
    animation-delay: 4s;
}
.retail-box3 span { animation-delay: 4s; border: 1px solid lime; }

.retail-box4 {
    top: 49%;
    left: 78%;
    width: 10%;
    height: 19%;
    border-color: violet;
    animation-delay: 6s;
}
.retail-box4 span { animation-delay: 6s; border: 1px solid violet; }

@media (max-width: 992px) {

    .retail-hero {
        height: 500px;
    }

    .retail-content {
        margin-left: 40px;
        max-width: 60%;
    }

    .retail-content h1 {
        font-size: 32px;
    }

    .retail-content p {
        font-size: 16px;
        width: 100%;
    }

    .retail-box1 { left: 60%; width: 14%; }
    .retail-box2 { left: 80%; width: 12%; }
    .retail-box3 { left: 74%; width: 16%; }
    .retail-box4 { left: 74%; width: 12%; }
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .retail-hero {
        position: relative;
        height: 600px;
        display: block;
    }

    .retail-image-wrapper {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;

        background: url("../img/retail_images/mobile_background.jpg") no-repeat center/cover;
    }

    /* HIDE DESKTOP IMAGE */
    .retail-img {
        display: none;
    }

    .retail-content {
        position: absolute;
        top: 20px;
        left: 10px;
        right: 10px;
        z-index: 3;
        background: none;
        color: #fff;
    }

    .retail-content h1 {
        font-size: 20px;
        color: #ff2a2a;
    }

    .retail-divider {
        width: 70px;
        margin: 8px 0;
    }

    .retail-content p {
        font-size: 13px;
        color: #fff;
    }

    .retail-detection {
        position: absolute;
        inset: 0;
        z-index: 4;
    }

    .retail-box1 {
        top: 43%;
        left: 2%;
        width: 35%;
        height: 50%;
    }

    .retail-box2 {
        top: 34%;
        left: 60%;
        width: 28%;
        height: 40%;
    }

    .retail-box3 {
        top: 47%;
        left: 45%;
        width: 37%;
        height: 22%;
    }

    .retail-box4 {
        top: 62%;
        left: 38%;
        width: 35%;
        height: 18%;
    }

}
/* Hero Section Ends */

/* Retail Feature Starts */
.retail-features {
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.retail-features h2 {
    color: #e5000c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.retail-features .subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px;
    font-weight: bold;
}

.feature-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8d6d6;
    border-radius: 8px;
    padding: 20px 100px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.feature-item img {
    width: 50px;
    height: 50px;
}

.divider {
    width: 3px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        #e5000c,
        transparent
    );
}

@media (max-width: 576px) {

    .retail-features {
        padding: 30px 15px;
    }

    .retail-features h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .retail-features .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .feature-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .feature-item {
        font-size: 16px;
        justify-content: center;
        text-align: center;
    }

    .feature-item img {
        width: 40px;
        height: 40px;
    }

    .divider {
        width: 200px;
        height: 2px;
    }
}
/* Retail Feature Ends */

/* AI-Powered Starts */
.checkout-monitoring {
    background: #ffffff;
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    margin: 40px;
}

.cm-bg {
    position: absolute;
    inset: 0;
    background: url('../img/retail_images/ai_image.png') center/cover no-repeat;
    z-index: 1;
}

.cm-container {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 100px;
    padding: 30px 60px;
    color: #fff;
}

.cm-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
}

.cm-left h2 {
    color: #e5000c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.cm-left p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 4px;
    color: #ddd;
    text-align: center;
}

.cm-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: center;
}

.cm-card {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);

    overflow: hidden;
}

.cm-card.red-border::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;

    background:
        linear-gradient(to left, #e5000c, rgba(229,0,12,0.5), transparent) top right,
        linear-gradient(to left, #e5000c, rgba(229,0,12,0.5), transparent) bottom right,
        linear-gradient(to right, #ffffff, rgba(255,255,255,0.4), transparent) top left,
        linear-gradient(to right, #ffffff, rgba(255,255,255,0.4), transparent) bottom left;

    background-size:
        90px 2px,
        220px 2px,
        220px 2px,
        90px 2px;

    background-repeat: no-repeat;

    box-shadow:
        inset -2px 0 0 #e5000c,
        inset 2px 0 0 #ffffff;

    transition: transform 1.0s ease;
    transform-origin: center;
}

.cm-card > * {
    backface-visibility: hidden;
}

@media (max-width: 768px) {

    .checkout-monitoring {
        height: auto;
        margin: 20px;
        border-radius: 8px;
    }

    .cm-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        text-align: center;
    }

    .cm-left {
        max-width: 100%;
    }

    .cm-left h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .cm-left p {
        font-size: 14px;
        line-height: 1.5;
    }

    .cm-right {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cm-card {
        font-size: 16px;
        padding: 16px;
    }
}
/* AI-Powered Ends */

/* Retail Operational Impact Starts */
.retail-impact {
    background: #f5f5f5;
    padding: 40px 80px;
    font-family: 'Inter', sans-serif;
}

.retail-impact-header {
    text-align: center;
    margin-bottom: 40px;
}

.retail-impact-header h2 {
    color: #e5000c;
    font-size: 30px;
    font-weight: 700;
}

.retail-impact-header p {
    color: #555;
    font-size: 16px;
}

.impact-interactive {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    cursor: pointer;
}

.impact-image {
    position: absolute;
    inset: 0;
}

.impact-image img {
    position: absolute;
    top: 0;
    height: 100%;
    object-fit: cover;
    transition: all 1.0s ease;
}

.full-img {
    width: 100%;
    opacity: 1;
    z-index: 1;
}

.half-img {
    width: 50%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
}

.impact-interactive.reverse .half-img {
    left: 0;
}

.impact-interactive:hover .full-img {
    opacity: 0;
}

.impact-interactive:hover .half-img {
    opacity: 1;
}

.impact-content {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #e8dede;
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0;
    transition: all 1.0s ease;
    z-index: 3;
}

.impact-interactive .impact-content {
    left: 0;
    transform: translateX(-100%);
}

.impact-interactive:hover .impact-content {
    transform: translateX(0);
    opacity: 1;
}

.impact-interactive.reverse .impact-content {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

.impact-interactive.reverse:hover .impact-content {
    transform: translateX(0);
    opacity: 1;
}

.impact-content h3 {
    color: #e5000c;
    font-size: 24px;
    margin-bottom: 15px;
}

.impact-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 992px) {

    .retail-impact {
        padding: 30px 20px;
    }

    .impact-interactive {
        height: 300px;
    }

    .impact-content {
        width: 60%;
        padding: 20px;
    }

    .impact-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {

    .impact-interactive {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .impact-image {
        position: relative;
        height: 200px;
    }

    .impact-image img {
        width: 100%;
        height: 100%;
    }

    /* Hide full image on mobile */
    .full-img {
        opacity: 0;
    }

    /* Show half image always */
    .half-img {
        display: block;
        width: 100%;
        height: 100%;
        opacity: 1;
        position: absolute;
        left: 0 !important;
    }

    .impact-content {
        position: relative;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        padding: 20px;
    }
}
/* Retail Operational Impact Ends */

/* Core Retail Starts */
.core-functions {
    background: #ffffff;
    padding: 0 80px 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.core-functions h2 {
    color: #e5000c;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 40px;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.core-card {
    display: flex;
    align-items: center;
    gap: 40px;

    padding: 10px;
    min-height: 70px;

    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(229,0,12,0.2);

    transition: all 0.8s ease;
}

.img-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.img-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.default-img {
    opacity: 1;
}

.hover-img {
    opacity: 0;
    transform: scale(0.9);
}

.core-card span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.4;
}

.core-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.12),
        0 3px 6px rgba(229,0,12,0.1);
    border-color: #e5000c;
}

.core-card:hover .default-img {
    opacity: 0;
}

.core-card:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) {

    .core-functions {
        padding: 0 40px 40px;
    }

    .core-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .core-card {
        padding: 10px;
    }
}

@media (max-width: 576px) {

    .core-functions {
        padding: 20px;
    }

    .core-functions h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .core-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .core-card {
        flex-direction: row;
        gap: 40px;
        padding: 10px;
    }

    .img-wrapper {
        width: 60px;
        height: 60px;
    }

    .core-card span {
        font-size: 14px;
    }
}
/* Core Retail Ends */

/* Scope Industries Starts */
.logo-slider {
    background: #f5f5f5;
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.logo-slider h2 {
    color: #e5000c;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.logo-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    gap: 40px;
    width: max-content;

    animation: scrollLogos 25s linear infinite;
}

.logo-card {
    min-width: 250px;
    height: 150px;

    background: #ffffff;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;

    border: 1px solid rgba(0,0,0,0.08);

    box-shadow: 0 4px 10px rgba(3, 3, 3, 0.079);
}

.logo-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.logo-card span {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* Scope Industries Ends */

/* Talk to us Starts */
.cta-section {
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    padding-top: 40px;
    margin-bottom: 20px;
}

.cta-container {
    display: flex;
    height: auto;
    overflow: visible;
}

.cta-left {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 40px;
    min-width: 0;

    background: linear-gradient(to right, #000000, #1a0000);
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-left h2 {
    color: #e5000c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-left p {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;

    width: 100%;
    overflow-wrap: break-word;
}

.cta-strip {
    margin-top: 20px;
    background: linear-gradient(to right, #ff1a1a, #7a0000);
    padding: 12px 20px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

.cta-right {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
}

.cta-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-right::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 80%
    );

    z-index: 1;
}

.cta-button {
    text-align: center;
    padding: 10px 0;
}

.download-btn {
    display: inline-block;
    background: #e5000c;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
    margin-top: 20px;
}

.download-btn:hover {
    background: #cc0000;
    color: #fff;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 30px;
    width: 320px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.popup-box h3 {
    margin-bottom: 20px;
    color: #e5000c;
}

.popup-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-box button {
    width: 100%;
    background: #e5000c;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 992px) {

    .cta-container {
        flex-direction: column;
    }

    .cta-left,
    .cta-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cta-left {
        padding: 30px;
        text-align: center;
        align-items: center;
    }

    .cta-left h2 {
        font-size: 24px;
    }

    .cta-left p {
        font-size: 15px;
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-strip {
        font-size: 18px;
        text-align: center;
        width: 100%;
    }

    .cta-right img {
        height: 220px;
    }

    .cta-right::before {
        display: none;
    }

    .cta-button {
        padding: 25px 0;
    }

    .cta-button button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 576px) {

    .cta-section {
        padding-top: 20px;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-left,
    .cta-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cta-left {
        padding: 25px 20px;
        text-align: center;
        align-items: center;
    }

    .cta-left h2 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .cta-left p {
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
    }

    .cta-strip {
        width: 100%;
        margin-top: 15px;
        padding: 12px;
        font-size: 16px;
        text-align: center;
    }

    .cta-right img {
        height: 180px;
    }

    .cta-right::before {
        display: none;
    }

    .cta-button {
        padding: 20px;
    }

    .cta-button button {
        width: 100%;
        font-size: 15px;
        padding: 12px;
        border-radius: 8px;
    }
}
/* Talk to us Ends */