/* ============================================
   INDUSTRIES 3D ORBIT CAROUSEL
   Futuristic floating glassmorphism cards
   ============================================ */

/* === Section Base === */
.industries-orbit-section {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #020617 0%, #0a1628 30%, #0c1e3a 50%, #091428 70%, #020617 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === Background Effects === */
.orbit-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.orbit-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(8, 145, 178, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.orbit-bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: meshDrift 20s linear infinite;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* === Section Header === */
.orbit-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.orbit-badge {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 50px;
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.orbit-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.orbit-subtitle {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === 3D Carousel Scene === */
.orbit-scene-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1400px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Orbit Ring Decorations === */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(8, 145, 178, 0.08);
  pointer-events: none;
  z-index: 0;
}

.orbit-ring-1 {
  width: 110%;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(72deg);
  border-color: rgba(8, 145, 178, 0.12);
  animation: orbitRingSpin 30s linear infinite;
  box-shadow:
    0 0 30px rgba(8, 145, 178, 0.04),
    inset 0 0 30px rgba(8, 145, 178, 0.02);
}

.orbit-ring-2 {
  width: 95%;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(30deg);
  border-color: rgba(168, 85, 247, 0.08);
  animation: orbitRingSpin 40s linear infinite reverse;
}

.orbit-ring-3 {
  width: 125%;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-15deg);
  border-color: rgba(99, 102, 241, 0.06);
  animation: orbitRingSpin 50s linear infinite;
}

@keyframes orbitRingSpin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}

/* === Radial Spotlight === */
.orbit-spotlight {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, rgba(8, 145, 178, 0.05) 30%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
  filter: blur(20px);
}

/* === 3D Carousel Container === */
.orbit-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 5;
}

.orbit-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === Industry Orbit Card === */
.orbit-card {
  position: absolute;
  width: 240px;
  height: 300px;
  left: 50%;
  top: 50%;
  margin-left: -120px;
  margin-top: -150px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  will-change: transform, opacity, filter;
}

.orbit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Glass shimmer effect */
.orbit-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(0deg);
  animation: shimmerPass 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerPass {
  0%, 100% { transform: translateX(-100%) rotate(0deg); }
  50% { transform: translateX(100%) rotate(0deg); }
}

/* Gradient border bottom */
.orbit-card-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0891b2, #6366f1, #a855f7);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Active card styling */
.orbit-card.is-active .orbit-card-inner {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(8, 145, 178, 0.1),
    0 0 0 1px rgba(8, 145, 178, 0.15) inset;
}

.orbit-card.is-active .orbit-card-inner::after {
  opacity: 1;
}

/* Hover effects */
.orbit-card:hover .orbit-card-inner {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(8, 145, 178, 0.15),
    0 0 0 1px rgba(8, 145, 178, 0.2) inset;
  transform: scale(1.07);
}

.orbit-card:hover .orbit-card-inner::after {
  opacity: 1;
}

/* === Card Icon === */
.orbit-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2) 0%, rgba(99, 102, 241, 0.15) 50%, rgba(168, 85, 247, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.15);
}

.orbit-card-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(8, 145, 178, 0.3), rgba(168, 85, 247, 0.2), rgba(8, 145, 178, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.orbit-card.is-active .orbit-card-icon::before,
.orbit-card:hover .orbit-card-icon::before {
  opacity: 1;
}

.orbit-card:hover .orbit-card-icon,
.orbit-card.is-active .orbit-card-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(8, 145, 178, 0.25);
}

/* === Card Text === */
.orbit-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.orbit-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  max-width: 200px;
}

/* === Navigation Arrows === */
.orbit-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.orbit-nav:hover {
  background: rgba(8, 145, 178, 0.2);
  border-color: rgba(8, 145, 178, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(8, 145, 178, 0.2);
}

.orbit-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.orbit-nav-prev {
  left: max(2rem, calc(50% - 520px));
}

.orbit-nav-next {
  right: max(2rem, calc(50% - 520px));
}

/* === Indicator Dots === */
.orbit-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2.5rem;
  position: relative;
  z-index: 10;
}

.orbit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.orbit-dot:hover {
  background: rgba(8, 145, 178, 0.3);
  transform: scale(1.2);
}

.orbit-dot.active {
  background: #0891b2;
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow: 0 0 12px rgba(8, 145, 178, 0.4);
  width: 28px;
  border-radius: 5px;
}

/* === Scroll Reveal === */
.industries-orbit-section .orbit-header,
.industries-orbit-section .orbit-scene-wrapper,
.industries-orbit-section .orbit-indicators {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.industries-orbit-section.visible .orbit-header {
  opacity: 1;
  transform: translateY(0);
}

.industries-orbit-section.visible .orbit-scene-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.industries-orbit-section.visible .orbit-indicators {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* === Light Streak Arcs === */
.orbit-scene-wrapper::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(8, 145, 178, 0.06);
  border-bottom-color: rgba(168, 85, 247, 0.04);
  pointer-events: none;
  z-index: 0;
  animation: lightStreakArc 20s linear infinite;
}

@keyframes lightStreakArc {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

/* === Responsive Design === */
@media (max-width: 1200px) {
  .orbit-card {
    width: 220px;
    height: 280px;
    margin-left: -110px;
    margin-top: -140px;
  }
}

@media (max-width: 900px) {
  .industries-orbit-section {
    padding: 5rem 0 4rem;
  }

  .orbit-title {
    font-size: 2.5rem;
  }

  .orbit-scene-wrapper {
    height: 450px;
  }

  .orbit-card {
    width: 200px;
    height: 260px;
    margin-left: -100px;
    margin-top: -130px;
  }

  .orbit-card-inner {
    padding: 1.5rem 1.25rem;
  }

  .orbit-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .orbit-card-title {
    font-size: 1.05rem;
  }

  .orbit-card-desc {
    font-size: 0.8rem;
  }

  .orbit-nav {
    width: 44px;
    height: 44px;
  }

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

  .orbit-nav-next {
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .industries-orbit-section {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .orbit-title {
    font-size: 2rem;
  }

  .orbit-subtitle {
    font-size: 1rem;
  }

  .orbit-scene-wrapper {
    height: 400px;
  }

  .orbit-card {
    width: 180px;
    height: 240px;
    margin-left: -90px;
    margin-top: -120px;
  }

  .orbit-card-inner {
    padding: 1.25rem 1rem;
  }

  .orbit-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .orbit-card-title {
    font-size: 0.95rem;
  }

  .orbit-card-desc {
    font-size: 0.75rem;
    max-width: 160px;
  }

  .orbit-nav {
    width: 38px;
    height: 38px;
  }

  .orbit-nav svg {
    width: 18px;
    height: 18px;
  }

  .orbit-nav-prev {
    left: 0.5rem;
  }

  .orbit-nav-next {
    right: 0.5rem;
  }

  .orbit-indicators {
    margin-top: 1.5rem;
    gap: 6px;
  }

  .orbit-dot {
    width: 8px;
    height: 8px;
  }

  .orbit-dot.active {
    width: 22px;
  }

  .orbit-ring {
    display: none;
  }
}

@media (max-width: 400px) {
  .orbit-card {
    width: 160px;
    height: 220px;
    margin-left: -80px;
    margin-top: -110px;
  }
}
