body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: #333;
}

p {
    font-size: 17px;
}

#about p {
    text-align: justify;
}

#about1 {
    position: relative;
    padding: 240px 40px;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

h1 {
    font-size: 55px;
    margin-top: -7%;
}

.service-card li {
    font-size: 17px;
}

/* Lightbox overlay */
#imageLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Zoomed image */
#imageLightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    object-fit: contain;
}

/* Close button */
#lightboxClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Cursor UX */
.certificate-img {
    cursor: zoom-in;
}

/* Text Animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.position-relative {
    margin-top: 5%;

}

.container1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

#card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    width: calc(22.888% - 10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

#card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

#card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: white;
}

/* Section Spacing */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


/* Team Section Specific */
#team .card-img-top {
    object-fit: cover;
    border: 3px solid #007BFF;
    width: 150px;
    height: 150px;
}

#team .card-title {
    margin-bottom: 0.5rem;
}

#team .card-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* About Section Image */
#about img {
    max-width: 100%;
    height: 100px;
    margin-top: 18%;
}

#dialogBox,
#dialogBox1,
#dialogBox2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: scroll;
}

#box,
#box1,
#box2 {
    background: white;
    padding: 20px;
    max-width: 500px;
    margin: 100px auto;
    position: relative;
    border-radius: 8px;
}

#closeDialog,
#closeDialog1,
#closeDialog2 {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    gap: 40px;
    justify-items: center;
    /* align-items: center; */
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1.0);
}

.client-logo img {
    width: 200px;
    height: 110px;
    object-fit: contain;
    margin-bottom: -5px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.client-logo p {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

#products-services {
    margin-top: -4%;
    background: linear-gradient(180deg, #f9fafc 0%, #eef3f8 100%);
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 3 rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

#credentials img {
    pointer-events: auto;
    cursor: zoom-in;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .position-relative {
        margin-top: 15%;
    }

    h1 {
        font-size: 30px;
    }

    #about {
        margin-top: -15%;
    }

    .logo-grid {
        width: 90%;
        margin-left: 5%;
    }

    #about1 {
        position: relative;
        padding: 100px 20px;
    }

    .hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }

    #card {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
        background: white;
    }


    /* Products & Services: Stack cards and sub-sections */
    #products-services .row>div {
        text-align: center;
    }

    #products-services li {
        text-align: justify;
    }

    #team .card-img-top {
        width: 120px;
        height: 120px;
    }

    .team {
        text-align: justify;
    }

    #clients .row p {
        text-align: justify;
    }

    #credentials .row p {
        text-align: justify;
    }

    /* Contact: Stack info columns */
    #contact .row>div.col-md-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* General section padding reduction on mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

html {
    scroll-padding-top: 56px;
}