/* --- Global Styles & Reset --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa; /* Very light grey */
    color: #333;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    width: 90%;
    max-width: 1280px; /* Slightly wider max-width */
    margin: auto;
    overflow: hidden;
    padding: 20px 0; /* Add some vertical padding */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header Styles --- */
header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Stronger shadow */
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    font-size: 2em;
    color: #007bff;
    font-weight: 700;
}
/* Logo Image Styling */
.logo img {
    max-height: 70px; /* Logo ki height control karne ke liye */
    width: auto;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    display: inline-block;
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after { /* Underline effect */
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}
.main-nav a:hover {
    color: #007bff;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons .icon {
    margin-left: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-icons .icon:hover {
    color: #007bff;
}

.search-bar {
    position: relative;
    margin-left: 20px;
}

.search-bar input {
    border: 1px solid #ddd;
    padding: 8px 10px 8px 35px; /* Space for icon */
    border-radius: 20px;
    font-size: 0.9em;
    width: 150px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 200px; /* Expand on focus */
    outline: none;
    border-color: #007bff;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(Machine\ Background\ mp.jpeg) no-repeat center center/cover; /* Updated text */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.4em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-section .btn {
    background: #ffc107;
    color: #333;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px; /* Pill-shaped button */
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero-section .btn:hover {
    background: #e0a800;
    transform: translateY(-3px); /* Lift effect on hover */
}

/* --- Common Section Title --- */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Category Section (Now "Our Services") --- */
.category-section {
    margin-bottom: 50px;
    position: relative; /* <--- YE LINE AB ADD KI HAI */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    text-align: center;
    /* Yahan se grid-related properties ko slider ke liye modify kiya gaya hai */
}

/* Naye CSS Rules for Slider & Arrows */
.category-slider-wrapper {
    position: relative;
    overflow: hidden; /* Products ko hide karne ke liye jo view mein nahi hain */
    padding-bottom: 20px; /* Button ke liye space */
}

.category-slider-inner {
    display: flex; /* Products ko ek line mein rakhne ke liye */
    transition: transform 0.5s ease-in-out; /* Smooth sliding effect ke liye */
    gap: 25px; /* Cards ke beech ka gap */
    /* flex-wrap: nowrap; /* Important: ensures cards don't wrap (agar zarurat pade) */
    padding: 10px; /* Thoda padding arrows ke liye */
}

.category-card { /* Existing category-card mein badlav */
    flex: 0 0 auto; /* Cards ko shrink na hone den */
    width: 180px; /* Har card ki fixed width, aap adjust kar sakte hain */
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-card img {
    max-width: 100%; /* <--- IMAGE SIZE BADI KI GAYI HAI */
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%; /* Make circular */
    /* border: 3px solid #007bff; */ /* Ye line commented/removed hai, jaise aap chahte the */
    padding: 5px;
}
.category-card h3 {
    text-align: center;
    margin: 0;
    font-size: 1.2em;
    color: #555;
    font-weight: 600;
}

/* Arrows Styling */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Thoda transparent background */
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 50; /* Aage dikhne ke liye */
    font-size: 1.5em;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.slider-arrow:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.left {
    left: 0px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.slider-arrow.right {
    right: 0px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* See All Button Styling */
.see-all-btn-container {
    text-align: center; /* Button ko right align karne ke liye */
    margin-top: 20px;
}

.see-all-btn {
    background-color: #007bff; /* Blue color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.see-all-btn:hover {
    background-color: #0056b3;
}


/* --- Products Section (Can be "Our Work" or "Sample Prints") --- */
.products-section {
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For badges */
}
.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545; /* Red for sale */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}
.product-card .badge.new {
    background-color: #28a745; /* Green for new */
}

.product-card img {
    max-width: 100%;
    height: 250px; /* Consistent height */
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.03); /* Slight zoom on hover */
}

.product-card h3 {
    margin: 15px 0 10px;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.product-card .price { /* Can be used for "Starting From" price */
    font-size: 1.6em;
    color: #e67e22; /* Orange for price */
    font-weight: 700;
    margin-bottom: 20px;
}

.product-card button { /* Can be "View Details" or "Get Quote" */
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-card button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* --- Why Choose Us Section --- */
.why-choose-us {
    background-color: #e9ecef;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}
.why-choose-us .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}
.feature-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.95em;
    color: #666;
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: #f0f2f5;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}
.testimonial-card .author {
    font-weight: 600;
    color: #007bff;
}

/* --- Newsletter Section --- */
.newsletter-section {
    background-color: #007bff; /* Primary brand color */
    color: #fff;
    padding: 60px 0;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 50px;
}
.newsletter-section h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
}
.newsletter-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    flex-grow: 1; /* Take available space */
}
.newsletter-form button {
    background-color: #ffc107; /* Yellow button */
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #e0a800;
}


/* --- Footer Styles --- */
footer {
    background: #212529; /* Darker footer background */
    color: #bbb;
    padding: 50px 0 20px;
    font-size: 0.95em;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

footer .footer-col {
    margin-bottom: 20px;
}

footer .footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
footer .footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li {
    margin-bottom: 10px;
}

footer .footer-col a {
    color: #bbb;
    transition: color 0.3s ease;
}

footer .footer-col a:hover {
    color: #007bff;
}

footer .contact-info p {
    margin-bottom: 8px;
}
footer .contact-info a {
    color: #bbb; /* Keep link color consistent */
    text-decoration: none;
    transition: color 0.3s ease;
}
footer .contact-info a:hover {
    color: #007bff;
}
footer .contact-info i {
    margin-right: 8px;
    color: #007bff;
}

footer .social-links {
    margin-top: 20px;
}
footer .social-links a {
    color: #fff;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
footer .social-links a:hover {
    color: #007bff;
}

footer .bottom-bar {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    color: #999;
}

/* --- Scroll to Top Button --- */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* Place at bottom */
    right: 30px; /* Place at right */
    z-index: 99; /* High z-index to be on top */
    font-size: 24px;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%; /* Circular button */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
}


/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        margin-top: 15px;
        width: 100%;
    }
    .main-nav ul {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap; /* Allow nav items to wrap */
    }
    .main-nav li {
        margin: 5px 15px;
    }
    .header-icons {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
    .search-bar {
        margin-left: 0; /* Remove left margin */
        margin-right: 15px; /* Add some right margin */
    }
    .hero-section h2 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .section-title {
        font-size: 2em;
    }
    .product-grid, .category-grid, .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .newsletter-form input, .newsletter-form button {
        width: 80%;
        max-width: 300px;
    }
    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0;
    }
    .hero-section h2 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .category-grid, .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .testimonial-card {
        padding: 20px;
    }
    footer .container {
        grid-template-columns: 1fr; /* Single column footer */
        text-align: center;
    }
    footer .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }
    .main-nav li {
        margin: 5px 8px;
    }
    .main-nav a {
        font-size: 0.8em;
    }
    .search-bar input {
        width: 100px;
        padding-left: 30px;
    }
    .search-bar input:focus {
        width: 150px;
    }
    .hero-section {
        padding: 40px 0;
    }
    .hero-section h2 {
        font-size: 1.8em;
    }
    .product-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
    .product-card img {
        height: 200px;
    }

}

