/* ===== Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* ===== Selection ===== */
::selection {
    background-color: rgba(27, 203, 104, 0.15);
    color: #115531;
}

/* ===== Navbar States ===== */
#navbar {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== FAQ Animations ===== */
.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
}

.faq-item.open .faq-content {
    max-height: 500px;
    display: block;
}

.faq-item.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== Intersection Observer Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Counter Animation ===== */
[data-counter] {
    font-variant-numeric: tabular-nums;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 500px;
    display: block;
}

/* ===== Smooth Hover Effects ===== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Loading Skeleton ===== */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
    background-size: 2000px 100%;
    animation: shimmer 2s infinite linear;
}
