﻿/*---Products---*/



.container {
    text-align: center;
    width: 100%;
     padding: 0 10px;

}

h1 {
    margin: 40px 0 20px;
    color: white;
}

/* Transparent Intro Section */
.transparent-section {
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    text-align: center;
}

.transparent-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: #000;
}

    .transparent-content h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .transparent-content p {
        font-size: 1.1em;
    }

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

    margin-bottom: 40px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border-radius: 8px;
}

    .product-item:hover {
        transform: translateY(-5px);
    }

.product-image-placeholder {
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 50px;
    color: #888;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .product-image-placeholder img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

.product-info {
    padding: 15px;
    text-align: center;
    background-color: #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

    .product-info h3 {
        margin: 0 0 5px;
        color: #333;
        font-size: 1.1em;
    }

    .product-info p {
        margin: 0;
        color: #666;
        font-size: 0.9em;
    }

   

/* Load More Button */
.load-more-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .load-more-btn:hover {
        background-color: red;
    }

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* Responsive Adjustments */
@media only screen and (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;

    }

   .product-item.first-hovered {
        grid-column: span 1;
    }

    .transparent-section {
        padding: 10px;
    }
      
    }
/*---new end-*/




.header-container {
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
   
    max-width: 960px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.service-button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .service-button img {
        width: 24px;
        height: 24px;
        filter: grayscale(100%);
        opacity: 0.7;
    }

    .service-button:hover {
        background-color: #f8f8f8;
        border-color: #ccc;
    }

    .service-button.active {
        background-color: #ffd700;
        color: #333;
        border-color: #ffc107;
    }

        .service-button.active img {
            filter: none;
            opacity: 1;
        }

/* New content wrapper below the header */
.content-wrapper {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.main-heading {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .main-heading h1 {
        color: #333;
        font-size: 32px;
        margin-bottom: 10px;
    }

    .main-heading p {
        color: #666;
        font-size: 16px;
        max-width: 600px;
        margin: 0 auto;
    }

.info-container {
    margin-top: 30px;
}

.service-info {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    padding: 20px;
}

    .service-info.active {
        display: block;
    }

.info-card {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

    /* Image Sizing for any image and mobile view */
    .info-card img {
       
        width: 40%;
        max-width: 450px;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
    }

.info-text {
    flex: 1;
    min-width: 250px;
}

    .info-text h2 {
        color: #333;
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 28px;
    }

    .info-text p {
        color: #666;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .info-text ul {
        list-style-type: disc;
        margin-left: 25px;
        color: #555;
        padding-left: 0;
    }

        .info-text ul li {
            margin-bottom: 8px;
            line-height: 1.5;
        }

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .buttons-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-button {
        flex-grow: 1;
        min-width: unset;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

        .info-card img {
            width: 80%;
            max-width: 350px;
            margin-bottom: 15px;
        }

    .info-text {
        text-align: center;
        min-width: unset;
    }

        .info-text ul {
            text-align: left;
            margin-left: auto;
            margin-right: auto;
            max-width: 90%;
        }
}

@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .service-button {
        width: auto;
    }

    .content-wrapper {
        padding: 15px;
    }

    .info-card img {
        width: 90%;
        max-width: 300px;
    }

    .main-heading h1 {
        font-size: 28px;
    }

    .main-heading p {
        font-size: 15px;
    }

    .service-info {
        padding: 15px;
    }

    .info-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .service-button {
        font-size: 13px;
        padding: 6px 10px;
    }

        .service-button img {
            width: 20px;
            height: 20px;
        }

    .main-heading h1 {
        font-size: 24px;
    }

    .main-heading p {
        font-size: 13px;
    }

    .info-text h2 {
        font-size: 20px;
    }

    .service-info {
        padding: 10px;
    }

    .info-text ul {
        max-width: 100%;
        margin-left: 0;
        padding-left: 20px;
    }
}

/* PRODUCT SECTION WRAPPER */
.product {
    padding: 60px 10%;
    background-color: #f5fbfa;
}

    .product h1 {
        text-align: center;
        font-size: 36px;
        color: #102a43;
        margin-bottom: 10px;
    }

    .product > p {
        text-align: center;
        font-size: 18px;
        color: #5c7080;
        margin-bottom: 60px;
    }

    .product .row {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

.product-col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

    .product-col:nth-child(even) {
        flex-direction: row-reverse;
    }

.product-info {
    flex-basis: calc(50% - 20px);
    max-width: 500px;
    flex-grow: 1;
    text-align: left;
}

    .product-info h3 {
        font-size: 24px;
        margin-bottom: 12px;
        color: #1c2e4a;
    }

    .product-info p {
        font-size: 16px;
        color: #4a4a4a;
        line-height: 1.5;
    }


/*----IMAGE SIDE------*/
.product-col img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    flex-basis: calc(50% - 20px);
    flex-grow: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-col,
    .product-col:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .product-info {
        max-width: 100%;
        flex-basis: auto;
    }

        .product-info h3,
        .product-info p {
            text-align: center;
            max-width: 100%;
        }

    .product-col img {
        max-width: 80%;
        flex-basis: auto;
    }

    .product > p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .product {
        padding: 40px 5%;
    }

        .product h1 {
            font-size: 30px;
        }
}



/* Image settings */
img {
    max-inline-size: 100%;
    height: auto;
}


/* Main content */
.main1 {
    grid-column: main;
    padding: 1.25rem;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
}

/* Each figure item */
.gallery figure {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    container-type: inline-size;
}

/* Images in gallery */
.gallery img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
    transition: scale 1s ease-in-out;
}

/* Zoom on hover */
.gallery figure:hover img {
    scale: 1.125;
}

/* Figcaption overlay */
.gallery figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;
    padding: 3em 15% 1em 1em;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.75));
    display: none;
}

/* Show caption when container width > 20rem */
@container (width > 20rem) {
    .gallery figcaption {
        display: block;
    }
}

/* Caption title */
.gallery figcaption h3 {
    font-size: 1.0625rem;
}

/* Caption paragraph */
.gallery figcaption p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Responsive figure sizing on larger screens */
@media (width > 600px) {
    .gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery figure:nth-child(4n+1) {
        grid-row: span 2;
    }

    .gallery figure:nth-child(4n+2) {
        grid-column: span 2;
    }
}


/* Modal container hidden by default */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

    /* Modal image styling */
    .image-modal .modal-content {
        max-width: 660px;
        max-height: 660px;
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    }

    /* Close button */
    .image-modal .close-btn {
        position: absolute;
        top: 20px;
        right: 35px;
        font-size: 40px;
        color: #fff;
        cursor: pointer;
        z-index: 1000;
    }


/*----career form----*/

form {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-family: sans-serif;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input, textarea, button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    background-color: #0078d4;
    color: white;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 20px;
    width: auto;
    border-radius: 4px;
}

#form-message-success,
#form-message-error {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

    #form-message-success.show,
    #form-message-error.show {
        opacity: 1;
    }




/* Responsive Adjustments */
@media only screen and (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

 
}

 Responsive adjustments for up to 900px 
@media (max-width: 900px) {
    .buttons-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-button {
        flex-grow: 1;
        min-width: unset;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

        .info-card img {
            width: 80%;
            max-width: 350px;
            margin-bottom: 15px;
        }

    .info-text {
        text-align: center;
        min-width: unset;
    }

        .info-text ul {
            text-align: left;
            margin-left: auto;
            margin-right: auto;
            max-width: 90%;
        }


/*---Product section responsive fix--- */ 
    .product-col,
    .product-col:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .product-info {
        max-width: 100%;
        flex-basis: auto;
    }

        .product-info h3,
        .product-info p {
            text-align: center;
            max-width: 100%;
        }

    .product-col img {
        max-width: 80%;
        flex-basis: auto;
    }

    .product > p {
        font-size: 16px;
        margin-bottom: 30px;
    }
