/* Section Carousel */

#carousel-1 {
  height: 800px;
  background-color: #f8f9fa !important;
}

@media (max-width: 768px) {
  #carousel-1 {
    height: 450px;
  }
}

#Carousel .slide-img {
  width: 100%;
  display: block;
  position: absolute;
  height: 100%;
  object-fit: cover;
  z-index: 4;
}

#Carousel .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(5,65,122,0.4);
  z-index: 5;
}

#Carousel .container {
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 100%;
}

@media (max-width: 576px) {
  #Carousel .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
  }
}

#Carousel .row {
  align-content: center;
  height: 100%;
}

#Carousel .text {
  margin-bottom: 5rem;
  position: relative;
  z-index: 6;
  color: #ffffff;
}

/* Section Mantra */

.wrapper {
  position: relative;
  margin-top: -6rem;
  display: flex;
  justify-content: center;
  z-index: 7;
}

@media (max-width: 576px) {
  .wrapper {
    position: relative;
    margin-top: -4rem;
    display: flex;
    justify-content: center;
    z-index: 7;
  }
}

#Mantra {
  background: white;
  padding: 2rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgb(13 110 253 / 0.25);
  max-width: 900px;
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.main-heading {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Mobile responsive */

@media (max-width: 768px) {
  #Mantra {
    padding: 0.2rem 0.5rem;
  }
}

/* Section Machines */

.card {
  border: 2px solid #ecf0f4 !important;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 46, 93, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.card-img-top {
  height: 375px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.card-title {
  color: var(--bs-dark-blue);
}

.card-subtitle {
  margin-bottom: 1rem;
  color: var(--bs-dark-blue);
}

/* Section Molds & tools */

#Molds {
  background-color: #ffffff !important;
}

#Molds li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

#Molds li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 12px;
  height: 12px;
  background-color: var(--bs-dark-blue);
  border-radius: 50%;
  font-weight: bold;
}

/* Section Software / R&D */

#Software .container-custom {
  max-width: 900px;
  margin: 0 auto;
}

#Software .software-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

#Software .col-left, .col-right {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
}

#Software .col-right {
  margin-top: 50px;
}

#Software .software-block {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.08);
  padding: 25px 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#Software .software-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

#Software .software-content {
  flex: 1;
}

#Software .software-title {
  margin-bottom: 6px;
}

#Software .software-description {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  #Software .software-line {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  #Software .col-left, .col-right {
    margin: 0;
    margin-top: 0 !important;
  }
}

@media (max-width: 767px) {
  #Software .software-block {
    justify-content: flex-start;
  }
}

/* Section R&D */

#R-D {
  background-color: #ffffff !important;
}

/* Section Services */

#Services .services-list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

#Services .service-item {
  flex: 1 1 0;
  text-align: center;
  cursor: pointer;
  min-width: 0;
  position: relative;
  background: #ffffff;
  border-radius: 25px;
  padding: 1rem 2rem 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 46, 93, 0.1);
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  align-items: center;
  justify-content: center;
  align-content: center;
}

#Services .service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

#Services .service-icon {
  color: var(--bs-dark-blue);
  font-size: 48px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-bottom: 10px;
}

#Services .service-title {
  color: var(--bs-dark-blue);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  #Services .services-list {
    flex-direction: column;
    gap: 25px;
  }
}

@media (max-width: 767px) {
  #Services .service-item {
    flex: none;
    width: 100%;
    margin-bottom: 0;
  }
}

/* Section Markets */

#Markets {
  background-color: #ffffff !important;
}

#Markets .market-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
}

#Markets .market-item {
  flex: 1 1 250px;
  text-align: center;
  border-bottom: 4px solid transparent;
  padding-bottom: 1.5rem;
  transition: border-color 0.3s ease;
  cursor: default;
}

#Markets .market-item:hover {
  border-color: #005DAA;
}

#Markets .market-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: #002E5D;
  transition: color 0.3s ease;
}

#Markets .market-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--bs-dark-blue);
}

#Markets .market-item:hover .market-icon, .market-title {
  color: var(--bs-primary);
}

#Markets .market-description {
  font-size: 1rem;
  color: #33475b;
  font-weight: 400;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  #Markets .market-item {
    flex: 1 1 100%;
  }
}

/* Section Banner */

.banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 8rem 1rem 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(152,143,255,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

.banner h1 {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 2.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  padding: 0 1rem;
}

/* Section Workstations */

.machine-figure {
  margin: 0;
  text-align: center;
  user-select: none;
  cursor: default;
  transition: transform 0.3s ease;
}

.machine-figure:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 10;
  position: relative;
}

.machine-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}

.machine-caption {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

.col-machine {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

/* Section Injectors */

#Table-injectors th {
  background-color: var(--bs-dark-blue);
  color: #ffffff;
}

#Table-injectors td {
  background-color: var(--bs-light-blue);
}

@media (max-width: 767.98px) {
  .machine-caption {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .col-machine {
    margin-bottom: 2rem;
  }
}

/* Section R&D */

#Research .card-divider {
  border-bottom: 2px solid var(--bs-dark-blue);
}

#Research .card-header {
  padding: 0;
  border: none;
  /*border-radius: 0.75rem;*/
  overflow: hidden;
  height: 200px;
}

#Research .card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.project-divider {
  border-bottom: 2px solid var(--bs-dark-blue);
}

/* Section Contact us */

.blue-box {
  background-color: var(--bs-dark-blue);
  color: #ffffff;
  padding: 1.5rem 0 0 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 46, 93, 0.1);
}

.blue-box a {
  color: #ffffff;
}

.blue-box a:hover {
  text-decoration: underline;
}

.blue-box i {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: var(--bs-primary);
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#Form {
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 46, 93, 0.1);
}

#Form input, #Form textarea {
  border-color: var(--bs-dark-blue);
}

/* Buttons */

.btn-primary {
  border-radius: 24px;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover {
  background-color: var(--bs-dark-blue);
  border-color: var(--bs-dark-blue);
  transition: 0.3s ease;
}

.btn-outline-primary {
  border-radius: 24px;
  color: var(--bs-dark-blue);
  border-color: #286DB6;
  border-color: var(--bs-dark-blue);
}

.btn-outline-primary:hover {
  background-color: var(--bs-dark-blue) !important;
  border-color: var(--bs-dark-blue)!important;
}

.btn-darkblue {
  /*background-color: var(--bs-dark-blue);*/
}

.btn-darkblue:hover {
  /*border: 20px var(--bs-dark-blue);*/
}

.btn-arrow {
  position: relative;
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5em;
  transition: margin-left 0.3s ease;
}

.btn-back {
  position: fixed;
  border: none;
  width: 40px;
  height: 40px;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.scroll-button {
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-button:hover {
  box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.fa-angle-down {
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* Utils */

.pages {
  background-color: #ffffff;
  padding: 3rem 0 3rem 0;
}

.quote {
  color: var(--bs-dark-blue);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(13 110 253 / 0.3);
  border: 1.5px solid var(--bs-secondary);
  border-left-width: 8px;
  box-shadow: 0 6px 20px rgb(13 110 253 / 0.3);
  background-color: #ffffff;
}

