/* ============================================
   HHPoker - Premium SaaS Landing Page Styles
   ============================================ */

/* --- Custom Font Smoothing --- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Navbar Transparent to Solid Transition --- */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Gradient Icon Box --- */
.icon-gradient-box {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.icon-gradient-box i {
  color: #ffffff;
  font-size: 1.375rem;
}

/* --- Feature Card Hover --- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.25);
}

/* --- Stats Counter Animation --- */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --- Testimonial Card --- */
.testimonial-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.star-rating i {
  color: #f59e0b;
  font-size: 1rem;
  margin-right: 2px;
}

.star-rating i:last-child {
  margin-right: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ffffff;
  transition: box-shadow 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.faq-question {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  padding-right: 16px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: #2563eb;
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  color: #64748b;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* --- CTA Section Gradient --- */
.cta-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 60%, #06b6d4 100%);
}

/* --- Stats Bar Gradient --- */
.stats-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #0891b2 100%);
}

/* --- Trust Badge --- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 8px 18px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge i {
  color: #fbbf24;
}

/* --- Footer --- */
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.925rem;
}

.footer-link:hover {
  color: #60a5fa;
}

/* --- 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;
}

/* --- Hero Image Container --- */
.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  z-index: 0;
  opacity: 0.15;
  filter: blur(20px);
}

.hero-image-wrapper img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.3);
}

/* --- Pulse Dot --- */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.4;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}

/* --- Fade In Up Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Button Ripple --- */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-ripple:hover::after {
  opacity: 1;
}

/* --- Secondary Pages Common --- */
.page-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #e0f2fe 100%);
  padding-top: 100px;
}

/* --- Contact Info Cards --- */
.contact-info-card {
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.12);
}

.contact-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.contact-icon-circle i {
  color: #ffffff;
  font-size: 1.5rem;
}

/* --- About Page Values --- */
.value-card {
  border-radius: 20px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-image-wrapper img {
    border-radius: 14px;
  }

  .icon-gradient-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .icon-gradient-box i {
    font-size: 1.15rem;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-question h3 {
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0 18px 16px 18px;
    font-size: 0.875rem;
  }
}
