/* Carousel Styles */
.carousel-item img {
  height: 100vh;
  object-fit: cover;
}

/* Shared Title Styles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  color: #333;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.section-title.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(74, 107, 138, 0.3),
    rgba(74, 107, 138, 0.8),
    rgba(74, 107, 138, 0.3)
  );
  transition: width 0.3s ease;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(74, 107, 138, 0.3),
    rgba(74, 107, 138, 0.8),
    rgba(74, 107, 138, 0.3)
  );
  transition: width 0.3s ease;
}

.section:hover .section-title::after {
  width: 120px;
}

.section:hover .section-title::before {
  width: 60px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

/* Business Introduction Text Styles */
.fancy-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  max-width: 90%;
  margin: 0 auto 30px;
  position: relative;
  padding: 30px 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 240, 0.95) 100%
  );
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #0056b3;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  z-index: 1;
}

.fancy-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.fancy-text::before {
  content: "\201C";
  position: absolute;
  top: -25px;
  left: 10px;
  font-size: 6rem;
  color: rgba(0, 86, 179, 0.15);
  font-family: serif;
  line-height: 1;
  z-index: -1;
}

.fancy-text::after {
  content: "\201D";
  position: absolute;
  bottom: -60px;
  right: 10px;
  font-size: 6rem;
  color: rgba(0, 86, 179, 0.15);
  font-family: serif;
  line-height: 1;
  z-index: -1;
}

/* Highlight Keywords */
.fancy-text strong {
  color: #0056b3;
  font-weight: 600;
}

/* Business Section */
.core-business {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.core-business-intro {
  max-width: 900px;
  margin: 0 auto 40px;
}

.service-link {
  display: block;
  text-decoration: none;
  color: #333;
  height: 100%;
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-image-container {
  height: 220px;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.service-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-button {
  display: flex;
  align-items: center;
  color: #0056b3;
  font-weight: 500;
  margin-top: auto;
}

.service-button i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.service-link:hover .service-card {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-link:hover .service-image {
  transform: scale(1.05);
}

.service-link:hover .service-button i {
  transform: translateX(5px);
}

/* Supply Chain Service Section */
.supply-chain-section {
  padding: 90px 0;
}

.supply-chain-card {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.supply-chain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.supply-chain-image-card {
  position: relative;
  background-color: #fff;
}

.supply-chain-image-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  border-radius: 12px;
}

.supply-chain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.supply-chain-image-card:hover .supply-chain-image {
  transform: scale(1.05);
}

.supply-chain-content-card {
  background-color: #fff;
  padding: 35px;
  display: flex;
  flex-direction: column;
}

.supply-chain-content-card h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0056b3;
  position: relative;
  padding-bottom: 15px;
}

.supply-chain-content-card h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #0056b3;
}

.supply-chain-content-card h5 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.supply-chain-content-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.supply-chain-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  flex: 0 0 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
}

.feature-item.animated {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #4a6b8a;
}

.feature-item span {
  font-weight: 500;
}

/* Product Center Section */
.product-intro {
  max-width: 1000px;
  margin: 0 auto 50px;
}

/* Product Center specific fancy-text adjustments */
.product-intro .fancy-text {
  margin-bottom: 60px; /* Extra bottom margin for quotation marks */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 245, 250, 0.95) 100%
  );
  border-left-color: #4a6b8a; /* Using blue-gray as the main color for product section */
}

.product-intro .fancy-text::before,
.product-intro .fancy-text::after {
  color: rgba(74, 107, 138, 0.15); /* Quote color matching border */
}

.product-intro .fancy-text strong {
  color: #4a6b8a; /* Product section emphasis text uses blue-gray */
}

.product-intro .fancy-text:hover {
  box-shadow: 0 15px 35px rgba(74, 107, 138, 0.15);
}

.product-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-out;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transition: background-color 0.4s ease-out;
}

.product-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.4s ease-out;
  text-align: center;
  width: 80%;
}

.product-item:hover .product-image {
  transform: translateY(-8px);
}

.product-item:hover .product-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.product-item:hover .product-label {
  transform: translate(-50%, -50%) scale(1.03);
}

/* Carousel Caption Styles */
.carousel-caption {
  text-align: left;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 25px;
  border-radius: 8px;
  max-width: 80%;
  margin: 0 auto 0 15%;
  left: 0;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mission-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.mission-text {
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 15px;
    margin: 0 auto 0 10%;
  }

  .mission-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .mission-text {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .section-title::after {
    width: 70px;
  }

  .section-title::before {
    width: 35px;
  }

  .section:hover .section-title::after {
    width: 100px;
  }

  .section:hover .section-title::before {
    width: 50px;
  }

  .supply-chain-card {
    margin-bottom: 30px;
  }

  .supply-chain-image-card {
    height: 300px;
  }

  .supply-chain-content-card {
    padding: 25px;
  }

  .supply-chain-content-card h4 {
    font-size: 1.5rem;
  }

  .supply-chain-content-card h5 {
    font-size: 1.2rem;
  }

  .supply-chain-features {
    gap: 10px;
  }

  .feature-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    margin-bottom: 10px;
    padding: 8px 12px;
  }

  .feature-item i {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    bottom: 10%;
    padding: 10px;
  }

  .mission-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .mission-text {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
  }

  .section-title::after {
    width: 60px;
    height: 2px;
  }

  .section-title::before {
    width: 30px;
    height: 2px;
    bottom: -4px;
  }

  .section:hover .section-title::after {
    width: 80px;
  }

  .section:hover .section-title::before {
    width: 40px;
  }

  .supply-chain-section {
    padding: 60px 0;
  }

  .supply-chain-card {
    overflow: visible;
    margin-bottom: 20px;
    transform: none !important;
  }

  .supply-chain-content-card {
    padding: 20px;
    height: auto;
    overflow: visible;
  }

  .supply-chain-content-card h4 {
    font-size: 1.4rem;
  }

  .supply-chain-content-card h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .supply-chain-content-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .supply-chain-features {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    overflow: visible;
  }

  /* Mobile-specific features styling */
  .mobile-features {
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-features .feature-item {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static !important;
  }

  /* Force all feature items to be visible on mobile regardless of animation state */
  .feature-item {
    opacity: 1 !important;
    transform: none !important;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: static !important;
    visibility: visible !important;
  }

  .feature-item:hover {
    transform: none !important;
  }

  .feature-item i {
    font-size: 1.3rem;
    margin-right: 12px;
    min-width: 24px;
    text-align: center;
  }

  .feature-item span {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Responsive Adjustments - Product Center */
@media (max-width: 768px) {
  .product-intro .fancy-text {
    padding: 25px 30px;
    font-size: 1.1rem;
  }

  .product-intro .fancy-text::before {
    top: -20px;
    font-size: 5rem;
  }

  .product-intro .fancy-text::after {
    bottom: -50px;
    font-size: 5rem;
  }
}

@media (max-width: 576px) {
  .product-intro .fancy-text {
    padding: 20px 25px;
    font-size: 1rem;
    max-width: 95%;
  }

  .product-intro .fancy-text::before {
    top: -15px;
    font-size: 4rem;
  }

  .product-intro .fancy-text::after {
    bottom: -40px;
    font-size: 4rem;
  }
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.product-link:hover {
  transform: translateY(-5px);
}

/* Partners Section */
.partners-section {
  padding: 60px 0;
  overflow: hidden;
}

.partners-scroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.partner-logo {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 200px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.partner-logo:hover {
  transform: translateY(-5px);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.partners-track:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .partner-logo {
    margin: 0 15px;
    height: 160px;
    width: 160px;
  }
}
