/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    min-height: calc(100vh - 80px); /* Ensures the body takes up the full height minus footer height */
    display: flex;
    flex-direction: column;
}


/* Container for content */
.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligning content to the center */
}

/* Header */
header {
    background-color: #4CAF50;
    padding: 20px 0 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: white;
    text-align: center;
    margin: 0;
}

.logo img {
    height: 50px; /* Adjust the size of your logo */
    transform: scale(3.0); /* This will scale the logo to 1.5x its original size */
    transform-origin: center; /* Keeps the scaling centered */
    transition: transform 0.3s ease; /* Smooth scaling transition */
}

.logo img:hover {
    transform: scale(3.5); /* Scales the logo bigger when hovered */
}

/* Navbar */
nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
    position: relative; /* For the white line effect */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    position: relative;
    display: inline-block;
}

/* Hover effect with animation */
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: -5px; /* Adjust this to change the line's position */
    left: 0;
    transition: width 0.3s ease; /* Smoothly extend the line */
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header container */
header .container {
    display: flex;
    align-items: center; /* Vertically centers items */
    justify-content: space-between; /* Navbar stays left, button goes right */
    padding: 10px 20px;
    position: relative;
}

/* Navbar */
nav {
    flex-grow: 1; /* Pushes the button to the far right */
}

@media only screen and (max-width: 768px) {
    /* Prevent navbar links from breaking into multiple lines */
    nav ul li a {
        white-space: nowrap;
        font-size: 16px; /* Adjust font size if necessary */
    }
}

/* New Get Quote button positioning */
.get-quote-btn {
    position: absolute;
    right: 20px; /* Position from the right side */
    top: 50%; /* Position vertically in the middle */
    transform: translateY(-50%); /* Center the button vertically */
    padding: 10px 20px;
    background-color: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.get-quote-btn:hover {
    background-color: #4CAF50;
    color: white;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    /* Adjust button position for mobile screens */
    .get-quote-btn {
        position: relative;
        top: auto; /* Reset top position */
        transform: none; /* Remove the transform */
        margin-top: 20px; /* Add space between navbar and button */
        right: auto; /* Center the button on mobile */
        display: block; /* Make the button block-level to stack below navbar */
        width: 80%; /* Optionally adjust width */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Home Section */
#home {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
}

#home h2 {
    font-size: 36px;
    color: #4CAF50;
}

/* Our Story Section */
#our-story {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
    width: 100%; /* Ensure it takes up full width */
}

#our-story .container {
    max-width: 1200px; /* Adjust width of the container */
    margin: 0 auto;
    padding: 0 20px; /* Add some padding for spacing */
}

#our-story .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* Add spacing inside content */
}

#our-story h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 20px;
}

#our-story p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Our Work Section */
#our-work {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    width: 100%; /* Ensure it takes full width */
}

#our-work h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 20px;
}

#our-work p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Increase the minimum image size */
    gap: 20px; /* Increase space between images */
    justify-items: center; /* Center the images within grid cells */
    margin-top: 40px; /* Adds space above gallery */
}

.gallery img {
    width: 100%; /* Makes images fill their grid cell */
    max-width: 300px; /* Increase the max-width for larger images */
    height: auto; /* Keeps aspect ratio intact */
    object-fit: cover; /* Ensures the images fill the space without stretching */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Button to show full gallery */
.show-gallery-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.show-gallery-btn:hover {
    background-color: #45a049;
}

/* Full Gallery */
.full-gallery {
    display: none; /* Hidden by default */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
    display: none;
}

.full-gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Popup Form Modal (Initially Hidden) */
.quote-form-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.quote-form-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 300px;
    border-radius: 5px;
}

/* Close Button */
.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Inputs */
form label {
    display: block;
    margin: 10px 0 5px;
}

form input,
form select,
form textarea {
    width: calc(100% - 20px); /* Ensure input fields fit inside the container with some padding */
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
    resize: none;
}

/* Additional styling for modal */
.quote-form-modal-content {
    width: 100%;
    max-width: 350px; /* Adjust the width of the modal */
    padding: 20px;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures everything stays within the modal's width */
}

/* Submit Button */
form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Footer container */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* Footer items */
.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

/* Footer icons */
.footer-item i {
    font-size: 18px;
    color: white;
}

/* Footer links */
.footer-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.footer-item a:hover {
    color: #4CAF50;
    transition: color 0.5s ease;
}