/* Pact - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #ffffff;
}

/* CTA Button Spark Animation */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-btn:hover::before {
  left: 100%;
}

/* Lightning spark animation for the yellow bolt icon */
.spark-icon {
  animation: spark 2s ease-in-out infinite;
}

@keyframes spark {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(255, 204, 0, 0.3));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.6));
  }
}

/* Product image placeholder shimmer */
.product-image-placeholder {
  position: relative;
  overflow: hidden;
}

.product-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.03),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* FAQ accordion */
.faq-item {
  background: rgba(17, 17, 17, 0.5);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.show {
  max-height: 200px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Form focus glow effect */
input:focus {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3),
              0 0 20px -5px rgba(0, 212, 255, 0.15);
}

/* Fade in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing card hover lift */
@media (min-width: 768px) {
  .grid > div:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
  }
}

/* Accountability feed animations */
.feed-item-enter {
  animation: feedSlideIn 0.4s ease forwards;
}

.feed-item-exit {
  animation: feedFadeOut 0.4s ease forwards;
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-bottom: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    margin-bottom: 8px;
  }
}

@keyframes feedFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    margin-bottom: 8px;
  }
  to {
    opacity: 0;
    transform: translateY(4px);
    max-height: 0;
    margin-bottom: 0;
  }
}

/* Pulse animation for waitlist counter */
@keyframes countPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
