/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Header */
header {
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.hide-header {
    transform: translateY(-100%);
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #2d3943;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    height: 70px;
    width: auto;
    max-height: 100px;
    padding: 5px;
    padding-left: 15px;
}
.nav-menu {
    list-style: none;
    display: flex;
    padding: 20px;
}
.nav-menu li {
    margin-left: 20px;
}
.nav-menu a {
    color: #be9e43;
    text-decoration: none;
    font-size: 16px;
}
.nav-menu a:hover {
    text-decoration: underline;
}
html {
    scroll-behavior: smooth;
}

/* Hero Section */
#hero {
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.hero-text h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Button Styling */
.btn {
    background-color: #be9e43;
    color: #2d3943;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
.btn:hover {
    background-color: #0056b3;
}

/* Carousel Slide (Hero) */
.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-image {
    width: 100%;
    height: 100vh !important; /* Ensure the height takes full viewport */
    object-fit: cover;
}

@media screen and (max-width: 1080px) {
    .carousel-image {
        height: 80vh !important;
    }
}

@media screen and (max-width: 480px) {
    .carousel-image {
        height: 60vh !important;
    }
}



/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}
.carousel-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.8);
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}

/* About Us Section */
#about-us {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}
#about-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
#about-us p {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 30px;
}

/* Services Section */
#services {
    padding: 60px 20px;
    background-color: #f5f5f5;
}
#services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}
.service-cards {
    display: flex;
    justify-content: space-around;
}
.service-card {
    width: 30%;
    background-color: #d8c690;
    color: #2d3943;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
#projects {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}
#projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
}
/* (Projects carousel code is commented out in index.html) */

/* Companies Section */
#partners {
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
    position: relative;
}
#partners h2 {
    font-size: 36px;
    margin-bottom: 40px;
}
.companies-wrapper {
    overflow: hidden;
    width: 100%;
}
.companies-container {
    display: flex;
    /* Remove CSS animation in favor of JS reordering */
    transition: transform 0.5s ease-in-out;
}
.company {
    flex: 0 0 auto;
    margin: 0 10px;
}
.company img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Careers Section */
#careers {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}
#careers h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}
#contact form {
    max-width: 600px;
    margin: 0 auto;
}
#contact input, #contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
#contact button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    background-color: #2d3943;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
    width: 100%;
    margin-top: 20px;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Fade-in Effects */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.fade-in.visible {
    opacity: 1;
}
.fade-in-page {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}


/* Companies Section - Continuous Infinite Scroll */

ul li {
    word-spacing: normal;  /* Reset to normal if you set a custom value */
    letter-spacing: normal;  /* Same for letter-spacing */
  }
  