
/* R E S P O N S I V E - zone */
/* ---------------------------------------- */

/* 1. M O B I L E - INFO (Smallest Screens) */
@media (max-width: 575.98px) {
    .top-info-box {
        display: none; 
    }
    .navbar {
        padding: 1rem 1.5rem; 
    }
    .navbar-group {
        display: none; 
    }
    .all-actions-btn {
        bottom: 1.5rem;
        left: 1.5rem;
    }



    /* --- HEADER/HERO SECTION STYLES --- */
    .dt-header-container {
        filter: brightness(0.8);
    }
    .pflogo img {
        max-width: 100px;
    }
    .eco-feature-btn  h3 {
        font-size: 35px;
    }
    .eco-feature-btn  p {
        font-size: 13px;
    }

 

    /* Premodels section */
    .dt-premodel-box  {
        width: 100%;
        height: 100%;
    }
    .dt-time-sky-elements {
        display: block;
    }
    #time-moon {
        filter: brightness(0.7) contrast(1.2);
    }
    .dt-premodel-area {
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }
    .dt-premodel-item.details-fixed-box {
        width: 100%;
        border-radius: 0;
    }
    body.dark-theme .dt-text-premodel-bg {
        background: none;
    }   
    #model-title {
        font-size: 25px;
    }
    #model-description {
        font-size: 15px;
    }
    #model-link {
        font-size: 12px;
    }
    .dt-premodel-section.night-theme .model-house-img {
        filter: drop-shadow(0px 0px 0px #ffe05753);
    }

    body.dark-theme .dt-premodel-item.details-fixed-box {
        background: none;
    }



    /* what eco smarthome */
    .dt-whateco-section {
        height: auto; 
        min-height: 100vh;
        display: block; 
    }

    .dt-whateco-area {
        flex-direction: column; 
    }

    .dt-what-item {
        width: 100%; 
        height: auto;
    }

    .dt-what-item-left {
        position: relative;
        width: 100% !important;
        height: auto !important;
        min-height: 50vh;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        transform: translateY(0); 
        z-index: 10;
    }

    .dt-what-item-left.collapsed {
        transform: translateY(calc(100% - 80px)) !important; 
        opacity: 0.9;
    }

    .dt-what-slide-toggle-btn {
        top: -25px !important; 
        right: 50% !important;
        transform: translateX(50%) !important;
        border-radius: 8px 8px 0 0 !important;
        width: 60px !important;
        height: 40px !important;
    }
    
    .dt-what-item-left.collapsed .dt-what-slide-toggle-btn {
        transform: translateX(50%) rotate(0deg) !important;
    }

    .dt-what-text-container {
        padding: 15px;
    }
    .dt-what-item-left h1 {
        font-size: 2rem;
        margin-top: 15px;
    }
    .dt-what-item-left h3 {
        font-size: 16px;
        margin-top: 10px;
    }



    /* Show Best house */
    .best-prod-container {
        padding: 20px 10px;
    }
    .best-p-header {
        padding: 10px;
        width: 100%;
    }
    .bp-container {
        padding: 0;
        margin-top: 20px;
        width: 100%;
    }
    .bp-main-content {
        flex-direction: column-reverse; 
        width: 100%; 
        height: auto;
        padding: 20px;
        text-align: center;
    }
    .bp-main-text-area {
        padding: 10px 0;
    }
    .bp-main-text-header h1 {
        font-size: 1.5rem; 
    }
    .bp-main-text-header span {
        font-size: 1.4rem;
    }
    .bp-main-text-header p {
        font-size: 1rem;
        line-height: 1.5;
    }
    .bp-main-img-header img {
        width: 80%; 
        max-width: 250px;
        margin-bottom: 15px;
    }
    .bp-models-title h1 {
        font-size: 1.8rem;
    }
    .bp-models-area {
        margin: 20px 0;
        padding: 0;
    }
    .bp-models-box {
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    .bp-model-card {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    .model-image-card {
        height: auto; 
    }
    .model-detail-feature-contain {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    .model-card-btn a {
        padding: 15px 0; 
        font-size: 1.1rem;
    }
   



    /* Material in House */
    .material-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }


    
    /* Function house system */
    .function-house-eco-formula-box {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    .function-house-eco-card {
        grid-template-columns: 1fr; 
    }
    
    .function-house-eco-card:nth-child(even) .function-house-card-image {
        grid-row: 1;
    }
    
    .function-house-card-content {
        padding: 30px;
    }
    .function-house-card-image {
        min-height: auto;
    }
    .function-house-card-image img {
        width: 300px;
        height: fit-content;
        object-fit: fill;
        transition: transform 0.5s ease;
    }


    /* Show Completed sample house */
    .show-pd-cta-group {
        flex-direction: column;
    }
    .show-pd-house-showcase-card {
        flex-direction: column;
    }
    .show-pd-house-image-gallery {
        min-height: 300px;
    }
    .show-pd-section-header h2 {
        font-size: 2rem;
    }
    .show-pd-btn-secondary {
        text-align: center;
    }



    /* Why us section */
    .whyus-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }


}

/* 2. T A B L E T [IPAD] - INFO */
@media (min-width: 575.99px) and (max-width: 1312px) {
  
    .navbar {
        padding: 1rem 2rem;
    }
    .nav-link {
        font-size: 1.15rem;
        margin-right: 1rem;
    }


    /* --- HEADER/HERO SECTION STYLES --- */
    .dt-header-container {
        filter: brightness(0.8);
    }
    .pflogo img {
        max-width: 250px;
    }
    .eco-feature-btn  h3 {
        font-size: 60px;
    }
    .eco-feature-btn p {
        font-size: 25px;
    }

    /* Premodels section */
    .dt-premodel-box  {
        width: 100%;
        height: 80vh;
    }
    .dt-time-sky-elements {
        display: block;
    }
    
    .dt-premodel-area {
        flex-direction: column;
        justify-content: center;
    }

    .dt-premodel-item.details-fixed-box {
        width: 100%;
    }
    body.dark-theme .dt-premodel-item.details-fixed-box {
        background: none;
    }
    #model-title {
        font-size: 3rem;
    }
    #model-description {
        font-size: 1.3rem;
    }
    #model-link {
        font-size: 1rem;
    } 
    .model-house-img {
        max-width: 400px;
        height: auto;
        z-index: 4;
        position: relative;
        opacity: 1;
        transform: translateX(0);
        transition: all 0.5s ease-out;

        filter: drop-shadow(12px 27px 16px #00000053);
    }



    /* Show Best house */
    .bp-main-content {
        flex-direction: column-reverse; 
        width: 100%; 
        height: auto;
        padding: 20px;
        text-align: center;
    }
    .bp-models-box {
        grid-template-columns: repeat(2, 1fr); 
    }
    .bp-main-content {
        width: 95%;
        height: auto;
    }



    /* Material in House */
    .material-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }



    /* Function house system  */
    .function-house-eco-card {
        grid-template-columns: 1fr; 
    }
    
    .function-house-eco-card:nth-child(even) .function-house-card-image {
        grid-row: 1;
    }
    
    .function-house-card-content {
        padding: 30px;
    }



    /* Show Completed sample house */
    .show-pd-house-showcase-card {
        flex-direction: column;
    }
    .show-pd-house-image-gallery {
        min-height: 300px;
    }
    .show-pd-section-header h2 {
        font-size: 2rem;
    }


    /* why us */
    .whyus-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    
}

/* 3. D E S K T O P / N O T E B O O K - INFO (Default View) */
@media (min-width: 992px) and (max-width: 1439.98px) {
    :root {
        font-size: 16px;
    }
    .navbar {
        padding: 1rem 3rem;
    }
}

/* 4. E X T R A L A R G E [ P C , T V] - INFO (Scaling Up Zone) */
@media (min-width: 1440px) { 
    :root {
        font-size: 17px;
    }
    .navbar {
        padding: 1rem 5rem;
    }
}

@media (min-width: 1900px) { 
    :root {
        font-size: 18px; 
    }
    .navbar {
        padding: 1rem 7rem;
    }
}

@media (min-width: 2500px) { 
    :root {
        font-size: 20px;
    }
    .navbar {
        padding: 1rem 10rem;
    }
}