/* General Styles */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif; /* Updated body font */
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
    padding-top: 70px; /* Add padding to body to prevent content from hiding behind fixed header */
}

*, *:before, *:after {
    box-sizing: inherit;
}

h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Updated heading font */
    font-weight: 700; /* Ensure bold weight is used */
    color: #0056b3; /* Example primary color */
    text-align: center;
    margin-bottom: 1em;
}

section {
    padding: 60px 20px;
    overflow: hidden; /* Prevent margin collapse and contain floats */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed; /* Make header sticky */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 70px; /* Fixed header height */
}

.logo-link {
    display: inline-block; /* Ensure link wraps image */
}

.logo-img {
    height: 50px; /* Adjust logo height */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align logo nicely */
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 25px; /* Increased spacing */
}

.nav-menu li a {
    color: #333;
    font-weight: bold;
    padding: 5px 0; /* Add some padding for easier clicking */
    display: block;
}

.nav-menu li a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Active state for hamburger icon (X shape) */
.menu-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}

.menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* Main Slider */
.main-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px); /* Full viewport height minus header */
    overflow: hidden;
    padding: 0; /* Remove padding for full screen */
    /* margin-top: 70px; /* Removed as body padding handles this */
}

.main-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-slider .slide.active {
    opacity: 1;
}

.main-slider .prev-main, .main-slider .next-main {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
}

.main-slider .prev-main { left: 15px; }
.main-slider .next-main { right: 15px; }

/* Vendor Icons */
.vendor-icons {
    background-color: #f8f9fa;
}

.vendor-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    max-width: 1200px;
    margin: 0 auto;
}

.vendor {
    text-align: center;
}

.vendor img {
    max-width: 150px; /* Adjust size as needed */
    height: 80px; /* Maintain aspect ratio */
    margin-bottom: 10px;
    /* background-color: #eee; /* Placeholder */
    /* border: 1px solid #ccc; */
    object-fit: contain;
    padding: 5px;
    background-color: #c6cccc;
    
}

.vendor h3 {
    margin-top: 0;
    font-size: 1.2em;
}

/* Product Sliders */
.product-sliders {
    background-color: #ffffff;
}

.vendor-product-section {
    margin-bottom: 40px;
}

.vendor-product-section h3 {
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px; /* Align with general padding */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Hide overflowing product items */
}

.product-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px; /* Space between product items */
    padding: 10px 0; /* Add some vertical padding */
}

.product-item {
    min-width: 200px; /* Adjust as needed */
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Hover effect */
}

.product-item:hover {
    transform: translateY(-5px); /* Slightly lift the item */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Add a more prominent shadow */
}

.product-item img {
    width: 150px; /* Fixed width */
    height: 150px; /* Fixed height */
    object-fit: contain; /* Scale image while preserving aspect ratio */
    margin: 0 auto 10px auto;
    /* background-color: #eee; /* Placeholder */
}

.product-item p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.prev-product, .next-product {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    z-index: 100;
}

.prev-product { left: 5px; }
.next-product { right: 5px; }

/* Contact Info */
.contact-info {
    background-color: #e9ecef;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.contact-details > div {
    flex: 1;
    min-width: 200px;
}

.contact-details i {
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 10px;
}

.map-social {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.google-map {
    flex: 2; /* Map takes more space */
    min-width: 300px;
    height: 450px; /* Default height */
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc; /* Placeholder border */
}

.social-media {
    flex: 1; /* Social media takes less space */
    min-width: 200px;
    text-align: center;
}

.social-media h3 {
    margin-bottom: 20px;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.8em;
    color: #0056b3;
}

.social-media a:hover {
    color: #003d80;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 0; /* Remove potential gap */
}

/* --- Responsive Design --- */

/* Tablet and Smaller Desktops (e.g., <= 992px) */
@media (max-width: 992px) {
    nav {
        padding: 10px 15px;
    }
    .nav-menu li {
        margin-left: 15px;
    }
    section {
        padding: 50px 15px;
    }
    .vendor-container {
        gap: 30px;
    }
    .vendor-product-section h3 {
        padding-left: 15px;
    }
    .product-item {
        min-width: 180px; /* Slightly smaller items */
    }
    .product-item img {
        width: 130px;
        height: 130px;
    }
    .contact-details {
        max-width: 800px;
    }
    .map-social {
        gap: 30px;
    }
    .google-map {
        height: 400px;
    }
}

/* Mobile Devices (e.g., <= 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust body padding for smaller header */
    }
    nav {
        height: 60px; /* Smaller header height */
        padding: 5px 15px;
    }
    .logo-img {
        height: 40px; /* Smaller logo */
    }
    .menu-toggle {
        display: block; /* Show hamburger button */
        order: 1; /* Move button to the right visually if needed, adjust flex order */
    }
    .nav-menu {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 60px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex; /* Show menu when active */
    }
    .nav-menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee; /* Separator lines */
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu li a {
        padding: 12px 0;
        width: 100%;
    }

    /* Adjust main content margin-top based on dynamic header height */
    .main-slider {
        height: calc(100vh - 60px); /* Adjust slider height */
    }

    /* Vendor Icons */
    .vendor-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .vendor img {
        max-width: 120px;
        height: 65px;
    }

    /* Product Sliders */
    .vendor-product-section h3 {
        text-align: center;
        padding-left: 0;
    }
    .product-item {
        min-width: 150px; /* Even smaller items */
        padding: 10px;
    }
    .product-item img {
        width: 100px;
        height: 100px;
    }
    .prev-product, .next-product {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Contact Section */
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .map-social {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .google-map {
        width: 100%;
        max-width: 500px; /* Limit map width */
        height: 300px;
    }
    .social-media {
        width: 100%;
        max-width: 300px;
    }
}

/* Smaller Mobile Devices (e.g., <= 480px) */
@media (max-width: 480px) {
    section {
        padding: 40px 10px;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.1em;
    }
    .vendor img {
        max-width: 100px;
        height: 55px;
    }
    .product-item {
        min-width: 130px; /* Adjust for very small screens */
    }
    .product-item img {
        width: 80px;
        height: 80px;
    }
    .contact-details i {
        font-size: 1.8em;
    }
    .social-media a {
        font-size: 1.6em;
        margin: 0 8px;
    }
    footer p {
        font-size: 0.9em;
    }
}

/* --- Projects Slider Section --- */
.projects-slider-section {
    background-color: #f8f9fa; /* Alternate background color */
    padding: 60px 20px;
}

/* Reusing .product-item styles for .project-item */
/* No additional specific styles needed for .project-item unless desired */

/* Responsive adjustments for projects section if needed */
@media (max-width: 768px) {
    .projects-slider-section {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .projects-slider-section {
        padding: 40px 10px;
    }
}

/* Main Slider Image Styling */
.main-slider .slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area, maintain aspect ratio */
    object-position: center; /* Center the image within the slide */
}




/* Vendor Icon Hover Effect */
.vendor {
    transition: transform 0.3s ease-in-out;
}

.vendor:hover {
    transform: scale(1.05); /* Slightly enlarge the vendor block on hover */
}




/* Project Slider Center Focus Effect */
.projects-slider .product-item {
    transition: transform 0.5s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease-in-out;
    transform: scale(0.9); /* Default scale for non-center items */
    opacity: 0.7; /* Make non-center items slightly faded */
}

.projects-slider .product-item.center-focus {
    transform: scale(1.15); /* Scale up the centered item (adjust as needed) */
    opacity: 1.0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Enhance shadow for focused item */
    z-index: 10; /* Ensure centered item is on top if overlapping occurs */
}

/* Override general hover effect for project slider if needed, or combine */
.projects-slider .product-item:hover {
    /* Keep basic hover or enhance specifically for project slider */
    transform: scale(1.15) translateY(-5px); /* Combine focus scale with hover lift */
    opacity: 1.0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Ensure container allows for scaling */
.projects-slider .product-slider {
    padding-top: 20px; /* Add padding to prevent scaled item clipping */
    padding-bottom: 20px;
}

