/* Project-wide layout fixes and shared icon helpers. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Keep closed navigation drawers outside the viewport without extending it. */
.tgmobile__menu,
.offCanvas__info {
    max-width: 100vw;
}

/* The production contact details are longer than the demo text. Keep all three
   items readable over the dark side of the hero at laptop/desktop widths. */
@media (min-width: 768px) and (max-width: 1500px) {
    .tg-header__top-menu {
        padding-inline: 20px;
    }

    .tg-header__top-menu .list-wrap {
        column-gap: 26px;
    }

    .tg-header__top-menu .list-wrap li {
        font-size: 13px;
    }

    .tg-header__top-menu .list-wrap li::before {
        right: -14px;
    }
}

.site-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.offCanvas__info-list-item .site-icon {
    width: 24px;
    height: 24px;
}

.footer__newsletter-form .site-icon {
    width: 16px;
    height: 16px;
}

/* Technology stack: six logo-only cards per row on large screens. */
.technology-stack__area {
    background: var(--tg-color-white-default);
}

.technology-stack__item {
    min-height: 128px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tg-color-gray-1);
    border: 1px solid var(--tg-border-2);
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.technology-stack__item:hover {
    transform: translateY(-5px);
    border-color: var(--tg-theme-primary);
    box-shadow: 0 14px 30px rgba(0, 47, 255, 0.1);
}

.technology-stack__item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 58px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .technology-stack__item {
        min-height: 105px;
        padding: 20px;
        border-radius: 10px;
    }

    .technology-stack__item img {
        height: 48px;
    }
}

/* About page: delivery process and final call-to-action. */
.about-process__item {
    height: 100%;
    padding: 34px 28px;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    background: #fff;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.about-process__item:hover {
    transform: translateY(-6px);
    border-color: var(--tg-theme-primary);
    box-shadow: 0 18px 45px rgba(15, 31, 92, .1);
}

.about-process__item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 10px;
    color: #fff;
    background: var(--tg-theme-primary);
    font-weight: 700;
}

.about-process__item h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.about-process__item p { margin-bottom: 0; }
.about__rating .rating span { color: #ffb800; letter-spacing: 2px; }
/* Why Choose Us page */
.why-proof__item {
    position: relative;
    height: 100%;
    min-height: 285px;
    padding: 34px 28px;
    overflow: hidden;
    border: 1px solid #e1e6f0;
    border-radius: 14px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.why-proof__item:hover {
    transform: translateY(-6px);
    border-color: var(--tg-theme-primary);
    box-shadow: 0 18px 45px rgba(15, 31, 92, .1);
}

.why-proof__number {
    display: block;
    margin-bottom: 34px;
    color: var(--tg-theme-primary);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    opacity: .24;
}

.why-proof__item h2 { margin-bottom: 12px; font-size: 23px; }
.why-proof__item p { margin-bottom: 0; }
.why-tech__item img { width: auto; height: 46px; object-fit: contain; }

.why-value__item {
    height: 100%;
    padding: 38px 32px;
    border-radius: 14px;
    background: var(--tg-color-gray-1);
}

.why-value__item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    border-radius: 12px;
    color: #fff;
    background: var(--tg-theme-primary);
    font-size: 36px;
}

.why-value__item h3 { margin-bottom: 12px; font-size: 24px; }
.why-value__item p { margin-bottom: 0; }

/* Homepage & Contact Page AJAX contact form states and validation. */
.contact-form__website-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact__form .form-grp,
.contact__form-two .form-grp { 
    position: relative; 
}

.contact__form input.is-invalid,
.contact__form-two input.is-invalid,
.contact__form select.is-invalid,
.contact__form-two select.is-invalid,
.contact__form textarea.is-invalid,
.contact__form-two textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .12) !important;
}

.contact__form .invalid-feedback,
.contact__form-two .invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.contact-submit-btn__loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.contact__form.is-submitting .contact-submit-btn__label,
.contact__form-two.is-submitting .contact-submit-btn__label { 
    display: none; 
}
.contact__form.is-submitting .contact-submit-btn__loading,
.contact__form-two.is-submitting .contact-submit-btn__loading { 
    display: inline-flex; 
}

.contact-submit-btn:disabled {
    cursor: wait;
    opacity: .78;
    pointer-events: none;
}

.contact-submit-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-submit-spin .7s linear infinite;
}

.ajax-response {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.ajax-response.success {
    color: #146c43;
    border-color: #a3cfbb;
    background: #d1e7dd;
}

.ajax-response.error {
    color: #842029;
    border-color: #f1aeb5;
    background: #f8d7da;
}

@keyframes contact-submit-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    .contact-submit-btn {
        min-height: 56px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit-spinner { animation-duration: 1.4s; }
}

/* ==============================================================================
   1. Services Listing Page (Boxed Layout, Equal Height, Reference Design)
   ============================================================================== */
.services-section-wrap {
    background-color: #f8fafc;
}

.service-card-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(18, 38, 63, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.service-card-box:hover {
    transform: translateY(-7px);
    border-color: #0052ea;
    box-shadow: 0 18px 40px rgba(0, 82, 234, 0.12);
}

.service-box-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.service-box-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card-box:hover .service-box-thumb-wrap img {
    transform: scale(1.06);
}

/* Hover Technology Overlay - Strictly Contained Within Image Thumbnail */
.service-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 51, 0.90);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 12px;
    z-index: 5;
}

.service-card-box:hover .service-tech-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tech-overlay-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.tech-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 12px;
    max-width: 95%;
}

.tech-pill-item {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tech-click-hint {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0052ea;
    padding: 5px 14px;
    border-radius: 30px;
    text-decoration: none;
}

/* Card Content Area */
.service-box-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 18px;
}

.service-box-meta {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0052ea;
    margin-bottom: 8px;
    display: block;
}

.service-box-heading {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #0a1633;
    margin-bottom: 10px;
    min-height: 56px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-box-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card-box:hover .service-box-heading a {
    color: #0052ea;
}

.service-box-summary {
    font-size: 14.5px;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 22px;
    height: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-box-action {
    margin-top: auto;
}

.service-read-more-btn {
    background: #0052ea;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 82, 234, 0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    width: fit-content;
}

.service-read-more-btn:hover {
    background: #003ebd;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 82, 234, 0.4);
    color: #ffffff;
}

.service-read-more-btn svg {
    transition: transform 0.25s ease;
}

.service-card-box:hover .service-read-more-btn svg {
    transform: translate(2px, -2px);
}


/* ==============================================================================
   2. Services Detail Page: Sticky & Standalone Scrolling Quick Services Sidebar
   ============================================================================== */
@media (min-width: 992px) {
    .services__sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 110px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .services__sidebar-sticky::-webkit-scrollbar {
        width: 5px;
    }

    .services__sidebar-sticky::-webkit-scrollbar-track {
        background: transparent;
    }

    .services__sidebar-sticky::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .services__sidebar-sticky::-webkit-scrollbar-thumb:hover {
        background: var(--tg-theme-primary);
    }
}

/* Active Service Highlighting */
.sidebar__cat-list .list-wrap li.active a,
.sidebar__cat-list .list-wrap li a.active {
    background: var(--tg-theme-primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-left: 4px solid #ffffff !important;
    box-shadow: 0 8px 20px rgba(25, 152, 189, 0.35) !important;
}

.sidebar__cat-list .list-wrap li.active a .cat-arrow svg,
.sidebar__cat-list .list-wrap li a.active .cat-arrow svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    transform: rotate(45deg);
}


/* ==============================================================================
   3. Services Detail Page: Mobile Horizontal Pills Shape (One Line Scroll)
   ============================================================================== */
@media (max-width: 991.98px) {
    .services__sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 75px;
        z-index: 95;
        background: rgba(14, 18, 28, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 0 12px;
        margin-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .services__sidebar .sidebar__widget.quick-services-widget {
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .services__sidebar .quick-services-widget .widget__title {
        display: none !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding: 4px 15px 6px !important;
        margin: 0 !important;
        scrollbar-width: none !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap::-webkit-scrollbar {
        display: none !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap li {
        flex: 0 0 auto !important;
        margin-bottom: 0 !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap li a {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        padding: 8px 18px !important;
        border-radius: 50px !important; /* Pills shape */
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #e2e8f0 !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.2s ease !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap li a .cat-arrow {
        display: none !important;
    }

    .services__sidebar .sidebar__cat-list .list-wrap li.active a,
    .services__sidebar .sidebar__cat-list .list-wrap li a.active {
        background: var(--tg-theme-primary) !important;
        color: #ffffff !important;
        border-color: var(--tg-theme-primary) !important;
        border-left: 1px solid var(--tg-theme-primary) !important;
        box-shadow: 0 4px 14px rgba(25, 152, 189, 0.5) !important;
    }
}


