/* ==========================================================================
   Jayshree Technosoft — Industries Scroller CSS
   Claymorphism + 3D Curved Perspective | Responsive Premium Aesthetic
   ========================================================================== */

#industries-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  background: #040613;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 10;
}

/* Ambient glow backgrounds */
#industries-section .ind-bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#industries-section .ind-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  will-change: transform;
}

#industries-section .glow-1 {
  width: 45vw;
  height: 45vw;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
}

#industries-section .glow-2 {
  width: 50vw;
  height: 50vw;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, #ef3139 0%, transparent 70%);
}

/* Header Section */
.ind-header-wrap {
  position: relative;
  z-index: 5;
  margin-bottom: 60px;
}

.ind-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ef3139;
  margin-bottom: 16px;
  background: rgba(239, 49, 57, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(239, 49, 57, 0.2);
}

.ind-section-badge i {
  font-size: 10px;
}

.ind-section-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.ind-section-title span {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ind-section-desc {
  font-size: 16px;
  color: #a0aec0;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3D Perspective Stage */
.ind-perspective-stage {
  position: relative;
  width: 100%;
  height: 540px;
  margin: 0 auto;
  perspective: 1500px;
  overflow: visible;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Carousel Inner Track */
.ind-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}

.ind-carousel-track:active {
  cursor: grabbing;
}

/* Claymorphism Card Design */
.ind-card {
  position: absolute;
  width: 320px;
  height: 440px;
  border-radius: 32px;
  padding: 30px;
  background: linear-gradient(135deg, #090c21 0%, #050714 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.65),
    inset 0 4px 6px rgba(255, 255, 255, 0.15),
    inset 0 -12px 24px rgba(0, 0, 0, 0.5),
    inset 8px 8px 16px rgba(255, 255, 255, 0.04),
    inset -8px -8px 16px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  user-select: none;
  pointer-events: auto;
  z-index: 1;
}

/* Card content transitions */
.ind-card-desc,
.ind-card-pills,
.ind-card-bottom {
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Softly dim detailed contents for inactive cards to keep focus on the active card */
.ind-card:not(.active-card) .ind-card-desc,
.ind-card:not(.active-card) .ind-card-pills,
.ind-card:not(.active-card) .ind-card-bottom {
  opacity: 0.5;
}

/* Interactive Slanted Colors & Glows */
.ind-card[data-industry="ecommerce"]   { border-color: rgba(155, 89, 182, 0.25); }
.ind-card[data-industry="healthcare"]  { border-color: rgba(46, 204, 113, 0.25); }
.ind-card[data-industry="realestate"]  { border-color: rgba(230, 126, 34, 0.25); }
.ind-card[data-industry="education"]   { border-color: rgba(52, 152, 219, 0.25); }
.ind-card[data-industry="logistics"]   { border-color: rgba(241, 196, 15, 0.25); }
.ind-card[data-industry="fintech"]     { border-color: rgba(0, 242, 254, 0.25); }
.ind-card[data-industry="automotive"]  { border-color: rgba(239, 49, 57, 0.25); }
.ind-card[data-industry="tours-travel"] { border-color: rgba(26, 188, 156, 0.25); }

/* Highlight active state */
.ind-card.active-card {
  z-index: 10;
  background: linear-gradient(135deg, #0e122b 0%, #060919 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 30px 80px rgba(0, 242, 254, 0.25),
    inset 0 4px 6px rgba(255, 255, 255, 0.25),
    inset 0 -12px 24px rgba(0, 0, 0, 0.4),
    inset 8px 8px 16px rgba(255, 255, 255, 0.08);
}

/* Card Content Structure */
.ind-card-top {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Floating Icon Ring (Claymorphism style) */
.ind-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Specific pastel glow overlays */
.ind-card[data-industry="ecommerce"] .ind-icon-wrap    { color: #9b59b6; box-shadow: 0 10px 25px rgba(155, 89, 182, 0.35); }
.ind-card[data-industry="healthcare"] .ind-icon-wrap   { color: #2ecc71; box-shadow: 0 10px 25px rgba(46, 204, 113, 0.35); }
.ind-card[data-industry="realestate"] .ind-icon-wrap   { color: #e67e22; box-shadow: 0 10px 25px rgba(230, 126, 34, 0.35); }
.ind-card[data-industry="education"] .ind-icon-wrap    { color: #3498db; box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35); }
.ind-card[data-industry="logistics"] .ind-icon-wrap    { color: #f1c40f; box-shadow: 0 10px 25px rgba(241, 196, 15, 0.35); }
.ind-card[data-industry="fintech"] .ind-icon-wrap      { color: #00f2fe; box-shadow: 0 10px 25px rgba(0, 242, 254, 0.35); }
.ind-card[data-industry="automotive"] .ind-icon-wrap   { color: #ef3139; box-shadow: 0 10px 25px rgba(239, 49, 57, 0.35); }
.ind-card[data-industry="tours-travel"] .ind-icon-wrap { color: #1abc9c; box-shadow: 0 10px 25px rgba(26, 188, 156, 0.35); }

.ind-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.ind-card-desc {
  font-size: 13.5px;
  color: #cbd5e0;
  line-height: 1.6;
  margin: 0;
}

/* Tech Pill Badges */
.ind-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ind-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.ind-card:hover .ind-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Card Bottom Footer */
.ind-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 15px;
  margin-top: 15px;
}

.ind-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #00f2fe;
  text-decoration: none !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ind-learn-more i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.ind-learn-more:hover {
  color: #ffffff;
}

.ind-learn-more:hover i {
  transform: translateX(4px);
}

.ind-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.3s ease;
}

.ind-card:hover .ind-num {
  color: rgba(255, 255, 255, 0.3);
}

.ind-card:hover .ind-icon-wrap {
  transform: scale(1.08) translateY(-3px);
}

/* Navigation controls below */
.ind-controls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 5;
}

.ind-nav-btns {
  display: flex;
  gap: 15px;
}

.ind-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-btn:hover {
  background: #ffffff;
  color: #040613;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

.ind-btn:active {
  transform: translateY(0);
}

.ind-dots {
  display: flex;
  gap: 8px;
}

.ind-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ind-dot.active-dot {
  width: 24px;
  border-radius: 6px;
  background: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

/* Mobile responsive fixes */
@media (max-width: 991.98px) {
  #industries-section {
    padding: 70px 0;
  }

  .ind-section-title {
    font-size: 32px;
  }

  .ind-section-desc {
    font-size: 14.5px;
  }

  .ind-perspective-stage {
    height: 480px;
    perspective: none; /* Flatten layout on mobile for better touch performance */
  }

  .ind-card {
    width: 280px;
    height: 380px;
    padding: 24px;
    border-radius: 24px;
  }

  .ind-card-title {
    font-size: 20px;
  }

  .ind-card-desc {
    font-size: 12.5px;
  }

  .ind-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .ind-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .ind-section-title {
    font-size: 26px;
  }

  .ind-perspective-stage {
    height: 440px;
  }

  .ind-card {
    width: 250px;
    height: 360px;
    padding: 20px;
  }
}
