/* Responsive adjustments */
/* Responsive hero adjustments */
@media (max-width: 1200px) {
    .main-content .logo {
        max-width: 150px;
        top: 20px;
    }

    .building-img {
        max-width: 60vw;
        min-width: 220px;
    }

    .cement-bag {
        max-width: 180px;
    }

    .product-spec {
        margin: 0 90px;
    }

    .product-spec .d-flex {
        padding: 0 50px;
    }
}

@media (max-width: 992px) {

    .curtain-top img,
    .curtain-bottom img {
        max-width: 95vw;
        max-height: 17vh;
    }

    .curtain-top,
    .curtain-bottom {
        padding: 0 2vw;
    }

    /* About Page Banner Fixes */
    .about-banner {
        padding-bottom: 20px;
    }

    .about-title {
        top: 55%;
        padding: 0 30px;
        /* Add text visibility enhancements */
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
        border-radius: 8px;
        backdrop-filter: blur(2px);
    }

    .about-title h5 {
        font-size: 16px;
        margin-bottom: 8px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }

    /* Override text-size-80 for mobile */
    .about-title .text-size-80 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
    }

    .about-desc {
        font-size: 17px !important;
        padding: 0 20px !important;
        margin-top: 30px !important;
    }

    .main-content {
        min-height: 60vh;
        height: auto;
        padding-bottom: 24px;
        padding-top: 36px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .main-content .logo {
        position: relative;
        max-width: 90px;
        top: 0;
        left: 0;
        transform: none;
        margin: 0 auto 8px auto;
        display: block;
    }

    .main-content .position-relative {
        min-height: 220px;
    }

    .building-img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 70vw;
        min-width: 100px;
        margin: 0 auto;
        display: block;
    }

    .cement-bag {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        max-width: 80px;
        margin: 12px auto 0 auto;
        display: block;
    }

    .product-center {
        width: 180px;
        height: 210px;
    }

    .product-center img {
        max-width: 110px;
    }

    .feature-panel {
        width: 93vw;
        left: 3% !important;
        right: 3% !important;
        text-align: center !important;
    }

    .panel-topleft {
        top: 3%;
    }

    .panel-topright {
        top: 25%;
    }

    .panel-bottomleft {
        bottom: 22%;
    }

    .panel-bottomright {
        bottom: 2%;
    }

    .line {
        display: none;
    }

    .custom-popup {
        max-width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .custom-close {
        top: 10px;
        right: 10px;
        font-size: 13px;
    }

    .row.d-flex {
        flex-direction: column;
    }

    .col-lg-5,
    .col-lg-7 {
        width: 100%;
        padding: 10px 0;
    }

    .product-spec {
        margin: 0 50px;
    }

    .product-spec .d-flex {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .cement-feature-img-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 3rem;
    }

    .vrm-top img {
        gap: 2rem;
        text-align: center;
    }

    .vrm-top .vrm-para {
        font-size: 16px;
    }

    .vrm-bottom p {
        justify-content: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #fff;
        font-size: 15px;
    }

    .vrm-bottom .mini-para {
        font-size: 18px;
    }

    .about-desc {
        font-size: 16px !important;
    }

    /* About Page Banner Fixes for Tablets */
    .about-banner {
        padding-bottom: 15px;
    }

    .about-title {
        top: 42%;
        padding: 0 20px;
        /* Add text visibility enhancements for tablets */
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.5);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1));
        border-radius: 6px;
        backdrop-filter: blur(1px);
    }

    .about-title h5 {
        font-size: 16px;
        margin-bottom: 6px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }

    /* Override text-size-80 for tablets */
    .about-title .text-size-80 {
        font-size: 32px !important;
        line-height: 1.1 !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.6);
    }

    .about-desc {
        font-size: 17px !important;
        padding: 0 15px !important;
        line-height: 1.5 !important;
        margin-top: 25px !important;
    }

    .mission h5 {
        font-size: 20px !important;
    }

    .year {
        font-size: 16px !important;
    }

    .journey-timeline h5 {
        font-size: 18px;
    }

    .year::before {
        position: absolute;
        content: '';
        width: 2px !important;
        height: 100%;
        background-color: #3A3B3E;
        left: 150%;
        top: 0;
    }

    .year::after {
        position: absolute;
        content: '';
        width: 11px;
        height: 11px;
        background-color: #3588E8;
        border-radius: 50%;
        left: 141%;
        top: 3% !important;
    }

    .product-info {
        flex-direction: column;
    }

    .product-front,
    .product-back,
    .single-product {
        max-width: 180px;
    }

    .product-spec {
        margin: 0 30px;
    }

    .product-spec .d-flex {
        flex-direction: column;
        text-align: start;
        padding: 0 16px 30px 16px;
    }

    .product-spec .d-flex .img{
        padding-bottom: 30px;
    }

    .product-spec .d-flex h4{
        font-size: 20px;
    }

    .product-spec .d-flex p{
        font-size: 15px;
    }

}

@media (max-width: 600px) {

    .curtain-top img,
    .curtain-bottom img {
        max-width: 96vw;
        max-height: 12vh;
    }

    .curtain-top,
    .curtain-bottom {
        padding: 0 1vw;
    }

    /* About Page Banner Fixes for Mobile */
    .about-banner {
        padding-bottom: 12px;
    }

    .about-banner img {
        height: auto;
        object-fit: cover;
        max-height: 50vh;
    }

    .about-title {
        top: 38%;
        padding: 0 12px;
        /* Add text visibility enhancements for mobile */
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
        border-radius: 5px;
        backdrop-filter: blur(1px);
    }

    .about-title h5 {
        font-size: 15px;
        margin-bottom: 4px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    }

    /* Override text-size-80 for mobile */
    .about-title .text-size-80 {
        font-size: 28px !important;
        line-height: 1.1 !important;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
    }

    .about-desc {
        font-size: 16px !important;
        padding: 0 12px !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
    }

    .main-content {
        min-height: 44vh;
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .main-content .logo {
        max-width: 54px;
        margin-bottom: 6px;
    }

    .building-img {
        width: 92vw;
        min-width: 60px;
    }

    .cement-bag {
        max-width: 52px;
        margin-top: 6px;
    }

    .container {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}


@media (max-width: 576px) {

    .small-flex {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
    }

    /* About Page Banner Fixes for Small Mobile */
    .about-banner {
        padding-bottom: 10px;
    }

    .about-title {
        top: 32%;
        padding: 0 10px;
        /* Add text visibility enhancements for small mobile */
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
        border-radius: 4px;
        backdrop-filter: blur(1px);
    }

    .about-title h5 {
        font-size: 14px;
        margin-bottom: 3px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    }

    /* Override text-size-80 for small mobile */
    .about-title .text-size-80 {
        font-size: 24px !important;
        line-height: 1.0 !important;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
    }

    .about-desc {
        font-size: 15px !important;
        padding: 0 10px !important;
        line-height: 1.4 !important;
        margin-top: 18px !important;
    }

    .container-fluid.mx-auto.px-0 .row {
        margin: 20px 0 !important;
    }

    .journey-section h2 {
        font-size: 30px;
    }

    .journey-timeline {
        max-width: 420px !important;
    }

    .journey-timeline img {
        width: 420px !important;
        height: auto;
    }

    .journey-timeline {
        text-align: left;
    }

    .year {
        display: block;
        border-bottom: 1px solid #fff;
    }

    .year::before {
        position: absolute;
        display: none;
    }

    .year::after {
        display: none;
    }

    .w-sm-80 {
        width: 80% !important;
        margin: 0 auto;
    }
}

@media (max-width: 468px) {

    .curtain-top img,
    .curtain-bottom img {
        max-width: 98vw;
        max-height: 10vh;
    }

    .main-content .logo {
        max-width: 60px;
    }

    .building-img {
        min-width: 60px;
    }

    .cement-bag {
        max-width: 60px;
    }

    /* About Page Banner Fixes for Very Small Mobile */
    .about-banner {
        padding-bottom: 8px;
    }

    .about-banner img {
        height: auto;
        object-fit: cover;
        max-height: 45vh;
    }

    .about-title {
        top: 28%;
        padding: 0 8px;
        /* Add text visibility enhancements for very small mobile */
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.25));
        border-radius: 3px;
        backdrop-filter: blur(1px);
    }

    .about-title h5 {
        font-size: 13px;
        margin-bottom: 2px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
    }

    /* Override text-size-80 for very small mobile */
    .about-title .text-size-80 {
        font-size: 22px !important;
        line-height: 1.0 !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 1), 0 0 6px rgba(0, 0, 0, 0.8);
    }

    .about-desc {
        font-size: 14px !important;
        padding: 0 8px !important;
        line-height: 1.3 !important;
        margin-top: 15px !important;
    }

    .journey-timeline {
        max-width: 350px !important;
    }

    .journey-timeline img {
        width: 350px !important;
        height: auto;
    }
}

@media (max-width: 400px) {
    /* About Page Banner Fixes for Ultra Small Mobile */
    .about-banner img {
        height: auto;
        object-fit: cover;
        max-height: 40vh;
    }

    .about-title {
        top: 23%;
        padding: 0 6px;
        /* Add text visibility enhancements for ultra small mobile */
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 1), 0 0 5px rgba(0, 0, 0, 0.8);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
        border-radius: 3px;
        backdrop-filter: blur(1px);
    }

    .about-title h5 {
        font-size: 12px;
        margin-bottom: 1px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
    }

    /* Override text-size-80 for ultra small mobile */
    .about-title .text-size-80 {
        font-size: 20px !important;
        line-height: 0.9 !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 1), 0 0 5px rgba(0, 0, 0, 0.9);
    }

    .about-desc {
        font-size: 13px !important;
        padding: 0 6px !important;
        line-height: 1.3 !important;
        margin-top: 12px !important;
    }

    .journey-timeline {
        max-width: 300px !important;
    }

    .journey-timeline img {
        width: 300px !important;
        height: auto;
    }
}