/* ================================
   2XL screens (≤1400px)
================================ */
@media (max-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}


/* ================================
   Extra large devices (≤1200px)
================================ */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .heading_main h2 {
        font-size: 42px;
        line-height: 52px;
    }

    /* Product cards - 2 per row */
    .product_category_1 {
        width: calc(50% - 15px);
    }

    /* Download cards - 2 per row */
    .download_card_1 {
        width: calc(50% - 15px);
    }

    /* Product features - 2 per row */
    .product_feature_1 {
        width: calc(50% - 15px);
    }

    /* Product detail cards - 3 per row */
    .pd_card {
        width: calc(33.33% - 16px);
    }
}


/* ================================
   Large devices / Tablets landscape (≤992px)
================================ */
@media (max-width: 992px) {

    .container {
        max-width: 960px;
    }

    /* ---- Mobile Nav ---- */
    .f_d_flex {
        display: flex;
        gap: 10px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(25, 25, 25, 0.97);
        backdrop-filter: blur(20px);
        display: none;
        padding: 20px 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border-top: 1px solid var(--border-color);
        border-radius: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    nav ul a {
        display: block;
        padding: 12px 15px !important;
    }

    nav.active {
        display: block;
    }

    .menu_toggle {
        display: block;
    }

    /* ---- Heading ---- */
    .heading_main h2 {
        font-size: 36px;
        line-height: 44px;
    }

    /* ---- Index: Why Choose Us ---- */
    .index_why_choose_us_full .index_why_choose_us_left {
        width: 100%;
    }

    /* ---- Index: Product ---- */
    .pl-40 {
        padding-left: 0;
    }

    .pr-40 {
        padding-right: 0;
    }

    /* ---- About Page ---- */
    .about_story_full {
        flex-direction: column;
    }

    .about_story_full .about_story_left,
    .about_story_full .about_story_right {
        width: 100%;
    }

    .about_mission_full {
        flex-direction: column;
    }

    .about_mission_1 {
        width: 100%;
    }

    .about_why_us_1 {
        width: 100%;
    }

    /* ---- Product Page ---- */
    .product_category_1 {
        width: calc(50% - 15px);
    }

    .product_feature_1 {
        width: calc(50% - 15px);
    }

    /* ---- Download Page ---- */
    .download_card_1 {
        width: calc(50% - 15px);
    }

    /* ---- Contact Page ---- */
    .contact_full {
        flex-direction: column;
    }

    .contact_left,
    .contact_right {
        width: 100%;
    }

    /* ---- Product Detail Cards - 2 per row ---- */
    .pd_card {
        width: calc(50% - 12px);
    }

    .pd_card_img {
        height: 220px;
    }
}


/* ================================
   Medium devices / Tablets portrait (≤768px)
================================ */
@media (max-width: 768px) {
    .index_why_choose_us_full .index_why_choose_us_right {
        width: 95%;
    }

    .container {
        max-width: 720px;
    }

    /* ---- Heading ---- */
    .heading_main h2 {
        font-size: 30px;
        line-height: normal;
    }

    /* ---- Header ---- */
    .btn_header {
        padding: 5px 10px;
    }

    .logo {
        width: 95px;
    }

    /* ---- Banner ---- */
    .banner_main {
        height: auto;
    }

    /* ---- Page Banner (Inner pages) ---- */
    .page_banner {
        padding: 140px 0 50px 0;
    }

    .page_banner .heading_main h2 {
        max-width: 100%;
    }

    /* ---- Index: Why Choose Us ---- */
    .index_why_choose_us .index_why_choose_us_full {
        flex-direction: column;
        gap: 30px;
    }

    .index_why_choose_us_full .index_why_choose_us_left {
        width: 100%;
    }

    /* ---- Index: Why Choose Points ---- */
    .index_why_choose_us_points .index_why_choose_us_points_full {
        flex-direction: column;
    }

    .index_why_choose_us_points_full .index_why_choose_us_points_1 {
        width: 100%;
        padding: 15px 0;
    }

    /* ---- Index: Product ---- */
    .index_product_main .index_product_full {
        flex-direction: column;
        gap: 30px;
    }

    .index_product_full .index_product_left {
        width: 100%;
    }

    .index_product_full .index_product_right {
        width: 100%;
    }

    .pl-40 {
        padding-left: 0;
    }

    .pr-40 {
        padding-right: 0;
    }

    /* ---- Index: Who We Are ---- */
    .index_who_we_are_full {
        flex-direction: column;
        gap: 30px;
    }

    .index_who_we_are_full .index_who_we_are_left {
        width: 100%;
    }

    .index_who_we_are_full .index_who_we_are_right {
        width: 100%;
    }

    .index_who_we_are_left .index_who_we_are_content {
        width: 100%;
    }

    .index_who_we_are_right .index_who_we_are_right_1 h2 {
        font-size: 30px;
    }

    .index_who_we_are_right .index_who_we_are_right_1 p {
        font-size: 14px;
        line-height: 20px;
    }

    /* ---- Index: Gallery ---- */
    .index_gallery_full {
        flex-direction: column;
    }

    .index_gallery_full .index_gallery_left {
        width: 100%;
        padding-right: 0;
    }

    .index_gallery_full .index_gallery_right {
        width: 100%;
        padding-left: 0;
    }

    /* ---- Index: Feature ---- */
    .index_feature_main .index_feature_full {
        flex-wrap: wrap;
        gap: 20px;
    }

    .index_feature_full .index_feature_1 {
        width: calc(33.33% - 14px);
    }

    /* ---- Stats ---- */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box h2 {
        font-size: 36px;
    }

    /* ---- Footer ---- */
    .footer_top {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer_top .footer_top_left {
        width: 100%;
    }

    .footer_top .footer_top_center {
        width: 100%;
    }

    .footer_top .footer_top_right {
        width: 100%;
    }

    .footer_main::before {
        height: 368px;
        transform: rotate(90deg);
        left: 0;
        bottom: 370px;
    }

    .footer_bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer_top .footer_top_left p {
        font-size: 25px;
        line-height: 30px;
        margin-bottom: 30px;
    }

    /* ---- About Page ---- */
    .about_story_main {
        padding: 40px 0;
    }

    .about_story_full {
        flex-direction: column;
        gap: 30px;
    }

    .about_story_full .about_story_left,
    .about_story_full .about_story_right {
        width: 100%;
    }

    .about_mission_main {
        padding: 40px 0;
    }

    .about_mission_full {
        flex-direction: column;
        gap: 20px;
    }

    .about_mission_1 {
        width: 100%;
    }

    .about_why_us_main {
        padding: 40px 0;
    }

    .about_why_us_1 {
        width: 100%;
    }

    /* ---- Product Page ---- */
    .product_category_main {
        padding: 40px 0;
    }

    .product_category_1 {
        width: 100%;
    }

    .product_category_img {
        height: 220px;
    }

    .product_features_main {
        padding: 40px 0;
    }

    .product_feature_1 {
        width: calc(50% - 15px);
    }

    .product_cta_main {
        padding: 50px 0;
    }

    .product_cta_full {
        padding: 40px 20px;
    }

    /* ---- Download Page ---- */
    .download_cards_main {
        padding: 30px 0;
    }

    .download_card_1 {
        width: 100%;
    }


    /* ---- Contact Page ---- */
    .contact_main {
        padding: 40px 0 60px 0;
    }

    .contact_full {
        flex-direction: column;
        gap: 40px;
    }

    .contact_left,
    .contact_right {
        width: 100%;
    }

    .contact_form {
        padding: 30px 20px;
    }

    /* ---- Thank You Page ---- */
    .thankyou_main {
        padding: 0 0 70px 0;
    }

    .thankyou_content h2 {
        font-size: 30px;
    }

    /* ---- Product Detail Page ---- */
    .product_detail_main {
        padding: 40px 0 60px 0;
    }

    .pd_card {
        width: calc(50% - 12px);
    }

    .pd_card_img {
        height: 200px;
    }

    .pd_card_body h3 {
        font-size: 15px;
    }
}


/* ================================
   Small devices / Mobile landscape (≤576px)
================================ */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* ---- Heading ---- */
    .heading_main h2 {
        font-size: 26px;
        line-height: 34px;
    }

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

    /* ---- Page Banner ---- */
    .page_banner {
        padding: 120px 0 40px 0;
    }

    /* ---- Index: Feature ---- */
    .index_feature_full .index_feature_1 {
        width: calc(50% - 10px);
    }

    .index_feature_full .index_feature_1 .index_feature_1_img {
        width: 90px;
        height: 90px;
    }

    .index_feature_full .index_feature_1 p {
        width: 100%;
        font-size: 13px;
    }

    /* ---- Stats ---- */
    .stat-box h2 {
        font-size: 30px;
    }

    .stat-box p {
        font-size: 13px;
    }

    /* ---- About Page ---- */
    .about_story_content p {
        font-size: 15px;
        line-height: 23px;
    }

    .about_mission_icon {
        width: 60px;
        height: 60px;
    }

    .about_mission_1 h3 {
        font-size: 20px;
    }

    .about_why_us_1 span {
        font-size: 36px;
    }

    .about_why_us_1 h3 {
        font-size: 19px;
    }

    /* ---- Product Page ---- */
    .product_category_content h3 {
        font-size: 20px;
    }

    .product_feature_1 {
        width: 100%;
    }

    .product_cta_full {
        padding: 30px 15px;
    }

    .product_cta_text {
        font-size: 15px;
    }

    /* ---- Download Page ---- */
    .download_intro_text {
        font-size: 15px;
    }

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

    /* ---- Contact Page ---- */
    .contact_form {
        padding: 25px 16px;
    }

    .form_group input,
    .form_group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    .form_group label {
        font-size: 12px;
    }

    .contact_info_content h4 {
        font-size: 16px;
    }

    /* ---- Footer ---- */
    .footer_top .footer_top_left p {
        font-size: 22px;
        line-height: 28px;
    }

    .footer_top_center ul li a {
        font-size: 18px;
        line-height: 28px;
    }

    /* ---- Thank You Page ---- */
    .thankyou_main {
        padding: 0 0 50px 0;
    }

    .thankyou_content h2 {
        font-size: 26px;
    }

    .thankyou_content p {
        font-size: 16px;
        line-height: 24px;
    }

    .thankyou_buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    /* ---- Product Detail Page ---- */
    .pd_card {
        width: 100%;
    }

    .pd_card_img {
        height: 220px;
    }

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

    .pd_card_tag {
        font-size: 11px;
        padding: 4px 10px;
    }

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


/* ================================
   Extra small devices / Mobile portrait (≤400px)
================================ */
@media (max-width: 400px) {

    /* ---- Heading ---- */
    .heading_main h2 {
        font-size: 22px;
        line-height: 30px;
    }

    /* ---- Header ---- */
    .logo {
        width: 80px;
    }

    .btn_header {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* ---- Stats ---- */
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-box h2 {
        font-size: 26px;
    }

    /* ---- Feature ---- */
    .index_feature_full .index_feature_1 {
        width: calc(50% - 10px);
    }

    .index_feature_full .index_feature_1 .index_feature_1_img {
        width: 70px;
        height: 70px;
    }

    /* ---- About ---- */
    .about_mission_1 {
        padding: 20px 10px;
    }

    .about_why_us_1 span {
        font-size: 30px;
    }

    /* ---- Product ---- */
    .product_category_img {
        height: 180px;
    }



    /* ---- Contact ---- */
    .contact_info_icon {
        min-width: 40px;
        height: 40px;
    }

    .contact_info_icon img {
        width: 20px;
    }

    /* ---- Footer ---- */
    .footer_top .footer_top_left p {
        font-size: 20px;
        line-height: 26px;
    }

    .footer_bottom .footer_bottom_left ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* ---- Thank You Page ---- */
    .thankyou_content h2 {
        font-size: 22px;
    }

    /* ---- Product Detail Page ---- */
    .pd_card_img {
        height: 180px;
    }

    .pd_card_body {
        padding: 15px;
    }

    .pd_card_body h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .pd_card_tags {
        gap: 6px;
    }

    .pd_card_tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}