/* ========== Custom Styles for HHpoker SaaS Landing ========== */

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

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

/* ========== Navbar Styles ========== */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: flex;
}

/* ========== Hero Section ========== */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #f5f3ff 100%);
}

.hero-image-float {
  animation: float 6s ease-in-out infinite;
}

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

/* Hero glow blob */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: #818cf8;
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: #a78bfa;
  bottom: -50px;
  left: -50px;
}

/* ========== Feature Cards ========== */
.feature-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.12);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: #4f46e5;
  color: #ffffff;
}

.feature-icon {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Stats Section ========== */
.stats-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  position: relative;
  overflow: hidden;
}

.stats-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: statsBg 20s linear infinite;
}

@keyframes statsBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ========== Testimonial Cards ========== */
.testimonial-card {
  transition: all 0.3s ease;
}

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

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

/* ========== FAQ Accordion ========== */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #c7d2fe;
}

.faq-item.active {
  border-color: #a5b4fc;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.faq-question {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.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-icon {
  transition: transform 0.3s ease;
}

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

/* ========== CTA Section ========== */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ========== CTA Button Pulse ========== */
.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* ========== Footer ========== */
.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: #a5b4fc;
  padding-left: 4px;
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #a5b4fc;
}

/* ========== Secondary Pages ========== */
.page-header-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f5f3ff 100%);
}

/* Value pillar cards */
.pillar-card {
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.12);
}

/* Contact method cards */
.contact-method-card {
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.contact-method-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 12px 28px -8px rgba(79, 70, 229, 0.1);
}

/* ========== Scroll to top button ========== */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 50;
  border: none;
  font-size: 18px;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #4338ca;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
  .hero-blob-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
  }

  .hero-blob-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
