/* ============================================
   Project 0064 - HHpoker Landing Page
   Design: Purple-Indigo Gradient with Floating Cards
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #a78bfa;
  --gradient-start: #7c3aed;
  --gradient-end: #4f46e5;
  --dark: #1e1b4b;
  --light: #faf5ff;
}

/* --- Gradient Text Animation --- */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #4f46e5, #818cf8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Floating Cards --- */
.floating-cards-container {
  position: relative;
  min-height: 420px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: floatCard 6s ease-in-out infinite;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.floating-card:nth-child(1) {
  top: 0;
  left: 5%;
  animation-delay: 0s;
  width: 180px;
}

.floating-card:nth-child(2) {
  top: 20px;
  right: 5%;
  animation-delay: -2s;
  width: 190px;
}

.floating-card:nth-child(3) {
  bottom: 10px;
  left: 15%;
  animation-delay: -4s;
  width: 170px;
}

.floating-card:nth-child(4) {
  bottom: 30px;
  right: 15%;
  animation-delay: -1s;
  width: 175px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(-0.5deg); }
  75% { transform: translateY(-16px) rotate(0.5deg); }
}

.floating-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.floating-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #4c1d95;
  margin-bottom: 4px;
}

.floating-card-sub {
  font-size: 0.78rem;
  color: #7c3aed;
}

/* --- Staggered Alternating Feature Cards --- */
.feature-card-staggered {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.feature-card-staggered::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #7c3aed, #a78bfa);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-staggered:hover::before {
  opacity: 1;
}

.feature-card-staggered:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.18);
}

.feature-card-staggered .feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

/* --- Stats Counter --- */
.stat-counter {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(167, 139, 250, 0.12);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: #7c3aed;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2d1b69;
  user-select: none;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #7c3aed;
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: #7c3aed;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 24px;
  color: #6b7280;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* --- CTA Section Gradient --- */
.cta-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #6d28d9 100%);
}

/* --- Navbar --- */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar-sticky.scrolled {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

/* --- Button Styles --- */
.btn-primary-gradient {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-outline-purple {
  border: 2px solid #7c3aed;
  color: #7c3aed;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-purple:hover {
  background: #7c3aed;
  color: #fff;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Glow --- */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .floating-cards-container {
    min-height: 300px;
    margin-top: 30px;
  }

  .floating-card {
    position: relative;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-bottom: 12px;
    animation: floatCardMobile 4s ease-in-out infinite;
  }

  @keyframes floatCardMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .stat-counter {
    font-size: 2.2rem;
  }
}
