/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0A1F44;
    color: #ffffff;
    overflow-x: hidden;
}

/* Style for the Login Button */
.login-button {
    position: fixed; /* Keep it fixed at the top-right corner */
    top: 15px; /* Space from the top of the screen */
    right: 15px; /* Space from the right of the screen */
    background-color: #007bff; /* Blue button background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding for a button-like appearance */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size for the text */
    font-weight: bold; /* Make the text bold */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    z-index: 9999; /* Ensure it's on top of all elements */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Hover Effect for the Button */
.login-button:hover {
    background-color: #0056b3; /* Darker blue */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .login-button {
        font-size: 14px; /* Slightly smaller text on mobile */
        padding: 8px 16px; /* Adjust padding for smaller screens */
        top: 2px; /* Adjust vertical spacing */
        right: 10px; /* Adjust horizontal spacing */
    }
}


/* Sidebar Navigation Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    z-index: 100;
    transition: width 0.3s, height 0.3s;
    overflow: hidden;
}

.sidebar.expanded {
    width: 180px;
    background: rgba(255, 255, 255, 0.7);
}

.sidebar-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.small-logo {
    width: 100px;
    height: 100px;
    transition: width 0.3s, height 0.3s;
    margin-top: 20px;
}

.sidebar.expanded .small-logo {
    width: 150px;
    height: 150px;
}

/* Wrapper for logo and menu button */
.logo-menu-wrapper {
    position: relative;
    width: 100px;
    height: 150px; /* Increased height to give space for logo and menu */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Small logo adjustments */
.small-logo {
    width: 100px;
    height: 100px;
    transition: width 0.3s, height 0.3s;
    margin-bottom: 10px; /* Added margin to give space between logo and menu button */
}

/* Menu icon adjustments */
.menu-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    margin-top: 10px; /* Added margin to ensure there's no overlap with the logo */
}

/* Hero Section Styling */
.hero-section {
    height: 100vh; /* Full viewport height */
    position: relative;
    background: #000; /* Fallback background color */
    overflow: hidden;
    width: 100%;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between elements */
    text-align: center;
}

/* Background Overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    z-index: 1;
}

/* Video Background Styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind the content */
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video scales to fill the section */
}

/* Company Info Styling */
.company-info {
    position: relative; /* Relative to the hero section */
    z-index: 2; /* Above the background and overlay */
    color: #FFCE00;
    margin-top: 20px; /* Pushes the H1 closer to the top */
}

.company-info h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.company-info p {
    font-size: 1.2em;
    margin: 5px 0;
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 2; /* Above the background and overlay */
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center H2 and Paragraph */
    align-items: center;
    flex-grow: 1; /* Occupy available space */
}

.hero-content h2 {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
    color: #FFCE00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.hero-content p {
    font-size: 1.1em;
    color: #E0E0E0;
    line-height: 1.4;
    margin: 10px auto;
    text-align: center;
}

/* Button Styling */
.hero-content button {
    background-color: #B29700;
    color: #0A1F44;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin-top: 20px; /* Add spacing above the button */
    align-self: center; /* Centers the button horizontally */
    width: auto; /* Auto width for flexibility */
    max-width: 300px; /* Prevent excessive width */
}

/* Hover Effect */
.hero-content button:hover {
    background-color: #ffffff;
    color: #0A1F44;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

/* Button Placement for Desktop */
@media screen and (min-width: 769px) {
    .hero-content button {
        position: absolute;
        bottom: 20px; /* Stick the button to the bottom */
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 20px 10px;
    }

    .company-info {
        margin-top: 10px;
    }

    .company-info h1 {
        font-size: 1.8em; /* Adjust heading size for mobile */
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.6em; /* Adjust heading size for mobile */
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.9em; /* Adjust paragraph size for mobile */
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .hero-content button {
        position: relative; /* Disable absolute positioning on mobile */
        bottom: auto; /* Allow button to flow naturally */
        margin-top: 15px;
        width: 90%; /* Button width for mobile */
        max-width: 300px; /* Constrain the button width */
    }
}

/* More Info Section Styling */
#more-info-section {
    padding: 60px 20px;
    background-color: #FFCE00; /* Light background for contrast */
    color: #0A1F44; /* Text color */
    text-align: center; /* Center the section */
}

#more-info-section .info-container {
    max-width: 800px; /* Limit the width for readability */
    margin: 0 auto;
    padding: 20px;
}

#more-info-section h2 {
    font-size: 2em;
    color: #0A1F44; /* Highlighted heading color */
    margin-bottom: 20px;
}

#more-info-section p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

#more-info-section ul {
    list-style-type: disc; /* Use bullets */
    list-style-position: inside; /* Align text with bullets */
    margin: 20px auto; /* Center the list */
    padding: 0; /* Remove default padding */
    display: inline-block; /* Center the entire list */
    text-align: left; /* Align the list text properly */
}

#more-info-section ul li {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #0A1F44;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

/* Hover effect */
#more-info-section ul li:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    color: #FF6F00; /* Change text color on hover */
}


/* Step 1: Mobile Responsiveness */
@media (max-width: 768px) {
    #more-info-section {
        padding: 40px 15px; /* Adjust padding for smaller screens */
    }

    #more-info-section h2 {
        font-size: 1.8em; /* Slightly smaller heading size */
    }

    #more-info-section p {
        font-size: 0.9em; /* Smaller text for mobile */
    }

    #more-info-section ul li {
        font-size: 0.9em; /* Adjust list text size */
    }
}

/* Services Section */
#services {
    padding: 60px 40px;
    text-align: center;
    background-color: #0A1F44;
}

.section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 40px;
}

.service-link {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    color: #FFD700;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    cursor: pointer;
    margin: 15px;
}
.service-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}
.service-link h3 {
    color: #FFD700;
}
.service-link:hover {
    transform: scale(1.05);
}

/* Background images for each service link */
.custom-homes { background-image: url("images/custom_home.jpg"); }
.house-additions { background-image: url("images/house_addition.jpg"); }
.garden-suites { background-image: url("images/garden_suite.jpg"); }
.renovations { background-image: url("images/renovation.jpg"); }
.framing { background-image: url("images/framing.jpg"); }
.landscaping { background-image: url("images/landscaping.jpg"); }

/* Portfolio Section */
#portfolio {
    padding: 60px 40px;
    text-align: center;
    background-color: #0A1F44;
}

.section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 40px;
}

.portfolio-link {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    color: #FFD700;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    cursor: pointer;
    margin: 15px;
}

.portfolio-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.portfolio-link h3 {
    color: #FFD700;
}

.portfolio-link:hover {
    transform: scale(1.05);
}
/* Service Overlay */
.service-overlay {
    display: none; /* Hidden by default */
}
/* Portfolio Overlay */
.portfolio-overlay {
    display: none; /* Hidden by default */
}

/* Overlays for Service and Portfolio Details */
.service-overlay,
.portfolio-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    z-index: 20;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay-image,
.overlay-video {
    max-width: 75%;
    max-height: 75%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    z-index: -1;
}

.overlay-text {
    position: relative;
    color: #FFD700;
    font-size: 1.8em;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
    transition: top 1s ease-in-out;
}

.typing-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 20px;
    transition: top 1s ease-in-out;
}

/* Close Button */
button.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    background-color: #FFD700;
    color: #003366;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 25;
}

button.close-overlay:hover {
    background-color: #FFB700;
}

/* About Section */
#about {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background-color: #112B54;
}

.story-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFCE00;
}

#about p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 20px 0;
    color: #ffffff;
}

/* Social Media Section */
#social {
    padding: 60px 40px;
    text-align: center;
    background-color: #0A1F44;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-container a {
    color: #FFD700;
    font-size: 2em;
    transition: color 0.3s;
}

.social-container a:hover {
    color: #FFB700;
}

/* Testimonials Section */
#testimonials {
    padding: 60px 40px;
    text-align: center;
    background-color: #0A1F44;
    color: #ffffff; /* Ensures text is visible on the dark background */
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* Keeps three testimonials in a row */
    margin: 0 auto;
    justify-content: center;
}

.testimonial {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 1 1 calc(33.33% - 20px); /* Ensures three testimonials per row */
    max-width: 300px;
    min-width: 200px;
    color: #333; /* Sets text color for readability */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Star Rating Section */
.star-rating-container {
    text-align: center;
    margin-top: 20px;
}

.star-rating {
    display: inline-flex;
    font-size: 3em;
    color: #FFD700;
    cursor: pointer;
    gap: 10px;
}

.star-rating .star:hover,
.star-rating .star.selected {
    color: #FFA500;
}

.testimonial .star {
    font-size: 2em;
    color: #FFD700;
    margin-right: 5px;
}

.star.selected {
    color: #FFA500;
}

/* Thumbnail Styling */
.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 5px; /* Adds space on both sides */
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

#imageOverlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20;
    justify-content: center;
    align-items: center;
    color: #FFD700;
}

#fullScreenImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #003366;
    font-size: 1.1em;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

button.close-overlay:hover {
    background-color: #FFB700;
}

/* Review Form Styling */
#reviewForm {
    max-width: 400px;
    margin: 30px auto; /* Centers horizontally */
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333; /* Ensures text visibility within form */
    box-sizing: border-box; /* Ensures padding is within total width */
}

#reviewForm label {
    font-weight: bold;
    margin: 10px 0;
    text-align: left;
    width: 100%;
}

#reviewForm input[type="text"],
#reviewForm input[type="email"],
#reviewForm textarea,
#reviewForm input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Prevents overflow of input fields */
}

#reviewForm button[type="submit"] {
    padding: 12px 25px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

#reviewForm button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive Testimonial Container */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column; /* Stacks testimonials on smaller screens */
    }

    .testimonial {
        flex: 1 1 100%;
        max-width: none;
    }

    #reviewForm {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .testimonial {
        padding: 15px;
    }

    #reviewForm {
        padding: 15px; /* Adjust padding for smaller screens */
    }
}

/* Contact Section */
#contact {
    padding: 60px 40px;
    text-align: center;
    background-color: #0A1F44;
}

#contact h2 {
    font-size: 2.5em;
    color: #FFB700;
    margin-bottom: 20px;
}

/* Contact Us Form Styling */
#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#contact label {
    font-weight: bold;
    color: #333; /* Dark color for clear visibility */
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

#contact input,
#contact textarea {
    padding: 10px;
    font-size: 1em;
    color: #333; /* Set a dark color for the text */
    background-color: #fff; /* Light background for better contrast */
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    margin: 5px 0;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #888; /* Set a lighter color for placeholder text */
}

#contact input[type="file"] {
    margin-top: 10px;
}

#contact button {
    padding: 12px 20px;
    font-size: 1.1em;
    color: #fff;
    background-color: #003366;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

#contact button:hover {
    background-color: #002244;
}

#contact label {
    font-weight: bold;
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

#contact .file-upload-btn {
    display: inline-block;
    padding: 10px;
    font-size: 1.1em;
    color: #003366;
    background-color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

#contact .file-upload-btn:hover {
    background-color: #FFB700;
}

/* Social Media Section Styling */
.social-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.social-container a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-container a:hover {
    transform: scale(1.2);
}

.social-container img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s;
}

.social-container img:hover {
    filter: brightness(1.2);
}

/* Resize Images and Items */

/* Resize Portfolio and Service Items */
.service-link, .portfolio-link {
    max-width: 300px; /* Reduce the max width for smaller items */
    min-height: 400px; /* Reduce height to match smaller images */
}

/* Resize Images to Smaller Square Size */
.service-link img, .portfolio-link img {
    height: 300px; /* Set a smaller height for images */
    object-fit: cover; /* Ensure images fit well within the container without distortion */
}

/* Sidebar Content Visibility */
.sidebar-content {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.sidebar.expanded .sidebar-content {
    display: flex; /* Visible when expanded */
}

/* Logo Styling */
.small-logo {
    width: 50px; /* Default shrunk size */
    height: 50px;
    transition: width 0.3s, height 0.3s; /* Smooth resizing */
    margin-bottom: 10px; /* Space between logo and menu */
}

.sidebar.expanded .small-logo {
    width: 150px; /* Expanded size */
    height: 150px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0; /* Space above links */
    width: 100%; /* Full width links */
}

.nav-links li {
    width: 100%; /* Ensure links take full width */
}

.nav-links a {
    display: block;
    padding: 15px;
    color: #0A1F44;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #FFCE00;
    color: #0A1F44;
}
/* Sidebar Menu Icon */
.menu-icon {
    position: relative;
    margin-top: 10px;
}

/* Menu Icon Styling */
.menu-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Mobile-Specific Styling */
@media (max-width: 768px) {
    .sidebar {
        width: 40px; /* Default shrunk width for mobile */
    }

    .sidebar.expanded {
        width: 150px; /* Expanded width for mobile */
    }

    .small-logo {
        width: 35px; /* Shrunk logo size for mobile */
        height: 35px;
    }

    .sidebar.expanded .small-logo {
        width: 120px; /* Expanded logo size for mobile */
        height: 120px;
    }

    .nav-links a {
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }
}
/* Footer */
footer {
    text-align: center;
}
/* Center Text Styling for "Leave a Review" Section */
.center-text {
    text-align: center;
}

/* Hidden Element Styling for "Review Form" */
.hidden {
    display: none;
}

