/* === ACTIVE TRIP SECTION STYLES === */

.active-trip {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.active-trip .container {
  position: relative;
  z-index: 1;
}

.active-trip .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.active-trip .section-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.active-trip .section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #64748b;
  font-weight: 500;
}

/* Split layout - phones left, content right */
.trip-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

/* Stacked phones container */
.phones-stack {
  position: relative;
  height: 650px;
  width: 420px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Individual phone positioning */
.trip-phone {
  position: absolute;
  width: 280px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.trip-phone:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-2deg);
}

.trip-phone:nth-child(2) {
  top: 100px;
  left: 70px;
  z-index: 2;
  transform: rotate(1deg);
}

.trip-phone:nth-child(3) {
  top: 200px;
  left: 140px;
  z-index: 3;
  transform: rotate(-1deg);
}

.trip-phone:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.trip-phone img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid white;
  transition: all 0.4s ease;
}

/* Content steps on the right */
.steps-content {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.content-step:nth-child(1) { animation-delay: 0.8s; }
.content-step:nth-child(2) { animation-delay: 1s; }
.content-step:nth-child(3) { animation-delay: 1.2s; }

.content-step:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

/* Step numbers */
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.content-step:nth-child(1) .step-number {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.content-step:nth-child(2) .step-number {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.content-step:nth-child(3) .step-number {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.step-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.step-text p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

/* Interactive highlight effect */
.content-step:hover .step-number {
  transform: scale(1.1);
}

.content-step:hover .step-text h3 {
  color: #2563eb;
}

/* Special pulse effect for middle phone */
.trip-phone:nth-child(2)::after {
  content: '✨';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Responsive design */
@media (max-width: 992px) {
  .trip-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .phones-stack {
    height: 400px;
    width: 310px;
    margin: 0 auto;
  }

  .trip-phone {
    width: 220px;
  }

  .trip-phone:nth-child(1) {
    top: 0;
    left: 10px;
  }

  .trip-phone:nth-child(2) {
    top: 70px;
    left: 50px;
  }

  .trip-phone:nth-child(3) {
    top: 140px;
    left: 90px;
  }

  .content-step {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-right: 1rem;
  }

  .step-text h3 {
    font-size: 1.3rem;
  }

  .step-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .active-trip {
    padding: 4rem 0;
  }

  .active-trip .section-header {
    margin-bottom: 3rem;
  }

  .active-trip .section-header h2 {
    font-size: 2rem;
  }

  .active-trip .section-header p {
    font-size: 1rem;
    max-width: 400px;
  }

  .phones-stack {
    height: 280px;
    width: 245px;
  }

  .trip-phone {
    width: 180px;
  }

  .trip-phone:nth-child(1) {
    top: 0;
    left: 5px;
  }

  .trip-phone:nth-child(2) {
    top: 50px;
    left: 35px;
  }

  .trip-phone:nth-child(3) {
    top: 100px;
    left: 65px;
  }

  .trip-phone:hover {
    transform: scale(1.02) rotate(0deg);
  }

  .content-step {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-right: 0.8rem;
  }

  .step-text h3 {
    font-size: 1.2rem;
  }

  .step-text p {
    font-size: 0.9rem;
  }
}