/* #region Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
body, * {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}


:root {
    --primary-color: #EC1C25 ; 
    --secondary-color:#F2EEEE;
    --tertiary-color:#545557;
}

section{
  width: 100%;
  background: white !important;
  padding: 10px 0px 10px 0px;
}

h1{
  font-size: 32px;
}
/* #endregion */

/* #region Landing image Styles */

#content-home{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 10%;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: white !important;
}

#content-home::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#content-home img{
    display: block;
    object-fit: cover;
    width: 100%;
    height:auto;
}

.overlay-text {
    position: absolute;
    top: 20%;
    left: 25%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
    padding: 20px;
    border-radius: 10px;
}

.overlay-text h1 {
    font-size: 2.5em;
    margin: 0;
}

.overlay-text p {
    font-size: 1.2em;
    margin-top: 10px;
}


@keyframes fadeEffect {
  from {
      opacity: 0.4;
  }
  to {
      opacity: 1;
  }
}
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.highlight {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid black; 
    width: 0;
    animation: typing 3s steps(20, end) forwards, blinkCursor 0.5s infinite;
    color: var(--primary-color);
}

@keyframes blinkCursor {
    50% {
        border-color:transparent;
    }
}

.divider{
  color: var(--primary-color);
}

/* #endregion */

/*#region Slider Styles*/

.slideshow-container {
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
  width: 100%;
  animation: fadeCycle 10s infinite;
}


@keyframes fadeCycle {
  0% { opacity: 0; }
  10% { opacity: 1; }  /* Fade in */
  45% { opacity: 1; }  /* Stay fully visible */
  55% { opacity: 0.8; } /* Begin fade out */
  65% { opacity: 0.4; } /* Soft fade */
  100% { opacity: 0; } 
}
/*#endregion*/

/* #region Our Service Styles */
.Our-Services-heading{
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 20px;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
  }
  
  .service-card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    width: 150px;
  }
  
  .service-card:hover{
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
  }

  .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .card-icon {
    width: 100px;
    height: 100px;
  }
  
  .card-title {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .card-button {
    display: block;
    width: 100%;
    background: var(--secondary-color);
    color: black;
    padding: 10px;
    border-radius: 8px;
    border: none;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
  }
  
.card-button:hover {
    background: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
.service-card:hover  .card-button{
  background-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* #endregion */

/* #region Why Choose Us Styles */
  .why-choose-us {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 20px;
  } 

  .choose-us-heading{
    padding: 20px;
  }

  .accordion {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 0 auto;
  }

  .accordion-item {
    background: #f8f8f8;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background-color: #002B5B;
    color: white;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-button svg {
  width: 30px; 
  height: 30px;
  fill: black; 
  transition: transform 0.3s ease;
}

.accordion-button:hover {
    background: #0056b3;
}

.accordion-item:hover .accordion-content {
    max-height: 200px; 
    opacity: 1;
    display: block;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.accordion-content {
    display: none;
    padding: 15px;
    font-size: 14px;
    background: white;
    border-top: 1px solid #ddd;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}
/* #endregion */

/* #region Car Brands Styles */
.cars-we-repair {
  padding: 20px 20px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cars-we-brands{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cars-we-brands h1 {
  margin-bottom: 10px;
}

.cars-we-brands h3 {
  margin-bottom: 20px;
  color:var(--primary-color)
}

.table-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

table {
  width: 80%;
  border-collapse: collapse;
}

td {
  padding: 15px;
  text-align: center;
  border: 1px solid black;
}

td img {
  width: 80px;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease-in-out;
}
/* #endregion */

/*#region Our Partners Styles*/

.our-partners{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.Our-partners-brand{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.our-partners-heading{
  padding-bottom: 15px;
}
.partner-brand{
  width: 250px;  
  height: 200px; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.partner-brand img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
}

img #ergo{
  mix-blend-mode: color-burn;
}
/* #endregion*/

/* #region Customer Review*/
.review-section {
  margin-top: 50px;
}

.review-slider {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
}

.review {
  width: 50%;
  padding: 20px;
  background: #ffe6e1;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  position: absolute;
  text-align: center;
}

.review.active {
  display: block;
  opacity: 1;
}

.review h3 {
  margin-bottom: 10px;
  color: #ff6f61;
}

.review p {
  font-size: 16px;
}

/* Slider Controls */
.slider-controls {
  margin-top: 10px;
}

.slider-btn {
  padding: 10px 20px;
  margin: 5px;
  background: #ff6f61;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.slider-btn:hover {
  background: #e45b50;
}

/*#endregion*/

/* #region Mobile Styles */
@media (max-width: 767px) {
  body, html {
      width: 100%;
      overflow-x: hidden;
  }

  h1{
    font-size: 22px;
  }

  h3{
    font-size: 12px;
    text-align: center;
  }
  #content-home {
      height: auto;
  }

  .overlay-text {
    position: absolute;
    top: 5%;  
    left: 50%;  
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;  
    padding: 10px;  
    color: white;
    background: rgba(0, 0, 0, 0.5);  
    border-radius: 8px;
    font-size: 18px;
  }

  .overlay-text h1 {
      font-size: 1em;
  }

  .overlay-text p {
      font-size: 1em;
  }

  .services-container {
      flex-direction: column;
      align-items: center;
  }

  .service-card {
      width: 70%;
  }

  .accordion {
      grid-template-columns: 1fr; 
  }

  .accordion-button {
      font-size: 14px;
      padding: 12px;
  }

  .accordion-content {
      font-size: 12px;
      padding: 10px;
  }

  .accordion-button svg {
      width: 24px;
      height: 24px;
  }

  table {
    width: 100%;
    margin: 10px;
  }

  td {
    padding: 0;
  }

  tr {
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

  p{
    font-size: 12px;
    text-align: center;
  }
  
  .Our-partners-brand {
    justify-content: center; 
  }

  .partner-brand {
    width: 45%; 
  }

}
/* #endregion */