:root {
  --white: #fff;
  --company-red: #e93325;
  --comany-red-low-opacity: #e93325;
  /* --comany-red-low-opacity: rgba(233, 51, 37, 0.9); */
  --black: #000;
  --light-red: #ffa583;
  --timeline-gradient: rgba(233, 51, 37, 1) 0%, rgba(233, 51, 37, 1) 50%,
    rgba(233, 51, 37, 0) 100%;
}

*::before,
*::after {
  color: #fff;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

/* SECTION */

.section .container {
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}

.section h1 {
  font-size: 2.8rem;
  color: var(--company-red);
  padding-bottom: 10px;
  padding-top: 10px;
}

/* TIMELINE */

button {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

a {
  color: inherit;
}

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

body {
  font: 16px;
  background: var(--white);
  color: var(--black);
}

/* .section SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.section {
  padding: 10px 50px auto auto;
}

.section .container {
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}

.section h1 {
  background-color: #e93325;
  background-image: linear-gradient(to right, #e93325 0%, #c40000 100%);
  background-size: 100%;
  /* margin-top: 2rem; */
  margin-bottom: 1.5rem;
  font-size: 4rem;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
  position: relative;
  white-space: nowrap;
  max-width: 1400px;
  padding: 0 10px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px auto;
  grid-gap: 20px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 30px;
  width: 100px;
  z-index: 2;
}

.timeline::after {
  right: 0;
}

.timeline::before {
  left: 340px;
}

.timeline .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 40px;
  color: var(--white);
  background: var(--comany-red-low-opacity);
  white-space: normal;
  border-radius: 10px;
}

.timeline .info img {
  margin-bottom: 20px;
}

.timeline .info p {
  margin-top: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-style: italic;
}

.timeline ol::-webkit-scrollbar {
  height: 12px;
}

.timeline ol::-webkit-scrollbar-thumb,
.timeline ol::-webkit-scrollbar-track {
  border-radius: 92px;
}

.timeline ol::-webkit-scrollbar-thumb {
  background: var(--company-red);
}

.timeline ol::-webkit-scrollbar-track {
  background: var(--light-red);
}

.timeline ol {
  font-size: 0;
  padding: 250px 0;
  transition: all 1s;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--light-red) var(--company-red);
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 160px;
  height: 5px;
  background: var(--light-red);
  scroll-snap-align: start;
}

.timeline ol li:last-child {
  width: 340px;
}

.timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--company-red);
  z-index: 1;
}

.timeline ol li time {
  color: var(--white);
}

.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 280px;
  padding: 15px;
  font-size: 1.1rem;
  white-space: normal;
  color: var(--white);
  background: var(--comany-red-low-opacity);
  border-radius: 0 10px 10px 10px;
}

.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ol li:nth-child(odd) div {
  top: -16px;
  transform: translateY(-100%);
  border-radius: 10px 10px 10px 0;
}

.timeline ol li:nth-child(odd) div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: var(--white) transparent transparent transparent;
}

.timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}

.timeline ol li:nth-child(even) div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent var(--white);
}

.timeline time {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--company-red);
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 800px) {
  .timeline {
    display: block;
  }

  .timeline::before,
  .timeline::after {
    width: 50px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    font-size: 1rem;
    border-radius: 8px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .timeline .info img {
    max-width: 120px;
    margin-bottom: 12px;
  }

  .timeline .info p {
    font-size: 1rem;
    margin-top: 8px;
  }
}

/* Slider */

.slider__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-left: 5%;
  margin-right: 5%;
  gap: 40px;
  min-height: auto;
  margin-bottom: 30px;
}

.slider__description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding: 20px 40px;
  color: var(--white);
  background: var(--company-red);
  white-space: normal;
  border-radius: 10px;
  max-width: 600px;
  min-width: 0;
  min-height: 50vh;
  flex: 1 1 0;
  box-sizing: border-box;
}

.slider__description img {
  max-width: 80px;
  margin-bottom: 12px;
}

.slider__description p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: var(--white);
  line-height: 1.5;
  font-style: italic;
}

.certifications__slider {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: var(--white);
  flex: 1 1 0;
  max-width: 600px;
  min-width: 0;
  box-sizing: border-box;
}

.certifications__slider .slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  background-color: var(--white);
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.certifications__slider .item {
  position: relative;
  width: 600px;
  max-width: 90%;
  background-color: var(--white);
  border: 2px solid var(--company-red);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: var(--black);
  transition: all 0.5s ease;
}

.certifications__slider .item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}

.certifications__slider .item h1 {
  color: var(--company-red);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.certifications__slider .item .slider-image {
  width: 100%;
  max-width: 595px;
  height: 73vh;
  object-fit: contain;
  margin-bottom: 10px;
  border: 1px solid var(--company-red);
}

.certifications__slider .item p {
  color: var(--black);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.certifications__slider #next,
.certifications__slider #prev {
  position: absolute;
  top: 45%;
  width: 54px;
  height: 54px;
  background: var(--company-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
}

.certifications__slider #next span,
.certifications__slider #prev span {
  font-weight: bold;
  display: inline-block;
}

.certifications__slider #prev span {
  transform: translateX(-2px);
}

.certifications__slider #next span {
  transform: translateX(2px);
}

.certifications__slider #next:hover,
.certifications__slider #prev:hover,
.certifications__slider #next:focus,
.certifications__slider #prev:focus {
  background: #000;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(233, 51, 37, 0.18);
  opacity: 1;
}

.certifications__slider #prev {
  left: 0px;
}

.certifications__slider #next {
  right: 0px;
}

.certifications__slider #prev {
  left: 0px;
}

.certifications__slider #next {
  right: 0px;
}

@media screen and (max-width: 1200px) {
  .slider__description {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .certifications__slider .item .slider-image {
    height: 65vh;
  }
}

@media screen and (max-width: 1000px) {
  .slider__container {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .slider__description,
  .certifications__slider {
    max-width: 100%;
    width: 100%;
  }

  .certifications__slider .slider {
    min-height: auto;
    height: auto;
  }

  .certifications__slider .item {
    position: relative;
    width: 90%;
    margin: 20px auto;
    min-height: 60vh;
  }
}

@media screen and (max-width: 600px) {
  .slider__description {
    padding: 16px;
    font-size: 1rem;
  }

  .certifications__slider .item h1 {
    font-size: 1.4rem;
  }

  .certifications__slider .item p {
    font-size: 0.95rem;
  }

  .certifications__slider .item .slider-image {
    height: 50vh;
    object-fit: contain;
  }
}

.container h1 {
  margin-top: 2rem;
}

/* Technology sliders */

.technology__slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.technology__slider h1 {
  margin-bottom: 1rem;
  margin-top: 10px;
}

.technology__slider-container {
  max-width: 2000px;
  width: 90%;
  padding-bottom: 20px;
}

.technology__slider-wrapper .image__list {
  display: flex;
  gap: 18px;
  font-size: 0px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.technology__slider-wrapper .image__list .image-item {
  flex: 0 0 auto;
  max-width: 800px;
  aspect-ratio: 16/9;
  object-fit: cover;
  scroll-snap-align: start;
}

.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  max-width: 1000px;
  aspect-ratio: 16/9;
  /* height: 24rem; */
  object-fit: cover;
  scroll-snap-align: start;
}

.image-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--company-red);
  color: white;
  font-size: 1.5rem;
  padding: 4px 12px;
  border-radius: 12px;
  pointer-events: none;
}

.image-wrapper .image-item {
  display: block;
}

.image__list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 16px;
  scrollbar-color: var(--company-red) var(--light-red); /* Firefox */
  scroll-behavior: smooth;
}

/* Webkit scrollbar styling */
.image__list::-webkit-scrollbar {
  height: 12px;
}

.image__list::-webkit-scrollbar-thumb,
.image__list::-webkit-scrollbar-track {
  border-radius: 92px;
}

.image__list::-webkit-scrollbar-thumb {
  background: var(--company-red); /* Scrollbar thumb color */
}

.image__list::-webkit-scrollbar-track {
  background: var(--light-red); /* Scrollbar track color */
}

/* Technology Slider Text elements and spacing */

h3 {
  font-style: italic;
  font-weight: normal;
  font-size: 1.3rem;
  margin-left: 12%;
  margin-right: 12%;
  text-align: center;
  line-height: 1.5;
  padding-bottom: 15px;
  color: rgba(0, 0, 0, 0.7);
}

.technology__slider h1 {
  color: var(--company-red);
  margin-top: 5px;
  margin-bottom: 2rem;
  font-size: 3rem;
}

.certifications {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.customers__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-bottom: 2rem;
  max-width: 1200px;
}

.customer__card {
  height: 200px;
  width: 250px;
  overflow: auto;
  box-sizing: border-box;
  align-items: center;
  align-self: center;
  align-content: center;
  background-color: #fff;
  overflow: hidden;
}
/* 
.QC {
  height: 150px;
  width: 200px;
} */

.slider__description a {
  border-bottom: 1px solid white;
  transition: all smooth 0.5s;
}

.slider__description a:hover {
  font-weight: bold;
  border-bottom: 2px solid white;
}

.customer__card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  overflow: hidden;
  width: auto;
  height: auto;
  margin-left: 10%;
}

.customer__card p {
  align-items: center;
  align-content: center;
  align-self: center;
  overflow: hidden;
}

.customer__card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 51, 37, 0.55);
}

.certifications__note {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.section h1 #engineering-capabilities {
  padding-bottom: 0px;
}

.certifications__header {
  text-align: center;
  color: var(--company-red);
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 3rem;
}

@media screen and (max-width: 800px) {
  .technology__slider-container {
    max-width: 800px;
  }
}

.equipment__slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

.equipment__slider h1 {
  color: var(--company-red);
  margin-top: 5px;
  margin-bottom: 2rem;
  font-size: 3rem;
  text-align: center;
}

.equipment__slider-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  gap: 30px;
  margin-left: 50px;
}

.equipment__slider-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.product__slider-slider {
  display: flex;
  aspect-ratio: 16 / 9;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
  border-radius: 0.5rem;
}

.product__slider-slider img {
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product__slider-nav {
  display: flex;
  column-gap: 1rem;
  position: absolute;
  bottom: -1.3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.product__slider-nav a {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.75;
  transition: opacity ease 250ms;
}

.product__slider-nav a:hover {
  opacity: 1;
}

.product__slider-slider img {
  display: none;
}

.product__slider-slider img.active {
  display: block;
}

.product__slider-nav a.active {
  background-color: var(--company-red);
  opacity: 1;
}

.product__slider-prev,
.product__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--company-red, #e93325);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.product__slider-prev:hover,
.product__slider-next:hover {
  opacity: 1;
}

.product__slider-prev {
  left: 0.5rem;
}

.product__slider-next {
  right: 0.5rem;
}

.product__slider-wrapper {
  position: relative;
}

/* Slider Button */

.equipment__slider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  max-width: 300px;
  margin-right: 50px
}

.slider-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--company-red);
  color: white;
  padding: 1rem;
  font-size: 3rem;
  text-align: center;
  text-decoration: none;
  height: 100%;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.slider-button:hover {
  background-color: black;
}

/* Responsive adjustments for equipment slider */
@media screen and (max-width: 1024px) {
  .equipment__slider-wrapper {
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
  }

  .equipment__slider-button {
    height: auto;
    max-width: 100%;
    margin-right: 0;
    margin-top: 20px;
    order: 2; /* Move button below slider */
  }

  .slider-button {
    font-size: 2rem;
    padding: 1.5rem;
    width: 100%;
    height: auto;
  }

  .equipment__slider-slider {
    order: 1; /* Ensure slider stays above button */
  }
}

/* Further adjustments for very small screens */
@media screen and (max-width: 600px) {
  .slider-button {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .product__slider-prev,
  .product__slider-next {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}