/********** Template CSS **********/
:root {
  --primary: red;
  --secondary: #0B2154;
  --light: #F2F2F2;
  --dark: #111111;
}

.bg-red {
  background-color: red !important;
  /* Pure red color */
}

@font-face {
  font-family: "Harabara";
  src: url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.eot");
  src: url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/69f1400361a215519d385199118a34aa.svg#Harabara")format("svg");
}

.harabara-font {
  font-family: 'Harabara', sans-serif;
}

.fw-medium {
  font-weight: 600 !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}


/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}


/*** Button ***/
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
  color: #FFFFFF;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 2px;
}

/* Navbar Styling */
.navbar-logo {
  height: 100px;
  width: auto;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 25px 0;
  color: #FFFFFF;
  font-size: 15px;
  text-transform: uppercase;
  outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--dark);
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar-light .navbar-nav {
    border-top: 1px solid #EEEEEE;
  }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
  height: 100px;
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 500;
}

.navbar-light.sticky-top {
  top: 0;
  /* Change to 0 to ensure it stays at the top */
  transition: top .5s;
  /* Transition for smooth sticking */
}


@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: .5s;
    opacity: 1;
  }
}


/* Hero Section Styles */
.hero-section {
  background-color: #f8f9fa;
}

.hero-section h1 {
  color: red;
  font-weight: bold;
}

.hero-section p {
  color: #000;
  font-size: 1.2rem;
}

.hero-section .btn-danger {
  background-color: rgb(255, 0, 0);
  border: none;
}

.hero-section .btn-outline-dark {
  border: 2px solid #ff0000;
  color: #ff0000;
  height: 56px;
}

.hero-section .btn-outline-dark:hover {
  background-color: #ff0000;
  color: #fff;
}

.hero-section img {
  max-width: 100%;
  height: auto;
}

/* About Us Section Styles */
.about-us-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-overlay {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  text-align: right;
  animation: fadeIn 2s ease-in-out;
}

.experience-overlay h1 {
  font-size: 3.5rem;
}

.experience-overlay h4 {
  font-size: 1.5rem;
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: #0B2154;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.card-text {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-us-section .btn-danger {
  background-color: #0B2154;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.about-us-section .btn-danger:hover {
  background-color: #C91A1F;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.machine-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: #fff;
  height: 100%; /* Ensure the card takes full height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between image and content */
}



.machine-card img {
  width: 87%;
  height: 60%; /* Set a fixed height for images */
  display: block;
  margin-left: 40px;
  transition: transform 0.3s ease-in-out;
}

.machine-card-body {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1; /* Ensure body content grows to fill available space */
}

.machine-card h5 {
  color: red;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.machine-card p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 0;
}

.machine-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.machine-section .row > .col-md-4 {
  display: flex;
  align-items: stretch;
}


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

.about-us-section h2 {
  color: red;
  font-weight: bold;
}

.about-us-section p {
  color: #000;
  font-size: 1rem;
}

.about-us-section .btn-danger {
  background-color: red;
  border: none;
}

.position-relative {
  position: relative;
}

.experience-overlay {
  position: absolute;
  top: 0;
  end: 0;
  background: red;
  /* Semi-transparent background */
  color: white;
  z-index: 1;
  /* Ensure the overlay text is readable */
}

.experience-overlay-home {
  position: absolute;
  top: 0;
  end: 0;
  background: rgba(0, 0, 0, 0.6);
  /* Semi-transparent background */
  color: white;
  z-index: 1;
  /* Ensure the overlay text is readable */
}

.experience-overlay h1,
.experience-overlay h4 {
  margin: 0;
}

.experience-overlay h1 {
  font-size: 3rem;
  /* Adjust as needed */
}

.experience-overlay h4 {
  font-size: 1.5rem;
  /* Adjust as needed */
}

/* Services Overview Section Styles */
.service-icon {
  font-size: 3rem;
  color: red;
}

.service-icon i {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 50%;
  display: inline-block;
}

.bg-light {
  background-color: #f9f9f9;
}

.display-6 {
  font-size: 2.5rem;
  font-weight: 600;
  color: red;
  text-align: center;
}

.btn-danger {
  background-color: red;
  border: none;
}

.btn-danger:hover {
  background-color: #e03a3a;
  border: none;
}

/* Portfolio Section Styles */
.row {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  /* Make the item a flex container */
  height: 100%;
  /* Full height of the column */
}

.portfolio-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
  flex: 1;
  /* Allows the image to grow and fill the container */
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 1rem;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

/* Gallery Item Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  /* Adjust height as needed */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay Styles */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Load More Button */
#loadMore {
  cursor: pointer;
}


/* Testimonials Section Styles */
.testimonial-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid red;
}

.testimonial-item h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

.testimonial-item p {
  font-size: 1rem;
  color: #666;
}

.testimonial-item small {
  display: block;
  font-size: 0.875rem;
  color: #999;
}

/* Contact Section Styles */
.contact-form {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
  font-weight: 600;
}

.contact-form textarea {
  resize: none;
}

.contact-info {
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  font-size: 1rem;
}

.contact-info i {
  font-size: 1.25rem;
  color: red;
}


@media (min-width: 330px) and (max-width:376px) {
  .new{
    margin-left: -20px;

  }
}
@media (min-width: 990px) and (max-width:2000px) {
  .new{
    margin-left: -72px;

  }
}



@media (min-width: 330px) and (max-width:380px) {
  .hero-section .btn-outline-dark{
    margin-top: 11px;
    margin-right: 0px;

  }
}

@media (min-width: 330px) and (max-width:990px) {
  .hero-section .btn-outline-dark{
    margin-left: -30px;
    margin-left: -8px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* WhatsApp green color */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Make sure it stays on top */
  transition: background-color 0.3s ease;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  background-color: #128C7E; /* Darker green for hover effect */
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* WhatsApp green color */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Make sure it stays on top */
  transition: background-color 0.3s ease;
  text-align: center;
  color: #fff;
  font-size: 24px;
}

.whatsapp-float:hover {
  background-color: #128C7E; /* Darker green for hover effect */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item-2 video {
  width: 100%;
  height: 300px; /* Adjust the height as needed */
  object-fit: cover; /* Ensures the video fills the space without distortion */
  border-radius: 8px;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

.gallery-item-2 {
  position: relative;
}

.custom-services-section {
  background-color: #f8f9fa;
  padding: 3rem 0;
}

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

.custom-heading {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

.custom-services-scroll {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  gap: 20px;
  justify-content: center; /* Centers the cards within the container */
}

.custom-service-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Elevated shadow for card effect */
  text-align: center;
  width: 250px; /* Fixed width for all cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ddd; /* Slight border to enhance card look */
}

.custom-service-item:hover {
  transform: translateY(-10px); /* Lift the card slightly on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}

.custom-service-item i {
  font-size: 3rem; /* Larger icon for emphasis */
  color: red; /* Use a primary color for icons */
  margin-bottom: 15px;
}

.custom-service-item h4 {
  font-size: 1.5rem; /* Slightly larger font for titles */
  font-weight: 600;
  color: #333;
  margin-top: 10px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .custom-service-item {
      width: calc(50% - 10px); /* Adjust width to fit two cards per row */
  }
}

/* Media query for very small devices (optional) */
@media (max-width: 350px) {
  .custom-service-item {
      width: calc(100% - 20px); /* Full width for very small screens */
  }
}


.custom-service-item:hover .whatsapp-overlay {
  opacity: 1;
  visibility: visible;
}

.whatsapp-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: white; /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-overlay a {
  color: #fff;
  font-size: 2rem;
}

.whatsapp-icon {
  font-size: 2.5rem;
  color: #25D366; /* WhatsApp green color */
}

.custom-service-item:hover .whatsapp-icon {
  transform: scale(1.2); /* Slightly enlarge the icon on hover */
  transition: transform 0.3s ease;
}