body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Animation Fallbacks - Force Visibility */
.testimonial-card, .feature-card, .pricing-card, .reveal, .reveal-stat, .benefit-item {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* 
   Glassmorphism Fix - High Contrast & Premium 
   Updated: 2026-05-11
   Reason: Softened border contrast for better aesthetics while maintaining accessibility.
   New Border: rgba(255, 255, 255, 0.08) - Subtle yet defined.
*/
.glass {
    background: rgba(15, 23, 42, 0.8) !important; /* Deeper slate for better text legibility */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Softened from 0.15 for better aesthetics */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6) !important;
}

/* Text & Icon Clarity */
.feature-card h4, .testimonial-card p, .pricing-card h4 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-card p, .testimonial-card .text-slate-400 {
    color: #cbd5e1 !important; /* slate-300 for better contrast */
}

/* Seamless Carousel Mask - Safer Implementation */
.carousel-mask {
    position: relative;
    padding: 40px 0;
    overflow: visible !important;
}

/* Seamless Carousel Mask - Refined Gradient */
.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 60px 0;
    gap: 2.5rem;
    cursor: grab;
    /* Smoother transition: 0% transparent -> 20% solid -> 80% solid -> 100% transparent */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonial-card {
    flex: 0 0 auto;
    width: 280px; /* Base width */
    scroll-snap-align: center;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Ensure cards are tall enough */
}

@media (min-width: 768px) {
    .testimonial-card {
        width: 450px;
    }
}

.testimonial-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Fix for first/last item selection */
.testimonial-carousel::before,
.testimonial-carousel::after {
    content: '';
    flex: 0 0 15%; /* Adaptive side padding for snapping center */
    pointer-events: none;
}

@media (min-width: 1024px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        flex: 0 0 30%;
    }
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #3b82f6, #1e40af);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Animations */
@keyframes move {
    from { transform: translate(-50px, -50px) scale(1); }
    to { transform: translate(50px, 50px) scale(1.2); }
}

.blob-animation {
    animation: move 10s infinite alternate;
}

/* Section Dividers */
.custom-shape-divider-bottom-1694435345 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1694435345 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.custom-shape-divider-bottom-1694435345 .shape-fill {
    fill: #0f172a;
}

/* 
   Glowing Divider - Replacement for stiff white borders
   Creates a subtle, modern section transition
*/
.glow-divider {
    height: 1px;
    width: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0) 70%);
    position: relative;
}

.glow-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent);
    filter: blur(1px);
}

/* Update Footer to use glow divider instead of solid border */
footer {
    border-top: none !important;
    position: relative;
    padding-top: 4rem;
}

/* Internal Card Dividers - Softened */
.border-t.border-white\/5, 
.border-t.border-white\/10,
.border-t.border-white\/20 {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 1px;
    border-top: none !important;
    margin: 1.5rem 0;
}
