/* ============================================
   HHpoker Club - Ocean Theme Custom Styles
   Color: Ocean Blue (#0369a1) + Coral (#fb7185)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --ocean-deep: #0369a1;
  --ocean-mid: #0284c7;
  --ocean-light: #38bdf8;
  --ocean-surface: #e0f2fe;
  --coral: #fb7185;
  --coral-light: #fda4af;
  --coral-dark: #e11d48;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-ocean: 0 8px 32px rgba(3,105,161,0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background: #f8fafc;
  color: var(--text-dark);
}

/* --- Navbar --- */
#navbar {
  transition: all var(--transition);
  z-index: 1000;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(251,113,133,0.35);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,113,133,0.50);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #0369a1 0%, #0284c7 25%, #0ea5e9 50%, #38bdf8 75%, #7dd3fc 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(251,113,133,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56,189,248,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Ocean wave overlay at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero image clip */
.hero-img-clip {
  clip-path: ellipse(42% 48% at 50% 50%);
  border: 4px solid rgba(255,255,255,0.30);
  box-shadow: 0 8px 40px rgba(3,105,161,0.35);
}

/* Bubble decorations */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0.08));
  pointer-events: none;
  animation: floatBubble 6s ease-in-out infinite;
}

.bubble-1 { width: 60px; height: 60px; top: 12%; left: 8%; animation-delay: 0s; }
.bubble-2 { width: 90px; height: 90px; top: 22%; right: 10%; animation-delay: 1.5s; }
.bubble-3 { width: 40px; height: 40px; top: 55%; left: 5%; animation-delay: 3s; }
.bubble-4 { width: 50px; height: 50px; bottom: 15%; right: 7%; animation-delay: 0.8s; }
.bubble-5 { width: 70px; height: 70px; top: 65%; right: 18%; animation-delay: 2.5s; }
.bubble-6 { width: 34px; height: 34px; top: 35%; left: 14%; animation-delay: 4s; }
.bubble-7 { width: 46px; height: 46px; bottom: 30%; left: 12%; animation-delay: 1.2s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-24px) scale(1.08); opacity: 0.95; }
}

/* --- Features Section --- */
.features-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean-deep), var(--coral));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-ocean);
  border-color: rgba(3,105,161,0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-surface), #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
  box-shadow: 0 8px 28px rgba(3,105,161,0.30);
}

.feature-icon-wrapper i {
  font-size: 32px;
  color: var(--ocean-deep);
  transition: color var(--transition);
}

.feature-card:hover .feature-icon-wrapper i {
  color: #ffffff;
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 40%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(251,113,133,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.stat-icon {
  font-size: 36px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
}

.stat-number .counter-plus {
  color: var(--coral-light);
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  border: 1px solid #f1f5f9;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--ocean-surface);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 64px;
  color: var(--coral-light);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ocean-surface);
}

.testimonial-stars i {
  color: #fbbf24;
  font-size: 14px;
  margin-right: 2px;
}

/* --- FAQ Section --- */
.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

/* Coral-branch accordion */
.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--ocean-light);
}

.faq-item.active {
  border-color: var(--coral-light);
  box-shadow: 0 4px 20px rgba(251,113,133,0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-dark);
}

.faq-item.active .faq-question {
  color: var(--coral-dark);
  background: linear-gradient(90deg, #fff1f2 0%, #ffffff 100%);
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

/* Coral-branch icon */
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}

.faq-item.active .faq-icon {
  background: var(--coral);
}

.faq-icon i {
  font-size: 14px;
  color: var(--text-mid);
  transition: all var(--transition);
}

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

/* Coral branch line */
.faq-item.active .faq-question::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral-light), transparent);
  border-radius: 2px;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 15px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, #0284c7 50%, var(--coral-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 80%, rgba(251,113,133,0.20) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(56,189,248,0.20) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='rgba(255,255,255,0.12)'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: driftBg 30s linear infinite;
}

@keyframes driftBg {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.cta-btn-main {
  display: inline-block;
  background: #ffffff;
  color: var(--ocean-deep);
  font-weight: 700;
  font-size: 18px;
  padding: 14px 44px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.cta-btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  background: #f0f9ff;
}

.cta-btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.55);
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 40px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  transform: translateY(-3px);
}

/* --- Footer --- */
.site-footer {
  background: #0c1929;
  color: #cbd5e1;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--ocean-light), var(--coral));
}

.footer-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  padding: 3px 0;
}

.footer-link:hover {
  color: var(--coral-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 20px;
}

/* --- Scroll to Top --- */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(3,105,161,0.35);
  transition: all var(--transition);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

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

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(3,105,161,0.45);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Pulse ring for CTA --- */
.pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.35);
  animation: pulseRing 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .stat-number {
    font-size: 36px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .faq-question {
    font-size: 15px;
    padding: 14px 18px;
  }

  .cta-btn-main,
  .cta-btn-secondary {
    font-size: 16px;
    padding: 12px 32px;
  }

  .bubble { display: none; }
}
