/* HHpoker Alliance & Agency — Custom Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-up { transform: translateY(40px); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.9); }
.reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===== Navbar ===== */
#navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.35s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 350px;
    opacity: 1;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-btn {
    cursor: pointer;
}
.faq-btn i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-btn.active i {
    transform: rotate(180deg);
}
.faq-answer {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.faq-answer.open {
    max-height: 300px;
    opacity: 1;
}

/* ===== Counter ===== */
.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

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

/* ===== Feature Card Hover ===== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon {
    transition: transform 0.3s ease;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* ===== Shimmer Loading for Stats ===== */
.shimmer-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ===== Floating Animation for Hero Image ===== */
.hero-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Alliance Card Border Gradient ===== */
.alliance-card {
    position: relative;
}
.alliance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.alliance-card:hover::before {
    opacity: 1;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    section { padding-top: 3rem; padding-bottom: 3rem; }
    .hero-float { animation: none; }
}
