/* ==========================================
   HHpoker / 德扑圈 Landing Page - Custom Styles
   Primary Color: Blue-600 (#2563eb)
   ========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* === CONTAINER === */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* === SECTION PADDING === */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ==========================================
   ANIMATIONS - Keyframes
   ========================================== */

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

/* Pulse Soft */
@keyframes pulseSoft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
}

.pulse-soft {
    animation: pulseSoft 2.5s ease-in-out infinite;
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* ==========================================
   ANIMATE ON SCROLL
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ==========================================
   NAVBAR
   ========================================== */

/* Navbar Glass */
.navbar-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Navbar Scrolled */
.navbar-glass.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

/* ==========================================
   HERO
   ========================================== */

.hero-gradient {
    background: linear-gradient(170deg, #eff6ff 0%, #f0f7ff 25%, #f8fafc 60%, #ffffff 100%);
}

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

/* ==========================================
   CARD HOVER
   ========================================== */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   STATS
   ========================================== */

.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ==========================================
   TESTIMONIALS
   ========================================== */

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: rgba(37, 99, 235, 0.06);
    font-family: Georgia, serif;
    pointer-events: none;
}

/* ==========================================
   FAQ
   ========================================== */

.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.faq-question {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.faq-question:focus {
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}

.faq-question i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-question i.fa-chevron-down.rotated {
    transform: rotate(180deg);
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 600px;
    opacity: 1;
}

/* ==========================================
   BACK TO TOP
   ========================================== */

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

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

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 40%, #1e40af 100%);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-section {
    background: #0f172a;
    color: #cbd5e1;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
    background-color: #eff6ff;
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .container-custom {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(170deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%);
    }

    .gradient-text {
        font-size: inherit;
    }

    .stat-number span:first-child {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .container-custom {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 0.875rem;
    }
}

/* ==========================================
   LOADING SPINNER (optional, for future use)
   ========================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   DECORATIVE ELEMENTS
   ========================================== */

/* Badge base */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

.badge-green {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-orange {
    background: #fff7ed;
    color: #ea580c;
}

/* Checkmark list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.125rem;
    color: #2563eb;
    font-size: 0.75rem;
}

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

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 1.5rem;
}

/* ==========================================
   HOVER GLOW EFFECTS
   ========================================== */

.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .navbar-glass,
    .back-to-top,
    .mobile-menu {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}
