body {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make sure body takes up full viewport height */
    font-family: Arial, sans-serif;
    text-align: center;
}

h1 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.site-title {
    text-align: center;
    padding: 10px 0;
    background-color: #f5f5f5;
}

    .site-title h1 {
        margin: 0;
        font-size: 2rem;
        color: #333;
    }

main {
    flex-grow: 1; /* Ensures the main content area grows to take up remaining space */
    padding-bottom: 50px; /* Ensure space for the footer */
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background-image: url('images/wood-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Center the menu */
.nav-wrapper {
    display: flex;
    justify-content: center;
}

.navbar ul {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .navbar ul li a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
    }

        .navbar ul li a:hover {
            color: #ccc;
        }


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

    .logo img {
        height: 52px; /* slightly bigger */
        width: auto;
        display: block;
    }

.navbar, .footer {
    background-image: url('images/Background/wood.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #f5f5f5; /* light text for contrast */
}

/* Style for the carousel */
.swiper-container {
    width: 100%;
    height: 400px; /* Adjust height for better fit */
    margin-bottom: 30px;
    position: relative; /* Makes sure all elements are positioned relative to the container */
    overflow: hidden; /* Ensure no content overflows */
}

/* Make the video fill the entire slide */
.swiper-slide video {
    width: 100%; /* Make the video fill the full width of the container */
    height: 100%; /* Make the video fill the full height of the container */
    object-fit: cover; /* Ensure the video fully covers the container while maintaining aspect ratio */
    display: block; /* Remove any space below the video */
}

/* Carousel on medium screens (tablets) */
@media (max-width: 1024px) {
    .swiper-container {
        height: 250px; /* Adjust height for tablets */
    }
}

/* Carousel on smaller screens */
@media (max-width: 768px) {
    .swiper-container {
        height: 200px; /* Adjust for mobile screens */
    }
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove any space below images */
    margin: 0 auto;
}

/* Navigation arrows (next/prev buttons) */
.swiper-button-next,
.swiper-button-prev {
    color: white;
}

/* Style for the pagination dots */
.swiper-pagination {
    position: absolute;
    bottom: 10px; /* Adjust the bottom position as needed */
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

/* Pagination dots */
.swiper-pagination-bullet {
    background-color: white;
    opacity: 0.7; /* Slightly transparent for better appearance */
    width: 12px; /* Adjust dot size */
    height: 12px; /* Adjust dot size */
}

.swiper-pagination-bullet-active {
    background-color: #007BFF; /* Active dot color */
    opacity: 1; /* Full opacity for active dot */
}

#houses {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create two columns */
    gap: 20px; /* Space between each product */
    padding: 20px;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    #houses {
        grid-template-columns: 1fr;
    }
}

.house-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Optional: add rounded corners */
    height: 200px; /* Fixed height for each image */
    width: 100%; /* Make sure it takes up the full width of the column */
}

    .house-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Make sure the image covers the area without stretching */
        transition: transform 0.3s ease; /* Smooth zoom effect */
    }

    /* Hover Effect */
    .house-image-container:hover img {
        transform: scale(1.05); /* Slight zoom effect when hovering */
    }

    /* Text Styling */
    .house-image-container p {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 16px;
        font-weight: bold;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    }

.house {
    cursor: pointer;
}

/* Product Portfolio Section */
#products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* Product Container */
.product {
    position: relative;
    cursor: pointer;
}

/* Rounded edges for the images */
.product-image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Rounded edges */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth hover effect */
}

/* Hover effect for showing text over image */
.product-image-container {
    position: relative;
    overflow: hidden; /* Ensure the text doesn't overflow the rounded corners */
}

    /* Text styling */
    .product-image-container p {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 20px; /* Larger text size */
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        opacity: 0; /* Initially hide the text */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Show the text over the image when hovering */
    .product-image-container:hover p {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px); /* Slight upward movement */
    }

    /* Image zoom effect on hover */
    .product-image-container:hover img {
        transform: scale(1.05); /* Slight zoom effect */
        filter: blur(3px) brightness(50%); /* Apply blur and darken the image */
    }

    /* Image zoom effect on hover */
    .product-image-container:hover {
        position: relative; /* Ensure overlay effect applies correctly */
    }

/* Footer styling */
.footer {
    text-align: center;
    padding: 10px;
    width: 100%;
    position: fixed;
    bottom: 0; /* Fix the footer to the bottom of the page */
    left: 0; /* Ensure the footer spans the full width */
    z-index: 10; /* Make sure it stays on top of other content */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Display 5 images per row */
    gap: 15px;
    padding: 20px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.thumbnail {
    transform: rotate(90deg); /* Rotate 90 degrees */
    object-fit: contain; /* Ensure the image maintains its aspect ratio */
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px; /* Ensure the modal content is centered */
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#modal-image {
    max-width: 90%;
    max-height: 80vh;
    display: block;
    margin: auto;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

    button:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Close button */
.close {
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
}

    .close:hover {
        color: #f1f1f1;
    }

.company-intro {
    background: #f3eee9; /* Light wood-like tone */
    padding: 20px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #4e392f; /* Wood-toned dark brown */
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 4px solid #b8926a;
    border-bottom: 4px solid #b8926a;
}

    .company-intro h2 {
        font-size: 28px;
        margin-bottom: 15px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .company-intro p {
        font-size: 18px;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        height: auto; /* Let it grow */
    }

    .logo img {
        height: 40px; /* slightly smaller */
        margin-bottom: 10px;
    }

    .nav-wrapper ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

        .nav-wrapper ul li {
            margin: 0; /* Remove horizontal spacing */
            width: 100%;
        }

            .nav-wrapper ul li a {
                font-size: 16px;
                padding: 8px 0;
                display: block;
                width: 100%;
            }
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        height: auto;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-wrapper {
        width: 100%;
        display: none;
    }

        .nav-wrapper.show {
            display: block;
        }

        .nav-wrapper ul {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

            .nav-wrapper ul li {
                margin: 0;
                width: 100%;
            }

                .nav-wrapper ul li a {
                    display: block;
                    width: 100%;
                    padding: 10px 0;
                }
}

.overlay-link {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.house-image-container:hover .overlay-link {
    opacity: 1;
}

/* On mobile, always show the link */
@media (max-width: 768px) {
    .overlay-link {
        opacity: 1;
    }
}


