/* ========================================
   3D Rotary Dial Language Selector - Top Right
   ======================================== */
.lang-selector-bar {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 100;
}

.lang-dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 3D Base Platform - Transparent */
.lang-dial {
  position: relative;
  width: 140px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Rotary Knob */
.dial-knob {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #555, #333);
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 3px 6px rgba(255, 255, 255, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Knob Grip Lines */
.dial-knob::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background:
    repeating-conic-gradient(from 0deg,
      #444 0deg 30deg,
      #3a3a3a 30deg 60deg);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Knob Indicator */
.dial-knob::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: linear-gradient(180deg, var(--brand-orange), #ff6622);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 68, 0, 0.6);
}

/* Rotation States */
.dial-knob[data-lang="cn"] {
  transform: rotate(-90deg);
}

.dial-knob[data-lang="en"] {
  transform: rotate(0deg);
}

.dial-knob[data-lang="jp"] {
  transform: rotate(90deg);
}

/* Language Labels Around Dial */
.dial-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dial-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #555;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}

.dial-label:nth-child(1) {
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.dial-label:nth-child(2) {
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}

.dial-label:nth-child(3) {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.dial-label:hover {
  color: #888;
}

.dial-label.active {
  color: var(--brand-orange);
  text-shadow: 0 0 8px rgba(255, 68, 0, 0.4);
}

/* ========================================
   Minimal Flat Card Icons
   ======================================== */
.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  stroke-width: 1.5;
}

.card-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--brand-orange);
}

/* ========================================
   Image Annotation Badge
   ======================================== */
.card-image {
  position: relative;
}

.image-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(20, 20, 25, 0.95));
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.image-badge-icon {
  width: 20px;
  height: 20px;
  color: #d97757;
}

.image-badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #d97757;
  letter-spacing: 0.02em;
}

/* ========================================
   Horizontal Carousel
   ======================================== */
.features-carousel-section {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.carousel-arrow:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.carousel-arrow:hover svg {
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot:hover {
  border-color: var(--brand-orange);
}

.dot.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-card {
  min-width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
}

/* Card Content */
.card-content {
  flex: 1;
  max-width: 420px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Card Image */
.card-image {
  flex: 1;
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.02);
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .carousel-card {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }

  .card-content {
    max-width: 100%;
    text-align: center;
  }

  .card-icon {
    margin: 0 auto 24px;
  }

  .card-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .lang-selector-bar {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .card-content {
    padding: 24px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-desc {
    font-size: 0.9rem;
  }

  .image-badge {
    padding: 8px 12px;
  }

  .image-badge-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .lang-dial {
    width: 120px;
    height: 48px;
  }

  .dial-knob {
    width: 36px;
    height: 36px;
  }

  .dial-label {
    font-size: 0.6rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}