/* ==========================================================
   SELECTED SHOPIFY WORK SECTION - RESPONSIVE STYLES
   ========================================================== */
@media (max-width: 1440px) {
    .hero-mini-stats {
        gap: 50px;
    }

    .mini-stat-item:not(:first-child)::before {
        left: -25px;
    }

    .service-card__icon {
        height: 50px;
        width: 50px;
    }

    .service-card__icon svg,
    .service-card__icon img {
        width: 28px;
        height: 28px;


    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card__title {
        font-size: 20px;
    }


}

@media (max-width: 1199px) {
    .service-card__title {
        font-size: 18px;
    }

    .hero-mini-stats {
        gap: 20px 34px;
        flex-wrap: wrap;
    }

    .mini-stat-item:not(:first-child)::before {
        left: -18px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .wp-process-item {
        margin-bottom: 20px;
    }

    .wp-process-line {
        top: 130px;
        bottom: 130px;
    }

    .wp-tech-cat-header {
        margin-bottom: 15px;

        padding-bottom: 10px;
    }

    .wp-tech-cat-card {
        padding: 20px 16px;
    }

    .wp-tech-item {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 8px;
        padding-top: 8px;
    }

    .metric-card {
        padding: 24px 16px;
        gap: 15px;
    }

    .metric-number-wrap {
        font-size: 36px;
    }

    .metric-title {
        font-size: 18px;
    }

    .metric-icon {
        width: 60px;
        height: 60px;
        padding: 15px;
    }
}

@media (max-width:1199px) and (min-width: 991px) {
    .service-card__header {
        flex-direction: column;

        align-items: flex-start;
    }

    .service-card p {
        font-size: 14px;
    }
}

@media (max-width: 991px) {

    /* Services Show More Button on Mobile/Tablet */
    .services-grid:not(.expanded)>div:nth-child(n+5) {
        display: none !important;
    }

    .services-show-more-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 40px;
    }

    .btn-show-more-services {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 28px;
        font-family: var(--font-poppins);
        font-size: 15px;
        font-weight: 600;
        color: var(--black);
        background-color: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    .btn-show-more-services:hover {
        background-color: var(--black);
        color: var(--white);
        border-color: var(--black);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .btn-show-more-services svg {
        transition: transform 0.3s ease;
    }

    .services-grid.expanded+.services-show-more-wrap .btn-show-more-services svg {
        transform: rotate(180deg);
    }

    .sh-process-sec {
        padding-top: 85px;
        padding-bottom: 30px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .sh-process-sec .sec-head {
        margin-bottom: 0;
    }

    .sh-process-sec .sub-title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .sh-process-sec-title {
        font-size: 20px;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .sh-process-sec .sec-head p {
        display: none;
    }

    .sh-process-wrap {
        margin-top: 10px;
    }

    .sh-process-grid {
        gap: 50px;
        padding-left: calc(50vw - 100px);
        padding-right: calc(50vw - 100px);
    }

    .sh-process-step {
        flex: 0 0 200px;
    }

    .sh-process-line {
        top: 22px;
        left: 100px;
        right: 100px;
        height: 2px;
    }

    .sh-process-step-icon {
        width: 44px;
        height: 44px;
        border-width: 1.5px;
        margin-bottom: 6px;
    }

    .sh-process-step-icon svg {
        width: 20px;
        height: 20px;
    }

    .sh-process-step-desc p {
        font-size: 13px;
        line-height: 1.3;
        max-width: 180px;
    }

    .projects-sec {
        padding: 80px 0;
    }

    .projects-wrapper {
        flex-direction: column;
        gap: 24px;
        margin-top: 0;
    }

    .projects-list {
        flex: 1 1 100%;
        width: 100%;
    }

    .project-showcase {
        flex: 1 1 100%;
        width: 100%;
        position: relative;
        top: 0;
        height: 500px;
    }

    .browser-mockup {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mockup-viewport {
        position: relative;
        flex: 1;
    }

    .project-item {
        padding: 18px 0;
        gap: 20px;
    }

    .project-title {
        font-size: 24px;
    }

    /* Advantage Section Responsive */
    .advantage-sec {
        padding-block: 80px;
    }

    .adv-wrapper {
        flex-direction: column;
        gap: 40px;
        margin-top: 35px;
    }

    .adv-left {
        width: 100%;
    }

    .adv-right {
        display: none;
    }

    .adv-mobile-img {
        display: block;
        width: auto;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        margin-left: 46px;
        /* Align with description text */
        border-radius: 16px;
        background-color: #f5f5f5;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
        transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, margin-top 0.6s ease;
    }

    .adv-mobile-img img {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        padding: 20px;
        margin: 0 auto;
        width: 100%;
    }

    .adv-item.active .adv-mobile-img {
        max-height: 400px;
        aspect-ratio: 1/1;
        opacity: 1;
        margin: 20px auto 0;
    }

    .wp-process-center-col {
        justify-content: start;

    }

    .wp-process-line {
        top: 5px;
        bottom: 5px;
    }

    .wp-step-title {
        font-style: 24px;
    }

    .tech-stack-sec {
        padding-block: 80px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack-title {
        font-size: 38px;
    }

    .tech-tabs-nav-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */

        /* Container styles transferred from .tech-tabs */
        border: 1px solid rgba(0, 0, 0, 0.08);
        background-color: #fcfcfc;
        border-radius: 50px;
        padding: 6px;
        max-width: 700px;
        margin: 0 auto 40px;
    }

    .tech-tabs-nav-wrap::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .tech-tabs {
        border: none;
        background-color: transparent;
        padding: 0;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .tech-tabs .tech-tab-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .sh-process-sec {
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .sh-process-sec-title {
        font-size: 38px;
    }

    .sh-process-wrap {
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 0;
        overflow: hidden;
        padding-block: 20px;
    }

    .sh-process-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 120px;
        position: relative;
        z-index: 2;
        width: max-content;
        will-change: transform;
        padding-left: calc(50vw - 150px);
        padding-right: calc(50vw - 150px);
    }

    .sh-process-step {
        flex: 0 0 300px;
        width: auto;
    }

    .sh-process-line {
        position: absolute;
        top: 40px;
        left: 150px;
        right: 150px;
        height: 3px;
        background-color: #eee;
        z-index: -1;
    }
}

@media (max-width: 575px) {
    .projects-sec {
        padding: 60px 0;
    }

    .project-item {
        gap: 15px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-meta-desc {
        font-size: 14px;
    }

    .project-showcase {
        height: 280px;
    }

    .mockup-address {
        display: none;
    }

    .mockup-header {
        padding: 10px 15px;
    }

    .why-choose-header {
        gap: 0;
    }

    /* Advantage Section Mobile Specifics */
    .adv-desc p {
        padding-left: 0;
    }

    .adv-mobile-img {
        margin-left: 0;
    }
}


@media (max-width: 575px) {
    .tech-stack-sec {
        padding-block: 60px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tech-stack-title {
        font-size: 32px;
    }

    .tech-card {
        padding: 24px;
    }
}



@media (max-width: 767px) {
    .sh-process-sec-title {
        font-size: 34px;
    }

    .sh-process-wrap {
        margin-top: 40px;
    }

    .sh-process-grid {
        gap: 60px;
        padding-left: calc(50vw - 120px);
        padding-right: calc(50vw - 120px);
    }

    .sh-process-step {
        flex: 0 0 240px;
    }

    .sh-process-line {
        top: 30px;
        left: 120px;
        right: 120px;
    }

    .sh-process-step-icon {
        width: 60px;
        height: 60px;
        border-width: 1.5px;
        margin-bottom: 15px;
    }

    .sh-process-step-icon svg {
        width: 26px;
        height: 26px;
    }

    .sh-process-step-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .sh-process-step-desc p {
        font-size: 13.5px;
    }

    .wordpress-theme .eco-sec-title {
        font-size: 32px;
    }

    .ecosystem-visual-container {
        max-width: 440px;
    }

    /* Shrink nodes on smaller screens to prevent overlap */
    .ecosystem-node {
        width: 100px;
    }

    .ecosystem-node-btn {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 4px;
    }

    .ecosystem-node-icon-wrap {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .ecosystem-node-icon-wrap svg {
        width: 16px;
        height: 16px;
    }

    .ecosystem-node-label {
        font-size: 11px;
    }

    .ecosystem-node-desc {
        display: none;
        /* Hide descriptions to prevent clutter and overlapping */
    }

    .ecosystem-core-inner {
        width: 90px;
        height: 90px;
    }

    .ecosystem-core-badge {
        width: 64px;
        height: 64px;
    }

    .ecosystem-core-badge svg {
        width: 20px;
        height: 20px;
    }

    .ecosystem-core-label-text {
        font-size: 8px;
    }

    .wp-process-sec {
        padding-block: 80px;
    }

    .wp-process-sec-title {
        font-size: 32px;
    }

    .wp-process-wrap {
        margin-top: 50px;
    }

    /* Move line to left edge */
    .wp-process-line {
        left: 20px;
        transform: none;
        top: 20px;
        bottom: 20px;
    }

    .wp-process-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 60px;
        padding-left: 50px;
        box-sizing: border-box;
    }

    /* Direct styling for columns under flex direction */
    .wp-process-item:nth-child(odd) .wp-process-text-col,
    .wp-process-item:nth-child(even) .wp-process-text-col {
        text-align: left;
        align-items: flex-start;
        max-width: 100%;
    }

    .wp-process-item:nth-child(odd) .wp-process-img-col,
    .wp-process-item:nth-child(even) .wp-process-img-col {
        width: 100%;
        max-width: 100%;
    }

    /* Position node on the line */
    .wp-process-center-col {
        align-items: start;
        position: absolute;
        left: -6px;
        top: 6px;
        width: 40px;
        height: auto;
        justify-content: start;
    }

    .wp-process-node {
        box-shadow: 0 0 0 3px var(--white);
    }

    .wp-process-item.active .wp-process-node {
        box-shadow: 0 0 0 3px var(--white), 0 0 10px rgba(135, 62, 254, 0.4);
    }

    .wp-step-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .wp-step-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .adv-item.active .adv-indicator::before {
        width: 20px;
        height: 20px;
    }

    .adv-item-header {
        gap: 5px;
        font-size: 20px;
    }

    .adv-title {
        font-size: 20px;
    }

    .metric-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .metric-number-wrap {
        font-size: 26px;
    }

    .metric-title {
        font-size: 16px;
    }

    .metric-card {
        padding: 16px 10px;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .sh-process-sec-title {
        font-size: 28px;
    }

    .sh-process-grid {
        gap: 40px;
        padding-left: calc(50vw - 110px);
        padding-right: calc(50vw - 110px);
    }

    .sh-process-step {
        flex: 0 0 220px;
    }

    .sh-process-line {
        top: 25px;
        left: 110px;
        right: 110px;
    }

    .sh-process-step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .sh-process-step-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================================
   SMALL HEIGHT SCREEN OPTIMIZATION (Desktop short viewports)
   ========================================================== */
@media (min-width: 768px) and (max-height: 850px) {

    /* Scroll Animation Section Card Styling */
    .anim-text-block {
        max-width: 440px;
        padding: 28px 36px;
        border-radius: 20px;
    }

    .anim-text-block .anim-block-title {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .anim-text-block p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .anim-bullets li {
        font-size: 14px;
    }

    .anim-stat .stat-number {
        font-size: 30px;
    }
}

@media (min-width: 768px) and (max-height: 720px) {

    /* Scroll Animation Section Card Styling */
    .anim-text-block {
        max-width: 380px;
        padding: 20px 24px;
        border-radius: 16px;
    }

    .anim-text-block .anim-block-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .anim-text-block p {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 6px;
    }

    .anim-bullets li {
        font-size: 13px;
        gap: 6px;
    }

    .anim-stat .stat-number {
        font-size: 24px;
    }
}

/* Advantage Section Spacing Optimization */
@media (min-width: 992px) and (max-height: 850px) {
    .adv-wrapper {
        padding-top: 60px;
        gap: 40px;
    }

    .advantage-sec .sec-title {
        font-size: 44px;
        margin-bottom: 20px;
    }

    .adv-item {
        padding: 18px 0;
    }

    .adv-item-header {
        font-size: 24px;
    }

    .adv-title {
        font-size: 24px;
    }

    .adv-desc p {
        font-size: 15px;
        line-height: 1.5;
    }

    .adv-right {
        height: 55vh;
    }
}

@media (min-width: 992px) and (max-height: 720px) {
    .adv-wrapper {
        padding-top: 40px;
        gap: 20px;
    }

    .advantage-sec .sec-title {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .adv-item {
        padding: 12px 0;
    }

    .adv-item-header {
        font-size: 20px;
    }

    .adv-title {
        font-size: 20px;
    }

    .adv-desc p {
        font-size: 14px;
        line-height: 1.4;
    }

    .adv-right {
        height: 50vh;
    }
}







@media (max-width: 575px) {
    .wp-process-sec-title {
        font-size: 28px;
    }

    .wp-process-item {
        padding-left: 42px;
    }

    .wp-process-line {
        left: 15px;
    }

    .wp-process-center-col {
        width: 30px;
    }

    .wp-process-node {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .wordpress-theme .eco-sec-title {
        font-size: 28px;
    }

    .ecosystem-visual-container {
        max-width: 340px;
    }

    .ecosystem-node {
        width: 85px;
    }

    .ecosystem-node-btn {
        border-radius: 10px;
    }

    .ecosystem-node-icon-wrap {
        width: 28px;
        height: 28px;
    }

    .ecosystem-node-icon-wrap svg {
        width: 14px;
        height: 14px;
    }

    .ecosystem-core-inner {
        width: 70px;
        height: 70px;
    }

    .ecosystem-core-badge {
        width: 52px;
        height: 52px;
    }

    .ecosystem-core-badge svg {
        width: 16px;
        height: 16px;
    }

    .ecosystem-core-label-text {
        display: none;
    }

    .metric-desc-wrapper p {
        font-size: 11px;
    }

    .metric-title {
        font-size: 14px;
    }

    .metric-number-wrap {
        font-size: 20px;
    }
}