* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#default-form{
    display: block;
}
#vin-form{
    display: none;
}


.nav-main {
    position: fixed;
    display:flex;
    justify-content: space-around;
    align-items:center;
    width: 100%;
    height: 10vh;
    background: rgb(44, 43, 43);
    transition: transform 0.3s ease;
    opacity:95%;
    z-index:10;
}
.head-text{
    color:white;
    text-align:center;
    font-size:3rem;
    }


#menu{
    display:none;
}
.nav-main ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    color: white;
    gap: 30px;
    height: 100%;
}

.background-container {
    width: 100%;
  
}

.over-div {
   width:100%;
    padding: 50px 0px 50px 0px;
    display:flex;
    justify-content:center;
    
}

.main {
    width: 100%;
  
}
.form-div1 form {
    display: flex;
    background: white;
    flex-direction: column; /* Change to column on small screens */
    width: 100%;
    height: auto;
    padding:20px;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.form-div1 input {
    padding: 10px;
    border: 1px solid #cccccc;
    width: 100%;
    max-width: 500px; /* Max width for input */
}

.form-div1 button {
    padding: 10px;
    border: 1px solid #cccccc;
    background: red;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    max-width: 200px; /* Max width for button */
}

@media (min-width: 700px) {
    .form-div1 form {
        flex-direction: row; /* Change to row on larger screens */
        width:650px;
        border-radius: 10px;
        height: 290px;
    }
}
.form-div {
    width:100%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    display:grid;
  
    grid-template-columns:repeat(3,1fr);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    gap:20px;
    
}
.outer-form{
    max-width:80%;
    margin-top:15%;
}

.background-image{
    position:relative;
  
}
.overlay{
    position:absolute;
    top:0;
    left:0;

    height:100vh;
}
.logo{
    width:100px;
    height:100px;
}
.car-box{
    background:red;width:100px;height:40px;
    border-top-right-radius:10px;border-top-left-radius:10px;
}


@media (max-width: 1200px) {
    
    
    .nav-main{
        position: fixed;
        max-width: 100%;
        height: 10vh;
        background: rgb(44, 43, 43);
        transition: transform 0.3s ease;
        opacity:90%;
        z-index:10;
    }
    .outer-form{
        max-width:80%;
        margin-top:20%;
    }
    
.nav-main.show {
    transform:none;
}
.head-text{
    color:rgb(2, 2, 2);
    text-align:center;
    font-size:2.5rem;
    }

.nav-main ul {
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    list-style: none;
    color: white;
    gap: 30px;
    height: 100%;
}
.toggle-button{
    display:none;
}
.form-div {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 5px;
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
    
}
}

.toggle-button {
    width: 60px;
    height: 60px;
    border-radius:50%;
    background: rgb(44, 43, 43);
    position: fixed;
    top:45%;
    left: 86%;
    cursor: pointer;
    display:flex;
    justify-content: end;
    align-items:center;
    opacity:90%;
    transition: left 0.3s ease;
}
  


/* Reset default styles for select */
select {
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
  }
  
  /* Style the dropdown arrow */
  select::-ms-expand {
    display: none;
  }
  
  /* Style the options */
  select option {
    padding: 10px;
  }
  
  /* Hover and focus styles */
  select:hover,
  select:focus {
    border-color: #007bff;
  }
  
  #dynamic-text{
      font-size:2.5rem;
      
  }
  @media(max-width:800px){
    .toggle-button {
        width: 60px;
        height: 60px;
        border-radius:50%;
        background: rgb(44, 43, 43);
        position: fixed;
        top:45%;
        left: 96%;
        cursor: pointer;
        display:flex;
        justify-content: end;
        align-items:center;
        opacity:90%;
        transition: left 0.3s ease;
    }
    .toggle-button{
        display:none;
    }

    #menu{
        display:block;
    }
    .logo{
      width:100px;
      height:100px;
    }
    .head-text{
        color:rgb(2, 2, 2);
        text-align:center;
        font-size:2rem;
        }
        
          #dynamic-text{
      font-size:1rem;
      
  }
  }

  /* ....... */

  .parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  .part-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .part-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .inner-section2{
   
    margin:auto;
    margin-top: 1rem;
}



/* .............. */
.footer-inner {
    max-width:1200px;
    margin:auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap:20px;
    font-size: 0.8rem;
    justify-content:center; /* Center contents horizontally */
    align-items: center; /* Center contents vertically */
}



@media(max-width:800px){
    .footer-inner {
    
        grid-template-columns:1fr;
    
    }
   .nav-main .nav-links{
        display:none;
    }
 

    .car-box{
        background:red;width:100px;height:40px;
        border-top-right-radius:10px;border-top-left-radius:10px;
    }
    
}

/* .......... */

.nav-links li,a{

    color:white;
    text-decoration:none;
    list-style: none;

}

.select2-container .select2-selection--single{
    height:34px !important;
}
.select2-container--default .select2-selection--single{
         border: 1px solid #ccc !important; 
     border-radius: 0px !important; 
}

/* mobile view  */
#menu {
    cursor: pointer;
  }

  .mobile-nav {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    background: #050404;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav.open {
    transform: translateX(0%);
  }

  .mobile-nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .mobile-nav ul li {
    padding: 10px;
  }

  .mobile-nav ul li a {
    color: white;
    text-decoration: none;
  }
/* ........... */
@media(min-width:800px){
    .mobile-nav{
        display:none;
    }

}


/* ................. */


.services{
    max-width:1200px;
    margin:auto;
    padding:10px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

@media(max-width:700px){
    .services{
        grid-template-columns:1fr;
    }
}


.custom-modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1000; /* Higher z-index to ensure it's above other content */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.custom-modal-content {
    background-color: #ffffff;
    max-width: 500px;
    margin: 10% auto; /* Center modal vertically */
    padding: 30px;
    border-radius: 7px;
    border:2px solid rgb(230, 183, 30);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-close {
    color: #aaaaaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.custom-close:hover,
.custom-close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.custom-modal-content p {
    margin-bottom: 15px;
}

.custom-modal-content button {
    background-color: #d43429;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
}

.custom-modal-content button:hover {
    background-color: #b34800;
}

/* ............. list of companies */
.companies{
    width:80%;
}

.select option{
    font-size:0.8rem !important;
}

    .ticker-container {
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            padding: 10px;
            margin-top: 5px;
            margin-bottom: 20px;
        }
        .ticker-item {
            display: inline-block;
            padding-right: 50px;
        }


        /* slider images */

        .slider {
            position: relative;
            width: 70%;
            /* max-width: 1000px; */
            height: 400px; /* Fixed height for the slider */
            overflow: hidden;
            margin:auto;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            background: white;
        }
        
        .slider-container {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%; /* Ensure container takes full height */
        }
        
        .slide {
            min-width: 100%;
            box-sizing: border-box;
            height: 100%; /* Ensure slide takes full height */
        }
        
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Make images fill the slide maintaining aspect ratio */
            border-radius: 10px;
        }
        
        .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width:50px;
            height:50px;
            padding: 10px;
            cursor: pointer;
            border-radius: 50%;
            z-index: 10; 
        }
        
        .prev {
            left: 10px;
        }
        
        .next {
            right: 10px;
        }
        
        @media (max-width: 768px) {
            .slider {
                width: 80%;
                height: 300px; /* Adjust height for smaller screens */
            }
        
            .prev, .next {
                padding: 8px;
            }
        }
        
        @media (max-width: 480px) {
            .slider {
                width: 90%;
                height: 200px; /* Adjust height for very small screens */
            }
        
            .prev, .next {
                padding: 6px;
            }
        }
        /* services */
		
				 @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-30px);
        }
        60% {
            transform: translateY(-15px);
        }
    }

    .animated-image {
        animation: bounce 2s infinite;
    }

   @keyframes shake {
         0%, 5%, 100% { /* Start, end, and during the pause */
            transform: translateX(0);
        }
        10%, 30%, 50%, 70%, 90% {
            transform: translateX(-10px);
        }
        20%, 40%, 60%, 80% {
            transform: translateX(10px);
        }
    }

    .shake-animation {
        animation: shake 0.5s;
    }
    
    
    #call-us {
    position: fixed;
   /* right: 35px;*/
    right:20px;
    bottom: 20px;
    display: block;
    width: 200px; /*150px*/
    line-height: 48px;
    height: 48px;
    text-align: center;
    font-size: 18px;
	font-weight: bold;
    cursor: pointer;
    z-index:15;
    color: #fff !important;
    background: #FF0000;
	border-radius:5px;
}
#call-us a {
    text-align: center;
	color:#FFFFFF !important;
	font-size:18px;
}
/* ENDLESS BOUNCE */
.bounce {
	animation: bounce 2s infinite;
	-webkit-animation: bounce 2s infinite;
	-moz-animation: bounce 2s infinite;
	-o-animation: bounce 2s infinite;
}
 
@-webkit-keyframes bounce {
	0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}	
	40% {-webkit-transform: translateY(-20px);}
	60% {-webkit-transform: translateY(-15px);}
}
 
@-moz-keyframes bounce {
	0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
	40% {-moz-transform: translateY(-20px);}
	60% {-moz-transform: translateY(-15px);}
}
 
@-o-keyframes bounce {
	0%, 20%, 50%, 80%, 100% {-o-transform: translateY(0);}
	40% {-o-transform: translateY(-20px);}
	60% {-o-transform: translateY(-15px);}
}
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(-20px);}
	60% {transform: translateY(-15px);}
}

.myred{
color:#FF3300 !important;
}

/* ENDLESS ROTATE */
.rotate{
  /*animation: rotate 1.5s linear infinite; */
  animation: rotate 4.99s ease infinite;
}
@keyframes rotate{
  to{ transform: rotate(360deg); }
}


/* SPINNER JUST FOR DEMO */
.spinner{
  display:inline-block; width: 50px; height: 50px;
  border-radius: 50%;
  box-shadow: inset -2px 0 0 2px #0bf;
}

.shakediv {
  animation: shake-animation 3.72s ease infinite;
  transform-origin: 50% 50%;
}
.element {
  margin: 0 auto;
  width: 180px;
  height: 180px;
  background: red;
}
@keyframes shake-animation {
   0% { transform:translate(0,0) }
  1.78571% { transform:translate(5px,0) }
  3.57143% { transform:translate(0,0) }
  5.35714% { transform:translate(5px,0) }
  7.14286% { transform:translate(0,0) }
  8.92857% { transform:translate(5px,0) }
  10.71429% { transform:translate(0,0) }
  100% { transform:translate(0,0) }
}

.shakeit:hover {
  animation: shake 10.82s cubic-bezier(.36, .07, .19, .97) both infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  .76%, 6.84% {transform: translate3d(-1px, 0, 0)}
  1.52%, 6.08% {transform: translate3d(2px, 0, 0)}
  2.28%, 3.8%, 5.32% {transform: translate3d(-4px, 0, 0)}
  3.04%, 4.56% {transform: translate3d(4px, 0, 0)}
}
    
    
    @media only screen and (max-width: 768px) {
    .modal-center {
        width:80%;
        height: 70vh;
    }
    #call-us {
        right: 4px;
        bottom: 60px;
    }
    .call-us-wide a.btn-floating-footer {
        text-decoration: underline;
        border-radius: 0;
        padding: 0;
        border: none;
    }
}

/*Autoparts*/


.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

.sidebar {
    padding: 1rem;
    border-right: 1px solid #ccc;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Hide scrollbars */
    max-height: 60vh; /* Ensure the sidebar takes full height of the viewport */
    position: relative;
}

.sidebar-content {
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 1rem; /* Space for hidden scrollbar */
    height: 100%;
}

/* Hide scrollbar for WebKit browsers */
.sidebar-content::-webkit-scrollbar {
    width: 0;
}

/* Hide scrollbar for other browsers (Firefox) */
.sidebar-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    border:1px solid #B3C8CF;
    font-size: 1rem;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #f20101;
    color: #fff;
}

.main-section {
    width: 80%;
    padding: 1rem;
    display:flex;
    justify-content:center;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.card img {
    max-width: 100px;
    margin-right: 1rem;
}

.card-details {
    flex: 1;
}

.card-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 768px) {
 
    .sidebar ul{
        display:flex;
        flex-wrap: wrap;
        width:100%;
    }
  
    .main-section {
        margin: auto;
    
    }

    .card {
        flex-direction: column;
        align-items: flex-start;
    }

    .card img {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
    }

    .card-details {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-content {
        flex-direction: column;
    }
    #cardsContainer{
        width:100%;
    }


    .sidebar h3 {
        display: none;
    }

    .sidebar ul {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

  

    .card {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .card img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .card-details {
        width: 100%;
    }
}
/* display a popup */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content form {
    display: flex;
    flex-direction: column;
}

.popup-content form label {
    margin-top: 10px;
}

.popup-content form input,
.popup-content form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-content form button {
    background-color: #f20101;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
}

.popup-content form button:hover {
    background-color: #d10101;
}
.main-section {
    width: 100%;
    padding: 1rem;
    display:flex;
    justify-content:center;
}
