.service-hero-sec {
    position: relative;
    padding: 0 30px;
}

.service-hero-sec .container {
    padding-top: 5em;
    padding-bottom: 5em;
}

.service-hero-sec .hero-content p {
    max-width: 660px;
}

.service-hero-sec .container-fluid {
    position: relative;
    background-color: var(--color-theme-bg);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.service-hero-img {
    width: 50vw;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    margin: 0;
}

.service-hero-sec .tj-page-header::before {
    display: none;
}

.service-hero-img::after {
    content: "";
    width: 240px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg,
            #191a18 24%,
            rgba(25, 26, 24, 0.5),
            rgba(25, 26, 24, 0.01));
}

@media (max-width: 768px) {
    .service-hero-img::after {
        width: 100%;
        background: linear-gradient(0deg,
                rgba(25, 26, 24, 0.98) 45%,
                rgba(25, 26, 24, 0.04) 65%);
    }
}


.service-hero-img img,
.service-hero-img .img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.service-hero-sec p {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.56;
}

.service-hero-sec p strong {
    color: var(--color-common-white);
}

.service-hero-sec .page-title {
    font-size: 64px;
}

.service-info-sec .main-about-img .img img {
    max-height: 500px;
    border-radius: 16px;

}


/* Technologies Section */
.tech-section {
    position: relative;
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.tech-item {
    background: var(--color-theme-bg);
    border: 1px solid var(--color-border-1);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tech-item:hover,
.tech-item.active {
    transform: translateY(-5px);
    border-color: var(--color-theme-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon img,
.tech-item.active .tech-icon img {
    filter: grayscale(0%);
}

.tech-name {
    color: var(--color-heading-primary);
    font-size: 16px;
    font-family: var(--ff-heading);
    font-weight: 500;
}

/* CTA Section Styles */
.cta-section {
    padding: 120px 0 80px;
    position: relative;
    border-top: 1px solid var(--color-border-1);
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-theme-bg), transparent, var(--color-theme-bg));
    z-index: 1;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cta-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    mix-blend-mode: luminosity;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.cta-section .container .wrp {
    position: relative;
    z-index: 1;
    padding: 130px 30px;
    border-radius: 16px;
    overflow: hidden;
}

.cta-section .container .wrp::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-theme-bg);
    pointer-events: none;
    z-index: -2;
}

.cta-section .container .wrp::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg-scaled.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
    mix-blend-mode: luminosity;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.cta-section .sec-title {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    width: 100%;
    margin-right: auto;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.our-cap-sec .service-card {
    height: 100%;
}

.our-cap-sec .service-card .service-inner {
    height: 100%;
    border-radius: 10px;
}

/* Interactive Technology Section Styles */
.technology-sec .integration_item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-theme-dark);
    border: 1px solid var(--color-border-1);
    padding: 12px 24px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: grab;
    transition: transform 0.2s ease;
}

.technology-sec .integration_item:active {
    cursor: grabbing;
}

.technology-sec .integration_item:has(span) img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.technology-sec .tech-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-heading-primary);
    line-height: 1;
    font-family: var(--ff-heading);
}

/* Interactive Strategy Section Styles */
.h3-service-section {
    background-color: var(--color-theme-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;

}

.h3-service-section-wrap {
    position: relative;

    z-index: 1;
}

.h3_services_wrap {
    border-top: 1px solid var(--color-border-1);
}

.h3_services_wrap .service_list_item {
    border-bottom: 1px solid var(--color-border-1);
}

.service_list_item {
    position: relative;
    padding: 30px 0;
    display: flex;
    align-items: start;
    gap: 20px;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
}

.service_list_item .service_reveal_img {
    position: absolute;
    top: 50%;
    inset-inline-start: 27%;
    width: 333px;
    height: 333px;
    opacity: 0;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) rotateX(270deg);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 5;
}

.service_list_item:hover .service_reveal_img {
    opacity: 1;
    transform: translate(-50%, -50%) rotateX(360deg);
}

.service_list_item .item_count {
    display: inline-flex;
    justify-content: center;
    align-items: start;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    width: 50px;
    height: 88px;
    border: 1px solid var(--color-border-1);
    border-radius: 60px;
    background-color: var(--color-theme-dark);
    font-weight: var(--fw-sbold);
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-family: var(--ff-heading);
    color: var(--color-text-body);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.service_list_item .item_count span {
    display: inline-flex;
    line-height: 1;
    margin-left: -13px;
}

.service_list_item:hover .item_count {
    border-color: var(--color-theme-primary);
    background-color: var(--color-theme-primary);
    color: var(--color-theme-dark);
}

.service_list_item:hover .item_count span {
    margin-left: 0;
}

.service_list_item .item_content {
    display: flex;
    align-items: start;
    gap: 126px;
    margin-left: auto;
}

.service_list_item .item_content .content_inner {
    max-width: 510px;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.service_list_item .item_content .content_inner .title {
    color: var(--color-heading-primary);
    margin: 0;
}

.service_list_item .item_content .content_inner .title a:hover {
    color: var(--color-theme-primary);
}

.service_list_item .item_content .content_inner .desc {
    color: var(--color-text-body);
    margin-top: 20px;
}

.service_list_item .item_content .tj-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background-color: transparent;
    font-size: 35px;
    border: none;
    transition: all 0.3s ease;
}

.service_list_item .item_content .tj-icon-btn i {
    color: var(--color-common-white);
}

.service_list_item:hover .item_content .tj-icon-btn i {
    color: var(--color-theme-primary);
}

.why-image img {
    border-radius: 10px;

}

.d-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-choose-us-sec .choose-box .choose-icon {
    margin-bottom: 30px;
}

.why-choose-us-sec .choose-box .title {
    margin-bottom: 0;
}

/* Responsive adjustments for strategy section */
@media (max-width: 1599px) {
    .service-hero-sec {
        padding: 0 15px;
    }

    .service-hero-sec .page-title {
        font-size: 50px;
    }
}

@media (max-width: 1399px) {
    .service_list_item .item_content {
        gap: 50px;
    }

    .service_list_item .service_reveal_img {
        inset-inline-start: 25%;
        width: 300px;
        height: 330px;
    }
}

@media (max-width: 1199px) {
    .service_list_item .item_content {
        gap: 30px;
    }

    .service_list_item .item_content .content_inner {
        max-width: 475px;
    }

    .service_list_item .service_reveal_img {
        inset-inline-start: 23%;
        width: 240px;
        height: 280px;
    }

    .service-hero-sec .page-title {
        font-size: 44px;
    }

    .service-hero-sec .hero-content p {
        max-width: 560px;
    }

    .service-hero-sec .container {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .service_list_item .service_reveal_img {
        display: none;
    }

    .service-hero-sec .page-title {
        font-size: 34px;
    }

    .service-hero-sec p {

        font-size: 16px;

    }

    .h3-service-section .container {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .service_list_item {
        padding: 25px 0;
        flex-direction: row !important;
        /* Keep icon and count aligned */
    }

    .service_list_item .item_count {
        width: 40px;
        height: 70px;
        font-size: 40px;
    }

    .service_list_item .item_count span {
        margin-left: -10px;
    }

    .service_list_item .item_content {
        width: calc(100% - 60px);
        flex-direction: column;
        gap: 30px;
    }

    .service_list_item .item_content .content_inner {
        max-width: 100%;
    }

    .service_list_item .item_content .content_inner .desc {
        margin-top: 10px;
    }

    .d-grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .service-hero-sec .hero-content {
        padding-top: 20vw;
    }

    .service-hero-img {
        width: 100%;
        height: 90%;
    }

    .service-hero-sec .tj-page-header {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 575px) {
    .service-hero-sec .page-title {
        font-size: 28px;
    }

    .tj-page-link {
        font-size: 14px !important;
    }

    .service-hero-sec p {
        font-size: 15px;
        margin: 15px 0;
    }

    .btn-area {
        gap: 15px;
        margin: 0;
    }

    .technology-sec .tech-label {
        font-size: 13px;

    }

    .our-client-sec .sec-title {
        font-size: 16px;
    }

    .cta-section .container .wrp {
        padding: 70px 15px;
    }

    .service-hero-img {
        height: 60%;
    }
}

@media (max-width: 400px) {
    .our-client-sec .sec-title {
        padding: 10px;
    }
}

/* Interactive Portfolio Section */
.portfolio-tabs {
    gap: 20px;
    flex-wrap: nowrap;
    overflow: auto;
    justify-content: space-between !important;
}

.portfolio-showcase-box {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border-1);
    background-color: var(--color-theme-bg);
}

.portfolio-display {
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    transition: background-position 5s ease-in-out;
}

.portfolio-display:hover,
.portfolio-display.scroll-active {
    background-position: bottom center;
}

.portfolio-display.reset-scroll {
    background-position: top center !important;
    transition: none !important;
}

.portfolio-tabs .nav-item {
    flex: 1;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

.portfolio-tabs .nav-link {
    background: transparent;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    aspect-ratio: 3/2;
}

.portfolio-tabs .nav-link .tab-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.portfolio-tabs .nav-link.active,
.portfolio-tabs .nav-link:hover {
    border-color: var(--color-theme-primary) !important;
    background: transparent !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-tabs .nav-link:hover .tab-thumb {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .portfolio-showcase-box {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .portfolio-showcase-box {
        height: 300px;
    }

    .portfolio-tabs {
        gap: 10px;
    }

    .portfolio-tabs .nav-link {
        margin-bottom: 10px;
    }

    .mobile-click-indicator {
        position: absolute;
        inset: 0;
        /* Full container cover */
        background: rgba(0, 0, 0, 0.4);
        /* Slight dark overlay */
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }


    .mobile-click-indicator span {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        /* Force black */
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

@media (max-width: 475px) {
    .portfolio-tabs .nav-item {
        min-width: 120px;
        flex: inherit;
    }

}

/* 3D Mobile Slider */
.mobile-3d-slider-sec {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background: var(--color-theme-bg);
    z-index: 1;
    /* Create stacking context for bg image */
}

.mobile-3d-slider-sec .sec-head {
    margin-bottom: 50px;
    text-align: center;
}

.mobile-3d-swiper {
    width: 100%;
    /* added perspective context */
}

.mobile-3d-swiper .swiper-slide {
    background-position: center;
    background-size: cover;

    height: auto;

    transition: all 0.5s ease;
    background-color: transparent;
    aspect-ratio: 3/5;
}


.mobile-3d-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}



@media (max-width: 768px) {
    .mobile-3d-swiper .swiper-slide {
        width: 180px;
    }
}

/* Slider Navigation Buttons */
.mobile-3d-swiper .swiper-button-prev,
.mobile-3d-swiper .swiper-button-next {
    width: 60px;
    height: 60px;
    background-color: var(--color-theme-bg);
    /* Match bg or use dark */
    background: rgba(25, 26, 24, 0.9);
    /* Semi-transparent dark */
    border: 1px solid var(--color-border-1);
    border-radius: 50%;
    color: var(--color-common-white);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.mobile-3d-swiper .swiper-button-prev:after,
.mobile-3d-swiper .swiper-button-next:after {
    display: none;
    /* Hide default swiper icons */
}

.mobile-3d-swiper .swiper-button-prev i,
.mobile-3d-swiper .swiper-button-next i {
    font-size: 24px;
    line-height: 1;
}

.mobile-3d-swiper .swiper-button-prev:hover,
.mobile-3d-swiper .swiper-button-next:hover {
    background-color: var(--color-theme-primary);
    border-color: var(--color-theme-primary);
    color: var(--color-theme-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(228, 253, 58, 0.3);
    /* Glow effect */
}

.mobile-3d-swiper .swiper-button-prev {
    left: 20px;
}

.mobile-3d-swiper .swiper-button-next {
    right: 20px;
}

/* Mobile Pagination Styling */
.mobile-3d-swiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0 !important;
}

.mobile-3d-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--color-text-body);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mobile-3d-swiper .swiper-pagination-bullet-active {
    background: var(--color-theme-primary);
    opacity: 1;
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(228, 253, 58, 0.4);
}

@media (max-width: 991px) {}

/* =========================================
   Live Growth Impact Panel
========================================= */
.growth-impact-sec {
    position: relative;
    overflow: hidden;
}

.growth-panel {
    background: var(--color-theme-bg);
    border: 1px solid var(--color-border-1);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.growth-controls {
    padding: 50px;
    border-right: 1px solid var(--color-border-1);
}

.growth-results {
    padding: 50px;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.control-item {
    margin-bottom: 35px;
}

.control-item:last-child {
    margin-bottom: 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.label-row label {
    color: var(--color-heading-primary);
    font-weight: 500;
    font-size: 16px;
}

.label-row .value {
    color: var(--color-theme-primary);
    font-weight: 700;
    font-family: var(--ff-heading);
    font-size: 18px;
}

.growth-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-border-1);
    border-radius: 5px;
    outline: none;
}

.growth-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-theme-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(211, 237, 49, 0.4);
    border: 2px solid var(--color-theme-bg);
    transition: transform 0.2s ease;
}

.growth-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.result-card {
    padding: 25px;
    background: var(--color-theme-dark);
    border: 1px solid var(--color-border-1);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.result-card.highlight {
    grid-column: span 2;
    background: rgba(211, 237, 49, 0.05);
    border-color: rgba(211, 237, 49, 0.2);
    position: relative;
}

.result-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-body-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    margin: 0;
    font-weight: 800;
    font-family: var(--ff-heading);
    color: var(--color-heading-primary);
}

#revenue-result {
    color: var(--color-theme-primary);
}

.growth-indicator {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--color-theme-primary);
    opacity: 0.8;
}

.growth-indicator svg {
    width: 24px;
    height: 24px;
}

.panel-graphic {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    height: 250px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

@keyframes flashUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        border-color: var(--color-theme-primary);
    }

    100% {
        transform: scale(1);
    }
}

.updating {
    animation: flashUpdate 0.4s ease-out;
}

@media (max-width: 991px) {
    .growth-controls {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid var(--color-border-1);
    }

    .growth-results {
        padding: 40px 30px;
    }

    .results-grid {
        gap: 15px;
    }

    .result-card {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card.highlight {
        grid-column: span 1;
    }
}