/* Services Showcase Styles */

/* Service Tabs */
.services-showcase {
  padding: 0;
  background-color: white;
  position: relative;
  z-index: 2;
}

.service-tabs {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.service-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  text-align: center;
  background-color: white;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.service-tab:not(:last-child) {
  border-right: 1px solid #f0f0f0;
}

.service-tab.active {
  background-color: #f9f9fc;
}

.tab-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  background-color: rgba(44, 45, 91, 0.08);
  color: #2c2d5b;
}

.service-tab.active .tab-icon {
  background-color: #2c2d5b;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(44, 45, 91, 0.2);
}

.tab-icon i {
  font-size: 28px;
}

.service-tab h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2c2d5b;
}

/* Service Content Container */
.service-content-container {
  padding: 60px 40px;
  background-color: #f9f9fc;
}

.service-content {
  max-width: 1200px;
  margin: 0 auto;
  display: none; /* Hide content by default */
  animation: fadeIn 0.5s ease forwards;
}

.service-content.active {
  display: block; /* Show active content */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service Intro */
.service-intro {
  margin-bottom: 60px;
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: #2c2d5b;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: #2c2d5b;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.highlight-item {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(44, 45, 91, 0.1);
  color: #2c2d5b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.highlight-icon i {
  font-size: 24px;
}

.highlight-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c2d5b;
}

.highlight-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Service Options */
.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.option-card {
  perspective: 1000px;
  height: auto;
  min-height: 350px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.option-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: auto;
  min-height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.card-front {
  background-color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card-back {
  background-color: #2c2d5b;
  color: white;
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(44, 45, 91, 0.1);
  color: #2c2d5b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 32px;
}

.card-front h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #2c2d5b;
}

.card-front p {
  font-size: 15px;
  color: #666;
  margin: 0 0 20px;
}

.card-hover-hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #999;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
}

.option-card:hover .card-hover-hint {
  opacity: 1;
}

.card-back h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.option-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.option-details li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.option-details li:last-child {
  border-bottom: none;
}

.perfect-for {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 15px;
  padding-bottom: 10px;
}

.perfect-for span {
  display: inline-block;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
}

/* Courier Fleet */
.courier-fleet {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.fleet-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 15px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  margin: 0 -10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fleet-slider::-webkit-scrollbar {
  display: none;
}

.fleet-slide {
  scroll-snap-align: start;
  padding: 25px;
  background-color: #f9f9fc;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.fleet-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vehicle-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(44, 45, 91, 0.1);
  color: #2c2d5b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.vehicle-icon i {
  font-size: 30px;
}

.fleet-slide h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #2c2d5b;
}

.fleet-slide p {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px;
  line-height: 1.6;
}

.vehicle-capacity {
  background-color: white;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capacity-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.capacity-value {
  font-size: 14px;
  color: #2c2d5b;
  font-weight: 600;
}

.fleet-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.fleet-prev, .fleet-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2c2d5b;
  color: white;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fleet-prev:hover, .fleet-next:hover {
  background-color: #3e3f7a;
  transform: scale(1.1);
}

.fleet-dots {
  display: flex;
  margin: 0 15px;
}

.fleet-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: unset !important;
}

.fleet-dot.active {
  background-color: #2c2d5b;
  transform: scale(1.2);
}

/* Freight Benefits */
.freight-benefits {
  margin-bottom: 60px;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.benefit-item {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(44, 45, 91, 0.1);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
}

.benefit-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px;
  color: #2c2d5b;
}

.benefit-item p {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Specialized Process */
.specialized-process {
  margin-bottom: 60px;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  overflow-x: auto;
  padding-bottom: 15px;
}

.process-timeline:before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  min-width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 150px;
  min-width: 150px;
  cursor: pointer;
  padding: 0 10px;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #e0e0e0;
  color: #999;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.process-step.active .step-number {
  background-color: #2c2d5b;
  border-color: #2c2d5b;
  color: white;
  box-shadow: 0 5px 15px rgba(44, 45, 91, 0.2);
}

.step-content {
  text-align: center;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #2c2d5b;
}

.step-content p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  max-width: 150px;
}

.process-details {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.process-detail {
  display: none;
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: translateY(15px);
}

.process-detail.active {
  display: flex;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: translateY(0);
}

.detail-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(44, 45, 91, 0.1);
  color: #2c2d5b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  flex-shrink: 0;
}

.detail-image i {
  font-size: 50px;
}

.detail-content {
  flex-grow: 1;
}

.detail-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px;
  color: #2c2d5b;
}

.detail-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-checklist li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  padding: 5px 0;
}

.detail-checklist li:before {
  content: '✓';
  color: #2c2d5b;
  font-weight: bold;
  margin-right: 10px;
}

/* Learn More Link */
.service-learn-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 0;
  color: #2c2d5b;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.service-learn-more:after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2c2d5b;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-learn-more:hover {
  color: #3e3f7a;
}

.service-learn-more:hover:after {
  transform: scaleX(1);
}

.service-learn-more i {
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.service-learn-more:hover i {
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .service-content-container {
    padding: 50px 30px;
  }

  .service-options,
  .service-highlights,
  .benefits-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .fleet-slider {
    grid-auto-columns: calc(33.33% - 14px);
  }
  
  .process-detail.active {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .detail-image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .service-tabs {
    flex-direction: column;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
  }

  .service-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-right: none;
    text-align: left;
  }
  
  .service-tab:last-child {
    border-bottom: none;
  }

  .tab-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .tab-icon i {
    font-size: 18px;
  }
  
  .service-tab h3 {
    font-size: 16px;
  }

  .service-content-container {
    padding: 40px 20px;
  }

  .option-card {
    height: auto;
    min-height: 250px;
  }
  
  .card-inner, .card-front, .card-back {
    position: relative;
    transform: none !important;
    backface-visibility: visible !important;
    height: auto;
    display: block;
  }
  
  .card-back {
    min-height: 280px;
    height: auto;
    overflow: visible;
    padding-bottom: 20px;
  }
  
  .card-inner, .option-card {
    height: auto;
    min-height: 300px;
  }
  
  .card-back h3 {
    color: #2c2d5b;
    border-color: rgba(44, 45, 91, 0.2);
  }
  
  .option-details li {
    color: #555;
    border-color: rgba(44, 45, 91, 0.1);
  }
  
  .perfect-for span {
    background-color: rgba(44, 45, 91, 0.1);
    color: #2c2d5b;
  }
  
  .card-hover-hint {
    display: none;
  }
  
  .option-card {
    cursor: default;
  }

  .process-timeline {
    justify-content: flex-start;
  }

  .fleet-slider {
    grid-auto-columns: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 24px;
  }

  .service-options,
  .service-highlights,
  .benefits-container {
    grid-template-columns: 1fr;
  }

  .fleet-slider {
    grid-auto-columns: calc(85% - 10px);
  }
  
  .fleet-slider-controls {
    margin-top: 20px;
  }
  
  .fleet-prev, .fleet-next {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .fleet-dots {
    margin: 0 10px;
  }
  
  .fleet-dot {
    width: 8px;
    height: 8px;
  }

  .highlight-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .highlight-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .process-step {
    min-width: 120px;
  }
  
  .detail-content h3 {
    font-size: 20px;
  }
  
  .detail-content p {
    font-size: 15px;
  }
}

/* Mobile fixes for card icons */
@media (max-width: 768px) {
  .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  .card-back > h3 {
    color: #000000;
  }
  
  .option-card .card-front {
    align-items: center;
    text-align: center;
  }
  
  .card-inner .card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .card-back {
    background-color: #f0f5ff;
    color: #333;
  }
  
  .perfect-for span {
    background-color: rgba(44, 45, 91, 0.1);
    color: #2c2d5b;
  }
}

@media (max-width: 480px) {
  .card-icon {
    width: 70px;
    height: 70px;
  }
  
  .card-back > h3 {
    color: #000000;
  }
}