body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #cdcec4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5aa09;
    padding: 10px 20px;
}

.logo h2 {
    color: rgb(255, 255, 255);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

.navbar ul li a:hover {
    background-color: #575757;
    border-radius: 5px;
}

.hamburger {
    display: none;

}

.hamburger .bar {
    width: 25px;
    height: 40px;
    background-color: rgb(255, 254, 254);
    margin: 4px 0;
    transition: 0.4s;
}

.homepage-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-image: url('images/tail2.jfif');
    background-repeat: no-repeat;
    background-size: cover;
    flex-wrap: wrap;
}

.text-content {
    flex: 1;
    padding-right: 20px;
    text-align: center;
}

.text-content h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #3b0400;
}

.text-content p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #000000;
}

.text-content h3 {
    font-size: 1.6em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #b60000;
  }

.text-content h4 {
    font-size: 1.6em;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #161e63;
  }

.learn-more {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

.learn-more:hover {
    background-color: #555;
}

.image-content {
    flex: 1;
    padding-left: 20px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.btn {
    background-color: #ff6347;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-left: 12px;
}

.btn:hover {
    background-color: #e55342;
}
.about {
    background-color: rgb(148, 148, 148);
    margin-top: 15px;
}

.about .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.about .text-container {
    flex: 1;
    padding-right: 20px;
    margin-left: 15px;
}

.about .text-container h2 {
    color: #ff0000;
    text-align: center;
}

.about .text-container h1 {
    color: #ffffff;
}

.about .image-container {
    flex: 1;
    max-width: 50%; /* Image takes 50% of the width on larger screens */
}

.about .about-image {
    width: 100%;
    height: auto;
    margin-top: 15px;
}

.image-swap-container {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden; /* Prevents overflow */
}

.swap-image {
    position: absolute;
    width: 430px; /* Adjust size as needed */
    height: 400px;
    opacity: 0;
    animation: swap-animation 20s infinite;
    margin-bottom: 1px;
    object-fit: contain; /* Ensures the image fits inside its container */
}

/* Image swap animations with delay */
.swap-image:nth-child(1) {
    animation-delay: 0s;
}
.swap-image:nth-child(2) {
    animation-delay: 4s;
}
.swap-image:nth-child(3) {
    animation-delay: 8s;
}
.swap-image:nth-child(4) {
    animation-delay: 12s;
}
.swap-image:nth-child(5) {
    animation-delay: 16s;
}

/* Animation keyframes */
@keyframes swap-animation {
    0% {
        transform: translateX(100vw); /* Full viewport width */
        opacity: 0;
    }
    10% {
        transform: translateX(50vw);
        opacity: 1;
    }
    30% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50vw);
        opacity: 1;
    }
    60% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

.us {
    background-color: #777777;
    margin-top: 1px;
    height: fit-content;
}

.us .text {
    height: fit-content;
    margin-left: 20px;
}

.us h1 {
    text-align: center;
    color: #ff0000;
    font-size: 1.7em;
    font-weight: bold;
}

.us h2 {
    text-align: center;
    color: #ffffff;
    margin-right: 20px;
}

.us h4 {
    text-align: center;
    color: #ff0000;
    font-size: 1.4em;
}

.us h3 {
    text-align: center;
    color: #ff0000;
}
.contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-us {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.text-container {
    flex: 1;
    padding-right: 20px;
}

.image-container {
    flex: 1;
    max-width: 50%; 
    text-align: right;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.companies {
    text-align: center;
    padding: 50px;
    background-color: #f4f4f4;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.company-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Makes the images round */
    object-fit: cover;
    animation: spin 10s linear infinite; /* Applies the moving animation */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(45deg); }
}




.footer {
    background-color: #000000;
}

.footer p {
    color: #fff;
    font-size: 1.3em;
    text-align: center;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .homepage-section, .content {
        flex-direction: column;
    }

    .text-content, .image-content {
        padding: 0;
    }

    .image-content {
        order: 2; /* Images go below the text */
    }

    .about .container {
        flex-direction: column;
        align-items: center;
    }

    .about .text-container {
        text-align: center;
        padding-right: 0;
        margin-left: 0;
    }

    .about .image-container {
        max-width: 100%; /* Image takes full width on smaller screens */
        text-align: center;
        margin-top: 20px;
    }

    .about-image {
        width: 100%; /* Ensure image occupies 100% width */
        height: auto;
    }

    .navbar ul {
        display: none; /* Hide menu by default */
        flex-direction: column; /* Stack the links vertically */
        background-color:rgba(54, 24, 2, 0.452); /* Background color for menu */
        position: absolute;
        top: 60px; /* Adjust to be below the header */
        right: 0;
        width: 100%;
    }

    .navbar ul.show {
        display: flex; /* Show menu when toggled */
    }

    .hamburger {
        display: flex; /* Show hamburger icon on small screens */
    }

    .hamburger .bar {
        width: 5px;
        height: 15px;
        background-color: #8a8a8a; /* White bars */
        margin: 2px 0;
        transition: 1s; /* Animation for bars */
    }

    .image-swap-container {
        height: 40vh; /* Adjust container height for smaller screens */
       
    }

    .swap-image {
        width: 100%; /* Full width of container */
        height: auto; /* Auto height to maintain aspect ratio */
    }

    @keyframes swap-animation {

        10% {
            transform: translateX(100%); /* Use percentage to match container size */
            opacity: 0;
        }


        30% {
            transform: translateX(50%);
            opacity: 1;
        }
       
        50% {
            transform: translateX(-70%);
            opacity: 0;
        }

        70% {
            transform: translateX(-70%);
            opacity: 0;
        }

        100% {
            transform: translateX(-100%);
            opacity: 0;
        }
  
    }
    .contact-us {
        flex-direction: column;
    }

    .text-container {
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .image-container {
        max-width: 100%; /* Full width on smaller screens */
        text-align: center;
    }

    .map-image {
        width: 100%; /* Full width for the map image */
        height: auto;
    }
 
}

@media screen and (max-width: 480px) {
    .homepage-section, .content {
        padding: 10px;
    }

    .text-content h1 {
        font-size: 1.2em;
    }

    .text-content p {
        font-size: 1em;
    }

    .learn-more {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .us h1, .us h2, .us h4, .us h3 {
        font-size: 1.2em;
    }

   .map-image {
        width: 100%; /* Ensure full width on very small screens */
        height: auto;
    }
}
