/* Features Showcase - Ultra Premium Interactive Slider */

.showcase-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #fafbfc 0%, #f4f7fa 100%);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.showcase-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #00a884, #00d4aa);
  margin: 20px auto 0;
  border-radius: 2px;
}

.showcase-sub {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00a884;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.showcase-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -1.5px;
  margin-bottom: 15px;
  line-height: 1.1;
}

.showcase-desc {
  font-size: 1.2rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

/* --- Layout --- */
.showcase-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  padding: 0 40px;
  align-items: center;
  min-height: 600px;
}

/* --- Left Column: Vertical Tabs --- */
.showcase-tabs {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-tab {
  padding: 28px 28px 28px 24px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  position: relative;
  background: transparent;
  overflow: visible;
}

.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(8px) scale(1.02);
}

.showcase-tab.active {
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(0, 168, 132, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 168, 132, 0.15);
  transform: translateX(8px) scale(1.02);
}

/* Circular Progress Indicator (Premium!) */
.tab-progress {
  position: absolute;
  top: 50%;
  left: -18px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.showcase-tab.active .tab-progress {
  opacity: 1;
}

.tab-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tab-progress-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 2;
}

.tab-progress-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 5s linear;
}

.showcase-tab.active .tab-progress-fill {
  stroke-dashoffset: 0;
}

.showcase-container.paused .tab-progress-fill {
  transition: none !important;
}

/* Tab Content */
.showcase-tab h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s ease;
}

.showcase-tab h3 i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f7;
  border-radius: 12px;
  font-size: 1rem;
  color: #666;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-tab.active h3 {
  color: #0a0a0a;
  margin-bottom: 12px;
}

.showcase-tab.active h3 i {
  background: linear-gradient(135deg, #00a884 0%, #00d4aa 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 168, 132, 0.3);
}

.showcase-tab p {
  font-size: 0.98rem;
  color: #666;
  margin: 0;
  line-height: 1.65;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-left: 56px;
}

.showcase-tab.active p {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Right Column: Visual Preview --- */
.showcase-visual {
  flex: 1;
  height: 560px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow:
    0 60px 120px -20px rgba(0, 168, 132, 0.15),
    0 30px 60px -30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  /* Premium Mesh Gradient */
  background-image:
    radial-gradient(at 15% 15%, rgba(0, 168, 132, 0.08) 0, transparent 45%),
    radial-gradient(at 85% 85%, rgba(76, 201, 240, 0.08) 0, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Animated mesh background */
.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 168, 132, 0.03) 0,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(76, 201, 240, 0.04) 0,
      transparent 50%
    );
  animation: meshShift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshShift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

/* Window Chrome (Mac style) */
.showcase-visual::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow:
    22px 0 0 #febc2e,
    44px 0 0 #28ca41;
  z-index: 25;
}

.visual-content {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.visual-content.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 10;
  pointer-events: auto;
  transition-delay: 0.15s;
}

/* Visual Content Typography */
.visual-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0a0a0a;
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: -0.5px;
}

/* Abstract UI Card - Premium Glassmorphism */
.abstract-ui-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* Chat Bubbles - Enhanced */
.chat-bubble {
  padding: 16px 22px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 1rem;
  width: fit-content;
  max-width: 80%;
  position: relative;
  line-height: 1.5;
  animation: bubbleSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

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

.visual-content.active .chat-bubble:nth-child(1) {
  animation-delay: 0.2s;
}
.visual-content.active .chat-bubble:nth-child(2) {
  animation-delay: 0.35s;
}
.visual-content.active .chat-bubble:nth-child(3) {
  animation-delay: 0.5s;
}
.visual-content.active .chat-bubble:nth-child(4) {
  animation-delay: 0.65s;
}

.chat-left {
  background: #f5f6f7;
  color: #2a2a2a;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.chat-right {
  background: linear-gradient(135deg, #00a884 0%, #00c896 100%);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
  text-align: right;
  box-shadow: 0 6px 12px rgba(0, 168, 132, 0.25);
}

/* Footer Button */
.showcase-footer {
  text-align: center;
  margin-top: 80px;
}

.btn-showcase {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 48px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  font-size: 1.1rem;
}

.btn-showcase:hover {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Pagination Dots - Mobile Only */
.showcase-pagination {
  display: none;
}

@media (max-width: 1024px) {
  .showcase-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-pagination .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
  }

  .showcase-pagination .dot:hover {
    background: #a0aec0;
    transform: scale(1.2);
  }

  .showcase-pagination .dot.active {
    width: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00a884 0%, #00d4aa 100%);
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
  }
}

/* Responsive - Mobile First Approach */
@media (max-width: 1200px) {
  .showcase-container {
    gap: 40px;
    padding: 0 24px;
  }

  .showcase-tabs {
    flex: 0 0 45%;
  }
}

@media (max-width: 1024px) {
  .showcase-section {
    padding: 80px 0;
  }

  .showcase-title {
    font-size: 2.8rem;
  }

  .showcase-container {
    flex-direction: column;
    padding: 0 20px;
    gap: 40px;
    min-height: auto;
  }

  .showcase-tabs {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 20px 20px 30px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scrollbar-width: none;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .showcase-tab {
    min-width: 88vw;
    max-width: 88vw;
    scroll-snap-align: center;
    background: #fff;
    border: 2px solid #f0f0f0;
    padding: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    transform: none !important;
  }

  .showcase-tab:hover {
    transform: none !important;
  }

  .showcase-tab.active {
    border-color: #00a884;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    transform: none !important;
  }

  .showcase-tab p {
    display: block !important;
    opacity: 0.8 !important;
    padding-left: 56px;
  }

  .tab-progress {
    display: none;
  }

  .showcase-visual {
    width: 100%;
    height: 480px;
    border-radius: 20px;
  }

  .visual-content {
    padding: 70px 30px 40px;
  }

  .visual-content h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .abstract-ui-card {
    max-width: 100%;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .showcase-section {
    padding: 60px 0;
  }

  .showcase-title {
    font-size: 2.2rem;
  }

  .showcase-desc {
    font-size: 1.05rem;
  }

  .showcase-visual {
    height: 400px;
  }

  .visual-content {
    padding: 60px 20px 30px;
  }

  .visual-content h2 {
    font-size: 1.4rem;
  }

  .chat-bubble {
    font-size: 0.92rem;
    padding: 14px 18px;
  }
}
