/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center; /* Center all text by default */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

.Dedicated {
    font-size: 20px;
    white-space: nowrap;
    margin-left: 45px; /* Adds space between the phone number and text */
    color:#000;
    font-style: italic; /* Makes text cursive */
    font-family: Arial, sans-serif;
    font-size: 20px;
}

/* Phone Number Styles */
.phone-number {
    margin-left: auto; /* Push the phone number to the far right */
}

.phone-number a {
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    text-decoration: none;
}

h1 {
    color: #d90429;
}

.phone-number a:hover {
    transform: scale(1.44); /* Slight zoom effect when hovered */
}

/* Navigation Bar Styles */
nav {
    background-color: rgba(200, 200, 200, 0.8);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    color:#000;
    height: 128px; /* Increased height of the navbar */
}

/* Navbar List Styles */
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.navbar li {
    display: inline;
}

/* Navbar Link Styles */
.navbar a {
    display: inline-block;
    padding: 14px 20px;
    color:#000;
    text-decoration: none;
    font-size: 18px;
}

.nav-logo {
    height: 105px; /* Increase height to make the logo bigger */
    margin-bottom: -15px; /* Slight negative margin to fine-tune alignment */
    margin-right: 8px; /* Add space between logo and text */
    width: auto; /* Maintain aspect ratio */
    margin-right: 45px;
    display: inline-block;
    transition: transform 0.3s ease; /* Smooth transition when hovered */
    padding-top: 10px;
}

.navbar a:hover {
    transform: scale(1.44); /* Slight zoom effect when hovered */
}

/* Optional: Add a hover effect on the logo, like scaling */
.nav-logo:hover {
    transform: scale(1.44); /* Slight zoom effect when hovered */
}

#under-construction {
    background-color: #f7021b; /* Light red background */
    color: #000; /* Dark red text */
    border: 1px solid #000; /* Light red border */
    padding: 20px;
    margin: 20px auto; /* Center the section horizontally */
    border-radius: 5px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    max-width: 800px; /* Limit the width */
}

#under-construction h1 {
    margin: 0;
    font-size: 2rem; /* Larger font for the heading */
    font-weight: bold;
    color:#000;
}

#under-construction p {
    margin: 10px 0 0;
}

section {
    padding: 50px;
    margin: 20px 0;
}

/* Hero Section */
.hero {
    background-color: #fff; /* Change from gray to white */
    font-size: 30px;
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif; /* Replace with your chosen font */
    font-size: 3rem;
    color: #d90429; /* Example color */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add a shadow for depth */
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

#home p {
    margin-top: 0;
    margin-bottom: 10px; /* Added margin below for separation */
}

#about {
    background-color: #f4f4f4; /* Light gray background */
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #000; /* Subtle border */
    max-width: 800px; /* Centered, limited width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    text-align: center; /* Center-align content */
}

#about h1 {
    font-size: 1.5rem;
    text-align: center;
}

/* Services Section */
#services {
    background-color: #fff; /* Change from gray to white */
}

#services h1 {
    font-size: 1.5rem;
    text-align: center;
}


/* Services Section */
.service-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    margin-top: 20px;
}

.service-button {
    padding: 10px 20px;
    font-size: 20px;
    background-color: #000; /* Dark button background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px; /* Adjust the width */
    height: 80px; /* Adjust the height */
}

/* For buttons with background images */
.power_generation_parts-button:hover,
.laser_cutting-button:hover,
.welding-button:hover,
.machining_services-button:hover,
.fabrication-button:hover {
    background-image: none; /* Remove background image on hover */
    background-color: #d90429; /* Bright red highlight */
    color: white; /* Ensure text is readable */
}

.service-details {
    margin-top: 30px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #000; /* Add black border */
    max-width: 1200px; /* Max width for content */
    margin-left: auto;
    margin-right: auto; /* Center content horizontally */
    color:#000;
}

.service-details ul {
    list-style-type: none; /* Removes bullets */
    padding: 0; /* Remove default padding */
}

.service-details h2, h3 {
    color: #d90429;
}
    

.power_generation_parts-button {
    background-image: url('../pics/power_generation_parts.jpg');
    background-size: cover;
    background-position: center;
    color: white; /* Optional: Adjust text color for readability */
}

.laser_cutting-button {
    background-image: url('../pics/laser_cutting.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.welding-button {
    background-image: url('../pics/welding.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.machining_services-button {
    background-image: url('../pics/machining_services.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.fabrication-button {
    background-image: url('../pics/fabrication.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Darken background images for better text readability */
.power_generation_parts-button,
.laser_cutting-button,
.welding-button,
.machining_services-button,
.fabrication-button {
    position: relative; /* For layering */
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Add shadow for more contrast */
    overflow: hidden;
}

/* Flex Layout for the Hours and Contact Us sections */
#hours-contact-wrapper {
    display: flex;
    justify-content: space-between; /* Align items to the left and right */
    padding: 20px;
    text-align: center; /* Align text inside sections to the left */
    align-items: stretch;
}

#hours, #contact {
    width: 45%; /* Take up equal width */
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #000; /* Add black border */
}

#hours h1, #contact h1 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

#hours p, #contact p {
    margin-bottom: 10px;
    font-size: 1.1rem; /* Slightly larger than default */
}

#hours {
    text-align: center; /* Center the text inside the hours section */
}

#contact {
    text-align: center; /* Center the text inside the contact section */
}

/* Update phone number and email styling */
#contact p a {
    text-decoration: none; /* Remove underline */
    color:#000;
}

#contact p a:hover {
    color: #d90429; /* Show underline on hover */
}

.usa-section {
    display: flex;
    justify-content: center; /* Center align */
    align-items: center;
    margin-top: 20px; /* Space between contact and location */
    padding: 10px 0;
    text-align: center;
}

.usa-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center text */
    font-size: 25px;
    font-style: italic;
    font-family: "Brush Script MT", cursive, serif;
}

.flag-image {   
    height: 100px;           
    width: 215px;          
}

/* Location Section Styles */
#location {
    background-color: #f4f4f4; /* Light gray background */
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #000; /* Subtle border */
    max-width: 800px; /* Limit the width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    text-align: center; /* Center-align text and content */
}

#location h1 {
    margin-bottom: 15px;
    color: #d90429;
    font-size: 1.5rem;
}

#location p {
    margin: 5px 0;
    color: #000;/* Medium gray text */
    font-size: 1.1rem; /* Slightly larger than default */
}

#location iframe {
    width: 100%; /* Full width of the section */
    height: 400px; /* Set a fixed height */
    border: none; /* Remove iframe border */
    margin-top: 20px; /* Add space above the map */
    border-radius: 8px; /* Match the section's rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow to the map */
}

/* Call to Action Button Styles */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

.cta-button:hover {
    background-color: #d90429;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(200, 200, 200, 0.8);
    color: #000;
    font-size: 1rem;
}

footer a {
    color: #1877F2; /* Facebook blue */
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

footer i {
    font-size: 1.5rem; /* Adjust icon size */
}

.footer-content {
    display: flex; /* Enables flexbox */
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Horizontally centers items */
    justify-content: center; /* Vertically centers items if needed */
    gap: 10px; /* Adds spacing between items */
}

.example {
    display: -webkit-flex;  /* Safari 6.1 and earlier */
    display: -moz-flex;     /* Firefox 28 and earlier */
    display: flex;          /* Standard flexbox for modern browsers */
}

/* Default: Desktop View */
.hamburger {
    display: none; /* Hidden by default */
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    z-index: 1001; /* Ensure it's above other elements */
}

.phone-numbermobile {
    display: block;
}

.nav-logomobile {
    display: block;
}

@media (max-width: 768px) {
    #under-construction {
        width: 85%; /* Make the section 90% width for smaller screens */
        padding: 20px 10px; /* Add some padding */
        margin-top: 0; /* Ensure there is no margin at the top */
        margin-bottom: 10px; /* Reduce bottom margin slightly */
    }

    #under-construction h1 {
        text-align: center; /* Center align the heading */
        font-size: 1rem;
        margin: 0;
    }

    #under-construction p {
        line-height: 1.6; /* Increase line height for readability */
        text-align: center; /* Center align the text */
        font-size: 0.875rem;
    }
}

@media (max-width: 797px) {
    .hamburger {
        background-color: rgba(200, 200, 200, 0.8);
        backdrop-filter: blur(10px); /* Apply background blur */
        display: block;
        position: center;
    }
    
    section {
        padding: 20px;  /* Reduce padding */
        margin: 10px 0;  /* Reduce margin */
    }

    nav {
        background-color: transparent !important; /* Hide navbar background */
        backdrop-filter: none; /* Remove blur effect */
        position: sticky; /* Ensure it's always on top */
    }

    .navbar {
        display: none; /* Hide the navbar by default */
        position: absolute;
        top: 60px; /* Adjust the distance from the top of the screen */
        left: 0;
        width: 100%;
        background-color: rgba(200, 200, 200, 0.8);
        backdrop-filter: blur(10px); /* Apply background blur */
        padding: 0;
        margin: 0;
        border: none;
    }

    .navbar a {
        padding: 14px 20px;
        color: #000;
        text-decoration: none;
        font-size: 18px;
        display: block; /* Block-level links for vertical layout */
        text-align: center;
        font-size: 20px;  /* Adjust for mobile */
        font-weight: bold;  /* Make the text bold */
        border-bottom: 1.5px solid #ffffff;  /* Small line border */
    }

    .navbar.active {
        display: block;
    }
    
    .nav-logo {
        display: none; /* Hide the navbar by default */
    }

    .Dedicated {
        display: none !important;
    }

    .Dedicated-mobile {
        position: absolute;
        right: 2px;
        top: 30%; /* Vertically center it */
        font-size: 14px;
        color: #000;
        z-index: 1002;
        text-decoration: none;
        display: block;
    }

    .phone-number a {
        display: none; /* Hide the navbar by default */
    }

    .phone-numbermobile {
        position: absolute;
        right: 5px; /* Ensure it's properly aligned to the right */
        top: 50%; /* Vertically center it */
        font-size: 14px;
        color: #000;
        font-weight: bold;
        z-index: 1002;
        text-decoration: none;
        display: block;
    }
    
    .phone-numbermobile a {
        color: #000; /* Set the phone number color */
        text-decoration: none;
        font-size: 18px;
    }

    .nav-logomobile {
        width: 90px; /* Increase the width to make it bigger */
        height: auto; /* Maintain aspect ratio */
        position: absolute; /* Position it within the hamburger div */
        left: 2px; /* Move it to the left */
        top: 50%; /* Vertically center it */
        transform: translateY(-50%); /* Fine-tune the vertical alignment */
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem; /* Reduce font size */
        
    }
    #home p {
        margin-top: 0;
        margin-bottom: 10px; /* Added margin below for separation */
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    #about {
        width: 85%; /* Make the section 90% width for smaller screens */
        margin: 0 auto; /* Center the section */
        padding: 20px 10px; /* Add some padding */
    }

    #about h1 {
        text-align: center; /* Center align the heading */
    }

    #about p {
        line-height: 1.6; /* Increase line height for readability */
        text-align: center; /* Center align the text */
        margin-bottom: 20px; /* Add spacing between paragraphs */
        font-size: 0.875rem;
    }

    .cta-button {
        display: block; /* Make the button block-level */
        width: 50%; /* Adjust width to 50% */
        margin: 20px auto 0; /* Center the button with auto margins */
        font-size: 12px; /* Smaller font size */
    }
}

@media (max-width: 768px) {
    
    .service-details {
        width: 90%;
        padding: 20px 10px;
        font-size: 0.875rem;
    }

    .service-options {
        align-items: center;
        gap: 10px; 
    }

    .service-button {
        width: 45%; /* Reduce the button width */
        height: 45px; /* Reduce the height */
        font-size: 12px; /* Smaller font size */
        padding: 8px 15px; /* Adjust padding for smaller buttons */
    }
    
}

@media (max-width: 900px) {
    #hours-contact-wrapper {
        flex-direction: column;   
    }

    #hours, #contact {
        width: 100%; /* Use full width */
        max-width: 900px; /* Limit the width to prevent stretching too wide */
        padding: 20px;
        box-sizing: border-box; /* Ensure padding is included in width */
    }

    #hours h1, #contact h1 {
        font-size: 1.5rem; /* Smaller font size for headings */
    }
    
    #hours p, #contact p {
        font-size: 0.875rem; /* Smaller font size for text content */
    }

    #usa-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 0;
    }

    .usa-text {
        display: block !important; /* Ensure visibility */
        text-align: center;
        font-size: 1.2rem; /* Adjust size */
        font-family: "Brush Script MT", cursive, serif;
    }

    .flag-image {
        display: block !important;
        margin: 10px auto; /* Center the flag */
        height: 80px; /* Adjust height */
        width: auto; /* Keep aspect ratio */
    }
}

@media (max-width: 768px) {
    #location iframe {
        height: 250px; /* Make the iframe even smaller */
        width: 90%;/* Full width of the container */
    }

    #location {
        width: 90%;
        padding: 20px 10px;
    }

    #location h1 {
        font-size: 1.5rem; /* Smaller font size for headings */
    }

   #location p {
        font-size: 0.875rem; /* Smaller font size for text content */
    }
}

@media (max-width: 768px) {
    footer p {
        font-size: 0.875rem; /* Space between icon and text */
    }
    
    footer a {
        color: #1877F2; /* Facebook blue */
        text-decoration: none;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem; /* Space between icon and text */
    }
}
