/* ============================================
   PROJECT 0027 - 德扑圈 Landing Page
   Custom Styles
   ============================================ */

/* ---------- Hero Overlay Gradient ---------- */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(2, 20, 40, 0.6) 0%,
        rgba(2, 40, 70, 0.75) 50%,
        rgba(2, 60, 100, 0.88) 100%
    );
}

/* ---------- Floating Particles ---------- */
.floating-particle {
    animation: floatParticle 6s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-30px) scale(1.3);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-60px) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) scale(0.8);
        opacity: 0.3;
    }
}

/* ---------- Navbar Scroll Transition ---------- */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Feature Cards with Floating Icons ---------- */
.feature-card-wrapper {
    position: relative;
    padding-top: 30px;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 28px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid rgba(2, 132, 199, 0.06);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(2, 132, 199, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(2, 132, 199, 0.15);
}

/* Floating icon above the card */
.feature-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
    transition: all 0.35s ease;
}

.feature-card-wrapper:hover .feature-icon {
    transform: translateX(-50%) translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.45);
    border-radius: 16px;
}

/* ---------- Stats Numbers ---------- */
.stat-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

/* ---------- Testimonials: Masonry Staggered Layout ---------- */
.testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 28px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.1), 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(2, 132, 199, 0.1);
}

/* Middle card offset higher */
.testimonial-offset {
    transform: translateY(-32px);
}

.testimonial-offset:hover {
    transform: translateY(-38px);
}

/* Circle avatar */
.testimonial-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #e0f2fe;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
    transition: all 0.35s ease;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: #0284c7;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

/* Stars */
.testimonial-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Quote text */
.testimonial-quote {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 18px;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: #0284c7;
    opacity: 0.12;
    position: absolute;
    top: -10px;
    left: -6px;
    font-style: normal;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-author {
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

/* ---------- FAQ Accordion (Pure CSS) ---------- */
.faq-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: rgba(2, 132, 199, 0.1);
}

.faq-card.active {
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: rgba(2, 132, 199, 0.15);
}

.faq-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-toggle:hover {
    background-color: rgba(2, 132, 199, 0.02);
}

/* FAQ answer - collapsed by default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-card.active .faq-answer {
    max-height: 400px;
    opacity: 1;
}

/* FAQ icon rotation */
.faq-card.active .faq-icon {
    background-color: #0284c7;
    color: #ffffff;
}

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

.faq-icon i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* ---------- CTA Gradient Background ---------- */
.cta-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #075985 100%);
    position: relative;
}

.cta-card {
    position: relative;
    z-index: 10;
}

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

/* ---------- Selection Style ---------- */
::selection {
    background-color: rgba(2, 132, 199, 0.2);
    color: #075985;
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 768px) {
    .testimonial-offset {
        transform: translateY(0);
    }

    .testimonial-offset:hover {
        transform: translateY(-6px);
    }

    .feature-card {
        padding: 36px 22px 24px;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .feature-icon i {
        font-size: 1.25rem;
    }

    .faq-card {
        border-radius: 12px;
    }

    .cta-card {
        padding: 32px 20px;
    }
}
