/* Reset some default styles */
body, h1, p, ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.header {
    height: 100vh;
    width: 100%;

    background-image: linear-gradient(rgba(0, 0, 0, 0.3),rgba(0, 0, 0, 0.3)), url(/images/modern_truck_ai.webp); /* Fully transparent background */
    background-size: cover;
    background-position: center;
    position: relative;    
}

nav {
    /* flex: 1; Take remaining space */
    display: flex; /* Use Flexbox for nav */
    justify-content: space-between; /* Align items to the right */
    /* padding: 2% 6%; */
    align-items: center;
}


nav img{
    width: 150px;
    height: auto;
    padding-left: 20px;
    padding-top: 20px;
    /* padding-right: 50px; */
}

.nav_links{
    flex: 1;
    text-align: right;
}

.nav_links ul li{
    list-style: none;
    display: inline-block;
    padding-bottom: 40px;
    padding-right: 45px;
    position: relative;
}


nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.nav_links ul li::after{
    content: '';
    width: 0%;
    height: 3px;
    background: rgb(189, 31, 63);
    display: block;
    margin: auto;
    transition: 0.3s;
 }

 .nav_links ul li:hover::after{
    width: 100%;
 }


/* contact button */
.nav_links ul li a.contact-button {
    background: rgb(189, 31, 63);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav_links ul li a.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all .2s ease-in-out;
    z-index: -1;
}



.nav_links ul li a.contact-button:hover {
    background: rgb(159, 1, 33);
} 

/* Remove the underline effect only for the contact button */
.nav_links ul li:last-child::after {
    content: none;
}

/* Adjust spacing for the contact button */
.nav_links ul li:last-child {
    margin-left: -8px;
}





.header-text{
    font-size: 50px;
    text-align: right;
    color: white;
    padding-right: 200px;
}

.lighter{
    opacity: 0.7;
}

.header-small_text{
    text-align: right;
    color:white;
    padding-right: 130px;
}

/* Add these new styles for responsiveness */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    nav img {
        margin-bottom: 20px;
        max-width: 70%;
    }

    .nav_links {
        position: fixed;
        top: 0;
        right: -250px; /* Hide off-screen initially */
        width: 250px;
        height: 100vh;
        background: rgba(118, 116, 116, 0.9);
        z-index: 1000;
        transition: 0.3s ease-in-out;
    }

    .nav_links.show {
        right: 0; /* Slide in when shown */
    }

    .nav_links ul {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Change from center to flex-start */
        padding-left: 30px; /*Add some padding to the left */
    }

    .nav_links ul li {
        margin: 10px 0;
        padding-left: 40px;
        text-align: center;
    }

    /* remove hover effects for the mobile */
    .nav_links ul li::after { display: none; }

    .nav_links ul li a {
        font-size: 18px;
    }


    /* Hamburger menu icon */
    .menu-icon {
        display: block;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    .menu-icon div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    /* Rotate menu icon when active */
    .menu-icon.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-icon.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header-text {
        font-size: 30px;
        text-align: center;
        padding-right: 0;
    }

    .header-small_text {
        text-align: center;
        padding-right: 0;
    }
}

/* Services Section */
.services-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.services-section h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.services-section > p {
    color: #9e9999;
    font-size: 20px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 10px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-col h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.services-col p {
    color: #777;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}





.contact-info {
    display: flex;
    align-items: center;
}

.contact-info a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
}

/* About Section */
.about-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.about-section h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-section > p {
    color: #9e9999;
    font-size: 20px;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.about-image {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 2;
    text-align: left;
    max-width: 700px;
}

.about-text h3 {
    margin-top: 20px;
    font-size: 1.6em;
    color: #333;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-text ul li {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}

.values-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.value-item {
    flex: 1 1 200px;
    text-align: center;
}

.value-button {
    background-color: #b01c33;
    color: white;
    padding: 10px 30px; /* more horizontal padding */
    border-radius: 25px; /* more rounded */
    font-weight: 600; /* bolder text */
    font-size: 16px; /* slightly smaller */
    width: 220px; /* fixed width */
    text-align: center;
    margin: 0 auto 10px; /* center button and add margin below */
}

.value-button:hover {
    background-color: #a4001e; /* a bit darker shade of your red */
}


.value-item p {
    color: #555;
    font-size: 16px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}


/* Contact Section */

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.contact-form-wrapper {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.contact-form-container {
    padding: 40px;
    flex: 1;
}

.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.btn:hover {
    background-color: #e53935;
}

.contact-image {
    flex: 1;
    background-color: #f9f9f9;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* footer stuff */

/* Footer */
.site-footer {
    background-color: #2d3c59;
    color: white;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.footer-logo-wrapper {
    flex-shrink: 0;
}

.footer-logo {
    width: 160px;
    height: auto;
}

.footer-info {
    padding-left: 40px;
    padding-top: 25px;
}

.footer-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #d1d1d1;
}

.footer-info i {
    margin-right: 10px;
    color: rgb(189, 31, 63);
}

.footer-right {
    text-align: left; /* back to normal */
    flex: 1;
    min-width: 250px;
    position: relative;
}

.footer-right-inner {
    margin-left: 220px; /* shift BOTH the h2 and button together */
    text-align: center; /* center the text inside */
}

.footer-right-inner h2 {
    font-size: 22px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-contact-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgb(189, 31, 63);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 16px;
    margin-top: 10px; /* space between text and button */
}
.footer-contact-button:hover {
    background-color: rgb(159, 1, 33);
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 10px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-right {
        text-align: center;
    }


}