/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh; /* Ensures the body takes full height */
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    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;
    }
}

/* About Us Section */
#about {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

#about h2 {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 20px;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 10px auto;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures the footer stays above other content */
}

footer p {
    margin: 0;
    font-size: 16px;
}

/* Quote Form Modal Styling */
.quote-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.quote-form-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quote-form-modal h2 {
    font-size: 24px;
    color: #333;
}

.quote-form-modal input,
.quote-form-modal select,
.quote-form-modal textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.quote-form-modal button {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
}

.quote-form-modal button:hover {
    background-color: #45a049;
}

.quote-form-modal .close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 10px;
}

.quote-form-modal .close-btn:hover,
.quote-form-modal .close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 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;
}

