/* Shahmeer Custom Sections - Phone Feature Showcase */

.scs-phone-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.scs-col {
    display: flex;
    flex-direction: column;
    gap: 55px;
    flex: 1 1 220px;
    max-width: 280px;
    position: relative;
    z-index: 2;
}

.scs-col-left {
    align-items: flex-end;
    text-align: right;
}

.scs-col-right {
    align-items: flex-start;
    text-align: left;
}

/* ---- Icon boxes ---- */
.scs-icon-box {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.scs-col-left .scs-icon-box {
    flex-direction: row-reverse;
}

.scs-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scs-icon-circle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    transform-origin: center bottom;
}

.scs-icon-circle svg,
.scs-icon-circle i {
    width: 1em;
    height: 1em;
}

.scs-icon-box.is-active .scs-icon-circle {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* Wobble on hover instead of a plain lift */
.scs-icon-box:hover .scs-icon-circle {
    animation: scs-wobble 0.5s ease-in-out;
}

@keyframes scs-wobble {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-10deg); }
    40%  { transform: rotate(8deg); }
    60%  { transform: rotate(-6deg); }
    80%  { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}

.scs-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    max-width: 190px;
}

.scs-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    max-width: 190px;
}

/* ---- Phone frame (pure CSS, no external image needed) ---- */
.scs-phone-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.scs-phone-frame {
    position: relative;
    width: 260px;
    height: 540px;
    background: #111;
    border-radius: 42px;
    box-shadow: 0 0 0 4px #2b2b2b, 0 25px 50px rgba(0, 0, 0, 0.45);
    padding: 14px;
    box-sizing: border-box;
}

.scs-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 22px;
    background: #111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 2;
}

.scs-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Slide transition instead of a plain fade */
.scs-phone-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
    opacity: 0;
}

.scs-phone-img.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scs-phone-img.slide-in-from-left {
    transform: translateX(-100%);
}

.scs-phone-img.slide-in-from-right {
    transform: translateX(100%);
}

.scs-phone-img.slide-out-to-left {
    transform: translateX(-100%);
    opacity: 0;
}

.scs-phone-img.slide-out-to-right {
    transform: translateX(100%);
    opacity: 0;
}

/* ---- Connector line + fast travelling dot (icon -> phone) ---- */
.scs-connector-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.scs-connector-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    transform-origin: left center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scs-connector-line.is-active {
    opacity: 1;
}

.scs-connector-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
    transform: translateX(var(--scs-dot-start, 0px));
}

.scs-connector-dot.is-traveling {
    animation-name: scs-dot-travel;
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.15, 0.85, 0.35, 1);
    animation-fill-mode: forwards;
}

@keyframes scs-dot-travel {
    0%   { transform: translateX(var(--scs-dot-start, 0px)); }
    100% { transform: translateX(var(--scs-dot-end, 0px)); }
}

/* ---- Responsive: stack vertically like a mobile app screen ---- */
@media (max-width: 767px) {
    .scs-phone-showcase {
        flex-direction: column;
        gap: 25px;
        padding: 30px 15px;
    }

        .scs-connector-layer {
        display: none;
    }

    /* Phone always on top, all icon boxes (both columns) go below it */
    .scs-phone-wrap {
        order: -1;
    }

    .scs-col-left {
        order: 1;
    }

    .scs-col-right {
        order: 2;
    }

    .scs-phone-frame {
        width: 220px;
        height: 460px;
    }

    .scs-col {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .scs-col-left,
    .scs-col-right {
        align-items: center;
        text-align: center;
    }

    .scs-icon-box,
    .scs-col-left .scs-icon-box {
        flex-direction: column;
        gap: 8px;
        width: 110px;
    }

    .scs-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .scs-title {
        font-size: 13px;
        max-width: 110px;
    }

    .scs-desc {
        font-size: 11px;
        max-width: 110px;
    }
}