/* Custom CSS additions to complement Tailwind */

/* Scroll Reveal Animation */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Navbar Scroll Effect */
#navbar {
    transition: all 0.3s ease-out;
}

#navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* General resets or minor overrides */
body {
    overflow-x: hidden;
}

/* Before/After Comparison Slider */
.ba-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    border-radius: 24px;
}
.ba-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, var(--pos, 50%) 0, var(--pos, 50%) 100%, 0 100%);
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    background: #C8E972;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}
.ba-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #1C3F3A;
    color: #C8E972;
    border: 3px solid #C8E972;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-item.active .faq-content {
    max-height: 350px;
    opacity: 1;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Custom Scrollbar for pills/cards if needed */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
