/**
 * PalmSeth SARL - GoFast Livraison Styles
 * Custom styles for the GoFast Livraison page
 */

/* Delivery Hero */
.delivery-hero .hero-background {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  position: relative;
  overflow: hidden;
}

.delivery-hero .hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/delivery-pattern.png');
  background-size: 200px;
  opacity: 0.05;
  z-index: 1;
}

/* Delivery Overlay with Route Animation */
.delivery-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.delivery-effect {
  position: relative;
  width: 100%;
  height: 100%;
}

.route-line {
  position: absolute;
  top: 60%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.route-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: white;
  filter: blur(3px);
  animation: line-travel 6s infinite linear;
}

@keyframes line-travel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw - 100px)); }
}

.marker-start, .marker-end {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  z-index: 3;
}

.marker-start {
  top: calc(60% - 6px);
  left: 10%;
}

.marker-end {
  top: calc(60% - 6px);
  left: 90%;
}

.delivery-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  opacity: 0;
}

.delivery-pulse-1 {
  top: calc(60% - 20px);
  left: 30%;
  animation: pulse-animation 4s infinite;
  animation-delay: 0s;
}

.delivery-pulse-2 {
  top: calc(60% - 20px);
  left: 50%;
  animation: pulse-animation 4s infinite;
  animation-delay: 1s;
}

.delivery-pulse-3 {
  top: calc(60% - 20px);
  left: 70%;
  animation: pulse-animation 4s infinite;
  animation-delay: 2s;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Service Section */
.service-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.service-overview {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 4rem;
}

.service-content {
  flex: 1;
}

.lead-text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 4rem;
}

.service-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  flex: 1;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ff6b6b;
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-unit {
  font-size: 1.6rem;
  margin-left: 0.3rem;
}

.stat-label {
  color: var(--color-text-light);
}

.service-image {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-md);
}

.image-badge i {
  font-size: 1.8rem;
}

/* Features Section */
.features-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #ff6b6b, #ffb88c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-normal);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto 3rem;
  background-color: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: #ff6b6b;
  color: white;
}

.feature-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-card p {
  color: var(--color-text-light);
  margin-bottom: 0;
  text-align: center;
}

/* Process Section */
.process-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.process-steps {
  margin-top: 5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  height: calc(100% - 50px);
  width: 2px;
  background: linear-gradient(to bottom, #ff6b6b, #ffb88c);
}

.process-step {
  display: flex;
  gap: 4rem;
  margin-bottom: 5rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
}

.step-content {
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.step-content p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Service Types Section */
.service-types-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-background-light);
}

.service-types-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tab-btn {
  background: none;
  border: 2px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: var(--radius-full);
  padding: 1.2rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.tab-btn:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

.tab-btn.active {
  background-color: #ff6b6b;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tab-info h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.tab-info p {
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.6rem;
}

.tab-features {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.tab-features li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.tab-features li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: #ff6b6b;
  font-size: 1.8rem;
}

.tab-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.price {
  font-size: 1.8rem;
  color: var(--color-text);
}

.price strong {
  color: #ff6b6b;
  font-size: 2rem;
}

.tab-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.tab-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* Booking Section */
.booking-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.booking-info h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.booking-info p {
  color: var(--color-text-light);
  margin-bottom: 4rem;
  font-size: 1.6rem;
}

.booking-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.booking-option {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-option:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.option-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.booking-option h4 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.booking-option p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.option-link {
  font-weight: 600;
  color: #ff6b6b;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.option-link:hover {
  color: #ffb88c;
}

.booking-map {
  height: 100%;
}

.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: #ff6b6b;
  animation: marker-bounce 2s infinite;
}

@keyframes marker-bounce {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -60%); }
}

.map-radius {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 107, 0.5);
  animation: radius-expand 3s infinite;
}

@keyframes radius-expand {
  0%, 100% { 
    width: 100px; 
    height: 100px;
    opacity: 1; 
  }
  50% { 
    width: 150px; 
    height: 150px;
    opacity: 0.5; 
  }
}

.map-info h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.map-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* App Download Section */
.app-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: var(--color-background-light);
}

.app-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: center;
}

.app-info h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.app-info p {
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.6rem;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.app-features li i {
  color: #ff6b6b;
  font-size: 1.6rem;
  margin-top: 0.3rem;
}

.app-download-links p {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.app-buttons {
  display: flex;
  gap: 2rem;
}

.app-button img {
  height: 5rem;
  transition: transform var(--transition-normal);
}

.app-button:hover img {
  transform: translateY(-5px);
}

.app-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-phone {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: #222;
  padding: 10px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(255, 255, 255, 0.1) inset;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 30px;
  background: #222;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: white;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
  border-radius: 28px;
  pointer-events: none;
}

/* Testimonials Section */
.testimonials-section {
  padding-top: 8rem;
  padding-bottom: 10rem;
}

.testimonials-slider {
  position: relative;
  margin-top: 4rem;
}

.testimonials-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 3rem;
  padding: 2rem 1rem;
  margin: -2rem -1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-width: 350px;
  flex: 1 0 350px;
  max-width: 400px;
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  position: relative;
  margin-bottom: 3rem;
  color: var(--color-text-light);
}

.testimonial-quote .fa-quote-left {
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 2.5rem;
  color: rgba(255, 107, 107, 0.2);
}

.testimonial-quote .fa-quote-right {
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 2.5rem;
  color: rgba(255, 107, 107, 0.2);
}

.testimonial-quote p {
  font-style: italic;
  margin: 0;
  padding: 0 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff6b6b;
}

.author-info h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
}

.slider-arrow {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 1rem;
  margin: 0 2rem;
}

.slider-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--color-gray-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  transform: scale(1.2);
}

/* Call to Action Section */
.cta {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  text-align: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffb88c 100%);
  color: white;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-text {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.cta .btn-primary {
  background-color: white;
  color: #ff6b6b;
  border: none;
}

.cta .btn-primary:hover {
  background-color: var(--color-background);
  transform: translateY(-5px);
}

.cta .btn-outline {
  border-color: white;
  color: white;
}

.cta .btn-outline:hover {
  background-color: white;
  color: #ff6b6b;
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .service-overview {
    flex-direction: column;
  }
  
  .booking-container,
  .app-container,
  .tab-grid {
    grid-template-columns: 1fr;
  }
  
  .app-features {
    grid-template-columns: 1fr;
  }
  
  .process-steps::before {
    left: 25px;
  }
  
  .process-step {
    gap: 2rem;
  }
  
  .step-number {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .lead-text {
    font-size: 1.6rem;
  }
  
  .service-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .service-types-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .tab-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .testimonial {
    min-width: 280px;
  }
  
  .app-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}