/* Reset */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between; /* Space between logo and nav */
    align-items: center;
    background-color: #ffffff; /* Light background for the header */
    padding: 20px; /* Add padding for spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.logo img {
    max-width: 200px; /* Ensure logo is responsive */
}

nav {
    position: relative;
    z-index: 1000; /* Ensure navbar is above other content */
}

nav ul {
    display: flex;
    list-style: none;
    transition: max-height 0.3s ease-in-out; /* Smooth transition */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333; /* Darker text for better contrast */
    padding: 10px 15px; /* Add padding to links */
    font-weight: bold;
}

nav ul li a.active {
    color: #d9002f;
}

.hamburger {
    display: block; /* Show hamburger on mobile */
    cursor: pointer;
    font-size: 24px;
    z-index: 1001; /* Ensure hamburger is above other content */
    margin-left: auto; /* Push hamburger to the right corner */
}






.quote-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d9002f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    animation: slide 32s infinite;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0%); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(199, 183, 166, 0.39);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to truly center */
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    color: #f0f0f0; /* Light gray for better readability */
    text-align: center; /* Center text */
}
.hero h1 {
    font-size: 48px; /* Increase heading size */
    color: #d60000; /* Dark color for visibility */
    text-shadow: 1px 1px 2px rgba(129, 125, 125, 0.8); /* Subtle shadow for depth */
}

.hero p {
    font-size: 28px; /* Increase paragraph size to align with h1 */
    color: #f0f0f0; /* Light gray for better readability */
    padding: 30px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for depth */
}

.about {
    display: flex;
    align-items: center;
    padding: 50px;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 20px; /* Consistent padding */
    background-color: #f9f9f9; /* Light background for the about section */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.about img {
    width: 400px;
    margin-right: 20px;
}

.highlight {
    color: #007BFF; /* Blue color for emphasis */
    font-weight: bold;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #d9002f;
    text-decoration: none;
}

.services {
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 40px; /* Add padding for spacing */
    text-align: center; /* Center align the section title */
}

.services h2 {
    font-size: 36px;
    padding: auto; /* Increase font size */
    color: #000; /* Dark text for readability */
}

.service-content {
    flex: 1;
    padding: 20px;
    text-align: left;
    padding: auto;
    max-width: 50%; /* Ensures text doesn't stretch too wide */
}
.service-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Ensures spacing between text and image */
}

.service-box:nth-child(even) {
    flex-direction: row-reverse;
}

.service-box img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover; /* Ensures image scales properly */
}

.service-content {
    flex: 1;
    padding: 0 20px;
    text-align: left; /* Ensures proper text alignment */
}

.service-content h3 {
    font-size: 28px; /* Increase heading size */
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}


.service-content p {
    font-size: 20px; /* Increase paragraph size */
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6; /* Improve readability */
}

.service-content ul {
    padding-left: 25px;
    margin-top: 15px;
    list-style-type: disc;
}

.service-content li {
    font-size: 18px; /* Increase bullet points size */
    margin: 8px 0;
}

.hero1 {
    position: relative; /* Keep position relative for absolute children */
    background: url('cargo1.jpg') no-repeat center center/cover;
    text-align: center;
    color: rgb(255, 255, 255);
    padding: 60px 0;
}

.hero1-overlay {
    position: absolute; /* Position absolute to cover the entire banner */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Ensure it sits above the background but below text */
}
.hero1-text {
    position: relative; /* Position relative to sit above the overlay */
    z-index: 2; /* Ensure text is above the overlay */
    padding: 20px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners */
    display: inline-block; /* Make the box fit the content */
    text-align: center; /* Center the text */
    color: rgb(255, 255, 255); /* Text color */
    /* Add text shadow */
}

.hero1 h1 {
    font-size: 45px;
}

.hero1 p {
    font-size: 28px;
}

footer {
    background: #222;
    color: white;
    padding: 50px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo img {
    width: 200px;
    margin-bottom: 20px;
    margin-right: 40px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    margin: 10px;
    min-width: 280px;
    text-align: left;
}

.footer-about h2,
.footer-links h2,
.footer-contact h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.footer-contact p {
    font-size: 14px;
    margin: 8px 0;
}

.footer-contact a {
    color: #ffcc00;
    font-weight: bold;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.about img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.about-content div {
    flex: 1;
    padding: 0 20px;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #000;
}

.about-content p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 100%; /* Reduce logo size for mobile */
    }

    nav ul {
        display: none; /* Hide menu by default on mobile */
    }

    nav ul li {
        margin: 5px 0; /* Adjust margin for stacked items */
    }

    .about-content {
        padding: 10px; /* Add padding to about cards */
    }

    .about img {
        max-width: 100%; /* Ensure images are responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .about {
        flex-direction: column; /* Stack elements vertically */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .about-content {
        flex-direction: column; /* Stack content vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .about img {
        width: 100%; /* Make images full width on small screens */
        margin: 0 0 20px 0; /* Adjust margin */
    }

    .hero1-text {
        padding: 20px; /* Adjust padding for smaller screens */
        font-size: 20px; /* Reduce font size for better fit */
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }
    

    .quote-btn {
        position: fixed; /* Fix position on mobile */
    }
    .services-container {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Adds spacing between service boxes */
    }

    .service-box {
        display: flex;
        flex-direction: column !important; /* Force stacking for all boxes */
        text-align: center; /* Center align text */
        padding: 20px;
    }

    .service-box img {
        width: 100%; /* Make image full width */
        height: auto;
        margin-bottom: 15px;
    }

    .service-content {
        max-width: 100%; /* Ensures text takes full width */
        text-align: left; /* Align text properly */
    }

}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        border: none;
    }

    .nav-menu li {
        padding: 10px;
    }
}
