body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    position: relative; /* Relative positioning for absolute elements */
}

/* Hamburger Icon */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    position: absolute; /* Position absolute for left alignment */
    left: 20px; /* Align hamburger to the left */
}

/* Logo Container Styling */
.logo-container {
    max-width: 150px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: center; /* Center the logo */
    flex: 1; /* Allows logo container to expand */
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Menu */
header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows navigation items to wrap */
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Default Hero Image for Larger Screens */
.hero {
    background: url('images/hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative; /* Allows for positioned elements like text background */
}

.hero-content {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    padding: 20px;
    border-radius: 10px; /* Rounded corners for a modern look */
    display: inline-block; /* Keep the content inline */
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff; /* Ensure text color is white for contrast */
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #ddd; /* Slightly lighter text for a softer look */
}

.cta-button {
    background: #e8491d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px; /* Rounded corners for the button */
}

/* Services Section */
.about, .services, .contact {
    padding: 50px 20px;
    text-align: center; /* Center align all text in these sections */
}

/* Service Card */
.service-card {
    border: 1px solid #ddd;
    padding: 30px 20px; /* Add padding for better spacing */
    margin: 20px;
    display: inline-block;
    width: calc(100% - 40px); /* Adjust for mobile */
    box-sizing: border-box;
    vertical-align: top;
    text-align: center; /* Center text within the service card */
    min-height: 200px;
    background-color: #f9f9f9; /* Light background for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for a 3D effect */
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

.service-card:hover {
    transform: translateY(-10px); /* Lift the card slightly on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.service-card h3 {
    color: #333; /* Darker color for titles */
    margin-bottom: 15px; /* Space below the title */
}

.service-card p {
    color: #555; /* Medium color for description text */
    font-size: 1rem; /* Adjust font size */
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd; /* Border for input fields */
    border-radius: 5px; /* Rounded corners */
}

.contact form button {
    background: #e8491d;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners for buttons */
}

footer {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .logo-container {
        max-width: 150px; /* Keep the logo size reasonable */
        margin: 0 auto; /* Center the logo container */
        text-align: center;
        order: 1; /* Ensure the logo is positioned in the center */
    }

    nav {
        width: 100%; /* Full width on mobile */
    }

    .nav-menu {
        display: none; /* Hide the navigation menu by default */
        flex-direction: column; /* Stack menu items vertically */
        text-align: center; /* Center the menu items */
        background-color: #333; /* Background for mobile menu */
        width: 100%;
        padding: 10px 0; /* Padding for mobile menu */
        position: absolute; /* Position to overlap content */
        top: 60px; /* Adjust based on header height */
        left: 0;
        margin: 0; /* Remove any extra margin */
    }

    .nav-menu.show {
        display: flex; /* Show the navigation menu */
    }

    header .container {
        flex-direction: column; /* Stack header items */
        align-items: center;
    }

    header nav ul {
        flex-direction: column; /* Stack nav items vertically */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Smaller font size for smaller screens */
    }

    .hero-content p {
        font-size: 1rem; /* Smaller font size for smaller screens */
    }

    .service-card {
        width: calc(100% - 40px); /* Full-width for smaller screens */
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 100px; /* Smaller logo size */
    }

    .hero-content h1 {
        font-size: 2rem; /* Even smaller font size for very small screens */
    }

    .hero-content p {
        font-size: 0.9rem; /* Smaller font size for very small screens */
    }

    .cta-button {
        padding: 8px 16px; /* Smaller padding */
        font-size: 0.9rem; /* Smaller font size */
    }
}
