/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px; /* Adjust this value to match the height of your logo */
    margin-right: 10px; /* Space between logo and text */
}

.logo h1 {
    color: #007bff;
    font-size: 1.5rem;
    margin: 0; /* Remove default margin */
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #007bff;
}

.mobile-menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content Styles */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.webp') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.features {
    padding: 4rem 0;
    background-color: #fff;
}

.features .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex: 0 0 calc(33.333% - 2rem);
    margin-bottom: 2rem;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.about-preview {
    padding: 4rem 0;
    background-color: #e9ecef;
    text-align: center;
}

.page-header {
    background-color: #007bff;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

.content-section {
    padding: 3rem 0;
    background-color: #fff;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text h2 {
    margin: 1.5rem 0 1rem;
    color: #007bff;
}

.content-text ul {
    list-style-type: none;
    padding-left: 1rem;
}

.content-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-text ul li:before {
    content: "✓";
    color: #007bff;
    position: absolute;
    left: 0;
}

.products {
    padding: 3rem 0;
    background-color: #fff;
}

.product-category {
    margin-bottom: 3rem;
}

.product-category h2 {
    margin-bottom: 1.5rem;
    color: #007bff;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    color: #007bff;
}

.product-card p {
    padding: 0 1rem 1rem;
}

/* Process Categories */
.process-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-category {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* For positioning the magnifier icon */
}

.process-category h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.process-category ul {
    list-style-position: inside;
    padding-left: 0;
}

.process-category li {
    margin-bottom: 0.5rem;
}

/* Image Zoom Effect */
.category-image {
    width: 100%;
    height: 200px; /* Set a fixed height for all images */
    object-fit: cover; /* Ensure images cover the area without distortion */
    display: block;
    margin-top: 1rem;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    /* Prevent image download */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.category-image:hover {
    transform: scale(1.1); /* Zoom in on hover */
}

/* Modal for image zoom */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black with opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.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;
}

.contact-content {
    padding: 3rem 0;
    background-color: #fff;
}

.contact-content .container {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.contact-info h2 {
    color: #007bff;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h2 {
    color: #007bff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.map {
    padding: 3rem 0;
    background-color: #e9ecef;
}

.map h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 1rem;
}

.map-placeholder {
    background-color: #ddd;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav ul.show {
        display: flex;
    }

    .main-nav ul li {
        margin: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-icon {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features .container {
        flex-direction: column;
    }

    .feature {
        flex: 0 0 100%;
    }

    .contact-content .container {
        flex-direction: column;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .process-categories {
        grid-template-columns: 1fr;
    }
}