.section1 {
    overflow: hidden;
}

.heading-con {
    padding-top: 10%;
    margin-left: 10%;
}

.heading-font1-port {
    font-size: 60px;
    font-family: var(--font1);
    color: var(--brown-color);
    font-weight: 400;
    padding-left: 5%;
}

.heading-font2-port {
    font-size: 60px;
    font-family: var(--font1);
    color: var(--black-color);
    font-weight: 400;
    padding-left: 0%;
}

.project-list-align {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    gap: 8%;
    position: relative;
}

.overview {
    font-size: 20px;
    font-family: "Microsoft YaHei";
    font-weight: 400;
    color: var(--brown-color);
    padding-bottom: 5%;
}

#project-list {
    list-style: none;
    width: 80%;
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
    height: auto;
    margin-top: 2%;
}

.project-item {
    padding: 4px;
    font-size: 20px;
    font-family: "Microsoft YaHei";
    font-weight: 400;
    border-bottom: 1px solid black;
    transition: background-color 1.5s, transform 1.5s ease-out, opacity 1.5s ease-out;
    opacity: 0;
    position: absolute;
    width: 82%;
    text-align: center;
}

.project-item.active {
    /* background-color: #E2DDD0; */
    font-size: 20px;
    color: var(--brown-color);
    background-color: rgba(48, 21, 3, 0.2);
    /* Text color for active item */
    font-weight: bold;
    /* border-bottom: 1px solid #ccc; */
    transform: scale(1.05);
    /* Slightly scale up the active item */
}

.project-item.visible {
    opacity: 1;
    position: relative;
}

.images-in-colum {
    width: 100%;
    height: 50vh;
    overflow: visible;
    position: relative;
    padding-bottom: 10%;
}

.image-container {
    width: 100%;
    position: absolute;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
    margin-top: -35%;
}

.image-container.visible {
    transform: translateY(-50px);
    opacity: 1;
}

.image-container img {
    max-width: auto;
    height: 100%;
    display: block;
    margin-top: 10%;
}


.numeric-para {
    font-family: "Microsoft YaHei";
    color: #000000;
    font-size: 20px;
    line-height: 24px;
    width: 100%;
    text-align: left;
}

/* large screens */
@media screen and (min-width: 1600px) {
    .heading-con {
        padding-top: 10%;
        margin-left: 10%;
    }

    .heading-font1-port {
        font-size: 60px;
        font-family: var(--font1);
        color: var(--brown-color);
        font-weight: 400;
        padding-left: 5%;
    }

    .heading-font2-port {
        font-size: 60px;
        font-family: var(--font1);
        color: var(--black-color);
        font-weight: 400;
        padding-left: 0%;
    }

    .project-list-align {
        display: flex;
        justify-content: space-between;
        width: 80%;
        margin: auto;
        gap: 8%;
        position: relative;
    }

    .overview {
        font-size: 20px;
        font-family: "Microsoft YaHei";
        font-weight: 400;
        color: var(--brown-color);
        padding-bottom: 5%;
    }

    #project-list {
        list-style: none;
        width: 80%;
        position: relative;
        z-index: 1;
        cursor: pointer;
        overflow: hidden;
        height: auto;
        margin-top: 0%;
    }

    .project-item {
        padding: 2px;
        font-size: 20px;
        font-family: "Microsoft YaHei";
        font-weight: 400;
        border-bottom: 1px solid black;
        transition: background-color 1.5s, transform 1.5s ease-out, opacity 1.5s ease-out;
        opacity: 0;
        position: absolute;
        width: 70%;
        text-align: center;
    }

    .project-item.active {
        /* background-color: #E2DDD0; */
        font-size: 20px;
        color: var(--brown-color);
        /* Text color for active item */
        font-weight: bold;
        background-color: rgba(48, 21, 3, 0.2);
        /* border-bottom: 1px solid #ccc; */
        transform: scale(1.05);
        /* Slightly scale up the active item */
    }

    .project-item.visible {
        opacity: 1;
        position: relative;

    }

    .images-in-colum {
        width: 100%;
        height: 50vh;
        overflow: visible;
        position: relative;
        padding-bottom: 0%;
    }

    .image-container {
        width: 100%;
        position: absolute;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 1.5s ease-out, opacity 1.5s ease-out;
        margin-top: -30%;
    }

    .image-container.visible {
        transform: translateY(-50px);
        opacity: 1;
    }

    .image-container img {
        max-width: auto;
        height: 100%;
        display: block;
        margin-top: 10%;
    }

    .numeric-para {
        font-family: "Microsoft YaHei";
        color: #000000;
        font-size: 20px;
        line-height: 24px;
        width: 91%;
        text-align: left;
    }
}

/* smaller screens */
@media screen and (min-width: 1020px) and (max-width: 1280px) {
    .section1 {
        overflow: hidden;
        padding-top: 5%;
    }

    .heading-con {
        padding-top: 8%;
        margin-left: 5%;
        /* Adjusting the padding-top and margin-left for medium screens */
    }

    .heading-font1-port,
    .heading-font2-port {
        font-size: 40px;
        /* Decrease font size for medium screens */
    }

    .heading-font1-port {
        padding-left: 2%;
        /* Adjust padding for better spacing */
    }

    .project-list-align {
        width: 85%;
        /* Increase width for better fit */
        gap: 4%;
        /* Adjust gap for medium screens */
    }

    .overview {
        font-size: 18px;
        /* Decrease font size for medium screens */
        padding-bottom: 4%;
        /* Adjust padding for medium screens */
    }

    #project-list {
        width: 85%;
        /* Increase width for better fit */
        margin-top: 8%;
        /* Adjust margin-top for medium screens */
    }

    .project-item {
        padding: 8px;
        /* Increase padding for better spacing */
        font-size: 18px;
        /* Decrease font size for medium screens */
    }

    .images-in-colum {
        height: 55vh;
        /* Adjust height for medium screens */
        padding-bottom: 2%;
        /* Adjust padding for medium screens */
    }

    .image-container {
        margin-top: -20%;
        /* Adjust margin-top for better alignment */
    }

    .image-container img {
        margin-top: 5%;
        width: 100%;
        /* Adjust margin-top for better fit */
    }

    .numeric-para {
        font-size: 18px;
        /* Decrease font size for medium screens */
        line-height: 22px;
        /* Adjust line-height for medium screens */
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .heading-con {
        margin-top: 12%;
        text-align: center;
        padding-bottom: 10px;
    }

    .numeric-para {
        font-size: 14px;
        text-align: center;
    }

    .project-list-align {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: space-around;
        width: 90%;
        gap: 8%;
        margin: auto;
        margin-top: -10px;
    }

    #project-list {
        width: 80%;
        margin: auto;
        position: relative;
        z-index: 1;
        cursor: pointer;
        height: 65vh;
        overflow: hidden;
        text-align: center;
    }

    .project-item {
        text-align: center;
        width: 80%;
        font-size: 14px;
        margin: auto;
    }

    .project-item.active {
        font-size: 14px;
    }
    .heading-font1-port {
        font-size: 20px;
        width: 80%;
        padding-left: 43px;
    }
    
    .heading-font2-port {
        font-size: 20px;
        width: 80%;
    }

    .images-in-colum {
        width: 100%;
        padding-top: 30%;
        height: auto;
        padding-bottom: 5%;
    }

    .image-container {
        width: 100%;
        height: auto;
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.75s ease-out, opacity 0.75s ease-out;
    }

    .image-container.visible {
        transform: translateY(0);
        opacity: 1;
        position: relative;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }
}

/* section2 */
.section2 {
    margin-top: 10%;
}

.head-para {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-left: 3%;
    margin-top: -100px;
    padding-bottom: 20px;

}

.project-images-alignment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding-bottom: 3%;
}

.div-col1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.div-col-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.middle-pic1 {
    width: 98% !important;
    height: 550px !important;
}

.middle-pic2 {
    width: 98% !important;
    height: 550px !important;
}

.portfolio {
    padding-left: 15%;
}

.numeric-para2 {
    font-family: "Microsoft YaHei";
    color: #000000;
    font-size: 20px;
    line-height: 24px;
    width: 50%;
    text-align: left;
}

.image-container2 {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 4px;
}

.image-container2 img {
    display: block;
    width: auto;
    height: auto;
}

.interiors-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 16px;
    transform: translateY(100px);
    opacity: 0;
    width: 90%;
    transition: transform 1.6s ease, opacity 1.6s ease;
}

.interiors-card.show {
    transform: translateY(0);
    opacity: 0.6;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    background: rgba(48, 21, 3, 0.9);
    /* Darker background color */
    backdrop-filter: blur(10px);
    /* Adjust the blur value as needed */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Optional: Add a border for more definition */
}

.interior-head {
    font-family: "Microsoft YaHei";
    color: #ffffff;
    font-size: 20px;
}

.interior-para {
    font-family: "Microsoft YaHei";
    color: #ffffff;
    font-size: 14px;
}

/* large screens */
@media screen and (min-width:1600px) {
    .section2 {
        margin-top: 10%;
        padding-bottom: 2%;
    }

    .head-para {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-left: 3%;
        margin-top: -100px;
        padding-bottom: 20px;

    }

    .project-images-alignment {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2%;
        width: 100%;
    }

    .div-col1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .div-col-middle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .middle-pic1 {
        width: 98% !important;
        height: 550px !important;
    }

    .middle-pic2 {
        width: 98% !important;
        height: 550px !important;
    }

    .portfolio {
        padding-left: 15%;
    }

    .numeric-para2 {
        font-family: "Microsoft YaHei";
        color: #000000;
        font-size: 20px;
        line-height: 24px;
        width: 45%;
        text-align: left;
    }

    .image-container2 {
        position: relative;
        display: inline-block;
        width: 100%;
        max-width: 400px;
        margin-bottom: 10%;
    }

    .image-container2 img {
        display: block;
        width: auto;
        height: auto;
    }

    .interiors-card {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(139, 69, 19, 0.8);
        color: white;
        padding: 16px;
        transform: translateY(100px);
        opacity: 0;
        width: 90%;
        transition: transform 1.6s ease, opacity 1.6s ease;
    }

    .interiors-card.show {
        transform: translateY(0);
        opacity: 0.6;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        background: rgba(48, 21, 3, 0.9);
        /* Darker background color */
        backdrop-filter: blur(10px);
        /* Adjust the blur value as needed */
        -webkit-backdrop-filter: blur(10px);
        /* For Safari */
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* Optional: Add a border for more definition */
    }

    .interior-head {
        font-family: "Microsoft YaHei";
        color: #ffffff;
        font-size: 20px;
    }

    .interior-para {
        font-family: "Microsoft YaHei";
        color: #ffffff;
        font-size: 14px;
    }
}

/* smaller screens */
@media screen and (min-width:1020px) and (max-width:1280px) {
    .head-para {
        padding-top: 2%;
    }

    .image-container2 img {
        display: block;
        width: 100%;
        height: auto;
    }

    .middle-pic1 {
        width: 98% !important;
        height: 470px !important;
    }

    .middle-pic2 {
        width: 98% !important;
        height: 500px !important;
    }

    .project-images-alignment {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 95%;
        margin: auto;
        padding-bottom: 2%;
    }

    .interiors-card {
        width: auto;
    }
}

/* mobile view  */
@media screen and (max-width:550px) {
    .numeric-para2 {
        font-size: 14px;
        width: 100%;
        padding-top: 0%;
        text-align: center;
        width: 80%;
    }

    .head-para {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding-left: 1%;
        padding-bottom: 10px;
        gap: 5px;
        margin-top: 0%;
        margin-top: -20px;
    }

    .project-images-alignment {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .div-col1,
    .div-col-middle {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding-bottom: 15px;
    }

    .image-container2 {
        max-width: 100%;
        margin: 4px 0;
        /* Adjust the spacing between images */
    }

    .image-container2 img {
        width: 90% !important;
        height: auto;
        /* Ensure images scale appropriately */
        margin: auto;
    }

    .interiors-card {
        width: 80%;
        margin: auto;
    }

    .interiors-card.show {
        transform: translateY(0);
        opacity: 0.6;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        background: rgba(48, 21, 3, 0.9);
        /* Darker background color */
        backdrop-filter: blur(10px);
        /* Adjust the blur value as needed */
        -webkit-backdrop-filter: blur(10px);
        /* For Safari */
        border: 1px solid rgba(255, 255, 255, 0.3);
        /* Optional: Add a border for more definition */
        width: 82%;
    }


    .interior-head {
        font-size: 20px;
        text-align: center;
    }

    .interior-para {
        font-size: 14px;
        text-align: center;
    }

    .middle-pic1 {
        width: 90% !important;
        height: auto !important;
        /* Ensure images scale appropriately */
        margin: auto;
    }

    .middle-pic2 {
        width: 90% !important;
        height: auto !important;
        /* Ensure images scale appropriately */
        margin: auto;
    }

}

/* section4 */

.video-container {
    position: relative;
    width: 100%;
    height: 70vh;
    /* Set the desired height here, e.g., 70% of the viewport height */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* section5 */
/* section5(contact from) */
.section5 {
    background-color: #fff;
    padding-top: 50px;
    padding-bottom: 50px;
    /* margin-bottom: -10%; */
}

.section6-contactus {
    padding-top: 0px;
    width: 100%;
    margin: auto;
    margin: 0;
    margin-top: -15px;
}

.section-contact {
    width: auto;
    height: 100%;
    padding: 30px;
    margin: auto;
    margin-left: 4%;
    display: flex;
    flex-direction: row;
    /* border-radius: 40px; */
    background-image: url(/Assets/Images/form\ bgc.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.slider-contact {
    width: 40% !important;
    height: 500px;
    object-fit: cover;
}

.footer-image-container {
    width: 100%;
}

.footer-images {
    width: 100%;
    height: 69vh;
    border-radius: 40px;
    margin-top: 2%;
}

.form-container {
    width: 50%;
    padding-left: 30px;
}

.form-heading {
    font-family: var(--font2);
    font-weight: 700;
    font-size: 36px;
    color: #E2DDD0;
}

.form-caption {
    color: #E2DDD0;
    font-family: var(--font2);
    font-size: 20px;
    font-weight: 400;
    padding-top: 5px;
}

.label1 {
    color: #E2DDD0;
    font-family: var(--font2);
    font-size: 20px;
}

.fullName {
    width: 570px;
    /* height: 52px; */
    border-radius: 15px;
    padding: 15px;
    color: white;
    background: transparent;
    border: 1.2px solid #E2DDD0;
    font-family: var(--font2);
    font-size: 18px;
}

.form-block {
    padding-top: 20px;
}

.fullName::placeholder {
    padding: 10px;
    font-size: 16px;
}

.comment {
    width: 570px;
    height: 50px;
    border-radius: 15px;
    background: transparent;
    border: 1.2px solid #E2DDD0;
}

.send {
    width: 120px;
    height: 40px;
    border: 1px solid #E2DDD0;
    border-radius: 15px;
    background: transparent;
    color: white;
    cursor: pointer !important;
    margin-top: -13px;
}

#sendimage {
    position: relative;
    top: 7px;
}

#formpre {
    position: relative;
    top: -12px;
    font-family: var(--font2);
    font-size: 20px;
    color: #E2DDD0;
    margin-top: -3px;
}

/* large screens */
@media screen and (min-width: 1600px) {
    .section5 {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section6-contactus {
        width: 100%;
        margin: 0;
        padding-top: 0;
    }

    .section-contact {
        width: 75%;
        /* Adjusted for large screens while maintaining the layout */
        height: auto;
        margin: auto;
        padding: 30px;
        display: flex;
        flex-direction: row;
        background-image: url(/Assets/Images/form\ bgc.png);
        background-size: cover;
        /* Ensures the background image covers the section */
        background-repeat: no-repeat;
        background-position: center;
        /* Center the background image */
        border-radius: 40px;
        /* Optional: Add border-radius if needed for design consistency */
    }

    .slider-contact {
        width: 45%;
        /* Adjusted width to fit larger screens */
        height: 500px;
        /* Fixed height for consistency */
        object-fit: cover;
        /* Ensures images cover their container */
    }

    .footer-image-container {
        width: 100%;
    }

    .footer-images {
        width: 100%;
        height: 55vh;
        /* Adjusted height to fit well within the container */
        border-radius: 40px;
        object-fit: cover;
        /* Ensures images cover their container */
    }

    .form-container {
        width: 50%;
        padding-left: 30px;
    }

    .form-heading {
        font-family: var(--font2);
        font-weight: 700;
        font-size: 32px;
        color: #E2DDD0;
    }

    .form-caption {
        color: #E2DDD0;
        font-family: var(--font2);
        font-size: 20px;
        font-weight: 400;
        padding-top: 5px;
    }

    .label1 {
        color: #E2DDD0;
        font-family: var(--font2);
        font-size: 20px;
    }

    .fullName,
    .comment {
        width: 100%;
        max-width: 570px;
        /* Ensures form fields don't exceed desired width */
        border-radius: 15px;
        padding: 15px;
        background: transparent;
        border: 1.2px solid #E2DDD0;
        font-family: var(--font2);
        font-size: 18px;
    }

    .fullName::placeholder {
        font-size: 16px;
    }

    .comment {
        height: 100px;
        /* Increased height for better usability on larger screens */
    }

    .send {
        width: auto;
        max-width: 157px;
        height: 40px;
        border: 1.5px solid #E2DDD0;
        border-radius: 15px;
        background: transparent;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #sendimage {
        width: 20px;
    }

    #formpre {
        font-family: var(--font2);
        font-size: 14px;
        color: #E2DDD0;
        padding-top: 25px;
    }
}

/* small screens */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .section5 {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section6-contactus {
        width: 100%;
    }

    .section-contact {
        width: 90%;
        height: auto;
        margin: auto;
        padding: 30px;
        flex-direction: row;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .slider-contact {
        width: 40% !important;
        height: auto;
        /* Adjust height based on content */
    }

    .footer-images {
        width: 100%;
        height: 400px;
    }

    .form-container {
        width: 50%;
        padding-left: 30px;
    }

    .fullName,
    .comment {
        width: 100%;
        height: 15px;
    }

    .send {
        width: auto;
    }

    #sendimage {
        position: relative;
        /* top: 7px; */
        width: 20px;
    }

    #formpre {
        position: relative;
        top: -15px;
        font-family: var(--font2);
        font-size: 14px;
        color: #E2DDD0;
    }
}

/* mobile view  */
@media (max-width: 767px) {
    .section5 {
        padding: 5%;
        margin-bottom: 0;
    }

    .section6-contactus {
        padding-top: 0px;
    }

    .section-contact {
        flex-direction: column;
        height: auto;
        padding: 25px;
        background-size: cover;
        background-position: center;
        border-radius: 40px;
        margin-top: 20px;
    }

    .slider-contact {
        width: 100% !important;
        height: auto;
    }

    .footer-images {
        height: 200px;
        border-radius: 20px;
    }

    .form-container {
        width: 100%;
        padding-left: 0;
        padding-top: 5px;
    }

    .form-heading {
        font-size: 20px;
        padding-top: 15px;
    }

    .form-caption {
        font-size: 14px;
    }

    .fullName,
    .comment {
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
    }

    .comment {
        height: auto;
        font-size: 14px;
    }

    .send {
        width: 35%;
        height: auto;
        padding: 5px;
        padding-bottom: 10px;
        font-size: 14px;
    }

    #sendimage {
        position: relative;
        top: 3px;
        width: 20px;
    }

    #formpre {
        position: relative;
        top: 3px;
        width: 20px;
        padding-top: 5px;
    }

    /* Mobile view for mail dialog box */
    .mail-notification-block {
        width: 90%;
        padding: 15px;
    }

    #mail-message {
        font-size: 24px;
    }

    #mail-message-caption {
        font-size: 14px;
    }
}