/* DeepOrbit Interactive Carousel, Background Image Layers & Widgets */

/* Background Image Overlay Sections */
.bg-image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-pattern-grid {
  background-color: #ffffff;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px), radial-gradient(#f1f5f9 1.2px, #ffffff 1.2px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.bg-pattern-dots {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(0, 117, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.bg-pattern-mesh {
  background: 
    radial-gradient(at 100% 0%, rgba(0, 148, 255, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 117, 255, 0.05) 0px, transparent 50%),
    #ffffff;
}

/* ===================================================
   SWIPER / INTERACTIVE CAROUSEL WIDGETS
   =================================================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 40px 4px;
}

.carousel-track {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 12px);
  min-width: 300px;
  scroll-snap-align: start;
}

@media (max-width: 960px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 10px);
    min-width: 260px;
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Carousel Navigation Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--motion-duration-fast) var(--motion-easing);
}

.carousel-btn:hover {
  background: var(--color-surface-strong);
  color: #ffffff;
  border-color: var(--color-surface-strong);
  transform: scale(1.08);
}

/* Testimonial & Quote Card Widget */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xs);
  padding: var(--space-8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 60px;
  color: rgba(0, 117, 255, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-quote {
  font-size: var(--font-size-4xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-7);
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-6);
}

.author-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface-strong) 0%, var(--color-surface-raised) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.author-info strong {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-size-4xl);
}

.author-info span {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* Stats Counter Widget */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-8);
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-surface-strong);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
