/**
 * Success Story Page Styles
 * Custom styles for the Success Story page showcasing products and clients
 * Enhanced with futuristic design elements
 */

/* Animation for elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Futuristic Product Section Styles */
#products {
  position: relative;
  overflow: hidden;
}

#products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: -1;
}

#products .section-title {
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  font-weight: 700;
}

#products .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  border-radius: 3px;
}

/* Product Card Styles */
.product-card {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(69, 104, 220, 0.2);
}

.product-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.product-card:hover .product-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Product Image and Content Styling */
#products .row {
  position: relative;
  z-index: 1;
}

#products img {
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

#products img:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 15px rgba(69, 104, 220, 0.3);
}

#products img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(69, 104, 220, 0.2) 0%, rgba(176, 106, 179, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

#products img:hover::after {
  opacity: 1;
}

#products .p-4 {
  background: rgba(32, 9, 9, 0.212);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

#products .p-4:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 15px rgba(69, 104, 220, 0.2);
  transform: translateY(-5px);
}

#products .h4 {
  position: relative;
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#products .btn-primary {
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  box-shadow: 0 5px 15px rgba(69, 104, 220, 0.3);
}

#products .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b06ab3, #4568dc);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

#products .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(69, 104, 220, 0.4);
}

#products .btn-primary:hover::before {
  left: 0;
}

/* Client Card Styles */
.client-card {
  background-color: #fff;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.client-logo {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.client-card:hover .client-logo {
  transform: scale(1.08);
}

/* Feature List Styling */
#products .list-unstyled li {
  position: relative;
  padding: 8px 0 8px 30px;
  transition: all 0.3s ease;
}

#products .list-unstyled li:hover {
  transform: translateX(5px);
}

#products .list-unstyled li .fas {
  position: absolute;
  left: 0;
  top: 10px;
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

#products .list-unstyled li:hover .fas {
  transform: scale(1.2);
}

/* Animated Tech Elements */
#products::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(69, 104, 220, 0.2);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.01);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
}

/* Tab Navigation Styles */
#successTab .nav-link {
  border-radius: 30px;
  padding: 15px;
  font-weight: 600;
  color: var(--bs-dark);
  background-color: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#successTab .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#successTab .nav-link.active {
  background: linear-gradient(90deg, #4568dc, #b06ab3);
  color: white;
  box-shadow: 0 8px 20px rgba(69, 104, 220, 0.3);
}

/* Tech Particles */
.tech-particle {
  position: absolute;
  background: linear-gradient(135deg, rgba(69, 104, 220, 0.4), rgba(176, 106, 179, 0.4));
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: float infinite ease-in-out alternate;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-20px) translateX(20px) rotate(360deg);
    opacity: 0.2;
  }
}

/* Show staggered animation for child elements */
.show-staggered {
  animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow effect for buttons */
#products .btn-primary {
  --x: 0px;
  --y: 0px;
}

#products .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

#products .btn-primary:hover::after {
  opacity: 1;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: var(--bs-primary);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(var(--bs-primary-rgb), 0.25);
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  #successTab .nav-link {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .client-card, .product-card {
    margin-bottom: 1rem;
  }
}

/* Animation for tab transitions */
.tab-pane.fade {
  transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade.show {
  opacity: 1;
}