/* ============================================
   HOW IT WORKS - PREMIUM DUBAI EDITION
   ============================================ */

.section-how-premium {
  padding: 120px 0;
  background: linear-gradient(135deg, #001F5F 0%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}

.bg-primary-premium {
  background: linear-gradient(135deg, #001F5F 0%, #0d2137 100%);
}

/* Typography */
.section-eyebrow-light {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(248, 205, 0, 0.9);
  margin-bottom: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(248, 205, 0, 0.3);
  border-radius: 20px;
  background: rgba(248, 205, 0, 0.05);
}

.heading-premium-light {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-gold {
  background: linear-gradient(135deg, #F8CD00 0%, #FFE55C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle-light {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Steps Container */
.steps-container {
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.step-item:hover,
.step-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 205, 0, 0.3);
  transform: translateX(10px);
}

.step-item.active {
  background: rgba(248, 205, 0, 0.1);
  border-color: rgba(248, 205, 0, 0.5);
}

/* Step Number & Progress */
.step-number {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.step-number .number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
  z-index: 2;
}

.step-item.active .step-number .number {
  color: #F8CD00;
}

.step-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.step-progress svg {
  width: 100%;
  height: 100%;
}

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.progress-fill {
  fill: none;
  stroke: #F8CD00;
  stroke-width: 2;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.6s ease;
}

.step-item.active .progress-fill {
  stroke-dashoffset: 0;
}

/* Step Content */
.step-content {
  flex: 1;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.step-item.active .step-title {
  color: #F8CD00;
}

.step-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.step-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-tag svg {
  color: #F8CD00;
}

/* Step Indicators */
.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 30px;
  padding: 0 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  z-index: 2;
}

.indicator.active {
  background: #F8CD00;
  border-color: #F8CD00;
  transform: scale(1.2);
}

.indicator-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  max-width: 60px;
  position: relative;
  overflow: hidden;
}

.indicator-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F8CD00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.indicator-line.active::after {
  transform: scaleX(1);
}

/* Visual Container */
.visual-container {
  position: relative;
  padding: 40px;
  height: 100%;
  min-height: 500px;
}

.visual-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2a4365 0%, #1a365d 100%);
}

.main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image.active {
  opacity: 1;
  transform: scale(1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(13, 33, 55, 0.9), transparent);
  pointer-events: none;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-phone {
  top: 20px;
  right: -20px;
  width: 200px;
}

.phone-screen {
  background: #f0f2f5;
  border-radius: 12px;
  padding: 12px;
}

.chat-bubble {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F8CD00, #D4A700);
  flex-shrink: 0;
}

.bubble-content {
  flex: 1;
  background: white;
  padding: 10px 12px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bubble-text {
  font-size: 12px;
  color: #1a202c;
  font-weight: 500;
  margin-bottom: 4px;
}

.bubble-time {
  font-size: 10px;
  color: #718096;
}

.card-payment {
  bottom: 100px;
  left: -30px;
  text-align: center;
  min-width: 140px;
  animation-delay: 1s;
}

.payment-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 12px;
}

.payment-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.payment-status {
  font-size: 11px;
  color: #10B981;
  font-weight: 600;
}

/* Step Counter */
.step-counter {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  z-index: 2;
}

.step-counter .current {
  font-size: 32px;
  color: #F8CD00;
}

.step-counter .separator {
  font-size: 16px;
  opacity: 0.5;
}

.step-counter .total {
  font-size: 16px;
  opacity: 0.5;
}

/* Trust Bar */
.trust-bar-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(248, 205, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8CD00;
}

.trust-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-align: center;
}

.trust-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-align: center;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Decorative Elements */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248, 205, 0, 0.2);
  pointer-events: none;
}

.how-deco-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -100px;
  border-color: rgba(248, 205, 0, 0.1);
}

.how-deco-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  right: 50px;
  border-color: rgba(255, 255, 255, 0.05);
}

.deco-line {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(248, 205, 0, 0.5), transparent);
  pointer-events: none;
}

.how-deco-3 {
  top: 50%;
  left: -50px;
  transform: rotate(90deg);
}

.bg-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(248, 205, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 991px) {
  .section-how-premium {
    padding: 80px 0;
  }

  .heading-premium-light {
    font-size: 36px;
  }

  .visual-container {
    min-height: 400px;
    margin-top: 40px;
  }

  .floating-card {
    display: none; /* Hide floating cards on mobile */
  }

  .trust-bar-premium {
    flex-direction: column;
    gap: 24px;
  }

  .trust-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 576px) {
  .step-item {
    padding: 20px;
    gap: 16px;
  }

  .step-number {
    width: 48px;
    height: 48px;
  }

  .step-number .number {
    font-size: 14px;
  }

  .step-title {
    font-size: 18px;
  }
}
