
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #333;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%; /* Use percentage to make it responsive */
    background: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it stays on top of other elements */
}

  .nav,
  .nav .nav-links {
    display: flex;
    align-items: center;
  }
  .nav {
    justify-content: space-between;
  }
  a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
  .nav .logo {
    font-size: 22px;
    font-weight: 500;
  }
  .nav .nav-links {
    column-gap: 20px;
    list-style: none;
  }
  .nav .nav-links a {
    transition: all 0.2s linear;
  }
  .nav.openSearch .nav-links a {
    opacity: 0;
    pointer-events: none;
  }
  .nav .search-icon {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .search-box {
    position: absolute;
    right: 250px;
    height: 45px;
    max-width: 555px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s linear;
  }
  .nav.openSearch .search-box {
    opacity: 1;
    pointer-events: auto;
  }
  .search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    left: 15px;
    color: #4a98f7;
    transform: translateY(-50%);
  }
  .search-box input {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 6px;
    background-color: #fff;
    padding: 0 15px 0 45px;
  }
  
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: none;
  }

  .logo-img {
    width: 70px; /* Set the desired width for the logo */
    height: auto; /* Keep the aspect ratio */
    margin-right: 20px; /* Add spacing between the logo image and the text */
    object-fit: contain; /* Ensure the image fits nicely */
}

/* Logo Text Styling */
.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

/* Align logo and text */
.nav .logo-img, .nav .logo-text {
    display: flex;
    align-items: center;
}

/* Responsive Logo Sizes */


@media screen and (max-width: 480px) {
    .logo-img {
        width: 50px; /* Even smaller logo for mobile */
    }
}
  
  /* responsive */
  @media screen and (max-width: 1160px) {
    .nav {
      padding: 15px 100px;
    }
    .nav .search-box {
      right: 150px;
    }
  }

  
  @media screen and (max-width: 950px) {
    .nav {
      padding: 15px 50px;
    }
    .nav .search-box {
      right: 100px;
      max-width: 400px;
    }
  }
  @media screen and (max-width: 768px) {
    .nav .navOpenBtn,
    .nav .navCloseBtn {
      display: block;
    }
    .nav {
      padding: 15px 20px;
    }
    
    .logo-img {
        width: 60px; /* Smaller logo for tablet screens */
    }
    .nav .nav-links {
      position: fixed;
      top: 0;
      left: -100%;
      height: 100%;
      max-width: 280px;
      width: 100%;
      padding-top: 100px;
      row-gap: 30px;
      flex-direction: column;
      background-color: #11101d;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.4s ease;
      z-index: 100;
    }
    .nav.openNav .nav-links {
      left: 0;
    }
    .nav .navOpenBtn {
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }
    .nav .navCloseBtn {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }
    .nav .search-box {
      top: calc(100% + 10px);
      max-width: calc(100% - 20px);
      right: 50%;
      transform: translateX(50%);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
  }
  

/* Hero Section */
#hero {
    /* background: url('assets/Forklif.jpg') no-repeat center center; */
    background: url('assets/background_image/forklifts.jpg') no-repeat center center;
    height: 100vh;
    color: #fff;
    font-weight: bolder;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
    margin: 10px 350px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: teal;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-bottom: 30px;
}

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

/* Default for larger screens */
.marquee-text {
    scrollamount: 25; /* Original speed */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
        background-size: cover;
    }

    .marquee-text {
        scrollamount: 10; /* Slower scrolling speed for mobile devices */
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
        margin: 10px 50px; /* Adjusting margin for smaller screens */
    }
}

@media (max-width: 480px) {
    .marquee-text {
        scrollamount: 5; /* Further slowing for very small screens */
    }

    #hero {
        background-size: cover;
        background-position: center;
    }

    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
        margin: 10px 20px; /* Further adjusting margin for very small screens */
    }
}



/* Services Section */
#services {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden; /* Ensure no overflow from animations */
}

#services h2 {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.see-all-services {
    text-align: center;
    margin-top: 40px;
}

.see-all-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff; /* Ensure a contrasting color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.5s;
    border: 2px solid ; /* Temporary border for visibility check */
    background-color: #28a745; /* Change to a distinct color */
}

.see-all-btn:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================= */
/* Product slider */
#product-slider {
    position: relative;
    width: 100%;
    height: min-content;
    overflow: hidden;
    background-color: cadetblue;
  }
  
  #product-slider, h2{
    padding-top: 30px;
  }

  /* Wrapper to hold the product cards */
  .slider-container {
    display: flex;
    width: 100%;
    overflow: hidden;
  }
  
  /* Wrapper for scrolling */
  .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform; /* Optimize for smoother animations */
  }
  
  /* Individual product card styling */
  .product-card {
    flex: 0 0 auto; /* Prevent cards from shrinking */
    width: 200px; /* Adjust based on your card size */
    margin-right: 16px; /* Spacing between cards */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    background-color: #ade2f6;
    border: 2px solid #00afef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Optional: styling for images and titles */
  .product-card img {
    width: 100%;
    height: 150px; /* Fixed height for all images */
    object-fit: contain; /* Ensures the image scales properly without distortion */
    border-radius: 8px;
    background-color: #fff; /* Adds a background color in case the image has transparent areas */
}
  
  .product-card h3 {
    font-size: 16px;
    margin-top: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.product-card:hover h3 {
    color: #007bff;
}
  
  /* Media query for mobile devices */
  @media (max-width: 768px) {
    .product-card {
      width: 160px; /* Adjust size for mobile */
      margin-right: 12px; /* Adjust spacing for mobile */
      height: fit-content;
    }
  }

  @media (max-width: 480px) {
    .product-card {
      width: 120px; /* Adjust size for mobile */
      margin-right: 8px; /* Adjust spacing for mobile */
      height: auto;
    }
  }
  
  
/* ============================================================================= */
/* About Us Section */
#about {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.about-text {
    flex: 1;
    padding: 20px;
}

.about-image {
    flex: 1;
    padding: 20px;
}

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

@media (max-width: 1200px) {
    .about-text {
        flex: 1.5;
    }

    .about-image {
        flex: 1;
    }
}

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

    .about-text, .about-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .about-image img {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .about-image img {
        max-width: 100%;
        height: auto;
    }
}


/* ==================================================================================================== */
/* Trusted Partners Section */
#trusted-partners {
    padding: 50px 20px;
    background-color: cadetblue;
    text-align: center;
}

#trusted-partners h2 {
    font-size: 2.5em;
    /* margin-bottom: 30px; */
    color: #333;
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.partner {
    flex: 0 0 auto;
    width: calc(100% / 7); /* Show 6 items by default */
    max-width: 160px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Slider Navigation Buttons */
button {
    background-color: #ff5722;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #trusted-partners h2 {
        font-size: 2em;
    }

    .partner {
        width: calc(100% / 7); /* Show 7 items per row */
    }

    button {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    #trusted-partners h2 {
        font-size: 1.8em;
    }

    .partner {
        width: calc(100% / 5); /* Show 5 items per row */
    }
}

@media (max-width: 480px) {
    #trusted-partners h2 {
        font-size: 1.5em;
    }

    .partner {
        width: calc(100% / 5); /* Show 5 items per row */
    }

    button {
        font-size: 1em;
        padding: 5px;
    }
}



/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid #ff5722; /* Emphasize footer with top border */
}

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

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 220px;
    animation: fadeIn 1s ease-out;
}

.footer-section h4 {
    border-bottom: 2px solid #ff5722; /* Highlight section titles */
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove default padding */
}

.footer-section ul li {
    margin: 5px 0; /* Add some space between items */
}

.footer-section ul li a{
    color: #007bff;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icons a {
    animation: bounceIn 1s ease-out;
}
.social-icons a img {
    width: 38px;
    height: 38px;
}

.footer-bottom {
    margin-top: 20px;
    animation: slideUp 1s ease-out;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: #ddd;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Media Queries */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}