:root {
    --primary-color: #76e4e7;
    --secondary-color: #ef3e3e;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --grey-color: #6c757d;
}

body {
    font-family: 'Inter', sans-serif;
    /* Example font */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* --- Helper Classes --- */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
}

.btn-primary-custom:hover {
    background-color: #62c4c7;
    border-color: #62c4c7;
    color: var(--dark-color);
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
    font-weight: 600;
}

.btn-secondary-custom:hover {
    background-color: #d93636;
    border-color: #d93636;
    color: var(--light-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.section-padding {
    padding: 60px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    background: url('img/hero.png') no-repeat center center;
    background-size: cover;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero::before {
    /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

#hero .container {
    position: relative;
    /* Ensure content is above overlay */
    z-index: 2;
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#hero p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

#hero .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    /* Rounded buttons */
    transition: transform 0.2s ease;
}

#hero .btn:hover {
    transform: translateY(-3px);
}

.mini-stats {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* Space between stats */
    flex-wrap: wrap;
    /* Wrap on smaller screens */
}

.mini-stats div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.mini-stats i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--light-color);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* --- Product Categories --- */
#product-categories .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Needed for hover effect */
    background-color: var(--light-color);
    border-radius: 15px;
    /* Rounded corners */
}

#product-categories .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#product-categories .card-img-top {
    height: 150px;
    object-fit: cover;
}

#product-categories .card-body {
    text-align: center;
}

#product-categories .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#product-categories .card-text {
    /* Hidden description */
    display: none;
    /* Initially hidden */
    font-size: 0.9rem;
    color: var(--grey-color);
}

#product-categories .card:hover .card-text {
    display: block;
    /* Show on hover */
}


/* --- Why Sparsh Pro --- */
#why-sparsh .feature-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

#why-sparsh .feature-item:hover {
    transform: scale(1.05);
}

#why-sparsh .feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    /* Allows transform */
    transition: transform 0.3s ease;
}

#why-sparsh .feature-item:hover .feature-icon {
    transform: rotateY(180deg);
    /* Example micro-animation */
}

#why-sparsh h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- Infrastructure Section --- */
#infrastructure {
    background-color: var(--light-color);
    /* Light background */
}

#infrastructure .img-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;  /* Space between the items */
    gap: 1rem; /* Adds space between items */
}

#infrastructure .img-grid .col-md-3 {
    display: flex;
    flex-direction: column;  /* Stack images and text vertically */
    justify-content: center;  /* Center the content vertically */
    align-items: center;  /* Center the content horizontally */
}

#infrastructure .img-grid img {
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;  /* Ensures responsiveness */
    max-width: 150px;  /* Adjust to your preferred size */
    height: auto; /* Maintain aspect ratio */
}

#infrastructure .img-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#infrastructure .caption {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-top: 0.5rem;  /* Adjust spacing */
    font-weight: 600;
}

#infrastructure .metrics {
    background-color: rgba(255, 255, 255, 0.8);
    /* Slight white background */
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    /* Add backdrop-filter for glassmorphism if desired */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    #infrastructure .img-grid .col-md-3 {
        flex-basis: 45%;  /* Adjust column width for medium screens */
    }

    #infrastructure .img-grid img {
        max-width: 120px;  /* Smaller size on smaller screens */
    }

    #infrastructure .caption {
        font-size: 0.8rem;  /* Adjust caption size for smaller screens */
    }
}

@media (max-width: 576px) {
    #infrastructure .img-grid .col-md-3 {
        flex-basis: 100%;  /* Full width on small screens */
    }

    #infrastructure .img-grid img {
        max-width: 100px;  /* Even smaller images for very small screens */
    }

    #infrastructure .caption {
        font-size: 0.75rem;  /* Further reduce caption size */
    }
}

/* Parallax effect would require JS */

/* --- Distributor Invitation --- */
#distributor-invite {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
}

#distributor-invite h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

#distributor-invite p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

#distributor-invite .btn-light {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

.bonus-content {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.bonus-content span {
    opacity: 0.9;
}

.bonus-content i {
    margin-right: 0.5rem;
}

/* --- Featured Products --- */
#featured-products .product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
    /* For badge positioning */
    background-color: #fff;
}

#featured-products .product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#featured-products .product-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

#featured-products .product-card .card-body {
    padding: 1rem;
}

#featured-products .product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#featured-products .product-card .hover-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#featured-products .product-card:hover .hover-buttons {
    opacity: 1;
    transform: translateY(0);
}

#featured-products .product-card .btn-sm {
    margin: 0 0.3rem;
    font-size: 0.8rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1;
}

/* --- Testimonials --- */
#testimonials {
    background-color: var(--light-color);
}

#testimonials .carousel-item {
    padding: 40px 60px;
    /* Add padding inside item */
    text-align: center;
}

#testimonials .testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 250px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#testimonials .client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--primary-color);
}

#testimonials .stars {
    color: #ffc107;
    /* Yellow stars */
    margin-bottom: 1rem;
}

#testimonials .quote {
    font-style: italic;
    color: var(--grey-color);
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Allow quote to take space */
}

#testimonials .client-name {
    font-weight: 600;
    margin-bottom: 0;
}

#testimonials .client-location {
    font-size: 0.9rem;
    color: var(--grey-color);
}

/* Customize Bootstrap Carousel Arrows/Indicators if needed */
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
    background-color: var(--dark-color);
    /* Darker arrows */
    border-radius: 50%;
    padding: 15px;
}

/* --- Map & Reach --- */
#reach {
    /* Background or styling for the map section */
}

#map-placeholder {
    height: 400px;
    background-color: #e9ecef;
    /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-color);
    font-style: italic;
    border-radius: 10px;
    margin-bottom: 2rem;
    /* Space before stats */
}

.reach-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.reach-stats div {
    flex-basis: 150px;
    /* Ensure items don't get too squished */
}

.reach-stats i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reach-stats h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.reach-stats p {
    color: var(--grey-color);
    font-size: 0.9rem;
}

/* --- Quick Inquiry Bar --- */
#quick-inquiry {
    background-color: var(--light-color);
    padding: 30px 0;
    /* Use 'sticky-top' class in HTML or custom CSS for sticky behaviour */
    /* position: sticky; top: 0; z-index: 1000; */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    /* Shadow if sticky */
}

#quick-inquiry .form-label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

#quick-inquiry .form-control,
#quick-inquiry .form-select {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* --- Sticky WhatsApp Button --- */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1030;
    /* Above most elements */
}

.whatsapp-sticky .btn-whatsapp {
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    animation: pulse 2s infinite;
}

.whatsapp-sticky .btn-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
    /* Stop pulsing on hover */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 0;
}

footer ul li a:hover {
    color: var(--primary-color);
}

footer .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.2s ease;
}

footer .social-icons a:hover {
    color: var(--primary-color);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

footer .contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero p.lead {
        font-size: 1.1rem;
    }

    .mini-stats {
        gap: 1rem;
        justify-content: space-around;
    }

    .reach-stats {
        justify-content: center;
    }

    #quick-inquiry .row>div {
        margin-bottom: 1rem;
    }

    /* Stack form fields */
    #quick-inquiry .text-end {
        text-align: center !important;
    }

    /* Center submit button */
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-padding-sm {
        padding: 30px 0;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p.lead {
        font-size: 1rem;
    }

    #hero .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .mini-stats div {
        font-size: 0.8rem;
    }

    #why-sparsh .feature-item {
        padding: 15px;
    }

    #testimonials .carousel-item {
        padding: 20px 15px;
    }

    #testimonials .testimonial-card {
        padding: 20px;
        min-height: auto;
    }

    footer .col-md-3 {
        margin-bottom: 30px;
    }

    /* Stack footer columns */
    .whatsapp-sticky {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-sticky .btn-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


/* Add to your existing style.css */

/* --- Product Detail Page Specific Styles --- */

#product-detail .product-image-thumbnails img {
    cursor: pointer;
    border: 2px solid transparent; /* Base border */
    transition: border-color 0.3s ease;
     max-width: 80px; /* Adjust size as needed */
     height: auto;
     padding: 2px;
}

#product-detail .product-image-thumbnails img:hover,
#product-detail .product-image-thumbnails img.active-thumb {
     border-color: var(--primary-color); /* Highlight active/hovered thumb */
}

#product-detail .list-unstyled i { /* Style for feature list icons */
    width: 20px; /* Align text nicely */
}

/* Ensure related product cards match the featured ones */
#related-products .product-card {
     border: 1px solid #eee;
     border-radius: 15px;
     overflow: hidden;
     transition: box-shadow 0.3s ease;
     position: relative; 
     background-color: #fff;
}

#related-products .product-card:hover {
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#related-products .product-card img {
    height: 180px; /* Adjust if needed */
    object-fit: cover;
    width: 100%;
}

#related-products .product-card .card-body {
    padding: 1rem;
}

#related-products .product-card .card-title {
    font-weight: 600;
    font-size: 1rem; /* Slightly smaller title for related items */
}

#related-products .product-card .hover-buttons {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background-color: rgba(255, 255, 255, 0.95);
     padding: 0.8rem; /* Slightly less padding */
     text-align: center;
     opacity: 0;
     transform: translateY(100%);
     transition: opacity 0.3s ease, transform 0.3s ease;
}

#related-products .product-card:hover .hover-buttons {
    opacity: 1;
    transform: translateY(0);
}

#related-products .product-card .btn-sm {
    margin: 0 0.3rem;
    font-size: 0.8rem;
}

/* Adjust inquiry form spacing if needed */
#quick-inquiry-product .form-label {
     font-weight: 600;
     margin-bottom: 0.3rem;
     font-size: 0.9rem;
}

#quick-inquiry-product .form-control,
#quick-inquiry-product .form-select {
    border-radius: 8px;
    font-size: 0.9rem;
}


/* Add to your existing style.css if modifications are needed */

#all-products-grid .product-card {
    /* Inherits styles from .product-card defined earlier */
    /* You can override specific properties here if needed */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Optional: Subtle hover effect */
}

#all-products-grid .product-card:hover {
     transform: translateY(-5px); /* Lift card slightly on hover */
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Enhance shadow */
}

#all-products-grid .card-img-top {
    /* Adjust height if needed for consistency */
     height: 200px; 
     object-fit: cover; 
}

#all-products-grid .card-body {
     padding: 1rem; /* Ensure consistent padding */
}

#all-products-grid .card-title {
     font-size: 1rem; /* Adjust title size if desired */
     font-weight: 600;
     margin-bottom: 0.5rem; 
}

#all-products-grid .card-text {
    font-size: 0.85rem; /* Adjust description font size */
    margin-bottom: 1rem; /* Space before buttons */
}

/* Ensure buttons are styled correctly (uses existing custom classes) */
/* No new CSS needed if btn-sm, btn-outline-dark, btn-secondary-custom are defined */
/* Add to your existing style.css if further customization is desired */

#why-us-page .feature-item {
    /* Inherits base styles */
    /* The HTML above adds bg-light, padding, shadow, rounded corners */
    /* You could add specific borders or modify hover effects here */
     transition: transform 0.3s ease, box-shadow 0.3s ease; /* Keep or modify hover */
}

#why-us-page .feature-item:hover {
     /* Keep existing hover or modify */
    transform: translateY(-5px); /* Example: Slight lift on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Example: Enhanced shadow */
}

#why-us-page .feature-icon {
    color: var(--primary-color); /* Ensure icon color consistency */
    /* Icons size/margin adjusted in HTML using fa-2x and mb-3 */
}

/* --- Contact Us Page Styles --- */

#contact-page .section-padding { /* Adjust padding if needed */
    padding: 60px 0;
}

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/contact-hero-bg.jpg') no-repeat center center; /* Add a relevant background image */
    background-size: cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px; /* Space below hero */
}

.contact-hero h1 {
    font-weight: 700;
}

.contact-info-item {
    display: flex;
    align-items: flex-start; /* Align icon with top of text */
    margin-bottom: 1.5rem; /* Space between items */
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(5px); /* Slight shift on hover */
}

.contact-info-icon {
    font-size: 1.5rem; /* Icon size */
    color: var(--primary-color); /* Use primary color from root */
    margin-right: 1rem; /* Space between icon and text */
    width: 30px; /* Fixed width for alignment */
    text-align: center; /* Center icon in its container */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.contact-info-item h5 {
    font-weight: 600;
    margin-bottom: 0.25rem; /* Smaller margin below heading */
    color: var(--dark-color);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--grey-color); /* Use grey color from root */
    text-decoration: none;
    line-height: 1.6;
}

.contact-info-item a:hover {
    color: var(--secondary-color); /* Use secondary color on hover */
    text-decoration: underline;
}

.contact-form-section {
    background-color: #f8f9fa; /* Light background for form container */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form-section .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form-section .form-control {
    border-radius: 8px; /* Slightly rounded corners */
    padding: 0.75rem 1rem; /* Comfortable padding */
}

.contact-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(118, 228, 231, 0.25); /* Use primary color for focus */
}

.contact-form-section .btn-secondary-custom { /* Style submit button */
    padding: 0.8rem 2rem; /* Match other primary buttons */
    font-size: 1rem;
}

#contact-map {
    height: 450px; /* Adjust height as needed */
    width: 100%;
    border-radius: 15px; /* Rounded corners */
    border: 1px solid #ddd; /* Subtle border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Slight shadow */
    margin-top: 2rem; /* Space above map if placed below form */
}

/* --- Responsive Adjustments for Contact Page --- */
@media (max-width: 991.98px) {
    .contact-form-section {
        margin-top: 2rem; /* Add space when columns stack */
    }
    .contact-hero {
        padding: 60px 0;
    }
    .contact-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
     #contact-page .section-padding {
        padding: 40px 0;
    }
    .contact-hero {
        padding: 40px 0;
    }
     .contact-hero h1 {
        font-size: 2rem;
    }
     .contact-hero p.lead {
        font-size: 1rem;
    }
     .contact-form-section {
        padding: 30px;
    }
    #contact-map {
        height: 350px; /* Adjust map height for smaller screens */
    }
}