/* General Styles */

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2 {
    font-family: "Assistant", serif;
    font-size: 60px;
    margin: 0;
}

a {
    text-decoration: none;
    color: #007bff;
}
p {
    font-family: "Source Sans 3", serif;
}

a:hover {
    text-decoration: underline;
}

/* Hero Section */


.service-hero h1 {
    font-size: 62rem;
    margin-bottom: 10px;
}

.service-hero .service-subtitle {
    font-size: 1.2rem;
}

/* Section Styles */
.service-section {
    background: white;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 25px;
}

.section-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-left: 10px;
}

/* Distribution Info */
.distribution-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.info-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    flex: 1 1 200px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #333;
}

.info-card p {
    
    color: #666;
    font-size: 0.9rem;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.feature-card p {
    font-family: "Source Sans 3", serif;

    color: #666;
    font-size: 0.9rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Back Home Button */
.back-home-container {
    text-align: center;
    margin: 20px 0;
}

.back-home-btn{
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.back-home-btn i {
    margin-right: 10px;
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: #ff1a1a;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 20px); /* Adjust width based on the number of items per row */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: "Source Sans 3", serif;
    background-color: #fff;
}

.product-item img {
    width: 100px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-details {
    font-size: 14px;
    color: #333;
}

.product-details span {
    font-weight: bold;
    font-family: "Assistant", serif;
    font-size: 16px;
    display: block;
    margin: 5px 0;
}

.product-price {
    font-size: 12px;
    font-family: "Source Sans 3", serif;
    color: #777;
}

.product-moq {
    font-size: 12px;
    font-family: "Source Sans 3", serif;
    color: #777;
}
/* Add these styles to your CSS */
.carousel-container {
    position: relative;
    height: 385px;
    display: flex;
    flex-direction: column;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px; /* Matches the gap in the JavaScript */
}

.product-item {
    flex: 0 0 calc(25% - 15px); /* 4 items per row */
    min-width: 280px; /* Minimum item width */
    list-style: none;
    margin: 0;
    background-color: #f3f3f3;
    box-sizing: border-box;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px; /* Space between products and buttons */
    width: 100%;
}

/* Position the buttons */
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Optional hover effect */
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}


.highlight {
    display: inline-block;
    font-family: "Assistant", serif;
    font-size: 21px;
    background-color: #F40404;
    color: #fff; /* White text */
    padding: 5px 10px; /* Padding inside the box */
    border-radius: 7px; /* Rounded corners */
    font-weight: bold;
    margin-left: 0px; /* Space between the text and the box */
    margin-top: 0;
}

/* Ensure images are responsive */
.product-item img {
    width: 80%;
    height: 250px;
    object-fit: cover;
}
/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #f4f4f4;
    max-width: 85%;
    max-height: 90%;
    width: 100%; 
    height: auto; 
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    animation: modalFade 0.3s ease-out;
}


@keyframes modalFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.modal-content img {
    width: 80%; /* Full width for content alignment */
    max-height: 500px; /* Ensures the modal remains balanced */
    margin-bottom: 20px;
    border-radius: 10px;
}

.modal-details {
    text-align: center;
}

.modal-details h3 {
    margin-bottom: 5px;
    font-family: "Assistant", sans-serif;
}

.modal-details p {
    margin: 8px 0;
    color: #666;
}
.left-column, .center-column, .right-column {
    flex: 1; /* Equal width for all columns */
}
/* Left Column: Product Image and Logo */
.left-column {
    display: flex;
    flex: 2;
    height: 600px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

#modalImage {
    width: 370px;
    height: 550px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #aaa;
}

.nirvan-logo {
    width: 10px;
    max-width: 140px;
    height: auto;
    padding: 2px;
    object-fit: contain; /* Scale the logo to fit within the container */
    border-radius: 8px;
}

/* Center Column: Product Details */
.center-column {
    display: flex;
    flex: 2;
    height: auto;
    flex-direction: column;
    position: relative;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.modal-details h1 {
    font-size: 30px;
    font-family: "Assistant", serif;
    color: #333;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 20px;
    text-align: left;
}

.modal-details h2 {
    font-size: 20px;
    font-family: "Assistant", serif;
    color: #333;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 20px;
    text-align: left;
}

.modal-details h3 {
    font-size: 17px;
    font-family: "Source Sans 3", serif;
    color: #333;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 20px;
    text-align: left;
}

.modal-details p {
    font-size: 1em;
    margin: 5px 0;
    color: #555;
}

.available-at {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to the left */
    gap: 10px; /* Spacing between logo and text */
    margin-top: 0px; /* Adjust spacing from content above */
    margin-left: 20px; /* Align with "MOQ" and "Price" */
    text-align: left; /* Ensure text aligns to the left */
}

.indiamart-logo {
    max-width:40px; /* Reduce size if needed */
    height: 40px; /* Ensure consistent aspect ratio */
    border-radius: 50%; /* Rounded corners */
    background: #3b82f6;
    display: inline-block;
}

/* Right Column: Extra Details */
.right-column {
    display: flex;
    flex: 2;
    height: auto;
    overflow: visible; /* Allow content overflow for buttons */
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #cfcfcf;
    border-radius: 10px;
    padding: 15px;
    padding-bottom: 60px; /* Add padding to ensure space for buttons */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

/* Extra Details */
.extra-details {
    display: flex;
    font-family: "Source Sans 3", serif;
    font-size: 20px;
    flex-direction: column;
    gap: 5px;
}

.extra-details p {
    font-size: 20px;
    font-family: "Source Sans 3", serif;
    color: #444;
    margin: 0;
}

/* Bottom Buttons */
.bottom-buttons {
    position: absolute; /* Positioned relative to the right column */
    bottom: -240px; /* Adjusted to move higher */
    left: 10px; /* Slight padding from the left edge */
    width: calc(100% - 20px); /* Ensure buttons stay within bounds */
    display: flex; /* Horizontal alignment */
    justify-content: space-between; /* Space out buttons */
    gap: 10px; /* Add spacing between buttons */
}

/* Buttons: General Styling */
.contact-button, .whatsapp-button {
    flex: none;
    padding: 12px 15px; /* Slightly increased padding for better appearance */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.386); /* Add a subtle shadow for depth */
}

/* Contact Button */
.contact-button {
    background-color: #F40404;
        color: #fff;
        width: 300px;
        height: 60px;
        border: none;
        padding: 15px 28px;
        font-size: 18px;
        font-size: bold;
        border-radius: 10px;
}

/* WhatsApp Icon Link */
.whatsapp-link {
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    text-decoration: none;
    margin-left: 20px;
}

/* WhatsApp Icon */
.whatsapp-link img {
    max-width: 50px; /* Ensure the icon size is consistent */
    max-height: 50px;
    margin-top: 20px;
}
/* Hide mobile-specific text by default */
.left-column .mobile-text {
    display: none; /* Hidden on desktop */
}
.center-column {
    display: block; /* Visible by default (desktop view) */
}

.mobile-details {
    display: none;
}
.extrainfo {
    position: absolute;
    bottom: -370px; /* Anchors to the bottom of .center-column */
    left: 0; /* Aligns with the left edge */
    width: 100%; /* Optional: spans the full width of the column */
    text-align: left; /* Adjust text alignment as needed */
    padding: 10px; /* Add padding for spacing */
    font-size: 15px;
    color: #555;
}
.extrainfo p{
    font-size: 15px;
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-float-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-emoji {
    font-size: 32px;
}

/* Responsive Adjustments */
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-hero {
        padding: 30px 15px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero .service-subtitle {
        font-size: 1rem;
    }

    .product-categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-item {
        flex: 0 0 calc(33.33% - 10px); /* Adjust width for 3 items per row */
        min-width: 200px;
    }
}

/* Mobile Responsive View */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }

    .center-column {
        display: none; /* Hide the center column on mobile */
    }
        .desktop-only-info {
            display: none !important;
        }
    /* General Styles */
    body {
        font-size: 12px;
    }

    /* Hero Section */
    .service-hero h1 {
        font-size: 1.8rem;
    }

    .service-hero .service-subtitle {
        font-size: 1rem;
    }

    /* Section Styles */
    .service-section {
        margin: 10px;
        padding: 15px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header i {
        font-size: 1.2rem;
    }



    .feature-card {
        padding: 15px;
    }

    .feature-card i {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    /* Back Home Button */
    .back-home-container {
        margin: 15px 0;
    }

    .back-home-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Product List */
    .product-list {
        flex-direction: column;
        align-items: center;
        gap: 100px;
    }

    .product-item {
        width: 100%;
        padding: 10px;
    }

    .product-item img {
        width: 80%;
        height: 150px;
    }
   
    .product-item:not(.first-item) {
        flex: 0 0 calc(33.33% - 10px); /* 3 items per row with gap */
        min-width: 50%; /* Remove fixed minimum width */
        max-width: 100%; /* Prevent overflow */
        padding: 2vw; /* Viewport-relative padding */
    }
    
    .product-item:not(.first-item) img {
        width: 90%;
        height: 35vw; /* Height relative to viewport */
        max-height: 250px; /* Optional maximum limit */
    }

    .product-details span {
        font-size: 14px;
    }

    /* Carousel */
    .carousel-container {
        position: relative;
        height: 285px;
        padding: 0 0px;
    }
    .carousel-track{
        gap: 10px;
    }
    .carousel-buttons {
        margin-top: 15px;
        gap: 15px;
    }
    .carousel-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Highlight */
    .highlight {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Product Modal */
    .modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        max-width: 90%;
        max-height: 90%;
        margin-top: 0;
        border-radius: 10px; /* Optional: for aesthetics */
        box-sizing: border-box; /* Ensure padding is included in the width/height */
    }

    /* Left Column: Image + Logo */
    .left-column {
        justify-content: flex-start;
        flex-direction: row; /* Align items to the left only on mobile */
        gap: 10px; /* Add spacing between items */
    }

    #modalImage {
        width: 130px;
        height: auto;
        object-fit: contain;
        margin-left: 30px;
        margin: 0

    }

    .nirvan-logo {
        display: none;
    }

    .left-column .mobile-text {
        display: block; /* Show text only on mobile */
        font-size: 12px;
        color: #555; /* Optional styling */
    }

    /* Center Column: Product Details */
    .mobile-details {
        display: block; /* Display on mobile */
        font-size: 14px;
        color: #555;
    }

    .mobile-details h1 {
        font-size: 17px;
        margin: 5px 0;
    }

    .mobile-details h2 {
        font-size: 14px;
        margin: 2px 0;
        color: #888;
    }

    .mobile-details h3 {
        font-size: 10px;
        margin: 5px 0 0;
        color: #888;
    }

    .available-at {
        display: flex;
        align-items: center;
        margin: 5px 0;
    }

    .indiamart-logo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    /* Right Column: Buttons and Extra Details */
    .right-column {
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    .extra-details p {
        font-size: 14px;
        margin: 5px 0;
        margin-left: 10px;
    }

    .bottom-buttons {
        position: static; /* Remove absolute positioning */
        display: flex;
        justify-content: space-evenly;
        bottom: -70px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-button {
        width: 190px;
        height: 40px;
        padding: 12px 20px;
        font-size: 10px;
        border-radius: 7px;
    }

    .whatsapp-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .whatsapp-link img {
        width: 30px;
        height: auto;
    }

    /* Close Button */
    .close-modal {
        position: sticky;
        top: 10px;
        right: 10px;
        font-size: 24px;
        color: #fff;
        z-index: 10;
        cursor: pointer;
    }
}


