@media (max-width: 1370px) {

    .we-work-main img {
        max-width: 900px;
        margin: 0 auto;
    }

    /* 
    .work-flow-section {
        width: 300px;
        height: 300px;
    } */

    /* .work-flow-section .work-inner-content {
        max-width: 220px;
    } */

    .work-flow-section .work-inner-content p {
        font-size: 18px;
        line-height: 22px;
    }

    .we-work-main {
        gap: 20px;
    }

    .work-main-sec {
        width: 310px;
        height: 310px;
    }

    .work-main-sec .bg-work-img {
        width: inherit;
        max-width: 310px;
    }

    /* .work-flow-section {
        width: 270px;
        height: 270px;
    } */
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "countmee"
            "ielts"
            "summaryai";
    }

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


@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .we-work-main {
        flex-direction: column;
        padding-top: 0;
    }

    .work-main-sec {
        width: 340px;
        height: 340px;
    }

    .work-main-sec .bg-work-img {
        width: inherit;
        max-width: 100%;
    }

    /* .work-flow-section {
        width: 300px;
        height: 300px;
    }

    .work-flow-section .work-inner-content {
        max-width: 230px;
    } */

    .work-flow-section .work-inner-content p {
        font-size: 18px;
        line-height: 22px;
    }

}

@media (max-width: 992px) {
    .main-nav ul {
        display: none;
        /* On smaller screens, this would be handled by a hamburger menu */
    }

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

    .hero-title, .portfolio-intro-section h1 {
        font-size: 45px;
        line-height: 55px;
    }

    .hero-content {
        gap: 20px;
    }

    .work-img {
        max-width: 100%;
    }

    .stat-number {
        font-size: 42px;
    }

    .partners-section, .how-we-work, .portfolio-section, .cta-section, .services-grid-section, .how-we-work-section, .build-together {
        padding: 50px 0;
    }

    .partners-text h2, .how-we-work h2, .portfolio-section h2, .cta-content h2, .how-we-work-header h2, .cta-banner h2 {
        font-size: 32px;
    }

    .about-title {
        font-size: 45px;
        line-height: 55px;
        max-width: 480px;
    }


    .partners-text h2, .partners-text p {
        text-align: center;
    }

    .partners-content {
        flex-direction: column;
        text-align: center;
    }

    .partners-text .section-title,
    .partners-text .section-subtitle {
        text-align: center;
    }

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

    .partners-logos-wrapper.mobile {
        display: block;
    }

    .partners-logos-wrapper.desk {
        display: none;
    }

    .portfolio-card-image {
        max-width: 300px;
    }

    .portfolio-card {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

    .portfolio-stats {
        gap: 10px;
    }

    .portfolio-stat-item p {
        font-size: 14px;
    }

    .portfolio-card-text p {
        font-size: 15px;
        line-height: 22px;
        text-align: center;
    }

    .service-card {
        padding: 22px;
    }

    .service-card-content h3 {
        font-size: 22px;
    }

    .main-work-process {
        gap: 60px 70px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .how-we-work-header {
        gap: 12px;
    }

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

    .leadership-grid {
        grid-template-columns: 1fr !important;
        max-width: 424px !important;
        margin: 0 auto !important;
    }

    .we-work-main img {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 21px;
        line-height: 35px;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    #dynamic-word-wrapper .underline {
        bottom: -4px;
    }

    .hero-actions {
        margin-top: 15px;
    }

    .deco-svg-1,
    .deco-svg-2 {
        display: none;
    }

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

    .portfolio-card {
        flex-direction: column !important;
    }

    .portfolio-stats {
        justify-content: center;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-nav-toggle {
        display: flex;
        padding: 0;
        background-color: transparent !important;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        width: 100% !important;
        padding: 20px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 20px;
        display: none !important;
    }

    .main-navigation.active {
        transform: translateX(0);
        display: block !important;
    }

    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }

    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: -8px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: start;
    }

    .btn-quote {
        margin-top: 15px;
    }

    .portfolio-card {
        padding: 18px 0 !important;
    }

    .portfolio-card-text {
        padding: 0 18px !important;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .portfolio-stat-item p {
        font-size: 14px !important;
    }

    .portfolio-stats {
        gap: 15px !important;
    }

    .portfolio-card-section {
        max-width: 375px;
        margin: 0 auto;
    }

    #about img {
        width: 100% !important;
    }

    .cta-content h2 {
        font-size: 28px;
        line-height: 35px;
    }

    .partners-logos-wrapper::before, .partners-logos-wrapper::after {
        display: none;
    }

    .partners-text h2, .partners-text p {
        text-align: center;
    }

    .partners-section, .how-we-work, .portfolio-section {
        padding: 50px 0;
    }

    .our-value-grid {
        gap: 45px;
    }

    .value-item {
        width: 95%;
    }

    .value-bg {
        top: 50%;
        transform: translateY(-50%);
    }

    .values-section, .services-grid-section, .how-we-work-section, .build-together {
        padding: 50px 0;
    }

    .value-box {
        padding: 15px 12px;
        height: 130px;
    }

    .value-box h3 {
        font-size: 20px;
    }

    .value-box p {
        font-size: 15px;
        line-height: 23px;
    }

    .services-grid-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .main-work-process {
        flex-direction: column;
        gap: 35px;
    }

    .how-we-work-header h2 {
        font-size: 28px;
    }

    .portfolio-card-image {
        width: 100%;
        height: 100%;
    }

    .footer-social {
        margin-top: 0;
    }

    .footer-content, .address-sec {
        flex-direction: column;
        /* align-items: center;
        text-align: center; */
    }

    .footer-contact, .footer-column.footer-address, .footer-column.links {
        width: 100%;
    }

    .footer-column.links {
        margin-left: 0;
    }

    .footer-divider {
        display: none;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        padding: 14px 0 20px;
    }

    .main-footer-section {
        padding: 30px 0 0;
    }

    .contact-title {
        font-size: 28px;
        line-height: 38px;
        max-width: 350px;
    }

    .contact-section {
        padding: 50px 0 50px;
    }

    .about-title {
        font-size: 28px;
        line-height: 38px;
    }

    .about-subtitle br {
        display: none;
    }

    .section-container.hero-content {
        gap: 18px;
    }

    .video-section {
        padding: 50px 0;
    }

    .story-section {
        padding: 50px 0 !important;

    }

    .leadership-section {
        padding: 50px 0 !important;

    }

    .leadership-header {
        margin-bottom: 25px !important;
    }

    .leadership-header h2 {
        margin-bottom: 8px !important;
        font-size: 28px !important;
    }

    .cta-section {
        padding: 50px 0 !important;

    }

    .cta-banner h2 {
        font-size: 25px !important;
        line-height: 33px !important;
    }

    section.build-together.about {
        padding: 50px 0 !important;
    }

    .story-title {
        font-size: 28px;
    }

    .portfolio-intro-section h1 {
        font-size: 28px !important;
        line-height: 38px !important;
    }

    .intro-container {
        gap: 18px !important;
    }

    .project-section {
        padding: 50px 0 50px !important;
    }

    .partners-logos-wrapper {
        gap: 20px;
    }

    .partners-logos-row {
        width: 100%;
        overflow: hidden;
        flex-wrap: nowrap;
    }

    .partner-logo-box {
        width: auto;
        /* smaller boxes on mobile */
        height: 75px;
        padding: 10px;
        margin: 6px;
    }

    .partner-logo-box img {
        max-height: 40px;
    }

    .left-to-right,
    .right-to-left {
        animation: none;
        transform: none;
    }

    .portfolio-grid-section {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-service-section {
        flex-direction: column;
    }

    .casestudy-hero-section .banner-img {
        background-size: cover;
        padding-left: 25px;
    }

    .inner-project-summary .summary-content {
        flex-direction: column;
    }

    .feature-list-box .feature-box {
        width: 100%;
        max-width: 100%;
    }

    .casestudy-tech-section .tech-bg {
        gap: 45px;
        flex-wrap: wrap;
    }

    .problem-content ul {
        padding: 0 10px;
    }
}