html {
    scroll-behavior: smooth; /* Forces Smooth Scrolling */
}

body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */

.header {
    background-color: #003366; /* Deep Blue for logistics theme */
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

#page-header {
    font-size: 2em;
    text-align: center;
    margin: 40px 0 20px;
    color: #003366;
}

.logo {
    max-width: 200px;
    height: auto;
}


main {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 21;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Rotate Bars on Active state */
.hamburger.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active .bar2 {
    opacity: 0;
}
.hamburger.active .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0 auto;
    background-color: #005599;
    overflow: hidden;
    max-height: 0;
    z-index: 19;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-menu.active{
    display: block;
    max-height: 500px;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding:10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.nav-menu li {
    margin: 10px 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(17, 124, 212, 0.3);
}

/* Hero Section */
.hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 20px;
}

.cta-button {
    background-color: #005599;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #003366;
}

/* Get in Touch Section */
.get-in-touch {
    background: linear-gradient(135deg, #003366, #005599 );
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.get-in-touch-content {
    max-width: 800px;
    margin: 0 auto;
}

.get-in-touch h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.get-in-touch p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Why Choose Use Section */
.why-choose-us {
    padding: 40px 20px;
    text-align: center;
    background-color: white;
}

.why-choose-us h2 {
    margin-bottom: 30px;
}

.benifits {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benifit-items {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width:  300px;
    text-align: center;
}

.benifit-items h3 {
    margin-bottom: 15px;
}

/* Driver Contact Section */
.driver-contact {
    background: linear-gradient(135deg, #005599, #003366);
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.driver-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.driver-contact h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
}

.driver-contact p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    padding: 60px 20px;
    text-align: center;
}

.services h2 {
    margin-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #b3e9ff69;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 300px;
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

/* Icon for Cards */
.icon {
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 15px;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input, textarea {
    width:  100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* padding does'nt add width*/
}

button {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

button:hover {
    background-color: #005599;
} 

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content p{
    margin: 5px 0;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.back-to-top {
    display: block;
    margin-top: 10px;
    color: white;
    text-decoration: none;
}

.toggle {
    color: aliceblue; 
    font-size: smaller; 
    text-decoration: none; 
    font-variant: small-caps;
}


/* Responsive Queries */
/**/

@media(max-width: 1135px){

    /*Adjust Nav Font Size to Prevent Wraping  */
    .nav-menu a {
         font-size: 1.3em;
    }
}
@media(max-width: 1050px){

    /*Adjust Nav Font Size to Prevent Wraping  */
    .nav-menu a {
         font-size: 1.1em;
    }
}
@media(max-width: 1024px){
    .hero {
        height: 40vh;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
        justify-items: center;
    }

}
@media(min-width: 980px){

    .hamburger {
        display: none;
    }

    .nav-menu {
        display: block;
        position: static;
        max-height: none;
        background-color: transparent;
        width: auto;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 0;
    }
    
    .nav-menu li:not(:last-child){
        border-right: 1px solid rgba(255,255,255,0.5);
        padding-right: 20px;
        margin-right: 20px;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        color: white;
    }

    #page-header {
        font-size: 2.5em;
    }

}

/* For mobile devices (max-width: 980px) */
@media(max-width: 980px){

    .hamburger {
        display: block;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-menu li:not(:last-child){
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 10px;
        margin-bottom: 10px;
        width: 80%;
    }

    .header {
        justify-content: flex-start;
        padding: 20px 10px;
    }

    .logo {
        max-width: 150px; /* smaller on modbile */
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    form {
        padding: 0 10px;
    }

    .get-in-touch, .driver-contact {
        padding: 60px 10px;
    }

    .get-in-touch h2, .driver-contact h2 {
        font-size: 2em;
    }

    .get-in-touch p, .driver-contact p {
        font-size: 1em;
    }

    .benifits {
        flex-direction: column;
        align-items: center;
    }
}

/* Very Small Screens (max-width:480px)*/
@media (max-width:480px) {

    .header {
        padding: 10px;
    }

    .logo {
        max-width: 120px;
    }

    input , textarea {
        font-size: 1em;
    }
}
