/* ============================================
   Mobile Responsive
=============================================== */
@media (min-width: 1600px) {
    .container {
        max-width: 1660px !important;
    }

    .header-wrapper {
        margin: 35px 270px 0px 270px;
    }

    /* Left side icons */
    .icon-1 {
        left: 24%;
        top: 26%;
    }

    .icon-2 {
        left: 16%;
        top: 40%;
    }

    .icon-3 {
        left: 23%;
        top: 54%;
    }

    .icon-4 {
        left: 18%;
        top: 73%;
    }

    /* Right side icons */
    .icon-5 {
        right: 24%;
        top: 26%;
    }

    .icon-6 {
        right: 16%;
        top: 40%;
    }

    .icon-7 {
        right: 23%;
        top: 54%;
    }

    .icon-8 {
        right: 18%;
        top: 73%;
    }

    .services .container {
        padding: 0px 140px;
    }

    .about {
        padding: 75px 165px;
    }

    .about-desc {
        max-width: 725px;
    }

    .cta-content {
        max-width: 846px;
    }

    .service-tech {
        padding: 75px 200px;
    }

    .left-content h2 {
        max-width: 785px;
    }

    .about-page-banner,
    .services-page-banner,
    .work-page-banner,
    .book-call-page-banner,
    .life-at-jdg-page-banner,
    .blog-page-banner,
    .contact-page-banner,
    .careers-page-banner,
    .pricing-page-banner {
        padding: 35px 270px 30px 270px;
    }

    .main-service-child,
    .blog-main {
        padding: 81px 270px 100px 270px;
    }

    .about-section {
        padding: 166px 270px 75px 270px;
    }

    .how-we-work-content {
        max-width: 985px;
    }

    .work {
        padding-top: 200px;
    }

    .content-container {
        padding: 120px 38px 120px 105px;
    }

    .history-section {
        padding: 0 266px;
    }

    .main-service {
        padding: 166px 264px;
    }

    .careers-desc {
        width: 878px;
    }

    .hiring-content {
        padding: 100px 227px;
    }

    .careers-work {
        padding: 150px 227px 75px 227px;
    }

    .career-details,
    .cst-pricing-faq {
        padding: 150px 270px;
    }

    .work-details {
        padding: 80px 455px 150px 455px;
    }

    .cst-pricing {
        padding: 90px 269px;
    }

    .pricing-section {
        padding: 120px 270px 0px 270px;
    }
}

@media (max-width: 1700px) {
    .contact-wrapper {
        padding: 90px 60px;
    }

    .book-a-call .contact-form {
        padding: 25px;
    }
}

@media only screen and (max-width: 1599px) {
    .icon-3 {
        left: 11%;
    }

    .icon-7 {
        right: 11%;
    }
}

@media only screen and (max-width: 1399px) {
    .footer-email a {
        font-size: 2rem;
    }

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

    .career-slider .image-item {
        width: 450px;
        height: 240px;
    }

    .book-a-call .contact-wrapper .row {
        flex-direction: column;
    }

    .book-a-call .contact-wrapper .row div {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .team-gallery-slide-item {
        width: 750px;
        height: 350px;
    }

    .team-gallery-slide-item.tgs-left {
        transform: translateX(-550px) scale(0.8);
    }

    .team-gallery-slide-item.tgs-right {
        transform: translateX(550px) scale(0.8);
    }

    .career-slider .image-item {
        width: 400px;
        height: 220px;
    }
}

@media only screen and (max-width: 1199px) {
    .about-title {
        font-size: 2rem;
    }

    .left-fixed {
        position: static;
        margin-bottom: 50px;
    }

    .project-gallery-slide {
        width: 80%;
    }

    .project-gallery-slide img {
        height: 400px;
    }

    .project-gallery-slider {
        height: 400px;
    }

    .jdg-btn {
        padding: 24px 15px;
    }

    .nav-menu li a {
        font-size: 0.8rem;
    }
    .service-tech-content {
        padding-right: 0;
    }
}

/* Responsive Fix: Prevent horizontal scroll on small screens */
@media (max-width: 1300px) {
    .card-box .text-side h3,
    .card-box .text-side p {
        min-width: 20vw !important;
    }
}

@media (max-width: 991px) {
    .mj-sticky-title {
        position: static !important;
    }

    .header-wrapper {
        margin: 15px;
    }

    .book-meeting-btn {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--main-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu li a {
        font-size: 32px;
        font-weight: 600;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .service-card {
        height: 300px;
        margin-bottom: 20px;
    }

    .stack-slider {
        height: 420px;
    }

    .pos-0 {
        transform: translateY(-80px) scale(0.94) rotateX(6deg);
    }

    .pos-1 {
        transform: translateY(-40px) scale(0.97) rotateX(3deg);
    }

    .pos-3 {
        transform: translateY(40px) scale(0.97) rotateX(-3deg);
    }

    .pos-4 {
        transform: translateY(80px) scale(0.94) rotateX(-6deg);
    }

    .logo-item {
        flex: 0 0 calc((100% - 8 * 20px) / 4);
    }

    .service-tech-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .service-tech-title {
        font-size: 2rem;
        flex: 1;
        padding-right: 0;
    }

    .service-tech-tags {
        padding-right: 0;
    }

    .service-tech-content {
        margin-left: 0;
        padding-right: 0;
    }

    .service-tech-gallery {
        grid-template-columns: 1fr;
    }

    .service-tech-picture {
        max-width: 100%;
    }

    .left-fixed,
    .left-stop {
        position: relative !important;
        top: 0 !important;
        width: auto !important;
    }

    .left-content h1 {
        font-size: 32px;
    }

    .contact-form-card {
        padding: 40px;
        margin-top: 50px;
    }

    .content-container {
        padding: 50px 30px;
    }

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

    .year-info {
        padding: 20px;
    }

    .year-info h3 {
        font-size: 50px;
        margin-bottom: 25px;
    }

    .container,
    .container-md,
    .container-sm {
        max-width: 90% !important;
        padding: 0 25px !important;
    }

    .about-section .about-card {
        padding: 0;
    }

    .card-flex {
        flex-direction: column;
    }

    .text-side {
        width: 100%;
        opacity: 1;
        visibility: visible;
        left: 100%;
        max-width: 100%;
        padding-left: 20px;
        position: static;
    }

    .image-side {
        flex-shrink: 0;
    }

    .card-box {
        display: block;
    }

    .card-box:hover .text-side {
        padding-left: 20px;
        /* left: 0; */
        width: 100%;
    }
    .text-side {
        width: 100% !important;
    }

    section {
        padding: 50px 0px;
    }

    .container-fluid {
        padding: 0 20px;
    }

    .shimmer-text {
        font-size: 8.625rem;
    }

    .circle-btn {
        bottom: -121px;
    }

    .footer-email {
        text-align: left;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-wrapper {
        padding: 50px;
    }

    .contact-form {
        padding: 20px;
    }

    .good-hands .cta-content p br {
        display: none;
    }

    .main-heading {
        margin-bottom: 0;
    }

    .cta-wrapper {
        padding: 80px 20px;
    }

    .lets-work-together .cta-wrapper {
        padding: 80px 60px;
    }

    .lets-work-together-btn-container {
        margin-top: 40px;
    }

    .lets-work-together-btn-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .lets-work-together-btn-wrapper .jdg-btn {
        width: 100%;
        justify-content: center;
    }

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

    .w-card-cn {
        height: auto;
        margin-bottom: 30px;
    }

    .career-slider .image-item {
        width: 350px;
        height: 200px;
    }

    .cst-pricing-wrapper {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .cst-pricing-card:nth-child(1),
    .cst-pricing-card:nth-child(2) {
        width: 100%;
    }

    .cst-pricing-price-wrapper {
        justify-content: start;
    }

    .cst-pricing-faq-row {
        padding: 15px;
    }

    .cst-pricing-faq-row {
        display: grid;
    }

    .cst-pricing-faq-question {
        padding: 18px;
    }

    .cst-pricing-faq-question span {
        width: 245px;
        line-height: normal;
    }

    .cst-pricing-faq-title {
        font-size: 32px;
        line-height: normal;
    }

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

    .lag-scroll-section .container {
        display: block;
    }

    .pin-spacer {
        width: 100% !important;
        height: auto !important;
        inset: 0 !important;
        padding: 0 !important;
    }

    .lag-sticky-text-container {
        position: static !important;
        top: 100px;
        align-self: flex-start;
        max-width: 50%;
        flex-shrink: 0;
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        max-width: 100% !important;
        margin-bottom: 50px !important;
        transform: unset !important;
    }

    .lets-work-together {
        margin-top: 0;
        margin-bottom: 50px;
    }

    .lag-intro-section {
        padding: 50px 0;
    }

    .orbital-slider {
        height: 208vh;
    }

    .rp-rope-svg {
        height: 100vh;
    }
}

@media (max-width: 769px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-title,
    .main-heading,
    .left-content h2,
    .section-title {
        font-size: 2.3rem;
    }

    .testimonial-card p {
        font-size: 1.5rem;
        line-height: normal;
    }

    .contact-info p,
    .contact-phone {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 20px;
    }

    .circle-btn {
        bottom: -100px;
        width: 150px;
        height: 150px;
    }

    .service-card {
        height: 280px;
        padding: 30px 20px;
    }

    .contact-form-card {
        padding: 30px 25px;
    }

    .content-container {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .gradient-lines {
        width: 100%;
        transform: none;
    }

    .blog-grid {
        display: none;
    }

    .mobile-slider-wrapper {
        display: block;
    }

    .blog-card-content {
        padding: 30px;
    }

    .blog-title {
        font-size: 1.4rem;
    }

    .orbital-slider {
        min-height: 500px;
    }

    .center-heading {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .team-gallery-slider-container {
        height: 350px;
    }

    .team-gallery-slide-item {
        width: 95%;
        max-width: 600px;
        height: 300px;
    }

    .team-gallery-slide-item.tgs-left,
    .team-gallery-slide-item.tgs-right {
        opacity: 0;
        transform: scale(0.7);
    }

    .team-gallery-slider-dots {
        bottom: 15px;
    }

    .team-gallery-slider-container {
        height: 350px;
        margin-bottom: 50px;
    }

    .team-gallery-slide-item {
        width: 95%;
        max-width: 600px;
        height: 300px;
    }

    .team-gallery-slide-item.tgs-left,
    .team-gallery-slide-item.tgs-right {
        opacity: 0;
        transform: scale(0.7);
    }

    .team-gallery-slider-dots {
        bottom: -45px;
        padding: 8px 15px;
    }

    .team-gallery-dot-indicator {
        width: 10px;
        height: 10px;
    }

    .team-gallery-dot-indicator.tgs-dot-active {
        width: 28px;
    }

    .card-box {
        flex-direction: column;
        padding: 25px;
    }

    .image-side {
        flex-shrink: 0;
        width: 100%;
        margin-bottom: 10px;
    }

    .text-side {
        padding-left: 0;
    }

    .timeline-section {
        gap: 5px;
    }

    .year-info {
        transform: none;
    }

    .container,
    .container-md,
    .container-sm {
        max-width: 100% !important;
    }

    .footer-box {
        padding: 30px 20px;
    }

    section.main-service {
        padding: 50px 0;
    }

    .pb-160 {
        padding-bottom: 50px;
    }

    .service-tech-heading a {
        padding: 0;
    }

    .pt-150 {
        padding-top: 50px;
    }

    .our-work h1 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-logo {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .job-left {
        flex-direction: column;
        gap: 10px;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .apply-now {
        align-self: flex-end;
    }

    .career-slider .image-item {
        width: 300px;
        height: 180px;
        margin: 3px;
    }

    .career-slider .slider-row {
        animation-duration: 25s;
    }

    .career-details .career-wrapper {
        display: grid;
        grid-template-columns: auto;
    }

    .career-sidebar {
        width: 100%;
    }

    .career-meta {
        display: grid;
        gap: 10px;
    }

    .project-details {
        padding: 0 1.5rem;
    }

    .project-details-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-details-header {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .project-details-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-details-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        padding-right: 0;
    }

    .project-details-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .project-details-stat-number {
        font-size: 3rem;
    }

    .project-details-gallery {
        width: 100%;
        margin-left: 0;
    }

    .project-gallery-slider {
        height: 250px;
    }

    .project-gallery-slide {
        width: 100%;
    }

    .project-gallery-slide img {
        height: 250px;
        border-radius: 12px;
    }

    .project-gallery-slide.pgs-left,
    .project-gallery-slide.pgs-right {
        opacity: 0;
        transform: scale(0.7);
    }

    .project-details-testimonial {
        padding: 2rem;
    }

    .project-details-testimonial-text {
        font-size: 1rem;
    }

    .project-details-navigation {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .project-details-nav-link {
        font-size: 0.85rem;
    }

    .cst-pricing-title {
        font-size: 2rem;
    }

    .cst-pricing-price {
        font-size: 2.2rem;
    }

    .cst-pricing-cards {
        grid-template-columns: 1fr;
    }

    .cst-pricing-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .pricing-accordion-left {
        display: grid;
    }

    .pricing-accordion-header {
        padding: 30px 25px;
    }

    .pricing-accordion-item.active .pricing-accordion-body {
        max-height: 100%;
    }

    .pricing-cards-row {
        grid-template-columns: repeat(1, 1fr);
    }

    .pricing-accordion-body {
        overflow: hidden;
      }
    
      .pricing-cards-row {
        display: flex;
        flex-direction: row;        /* keep cards in a row */
        overflow-x: auto;           /* enable horizontal scroll */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 16px;       /* space for scrollbar */
      }
    
      .pricing-cards-row .pricing-card {
        flex: 0 0 80vw;             /* each card ~80% of viewport width */
        max-width: 320px;
        scroll-snap-align: start;
      }
}

@media (max-width: 576px) {
    section {
        padding: 30px 0px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-menu li a {
        font-size: 28px;
    }

    .icon {
        display: none;
    }

    .stack-slider {
        height: 300px;
    }

    .pos-0 {
        transform: translateY(-55px) scale(0.96) rotateX(4deg);
    }

    .pos-1 {
        transform: translateY(-28px) scale(0.98) rotateX(2deg);
    }

    .pos-3 {
        transform: translateY(28px) scale(0.98) rotateX(-2deg);
    }

    .pos-4 {
        transform: translateY(55px) scale(0.96) rotateX(-4deg);
    }

    .logo-item {
        flex: 0 0 calc((100% - 8 * 20px) / 2);
    }

    .shimmer-text {
        font-size: 6.625rem;
    }

    .stats-row > div {
        margin-bottom: 30px;
    }

    .testimonial .left-content {
        padding-bottom: 90px;
    }

    .contact-wrapper {
        padding: 20px;
    }

    .contact-subtitle,
    .contact-title {
        font-size: 2.2rem;
        line-height: normal;
    }

    .main-footer .social-media-icons {
        justify-content: start;
        margin-top: 10px;
    }

    .footer-email a {
        font-size: 1.2rem;
    }

    .footer-email {
        justify-content: start;
    }

    .work-content-title {
        min-width: auto;
    }

    .work-process-item {
        flex-direction: column;
        align-items: baseline;
    }

    .scroll-text {
        font-size: 2rem;
    }

    .text-side h3 {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 30px;
    }

    .c-name {
        font-size: 27px;
        line-height: 35px;
        margin-top: -42px;
        margin-left: 14px;
    }

    .about-section .stat-value {
        font-size: 3.25rem;
    }

    .about-section .stat-label + .stat-value::before {
        width: 100%;
    }

    .image-side {
        margin-bottom: 15px;
    }

    section.spacer-line {
        padding: 0;
    }

    .timeline-section {
        display: block;
        padding: 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-image {
        display: none;
    }

    .timeline-box {
        width: 100%;
        max-width: 100%;
    }

    .cta-btn-wrap .jdg-btn {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .about-page-banner {
        min-height: 550px;
    }

    .services-page-banner {
        min-height: 550px;
    }

    .work-page-banner {
        min-height: 550px;
    }

    .book-call-page-banner {
        min-height: 550px;
    }

    .main-footer .container {
        padding: 0 !important;
    }

    .contact-map iframe {
        height: 375px;
    }

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

    .career-slider .image-item {
        width: 250px;
        height: 150px;
        margin: 2px;
    }

    .career-slider .slider-row {
        animation-duration: 20s;
    }

    .orbital-slider {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100vh;
        margin: 300px 0 0 0;
    }

    .orbit-image {
        width: clamp(243px, 32vw, 421px);
        aspect-ratio: 658 / 265;
    }

    .growth-card {
        width: 400px;
    }
}

@media (max-width: 400px) {
    .career-slider .image-item {
        width: 200px;
        height: 120px;
    }
}

@media screen and (max-height: 800px) {
    .hero {
        padding-top: 250px;
    }
}

/* Blog Details CSS Responsive */

/* RESPONSIVE */

@media (max-width: 1200px) {
    .blog_details_layout {
        grid-template-columns: 250px 1fr 320px;

        gap: 30px;
    }
}

@media (max-width: 992px) {
    .blog_details_layout {
        grid-template-columns: 1fr 350px;

        gap: 30px;
    }

    .blog_details_toc_sidebar {
        display: none;
    }

    .blog_details_container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .blog_details_layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .blog_details_right_sidebar {
        position: static;
    }

    .blog_details_post_title {
        font-size: 24px;
    }

    .blog_details_main_content {
        padding: 20px;
    }

    .blog_details_sidebar_widget {
        padding: 20px;
    }

    .blog_details_container {
        padding: 20px 10px;
    }

    .blog_details_post_content h2 {
        font-size: 22px;
    }

    .blog_details_post_content h3 {
        font-size: 18px;
    }

    .blog_details_post_footer {
        flex-direction: column;

        align-items: flex-start;
    }

    .blog_details_search_form {
        flex-direction: column;
    }

    .blog_details_search_btn {
        width: 100%;
    }

    .blog_details_recent_post {
        flex-direction: column;
    }

    .blog_details_recent_post_image {
        width: 100%;

        height: 200px;
    }

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

    .blog_details_post_meta {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog_details_post_title {
        font-size: 20px;
    }

    .blog_details_main_content {
        padding: 15px;
    }

    .blog_details_sidebar_widget {
        padding: 15px;
    }

    .blog_details_post_content h2 {
        font-size: 20px;
    }

    .blog_details_post_content h3 {
        font-size: 16px;
    }

    .blog_details_post_content p {
        font-size: 15px;
    }

    .blog_details_category_images {
        grid-template-columns: 1fr;
    }

    .blog_details_recent_post_image {
        height: 180px;
    }

    .blog_details_sidebar_widget h3 {
        font-size: 18px;
    }

    .blog_details_toc_sidebar h3 {
        font-size: 16px;
    }

    .orbital-slider {
        min-height: 400px;
    }

    .center-heading {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        letter-spacing: 0.05em;
    }
}

@media (max-width: 992px) {
    .blog_details_mobile_toc_toggle {
        display: flex;
    }

    .blog_details_toc_sidebar.mobile-active {
        display: block;

        position: fixed;

        top: 50%;

        left: 50%;

        transform: translate(-50%, -50%);

        z-index: 1000;

        max-width: 90%;

        width: 350px;

        max-height: 80vh;
    }

    .blog_details_mobile_toc_close {
        display: block;

        position: absolute;

        top: 10px;

        right: 10px;

        background: none;

        border: none;

        font-size: 24px;

        cursor: pointer;

        color: #718096;

        width: 30px;

        height: 30px;

        padding: 0;

        line-height: 1;
    }

    .blog_details_mobile_toc_close:hover {
        color: #2d3748;
    }
}

@media (min-width: 993px) {
    .blog_details_mobile_toc_close {
        display: none;
    }
}

/* Touch-friendly improvements */

@media (hover: none) and (pointer: coarse) {
    .blog_details_toc_list a,
    .blog_details_category_item a,
    .blog_details_recent_post_content h4 a {
        min-height: 44px;

        display: flex;

        align-items: center;
    }

    .blog_details_search_btn,
    .blog_details_submit_btn {
        min-height: 48px;
    }

    .blog_details_form_group input,
    .blog_details_form_group textarea,
    .blog_details_search_input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Improved form layout on mobile */

@media (max-width: 768px) {
    .blog_details_comment_form {
        gap: 20px;
    }

    .blog_details_form_group input,
    .blog_details_form_group textarea {
        padding: 14px;
    }

    .blog_details_submit_btn {
        width: 100%;

        padding: 14px 30px;
    }
}

