/* ============================================
   VABase â€” Shared Styles
   ============================================ */

/* Scroll Reveal Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
}
.faq-active .faq-content {
    /* max-height is set dynamically by JS to scrollHeight value */
    opacity: 1;
    padding-bottom: 1.25rem;
}
.faq-active .faq-icon {
    transform: rotate(180deg);
}


/* Navbar Scroll State */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06);
}

html.dark .nav-scrolled {
    background-color: rgba(15, 23, 42, 0.92);
    border-bottom-color: #1e293b;
}

/* Active Nav Link Animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #6366F1, #22D3EE);
    border-radius: 9999px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: #6366F1 !important;
}
html.dark .nav-link.active {
    color: #818CF8 !important;
}

/* Abstract Illustration Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulsing Arrow (Homepage) */
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}
.pulse-arrow {
    animation: bounce-arrow 2s ease-in-out infinite;
}

/* Service Card Expand/Collapse (Services page) */
.service-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding-top 0.4s ease;
    opacity: 0;
    padding-top: 0;
}
.service-card.expanded .service-detail {
    max-height: 600px;
    opacity: 1;
    padding-top: 1rem;
}
.service-card .service-chevron {
    transition: transform 0.3s ease;
}
.service-card.expanded .service-chevron {
    transform: rotate(180deg);
}
.service-card {
    cursor: pointer;
}

/* Smooth Theme Transition Class */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-delay: 0s !important;
}


/* ============================================
   LIGHT MODE — Premium Subtle Aesthetic
   ============================================ */

/* Clean off-white background for light mode — avoids the cheap gradient look */
html:not(.dark) body {
    background-color: #f8f9fc;
    color: #1e293b;
}

/* Glassmorphism for cards in light mode */
html:not(.dark) .bg-white {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 24px -4px rgba(99, 102, 241, 0.08) !important;
}

html:not(.dark) .bg-background {
    background-color: #f8f9fc !important;
}

/* Ensure buttons don't disappear if they use bg-white */
html:not(.dark) a.bg-white,
html:not(.dark) button.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15) !important;
}

html:not(.dark) a.bg-white:hover,
html:not(.dark) button.bg-white:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* Borders */
html:not(.dark) .border-indigo-50,
html:not(.dark) .border-gray-100 {
    border-color: rgba(99, 102, 241, 0.15) !important;
}

/* Text contrast */
html:not(.dark) .text-light {
    color: #475569 !important;
}

html:not(.dark) .text-dark {
    color: #0f172a !important;
}

/* Navbar glassmorphism */
html:not(.dark) .nav-scrolled {
    background: rgba(248, 249, 252, 0.92) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Hover lift for cards */
html:not(.dark) .hover\:shadow-card-hover:hover {
    box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-4px);
}

/* Keyboard focus ring — consistent across all interactive elements */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 3px;
    border-radius: 4px;
}



/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.08); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}


/* ============================================
   Trust Bar / Logo Carousel
   ============================================ */
.trust-bar {
    overflow: hidden;
    position: relative;
}
.trust-bar::before,
.trust-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.trust-bar::before {
    left: 0;
    background: linear-gradient(to right, #F8FAFC, transparent);
}
.trust-bar::after {
    right: 0;
    background: linear-gradient(to left, #F8FAFC, transparent);
}
html.dark .trust-bar::before {
    background: linear-gradient(to right, rgb(17, 24, 39), transparent);
}
html.dark .trust-bar::after {
    background: linear-gradient(to left, rgb(17, 24, 39), transparent);
}
html:not(.dark) .trust-bar::before {
    background: linear-gradient(to right, rgba(224, 231, 255, 0.8), transparent);
}
html:not(.dark) .trust-bar::after {
    background: linear-gradient(to left, rgba(224, 231, 255, 0.8), transparent);
}
.trust-bar-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll-logos 25s linear infinite;
    width: max-content;
}
.trust-bar-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.trust-logo {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}
.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}


/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
}
.pricing-card:hover {
    transform: translateY(-8px);
}
.pricing-popular {
    border: 2px solid #6366F1 !important;
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366F1, #22D3EE);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}


/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}
.testimonial-quote {
    position: absolute;
    top: 8px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color: #6366F1;
    opacity: 0.1;
    font-family: Georgia, 'Times New Roman', serif;
    pointer-events: none;
}
html.dark .testimonial-quote {
    color: #818CF8;
    opacity: 0.08;
}


/* ============================================
   How It Works Steps
   ============================================ */
.step-card {
    position: relative;
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}
.step-connector-line {
    display: none;
}
@media (min-width: 768px) {
    .step-connector-line {
        display: block;
        position: absolute;
        top: 28px;
        left: calc(100% + 4px);
        width: calc(100% - 8px);
        height: 2px;
        background: linear-gradient(to right, #6366F1, #22D3EE);
        opacity: 0.3;
    }
}


/* ============================================
   Category Tabs (Services Page)
   ============================================ */
.category-tab {
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.category-tab:hover {
    border-bottom-color: rgba(99, 102, 241, 0.3);
}
.category-tab.active {
    border-bottom-color: #6366F1;
    color: #6366F1 !important;
}
html.dark .category-tab.active {
    border-bottom-color: #818CF8;
    color: #818CF8 !important;
}


/* ============================================
   Calendly Embed Container
   ============================================ */
.calendly-container {
    min-height: 650px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
html.dark .calendly-container {
    border-color: rgba(255, 255, 255, 0.1);
}

