/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

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

.logo img {
    height: 90px; /* Adjust based on your logo's aspect ratio */
    width: auto;
}
/* Ensure logo is correctly sized when displaying the original if it's the black one */
.logo {
    display: flex;
    align-items: center;
}
.logo img[alt*="Logo"] {
    /* If your original logo is black, consider converting it to white or using a CSS filter if background is dark */
    /* filter: invert(100%); for dark backgrounds */
}


header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff; /* A nice blue for hover effect */
}

/* Hero Section */
.hero {
    background: #222; /* Dark background to make white logo pop if used */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Ensures a good height */
    box-sizing: border-box;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px; /* <--- UNCOMMENT THIS LINE! It's crucial for centering a block */
    margin-left: auto; /* Keep these lines */
    margin-right: auto; /* Keep these lines */
    text-align: center; /* <--- ADD THIS LINE! It centers the text within the paragraph */
}

.btn {
    display: inline-block;
    background-color: #007bff; /* Primary button color */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Section Styling */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-of-type(even) { /* Applies to About Us, Contact */
    background-color: #f0f0f0;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: relative;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

/* About Us Section */
.about-us p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.service-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: #007bff;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1em;
    color: #555;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.gallery h2,
.gallery p {
    margin-bottom: 20px;
}

.gallery-grid {
    /* REMOVE: grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    /* REMOVE: gap: 25px; */

    display: flex; /* CHANGE TO FLEXBOX */
    flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
    overflow-x: auto; /* Enable horizontal scrolling when content overflows */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS devices */
    padding-bottom: 20px; /* Add some padding for the scrollbar if it appears */
    column-gap: 25px; /* Use column-gap for spacing between flex items */
    margin-top: 50px;
    
    /* Optional: Hide scrollbar but keep functionality for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* For Webkit browsers (Chrome, Safari) */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

/* And modify .gallery-item to have a defined width */
.gallery-item {
    min-width: 300px; /* Set a minimum width for each item */
    flex-shrink: 0; /* Prevent items from shrinking below min-width */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background-color: #fff;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; (if you want item hover effects) */
}

/* The rest of your gallery-item and overlay styles can remain as is */
.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistent rows */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.overlay p {
    font-size: 0.9em;
    line-height: 1.4;
    color: #eee;
    margin: 0;
}

/* Remove or adjust @media query for .gallery-grid if it's no longer necessary
   for horizontal scrolling, as flexbox handles responsiveness differently. */
/* @media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
} */

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.contact .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
}

.contact-info {
    margin-top: 50px;
    text-align: center;
    font-size: 1.1em;
    color: #555;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

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

    h2 {
        font-size: 2em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .contact form {
        padding: 20px;
    }
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top (higher than header) */
    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 w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    -webkit-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s;
}

/* Lightbox Content (Image container) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Max width of the image */
    max-height: 90%; /* Max height of the image */
    text-align: center; /* Center the image if it's smaller than max-width */
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the whole image is visible within its container */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center the image itself if it doesn't fill max-width */
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001; /* Ensure close button is clickable */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Fading Animation for modal */
@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
