/* Responsive overrides: tablet and mobile breakpoints */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
    :root {
        font-size: 15.5px;
    }

    .container {
        width: 94%;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about_home_title {
        font-size: 40px;
    }

    .about_home_content,
    .about_home_image {
        padding: 20px 0;
    }

    .home_services_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .home_service_card {
        min-height: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 60px 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .inner_banner {
        padding: 120px 16px 80px;
    }

    .about_section_home {
        padding: 30px 0 29px;
        text-align: center;
    }

    .about_home_content h1,
    .about_home_title {
        color: #000;
    }

    .projects-home-title {
        font-size: 28px;
    }

    .projects-section_home {
        padding: 40px 0;
    }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    a.btn-header {
        text-align: center;
    }

    .container {
        width: 96%;
    }

    /* Header */
    .main-header {
        padding: 12px 0;
    }

    .header_Logo img {
        width: 100px;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 80px 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        gap: 10px;
    }

    /* Grid stacks */
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .home_services_grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about_home_title {
        font-size: 28px !important;
    }

    .about_home_text {
        font-size: 15px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Contact form */
    .contact-form-box {
        padding: 24px;
    }

    .contact-wrapper {
        padding: 40px 0;
    }

    /* Back to top - adjust size */
    .back-to-top {
        right: 14px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }

    /* Inner banner/globe adjustments */
    .inner_globe-bg::after {
        display: none;
    }

    #globe_Svg {
        display: none;
    }

    /* Improve tap targets */
    .btn-primary,
    .btn-outline,
    .btn-submit,
    .btn_about_primary,
    .btn_about_primary {
        padding: 12px 18px;
    }

    .home_faq_img_small {
        left: -16px;
    }

    .home_faq_img_large img {
        width: 77%;
        height: auto;
    }

    .home_faq_img_small img {
        width: 101px;
        height: 103px;
    }

    .home_faq_img_small {
        bottom: -39px;
        left: 4px;
    }

    .home_faq_title {
        font-size: 23px;
    }

    .home_services_section {
        padding: 39px 20px;
    }

    .hero-stats {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .home_services_title {
        font-size: 28px;
    }

    .stat {
        width: 47%;
        text-align: center;
    }

    .home_services_grid {
        margin-top: 32px;
    }

    .scroll-indicator {
        bottom: 19px;
    }

    .home_service_heading {
        margin-top: 20px;
    }

    .home_service_number span {
        font-size: 38px;
    }

    .home_services_footer {
        margin-top: 20px;
    }

    .home_faq_section {
        padding: 48px 5px;
    }

    .home_faq_question {
        font-size: 15px;
        align-items: flex-start;
        text-align: left;
    }

    .home_faq_answer p {
        font-size: 14px;
        text-align: left;
    }

    .home_faq_icon {
        transition: .3s;
        height: 15px;
        display: block;
        position: relative;
        top: -13px;
        font-size: 22px;
        width: 8%;
        text-align: end;
    }

    .inner_banner_contnet h1 {
        font-size: 30px;
    }

    .services-grid-section {
        padding: 38px 10px;
    }

    .service-card {
        padding: 15px 18px;
    }

    .footer-main {
        padding-top: 34px;
    }

    .footer-main {
        font-size: 14px;
    }

    .footer-logo img {
        width: 130px;
    }

    .projects-home-heading {
        max-width: 100%;
        margin: 0 auto 32px;
    }

    .service-process-alt {
        padding: 43px 0;
    }

    .timeline-dot {
        margin-top: 0px;
    }

    .core-services-section {
        padding: 50px 0;
    }

    .core-card {
        padding: 26px 23px;
    }

    .why-choose-image {
        padding: 44px 0;
    }

    .why-image-grid {
        gap: 20px;
        margin-bottom: 0px;
    }

    .service-faq {
        padding: 40px 0;
    }

    .faq-item.active .faq-answer {
        padding-top: 0 !important;
    }

    .faq-question,
    .faq-item.active .faq-answer {
        padding: 20px 15px;
    }

    .faq-question {
        padding-bottom: 10px;
    }

    .faq-question {
        font-size: 14px;
        text-align: left;
    }

    .core-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .core-card h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .core-card p {
        font-size: 13.5px;
    }

    .timeline-card p {
        font-size: 15px;
    }

    .timeline-card h4 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .timeline-item {
        margin-bottom: 33px;
    }

    .service-icon {
        font-size: 38px;
        margin-bottom: 11px;
    }

    .about-mission-section {
        padding: 40px 20px;
    }

    .portfolio-filters {
        margin: 34px auto;
        gap: 8px;
    }

    .filter-btn {
        border: none;
        padding: 8px 19px;
        font-size: 12px;
    }


    .contact-info {
        padding: 0 12px;
    }

    .all_stets_links_footer ul {
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .container.all_stets_section_footer {
        display: block;
        align-items: left;
        padding-right: 0;
    }

    .all_stets_links_footer {
        margin-top: 15px;
    }

    .all_stets_links_footer ul li {
        list-style: none;
        margin-bottom: 7px;
    }
}

/* Extra small (<=420px) */
@media (max-width: 420px) {
    .hero h1 {
        font-size: 26px;
    }

    .header_Logo img {
        width: 100px;
    }

    .back-to-top {
        display: none;
    }
}

/* Minor utility tweaks for small screens */
@media (max-width: 360px) {

    .btn-primary,
    .btn-outline {
        padding: 10px 12px;
        font-size: 14px;
    }
}