.section1,
.section2 {
    display: flex;
    align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: Roboto, sans-serif;
    background: #fff;
}

.section1 {
    width: 83%;
    height: 95vh;
    margin-inline: auto;
    background-position: center;
    background-size: cover;
}

.section2,
.section3 {
    width: 100%;
    background-color: #f6f7f8;
}

.section1 > .left {
    width: 50%;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.section1 > .left .logo {
    width: 200px;
    height: 100px;
    background: url(../IMG/HTLogo.webp) center/contain no-repeat;
}

.section1 .caption {
    font-size: 3rem;
    width: 75%;
    font-weight: 700;
}

.section1 .text {
    font-family: roboto;
    color: #818181;
    width: 80%;
}

.section1 .right {
    height: 90%;
    width: 50%;
    background: url("../IMG/Man_Hole_Intrusion_Detection_System_brand_image (2).webp") top/cover no-repeat;
    padding: 40px 24px;
    border-radius: 10px;
}

.section2 {
    height: 300px;
    justify-content: center;
}

.section2 .left,
.section2 .right {
    align-items: center;
    width: 50%;
    display: flex;
}

.section2 .left {
    justify-content: center;
    padding: 0 200px 0 130px;
    font-size: 2.5rem;
    font-weight: 700;
}

.section2 .right {
    justify-content: center;
    padding-right: 120px;
    font-size: 15px;
    color: #7c7e7d;
    line-height: 1.7;
}

.section3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 7% 2%;
}

.section3 .left {
    height: 800px;
    width: 50%;
    background: url(../IMG/Man_Hole_image.webp) center/cover no-repeat;
    border-radius: 10px;
}

.section3 .right {
    width: 50%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 6% 8%;
    border-radius: 10px;
}

.section3 .text-box,
.section4 {
    flex-direction: column;
    display: flex;
}

.section3 .text-box {
    gap: 10px;
    width: 90%;
}

.product_brand_text p,
.section3 .para,
.third_pro_text p {
    font-size: small;
    color: #5e5e5e;
    line-height: 18px;
}

.section4 {
    width: 100%;
    background-color: #f6f7f8;
    align-items: flex-start;
    padding: 100px 9%;
    gap: 40px;
}

.section7 .card,
.third_pro_text {
    background: #fff;
    border-radius: 10px;
}

.section4 .top {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 50%;
}

.software_section {
    font-family: Arial, sans-serif;
    /* background: linear-gradient(135deg, #1e1b3a, #e4e1e7); */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ===== Container ===== */
.soft_card_container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Card ===== */
.soft_card {
    width: 530px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.soft_card:hover {
    transform: translateY(-8px);
}

/* ===== Image ===== */
.soft_card img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    cursor: pointer;
}

/* ===== Text ===== */
.soft_card h1 {
    font-size: 22px;
    margin: 15px 10px 8px;
    color: #4b2a7a;
}

.soft_card p {
    font-size: 14px;
    padding: 0 15px;
    color: #555;
}

/* ===== ZOOM MODAL ===== */
.image_modal {
    margin-top: 1rem;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.image_modal img {
    /* z-index: 3; */
    max-width: 80%;
    /* max-height: 85%; */
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7);
     }
    to { transform: scale(1); }
}

/* close button */
.close_btn {
    position: absolute;
        top: 35px;
    right: 110px;
    font-size: 41px;

    color: white;
    cursor: pointer;
}

.demo_btn {
    background: linear-gradient(145deg, #293dec, #1104cc);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    /* 3D depth */
    box-shadow: 
        0 6px 0 #2d1655,
        0 10px 20px rgba(0,0,0,0.4);

    transition: all 0.15s ease;
}

/* hover = lift */
.demo_btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 9px 0 #2d1655,
        0 14px 25px rgba(0,0,0,0.5);
}

/* click = press */
.demo_btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #2d1655,
        0 5px 10px rgba(0,0,0,0.3);
}
.software_section_head{
    width: 100%;
    background-color: #f6f7f8;
    align-items: flex-start;
    padding: 20px 10%;
    gap: 40px;
}

.section4 .head {
    font-size: 2.2rem;
    font-weight: 600;
}

.section4 #txt {
    color: #5e5e5e;
}

.section4 .bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.section4 .card {
    width: 23.5%;
    height: auto;
    padding: 20px 50px 20px 25px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    border: none;
}

.section4 .card .logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section4 .card .logo img {
    width: 100%;
    height: 100%;
}

.section4 .card .head {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: large;
}

.section4 .card .para {
    font-size: 15px;
    line-height: 20px;
}

.section4 .card .head i {
    font-size: 3rem;
    color: #e71425;
}

.third_section_iot {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 3rem 0;
}

.third_pro_text {
    width: 45%;
    padding: 2%;
}

.product_brand_image img {
    height: 18rem;
    border-radius: 10px;
}

.section7 {
    width: 100%;
    height: 100vh;
    background: #f5f6f7;
    padding-top: 7%;
}

.section7 .wrapper {
    width: 83%;
    height: 82%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section7 .head {
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 40px;
}

.section7 .content {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.section7 .card {
    width: 32%;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card .caption,
.picture {
    align-items: center;
    display: flex;
}

.picture {
    width: 100%;
    height: 82%;
    justify-content: center;
}

.picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .caption {
    height: 18%;
    justify-content: center;
    text-align: center;
}

.card .caption h5 {
    font-size: 1.2rem;
}

.product_brand_section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 60px 0;
}

.product_brand_text {
    width: 40%;
}

@media (max-width: 1024px) {
    .section1,
    .section2 {
        flex-direction: column;
        text-align: center;
    }

    .section1 > .right,
    .section5 {
        background-position: center;
        background-size: cover;
    }

    .section1,
    .section2,
    .section4 .top,
    .section6,
    .section7 .head {
        text-align: center;
    }

    .section1 {
        height: auto;
        margin-top: 60px;
    }

    .section1 > .right {
        width: 100%;
        height: 50vh;
        min-height: 350px;
    }

    .section1 > .left {
        width: 100%;
        margin-bottom: 20px;
        align-items: center;
    }

    .section7 .head,
    .section8 .left .middle {
        margin-bottom: 10px;
    }

    .product_brand_text,
    .section1 .caption,
    .section3 .right,
    .third_pro_text {
        width: 100%;
    }

    .section2 {
        padding: 40px 20px;
        height: auto;
        gap: 20px;
    }

    .section2 .left,
    .section2 .right {
        width: 90%;
        padding: 0;
    }

    .section3 {
        flex-direction: column;
        padding: 40px 5%;
    }

    .nav-btn,
    .section3 .left {
        display: none;
    }

    .section4 .top {
        padding: 0;
        align-items: center;
    }

    .section4 .card {
        width: 48%;
        height: auto;
    }

    .video-section {
        height: 50vh;
    }

    .video-section .overlay {
        bottom: 5%;
        width: 90%;
    }

    .product_brand_section,
    .third_section_iot {
        flex-direction: column;
        gap: 30px;
        padding: 40px 5%;
    }

    .section6,
    .section8 .wrapper {
        flex-direction: column;
    }

    .section5 {
        height: 23vh;
    }

    .section6 {
        gap: 20px;
        padding: 40px 5%;
        height: auto;
    }

    .section6 .details,
    .section6 .logo {
        width: 100%;
        align-items: center;
    }

    .section7 .card {
        width: 48%;
        height: 300px;
    }

    .section7 .head {
        font-size: 2rem;
    }

    .section8 {
        height: auto;
        margin-bottom: 20%;
    }

    .section8 .left {
        width: 100%;
        padding: 40px 20px;
        border-radius: 12px 12px 0 0;
    }

    .section8 .right {
        height: 300px;
        display: none;
    }

    .swiper-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .swiper-slide {
        width: 100% !important;
    }

    .news-section,
    .section7 {
        height: auto;
        min-height: 60vh;
        margin-bottom: 20px;
    }
}

@media (max-width: 608px) {
    .section1,
    .section2,
    .section3 .right {
        padding: 20px;
    }
    .nav-btn,
    .section5 {
        display: none;
    }
    .soft_card{

        width: 360px;
    }
    .soft_card img{
        height: 188px;
    }
.image_modal img {
    /* z-index: 3; */
    max-width: 95%;
    max-height: 95%;

}
.close_btn {
    position: absolute;
    top: 12rem;
    right: 1rem;
}
    .section1 {
        margin-top: 40px;
        width: 98%;
    }

    .section1 .caption,
    .section2 .left {
        font-size: 2rem;
    }

    .section1 > .right {
        min-height: 400px;
    }

    .section2 {
        font-size: 16px;
    }

    .section2 .right {
        font-size: 14px;
    }

    .section3 .left {
        display: flex;
        height: 500px;
        width: 100%;
        background-size: cover;
    }

    .section4 {
        padding: 40px 20px;
    }

    .section4 .card,
    .section6 .details button,
    .section7 .card {
        width: 100%;
    }

    .section5 {
        height: 25vh;
    }

    .product_brand_image img {
        height: 12rem;
    }

    .video-section .overlay h2 {
        font-size: 20px;
    }

    .section6 .details h1 {
        font-size: 24px;
    }

    .section7 {
        padding-top: 40px;
    }

    .section7 .head {
        font-size: 1.8rem;
    }

    .section8 .right {
        height: 200px;
    }

    .swiper-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .swiper-slide {
        width: 100% !important;
    }

    .news-section,
    .section7 {
        height: auto;
        min-height: auto;
    }
}
