/* ============================================================
   HHPOKER - 德扑圈 Landing Page
   Custom Stylesheet
   ============================================================ */

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f5f9;
    scroll-behavior: smooth;
}

/* ---------- Selection ---------- */
::selection {
    background-color: #2563eb;
    color: #ffffff;
}
::-moz-selection {
    background-color: #2563eb;
    color: #ffffff;
}

/* ---------- Card Hover Effects ---------- */
.card-hover {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.35s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.25),
                0 4px 12px -4px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ---------- Gradient Backgrounds ---------- */
.gradient-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #152238 30%, #1e3a5f 60%, #1e3a8a 100%);
}
.gradient-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
}
.gradient-primary-light {
    background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);
}
.gradient-card-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.gradient-cta {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #2563eb);
}
.gradient-dark {
    background: linear-gradient(135deg, #0d1b2a, #152238, #1e3a5f);
}

/* ---------- Animated Gradient Border ---------- */
@keyframes gradientBorder {
    0%   { border-image-source: linear-gradient(45deg, #2563eb, #3b82f6, #60a5fa); }
    50%  { border-image-source: linear-gradient(45deg, #60a5fa, #2563eb, #1d4ed8); }
    100% { border-image-source: linear-gradient(45deg, #2563eb, #3b82f6, #60a5fa); }
}

/* ---------- Fade-in Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.animate-fade-in-down {
    animation: fadeInDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.animate-fade-in-left {
    animation: fadeInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.animate-fade-in-right {
    animation: fadeInRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.animate-fade-in {
    animation: fadeIn 0.8s ease both;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* ---------- Floating Animation ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ---------- Pulse Glow ---------- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50%      { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
}
.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ---------- Shimmer Text ---------- */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.text-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #93c5fd 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ---------- FAQ Accordion Styles ---------- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}
.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}
.faq-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon.rotated {
    transform: rotate(180deg);
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-slide {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}
.testimonial-dot.active {
    background-color: #2563eb;
    width: 28px;
    border-radius: 4px;
}

/* ---------- Counter Animation Helper ---------- */
.counter-value {
    display: inline-block;
}

/* ---------- Mobile Menu ---------- */
@media (max-width: 1023px) {
    #mobileNav {
        transition: max-height 0.35s ease, opacity 0.25s ease;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }
    #mobileNav.open {
        max-height: 400px;
        opacity: 1;
    }
}

/* ---------- Header Scroll Effect ---------- */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Page Hero Banner ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.92), rgba(30, 58, 138, 0.85));
    z-index: 1;
}
.page-hero > * {
    position: relative;
    z-index: 2;
}

/* ---------- Form Focus Styles ---------- */
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

/* ---------- Stat Count Up ---------- */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---------- Custom Divider ---------- */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---------- Image Overlay ---------- */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.05));
    pointer-events: none;
}
