/* Topbar styling */
.topbar {
    background-color: #343a40;
    color: #f8f9fa;
  }
  
  .topbar i {
    color: #f8f9fa;
  }
  
  .topbar .btn {
    border-color: #ffc107;
    color: #ffc107;
  }
  
  .topbar .btn:hover {
    background-color: #ffc107;
    color: #343a40;
  }
  
  /* Navbar styling */
  .navbar-nav .nav-link {
    transition: color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    color: #ff0000; /* Red color */
  }
  
  .navbar-nav .nav-link.active {
    color: #ff0000; /* Red color */
  }
  
  a.navbar-brand{
      cursor: default;
      text-decoration: none;
    }
    a.navbar-brand:hover{
      text-decoration: none;
    }
  
  .navbar-nav .dropdown-menu {
    background-color: #343a40;
  }
  
  .navbar-nav .dropdown-item:hover {
    background-color: #007bff; /* Blue color */
    color: #ffffff;
  }
  
  .navbar-nav .dropdown-item {
    color: #f8f9fa;
  }
  .topbar {
      background-color: #343a40;
      color: #f8f9fa;
    }

    .topbar i {
      color: #f8f9fa;
    }

    .topbar .btn {
      border-color: #ffc107;
      color: #ffc107;
    }

    .topbar .btn:hover {
      background-color: #ffc107;
      color: #343a40;
    }

    /* Hide search input */
    .search-form {
      position: relative;
    }

    .search-form .form-control {
      display: none;
      transition: all 0.3s ease;
    }

    .search-form .form-control.show {
      display: block;
    }

    .topbar {
        background-color: #343a40;
        color: #f8f9fa;
      }
  
      .navbar-nav {
        text-align: center;
      }
  
      .navbar-nav .nav-link {
        margin: 0 15px;
      }
  
      .btn-get-quote {
        background-color: red;
        color: white;
        border: none;
        transition: background-color 0.3s;
      }
  
      .btn-get-quote:hover {
        background-color: #c82333;
      }

      /* Define the popping animation */
    @keyframes popIn {
        0% {
        transform: scale(0.8);
        opacity: 0;
        }
        50% {
        transform: scale(1.05);
        opacity: 1;
        }
        100% {
        transform: scale(1);
        opacity: 1;
        }
    }
    
    .carousel-caption {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 1rem;
      border-radius: 10px;
  }

    /* Center the carousel text */
    .carousel-caption h5 {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 150%; /* Adjust this for desired width */
      margin: 0 auto;
      font-size: 3vw; /* Responsive font size */
  }

/* Add dancing effect */
@keyframes dance {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

.dancing-text {
  animation: dance 1s infinite;
}

.animated {
  animation-duration: 1.5s;
  animation-fill-mode: both;
}

.bounceIn {
  animation-name: bounceIn;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}
.fadeIn{
  animation-name: fadeIn;
}

/* Red border surrounding trading hours */
.trading-hours {
  position: relative;
  padding: 10px;
  border: 2px solid red;
  border-radius: 5px;
  display: inline-block;
  background-color: transparent;
}

/* Diagonal red line coming from the "d" in Closed */
.red-slash {
  position: absolute;
  top: 50%;
  left: 95%;
  height: 3px;
  width: 60px;
  background-color: red;
  transform: rotate(25deg);
  transform-origin: left center;
}

.closed {
  position: relative;
}

/* Stylish Red Divider */
.divider {
  height: 5px;
  background-color: #ff0000;
  border: none;
  margin-top: 10px;
  box-shadow: 0px 2px 5px rgba(255, 0, 0, 0.5);
  transition: width 0.4s ease-in-out;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.divider:hover {
  width: 100%;
}


/* Navbar Enhancements */
.navbar .nav-link {
  color: #ddd;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #ff4500; /* Bright color for hover and active states */
}

.navbar-brand .brand-title {
  font-size: 24px;
  font-weight: bold;
  color: #f1f1f1;
}

/* Get Quote Button */
.btn-get-quote {
  background-color: #ff4500;
  color: white;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-get-quote:hover {
  background-color: white;
  color: #ff4500;
  border: 2px solid #ff4500;
}

/* Carousel Text Styling */
.carousel-caption h5 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds depth to the text */
}

.carousel-caption p {
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds depth to the text */
}

.text-shadow {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Text shadow effect for emphasis */
}

.carousel-item img {
  filter: brightness(70%); /* Darken image for better text visibility */
}

/* Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation-duration: 1.5s;
  animation-fill-mode: both;
}


/* Additional Styles */
  /* Topbar styling */
  .red-slash {
    width: 2px;
    height: 20px;
    background-color: red;
    margin-left: 8px;
  }
  .divider {
    width: 100%;
    height: 2px;
    background-color: red;
  }

  /* Navbar styling */
  .navbar-brand .brand-title {
    font-weight: bold;
    font-size: 1.5rem;
  }
  .navbar-nav .nav-link {
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  .navbar-nav .nav-link:hover {
    color: #ff3b3f;
  }
  .btn-get-quote {
    background-color: #ff3b3f;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .btn-get-quote:hover {
    background-color: white;
    color: #ff3b3f;
    border: 2px solid #ff3b3f;
  }

  /* Hover fade effect */
  .hover-fade {
    transition: all 0.3s ease-in-out;
  }
  .hover-fade:hover {
    background-color: #ffbb00;
    color: black;
  }

  /* hover over section of service*/
  .hover-effect {
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  /*Add custom CSS for footer styling */
  .social-icon {
    transition: color 0.3s ease;
  }

  .social-icon:hover {
    color: #ff4757; /* Customize hover color */
  }

  .hover-underline:hover {
    text-decoration: underline;
  }


  /* Add custom CSS for footer styling*/

  .quick-links {
    position: relative;
    padding-left: 2rem; /* Space for arrow */
  }

  .quick-links li {
    position: relative;
    margin-bottom: 0.5rem;
  }

  .quick-links li a {
    color: #ffffff; /* Ensure links are white */
    text-decoration: none;
    display: inline-block;
    padding-left: 1.5rem; /* Space for arrow */
    transition: color 0.3s ease; /* Smooth color transition */
  }

  .quick-links li::before {
    content: '\2192'; /* Unicode for right arrow */
    font-size: 1rem; /* Adjust size as needed */
    color: #ffffff; /* Default arrow color */
    position: absolute;
    left: -1.5rem; /* Adjust positioning */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    transition: color 0.3s ease; /* Smooth color transition */
  }

  .quick-links li a:hover {
    color: #ff4757; /* Red color on hover */
  }

  .quick-links li a:hover::before {
    color: #ff4757; /* Change arrow color on hover */
  }


  /* Add custom CSS for footer styling */

  .social-icon {
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .social-icon:hover {
    color: #ff4757; /* Red color on hover */
    transform: scale(1.1); /* Slightly enlarge the icon on hover */
  }

  .quick-links a {
    color: #ffffff; /* Ensure links are white */
    text-decoration: none;
  }

  .quick-links a:hover {
    color: #ff4757; /* Red color on hover */
    text-decoration: underline;
  }

  /* Custom Font Styles */
  .brand-title {
    font-family: 'Lobster', cursive;
  }

  /* Styling for the h2 headings in sections */
  h2 {
    font-family: 'Lobster', cursive;
  }

  /*WhatsApp integration*/
  .whatsapp-float{
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .whatsapp-fload:hover{
    background-color: #128C7E;
  }

  /* Add hover effect to list items */
  .hover-list li {
    list-style-type: disc;
    margin-bottom: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .hover-list li:hover {
    transform: translateX(10px); /* Moves the item to the right on hover */
    color: #007bff; /* Changes text color on hover */
  }


  /* Remove default bullet points from the list and add more style to QUICK LINKS */
  .hover-list {
    list-style: none;
  }

  /* Style the list items */
  .hover-list li {
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  /* Hover effect for links */
  .hover-list li a {
    color: #f8f9fa; /* Set initial link color */
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .hover-list li a:hover {
    color: #ff0000; /* Change to red on hover */
  }
  

  /*CSS for tyres images from learn more*/
  .fixed-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  


  .pricing-container {
    position: relative;
    overflow: hidden;
    height: 80px; /* Adjust height as needed */
    white-space: nowrap; /* Prevent wrapping */
    animation: slide 15s linear infinite; /* Adjust duration for speed */
}

.price {
    display: inline-block;
    margin-right: 1px; /* Space between messages */
    font-size: 1.5rem; /* Font size */
    font-weight: bold; /* Bold text */
    color: #ff4081; /* Pricing color */
}

@keyframes slide {
    0% {
        transform: translateX(100%); /* Start off-screen right */
    }
    100% {
        transform: translateX(-100%); /* End off-screen left */
    }
}

/*Css to have pricing stand oout*/
.price-badge {
  display: inline-block;
  font-size: 1.25rem; /* Larger font size */
  font-weight: bold;
  color: #ff4500; /* Bright color for visibility */
  background-color: #f8f9fa; /* Light background for contrast */
  padding: 10px 15px;
  border-radius: 5px; /* Slightly rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Add this CSS to style the zoom-in effect */
  .image-container {
    overflow: hidden; /* Ensures the image doesn't go outside its container when zooming */
  }

  .zoom-img {
    transition: transform 0.3s ease-in-out; /* Smooth zoom-in effect */
  }

  .zoom-img:hover {
    transform: scale(1.1); /* Zoom in by 10% */
  }

  /*set-up for image adjustment across*/
  .uniform-img {
      width: 100%;
      height: 250px; /* Set a fixed height */
      object-fit: cover; /* This will crop the image if necessary */
      border-radius: 10px;
  }
  
  /* Add custom CSS to control the image height and width */
  

  /* Enforce a consistent aspect ratio for carousel images */
  .carousel-image {
    width: 100%; /* Ensures the image takes up the full width */
    height: 550px; /* Set a specific height for consistency */
    object-fit: cover; /* Ensures the image covers the area without distortion or stretching */
    object-position: center; /* Keeps the focus of the image centered */
  }
  
  @media (max-width: 768px) {
    .carousel-image {
      height: 400px; /* Adjust height for smaller screens */
    }
  }
  
  @media (max-width: 768px) {
    .carousel-caption {
        top: 70%; /* Adjusts the position of the caption for mobile */
        padding: 1rem; /* Adds some padding for readability */
    }
    .carousel-caption h5 {
        font-size: 1.5rem; /* Scales down the title text for mobile */
        line-height: 1.2;  /* Adjusts line height for better readability */
    }
    .carousel-caption p {
        font-size: 1rem; /* Scales down the description text */
        padding: 0 1rem; /* Adds horizontal padding for readability */
    }
    .carousel-caption a {
        font-size: 1rem; /* Reduces the button text size */
        padding: 0.5rem 1rem; /* Adjusts button padding */
    }
    .carousel-image {
        height: 350px; /* Reduces the image height for mobile */
    }
}
  @media (max-width: 576px) {
    .carousel-image {
      height: 300px; /* Adjust height for very small screens */
    }
  }

  /*gallery*/
  .gallery-image {
    width: 100%;
    height: 100px; 
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 5px;
  }

  /*Add this custom CSS to style the images*/
  .service-image {
    width: 100%;  /* Full width of the card */
    height: 200px;  /* Fixed height */
    object-fit: cover;  /* Ensures image covers the entire area while maintaining aspect ratio */
    border-radius: 8px; /* Optional for rounded corners */
  }

  /* CSS for consistent image dimensions tyre_replacement*/
  .fixed-img {
    width: 100%;
    height: 200px; /* You can adjust the height here */
    object-fit: cover;
  }

  /* Ensuring cards are always in one row on large screens */
  @media (min-width: 992px) {
    #tyre-replacement .row {
      display: flex;
      flex-wrap: nowrap;
    }
  }

  /*CSS to maintain the height of card-body even when less words*/
  .card-body{
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  /*image of about our service to remain the same*/
  .image-container {
    width: 100%;
    height: 250px; /* Set the fixed height for all images */
    overflow: hidden; /* Ensure any overflow is hidden */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire container while keeping its aspect ratio */
    object-position: center; /* Center the image within the container */
}
@media (max-width: 768px) {
  .quick-link {
    font-size: 1rem; /* Adjust link size for mobile devices */
  }
}

/* Add custom CSS for Quick Links */
.quick-links-hover-list li {
  list-style: none; /* Removes bullet points */
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.quick-links-hover-list li a {
  text-decoration: none;
  color: #ecf0f1; /* Initial link color */
  transition: color 0.3s ease;
}

.quick-links-hover-list li:hover {
  transform: translateX(10px); /* Adds a slight movement on hover */
}

.quick-links-hover-list li a:hover {
  color: red; /* Change link color on hover */
}

/*Add this CSS to your stylesheet or within a <style> tag */
.animated-text {
  font-size: 1.5rem; /* Adjust font size as needed */
  font-weight: bold;
  color: #ff0000; /* Red color */
  animation: dance 1s infinite alternate; /* Animation */
}

@keyframes dance {
  0% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(5px); }
  75% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/*Css for footer with media links*/
/* Footer background and text color */
footer {
  /*background-color: #1a1a1a;  Replace with your theme's primary or secondary color */
  color: #ffffff; /* Use a color that contrasts well with the background */
  padding: 20px 0;
}

/* Social media icons style */
.social-icon {
  color: #ffffff; /* Base color for icons */
  transition: color 0.3s ease; /* Smooth hover effect */
}

.social-icon:hover {
  color: #ff0000; /* Your hover color, consistent with your website's theme */
}

/* Text alignment and margin adjustments */
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #444; /* Optional: a border to separate footer from content */
}

.footer-bottom p {
  margin-bottom: 0;
  color: #ccc; /* Muted text color */
}

/* Responsive alignment */
@media (max-width: 768px) {
  .footer-bottom .text-center {
    text-align: center;
  }
}
/*CSS for modal*/
.btn-warning:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.5);
}


/*TEMPORARY STYLING*/
/* Carousel Image Container */
.carousel-image-container {
  position: relative;
  width: 100%;
  height: 550px; /* Fixed height for all images */
  overflow: hidden;
}

/* Carousel Image */
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container */
  object-position: center; /* Centers the image */
}

/* Light Black Shade Overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1; /* Ensures text appears above the overlay */
  width: 90%; /* Limit width to prevent overflow */
  max-width: 800px; /* Maximum width for larger screens */
  padding: 20px; /* Add padding for better spacing */
}

.carousel-caption h5 {
  font-size: clamp(1.5rem, 5vw, 3rem); /* Responsive font size */
  margin-bottom: 10px; /* Space between title and description */
}

.carousel-caption p {
  font-size: clamp(1rem, 3vw, 1.5rem); /* Responsive font size */
  margin-bottom: 20px; /* Space between description and button */
}

.carousel-caption a {
  font-size: clamp(0.8rem, 2vw, 1.2rem); /* Responsive font size */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-image-container {
    height: 400px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 576px) {
  .carousel-image-container {
    height: 300px; /* Adjust height for very small screens */
  }
}

