/* ============================================
   ARVEX - ANIMATIONS.CSS
   Animações UIverse-inspired + Custom
   ============================================ */

/* ── Hero Badge ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #C084FC;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    width: fit-content;
    animation: fadeInDown 0.6s ease both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #A855F7;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Proof Avatars ── */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #a1a1aa);
}

.proof-avatars {
    display: flex;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
    margin-left: -8px;
}

.avatar-circle:first-child { margin-left: 0; }

/* ── Button Pulse (WhatsApp Nav) ── */
.btn-pulse {
    position: relative;
    animation: none;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: rgba(168, 85, 247, 0.4);
    animation: btn-pulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes btn-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* ── Button Shine (Hero CTA) ── */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: shine 3s ease infinite;
}

@keyframes shine {
    0% { left: -100%; }
    30%, 100% { left: 150%; }
}

/* ── Portfolio Cards – Hover Zoom + Overlay ── */
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: rgba(168, 85, 247, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial-stars .material-symbols-outlined {
    font-size: 18px;
}

.testimonial-text {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.testimonial-author span {
    color: #71717a;
    font-size: 0.8rem;
}

/* ── Comparison Table ── */
.comparison-table {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 0;
}

.comparison-header {
    background: rgba(168, 85, 247, 0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comparison-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(255,255,255,0.02);
}

.comp-col {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #a1a1aa;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.comp-col:last-child { border-right: none; }

.comp-feature {
    color: #e4e4e7;
    font-weight: 500;
}

.comp-arvex {
    background: rgba(168, 85, 247, 0.06);
    color: #d4b8f7;
    font-weight: 500;
}

.comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.text-red { color: #f87171; }
.text-warning { color: #f59e0b; }
.text-purple { color: #A855F7; }

/* ── About Section ── */
.about {
    background: #0a0a0a;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.1rem;
    color: #e4e4e7;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-text p {
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.value-item .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item strong {
    display: block;
    color: #e4e4e7;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.value-item span {
    color: #71717a;
    font-size: 0.85rem;
}

.about-stats-card {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #A855F7, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat-label {
    display: block;
    color: #71717a;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.about-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #71717a;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
}

/* ── FAQ Section ── */
.faq-section {
    background: #0a0a0a;
}

.faq-container {
    max-width: 760px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: rgba(168, 85, 247, 0.4);
}

.faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e4e4e7;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.2s ease;
}

.faq-item.active .faq-header {
    color: #C084FC;
}

.faq-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: #A855F7;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-body {
    max-height: 300px;
}

.faq-body p {
    padding: 0 1.5rem 1.25rem;
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

/* ── WhatsApp Float Button Improved ── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    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: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float .material-symbols-outlined {
    font-size: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: whatsapp-pulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(10,10,10,0.9);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ── Scroll Reveal Animations ── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-text .text-line {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-revealed {
    opacity: 1 !important;
    transform: none !important;
}

.is-revealed .text-line,
.is-revealed .stagger-item {
    opacity: 1 !important;
    transform: none !important;
}

.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }

/* ── Form Floating Labels & Interactions ── */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ── Bento Card Hover ── */
.bento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

/* ── Price Card Hover ── */
.price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-6px);
}

/* ── Accordion Item Active Border ── */
.accordion-item.active {
    border-color: rgba(168, 85, 247, 0.4) !important;
}

/* ── Comparison Column hover ── */
.comparison-row .comp-arvex {
    position: relative;
}

/* ── Stat Item Animation ── */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats-card {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-header,
    .comparison-row {
        min-width: 600px;
    }

    .about-stats-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }

    .hero-badge {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-pulse::before,
    .btn-shine::after,
    .badge-dot,
    .whatsapp-float::before {
        animation: none !important;
    }

    .reveal-up,
    .reveal-fade,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
