/* Feature Tabs */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.feature-tab {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #7f8c8d;
}

.feature-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.feature-tab:hover:not(.active) {
  border-color: #2563eb;
  color: #2563eb;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 4rem;
}

.carousel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Phone Mockup Side - Updated to match hero.css */
.carousel-phone {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.carousel-phone .phone {
  width: 300px;
  border-radius: 36px;
  background: #000;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

.carousel-phone .phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #fff;
  border-radius: 27px;
  overflow: hidden;
  position: relative;
}

.carousel-phone .phone-screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #000;
  border-radius: 15px;
}

.carousel-phone .screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature Description Side */
.feature-description {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.feature-description h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.feature-description p {
  font-size: 1.1rem;
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-action {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  align-self: flex-start;
}

.feature-action:hover {
  transform: translateY(-2px);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #2563eb;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.carousel-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  /* Position at 50% (end of first grid column) minus button width and desired spacing */
  left: calc(50% - 25px - 2.5rem); /* 50% - (button width/2) - spacing */
}

/* Animation */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-content {
    grid-template-columns: 1fr;
  }

  .carousel-phone {
    order: 2;
    padding: 1rem;
  }

  .carousel-phone .phone {
    width: 240px;
  }

  .feature-description {
    order: 1;
    padding: 2rem;
  }

  .feature-tabs {
    gap: 0.5rem;
  }

  .feature-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .carousel-nav {
    display: none;
  }
}

/* Slide Header */
.slide-header {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

/* Image Indicators */
.image-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: scale(1.2);
}

.indicator:hover:not(.active) {
  background: #bbb;
  transform: scale(1.1);
}
