/* ========================================
   FEATURES CAROUSEL SECTION
   ======================================== */

.features-section {
  padding: 60px 0 40px;
  position: relative;
}

.features-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-section .section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
}

.features-section .section-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-family: 'Montserrat', sans-serif;
}

/* Features Grid Wrapper */
.features-grid-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

/* Features Grid - Horizontal Scroll */
.features-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px max(20px, calc((100vw - 1200px) / 2)) 20px;
  width: 100%;
}

.features-grid::-webkit-scrollbar {
  display: none;
}

/* Feature Card */
.feature-card {
  flex: 0 0 320px;
  min-width: 320px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #f97316);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.feature-content h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.feature-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.carousel-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-indicator.active {
  width: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.carousel-pause-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel-pause-btn.paused svg rect:first-child {
  width: 0;
  x: 10;
}

.carousel-pause-btn.paused svg rect:last-child {
  width: 0;
  x: 10;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .features-section {
    padding: 50px 0 30px;
  }

  .features-section .section-header {
    margin-bottom: 36px;
  }

  .features-section .section-title {
    font-size: 34px;
  }

  .features-section .section-description {
    font-size: 14px;
  }

  .features-grid {
    gap: 14px;
    padding: 15px calc((100vw - 270px) / 2) 15px;
  }

  .feature-card {
    flex: 0 0 270px;
    min-width: 270px;
    padding: 24px 20px;
    gap: 12px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .feature-content h3 {
    font-size: 16px;
  }

  .feature-content p {
    font-size: 13px;
  }

  .carousel-controls {
    margin-top: 20px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .features-section {
    padding: 40px 0 20px;
  }

  .features-section .section-title {
    font-size: 30px;
  }

  .features-section .section-description {
    font-size: 13px;
  }

  .features-grid {
    gap: 12px;
    padding: 15px calc((100vw - 260px) / 2) 15px;
  }

  .feature-card {
    flex: 0 0 260px;
    min-width: 260px;
    padding: 20px 18px;
    gap: 10px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .feature-content h3 {
    font-size: 15px;
  }

  .feature-content p {
    font-size: 12px;
  }
}
