/* Ícone do Chatbot */
    .chatbot-icon {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .chatbot-icon:hover {
        transform: scale(1.1);
    }
    
    .chatbot-icon img {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
    }
    
    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #ff4757;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        font-weight: bold;
    }
    
    /* Container do Chat */
    .chat-container {
        position: fixed;
        bottom: 100px;
        right: 25px;
        width: 380px;
        height: 550px;
        background-color: white;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 999;
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        transition: opacity 0.3s, transform 0.3s;
        pointer-events: none;
    }
    
    .chat-container.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }
    
    .chat-header {
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        color: white;
        padding: 18px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .chat-header h1 {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.2s;
    }
    
    .close-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .message {
        max-width: 85%;
        padding: 12px 16px;
        border-radius: 18px;
        line-height: 1.4;
        font-size: 0.95rem;
    }
    
    .bot-message {
        background-color: #f0f4ff;
        border-bottom-left-radius: 5px;
        align-self: flex-start;
        color: #333;
    }
    
    .user-message {
        background-color: #6a11cb;
        color: white;
        border-bottom-right-radius: 5px;
        align-self: flex-end;
    }
    
    .options-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .option {
        background-color: white;
        border: 2px solid #e6e9f0;
        border-radius: 50px;
        padding: 12px 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .option:hover {
        border-color: #6a11cb;
        background-color: #f9f7ff;
    }
    
    .option-number {
        background-color: #6a11cb;
        color: white;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .option-text {
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .chat-input-container {
        display: flex;
        padding: 15px;
        border-top: 1px solid #e6e9f0;
        background-color: white;
    }
    
    .chat-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #e6e9f0;
        border-radius: 50px;
        outline: none;
        font-size: 0.95rem;
    }
    
    .send-button {
        background-color: #6a11cb;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 0 20px;
        margin-left: 10px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.2s;
        font-size: 0.9rem;
    }
    
    .send-button:hover {
        background-color: #5a0db3;
    }
    
    .typing-indicator {
        display: flex;
        align-items: center;
        color: #888;
        font-size: 0.85rem;
        margin-top: 5px;
    }
    
    .typing-dots {
        display: flex;
        margin-left: 8px;
    }
    
    .typing-dot {
        width: 6px;
        height: 6px;
        background-color: #888;
        border-radius: 50%;
        margin: 0 2px;
        animation: typing 1.4s infinite ease-in-out;
    }
    
    .typing-dot:nth-child(1) { animation-delay: 0s; }
    .typing-dot:nth-child(2) { animation-delay: 0.2s; }
    .typing-dot:nth-child(3) { animation-delay: 0.4s; }
    
    @keyframes typing {
        0%, 60%, 100% { transform: translateY(0); }
        30% { transform: translateY(-5px); }
    }
    
    .service-icon {
        margin-right: 5px;
        font-size: 1.1rem;
    }

    /* ===== ESTILOS PARA MAIN.JS ===== */

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    max-width: 400px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.notification-message {
    flex: 1;
    margin-right: 15px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

/* Animações */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Erros de formulário */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

input.error, textarea.error {
    border-color: #dc3545 !important;
}

/* Tipografia do formulário de contato (mantém a fonte padrão do site) */
.contact-form input,
.contact-form textarea,
.contact-form button {
    font-family: var(--font-primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: var(--font-primary);
    color: var(--light-text);
}

/* Header com scroll */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Menu mobile */
.mobile-menu-btn.active + .main-nav {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero__title {
        font-size: 48px !important;
    }
    .hero .tag {
        margin-top: 5px;
    }
    .hero__stats {
        margin-top: 12px;
    }
    /* Alinhar texto da seção Sobre à esquerda no mobile */
    .sobre__content {
        text-align: left;
    }
    .sobre__content .section__title,
    .sobre__content .section__subtitle {
        text-align: left;
        padding-left: 0;
        margin-left: 0;
    }
    .sobre__content .btn {
        text-align: center;
        padding-left: 0;
        margin-left: 0;
        display: block;
    }
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ==============================
     DARK THEME OVERRIDES (IA Local)
     Goal: Match https://ia-local-solucoes.lovable.app visual style
     ============================== */

:root {
    /* Palette */
    --background: #0b1020;              /* Page background */
    --light-gray-bg: #0e1428;           /* Section bg */
    --dark-text: #F9FAFB;               /* Titles */
    --body-text: #E5E7EB;               /* Body text */
    --light-text: #9CA3AF;              /* Muted text */
    --border-color: #1F2937;            /* Soft borders */

    /* Accent/Brand */
    --primary-blue: #7C3AED;            /* Fallback for places using color only */
    --secondary-purple: #6366F1;
    --accent-green: #22D3EE;            /* Cyan accent used on details */

    /* Gradients */
    --brand-gradient: linear-gradient(90deg, #7C3AED 0%, #6366F1 100%);
    --brand-gradient-hover: linear-gradient(90deg, #8B5CF6 0%, #4F46E5 100%);
    --card-glow: 0 10px 30px rgba(124, 58, 237, 0.12);
}

/* Base */
body {
    background: radial-gradient(1200px 600px at 80% -100px, rgba(99,102,241,0.12) 0%, rgba(99,102,241,0) 60%),
                            radial-gradient(1200px 600px at -100px 50%, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0) 60%),
                            var(--background);
    color: var(--body-text);
}

/* Header */
.header {
    background: rgba(9, 12, 24, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__link { color: var(--light-text); }
.nav__link:hover { color: #C4B5FD; }

/* Buttons */
.btn--primary {
    background: var(--brand-gradient);
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 20px rgba(99,102,241,0.25);
}
.btn--primary:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99,102,241,0.35);
}
.btn--secondary {
    background: rgba(255,255,255,0.04);
    color: #E5E7EB;
    border: 1px solid rgba(255,255,255,0.08);
}
.btn--secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

/* Hero */
.hero__stats {
    margin-top: 50px;
}
.hero { background-color: var(--light-gray-bg); }
.hero__title { color: var(--dark-text); }
.hero__description { color: var(--light-text); }
.text-green {
    background: linear-gradient(90deg, #22D3EE 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tag {
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.22);
    color: #C4B5FD;
}

/* Sections */
.section__title { color: var(--dark-text); }
.section__subtitle { color: var(--light-text); }

/* Generic card styling used by multiple components */
.service-card,
.solution-card,
.portfolio-card,
.testimonial-card,
.result-card,
.tech-card,
.cta-final__content,
.footer,
.hero__stats .stat__item {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.0) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02), var(--card-glow);
}

/* Specific cards */
.service-card,
.solution-card { 
    background-color: rgba(255,255,255,0.02);
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover,
.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.45);
    box-shadow: 0 14px 40px rgba(124,58,237,0.20);
}
.service-card__title, .solution-card__title { color: var(--dark-text); }
.service-card__description, .solution-card__description { color: var(--light-text); }
.service-card__icon-wrapper, .solution-card__icon-wrapper {
    background: none;
    color: #C4B5FD;
    border-radius: 12px;
}

/* Results cards */
.result-card {
    background-color: rgba(255,255,255,0.02);
    border-radius: 14px;
}
.result-card__impact { color: #A78BFA; }

/* Portfolio */
.portfolio-card { background-color: rgba(255,255,255,0.02); border-radius: 14px; }
.portfolio-card__title { color: var(--dark-text); }
.portfolio-card__description { color: var(--light-text); }
.portfolio-card__metric { color: #22D3EE; }

/* Testimonials */
.testimonial-card { background-color: rgba(255,255,255,0.02); border-radius: 14px; }
.testimonial-card__text { color: var(--body-text); }
.author__info { color: var(--light-text); }

/* Tech stack grid */
.tech-card { background-color: rgba(255,255,255,0.02); border-radius: 14px; }
.tech-card__title { color: var(--dark-text); }
.tech-card__category { color: var(--light-text); }

/* Hero Stats */
.hero__stats .stat__item {
    background-color: rgba(255,255,255,0.02);
    border-radius: 12px;
}
.hero__stats .stat__item h4 { color: #A78BFA; }
.hero__stats .stat__item p { color: var(--light-text); }

/* Footer */
.footer { border-top: 1px solid var(--border-color); }
.footer__description, .footer__copy, .footer__legal a { color: var(--light-text); }
.footer__title { color: var(--dark-text); }
.footer__bottom {
  position: relative;
  z-index: 10;
}
.footer__legal {
  position: relative;
  left: 50px;
  bottom: 0;
  z-index: 11;
  display: flex;
}
.footer__legal a {
  color: var(--light-text);
  display: inline-block;
  margin-left: 32px;
}

/* Contact section & form */
.cta-final { background: transparent; }
.cta-final__content { background: transparent; border: none; box-shadow: none; }
.contact-form input,
.contact-form textarea {
    background: #0b1220;
    border: 1px solid var(--border-color) !important;
    color: var(--body-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8B5CF6 !important;
    outline: 2px solid rgba(139,92,246,0.25);
}
.contact-form button.btn--primary {
    background: var(--brand-gradient);
}
.contact-form button.btn--primary:hover {
    background: var(--brand-gradient-hover);
}

/* Mobile CTA button */
.mobile-cta-button {
    background: var(--brand-gradient);
    color: #0B0F1A;
}
.mobile-cta-button:hover { background: var(--brand-gradient-hover); }

/* Links */
a { color: #E5E7EB; }
a:hover { color: #C4B5FD; }

/* Smooth hover for any card */
[class*="-card"]:hover .ri-arrow-right-line { transform: translateX(2px); }
.ri-arrow-right-line { transition: transform .2s ease; }

/* Utility: subtle separators */
.divider { border-color: var(--border-color); opacity: .7; }

/* Lucide icons base size inside cards */
.service-card__icon-wrapper i[data-lucide],
.solution-card__icon-wrapper i[data-lucide],
.service-card__icon-wrapper svg,
.solution-card__icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.25;
}

/* Default accent for services icons */
.services__grid .service-card .service-card__icon-wrapper { color: #8852E0; }

/* Cyan accent for central cards (2 and 5) */
.services__grid .service-card:nth-child(2) .service-card__icon-wrapper,
.services__grid .service-card:nth-child(5) .service-card__icon-wrapper {
    color: #06F9F9;
    background: none !important;
    box-shadow: none !important;
}

/* About cards grid */
.about-cards {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.about-card {
    padding: 1.5rem;
    border-radius: 16px;
}
.about-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #fff;
}
.badge--purple {
    background: linear-gradient(180deg, #9a64ea 0%, #8852E0 100%);
    box-shadow: 0 8px 22px rgba(136,82,224,0.35);
}
.badge--cyan {
    background: linear-gradient(180deg, #5ffefe 0%, #06F9F9 100%);
    box-shadow: 0 8px 22px rgba(6,249,249,0.28);
}

@media (max-width: 992px) {
    .about-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .about-cards { grid-template-columns: 1fr; }
}

/* About cards: icon color & hover elevation */
.badge--cyan i { color: #0b1220; } /* Ícone escuro no card 'Foco em Resultados' */

.about-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,58,237,0.45);
    box-shadow: 0 16px 44px rgba(124,58,237,0.22);
}
/* Card 2 (Foco em Resultados): hover em tom de ciano */
.about-cards .about-card:nth-child(2):hover {
    border-color: rgba(6,249,249,0.55);
    box-shadow: 0 16px 44px rgba(6,249,249,0.28);
}

/* ==============================
   Enhancements: CTA + Service Icons
   ============================== */
/* Give life to primary CTAs with shine and subtle glow */
.btn--primary {
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
}
.btn--primary:hover {
    background-position: 100% 0;
}
.btn--primary::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 30%;
    height: 220%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    opacity: 0;
}
.btn--primary:hover::after {
    animation: btnShine 1.1s ease-out forwards;
}
@keyframes btnShine {
    0% { transform: translateX(0) skewX(-20deg); opacity: 0; }
    10% { opacity: 0.5; }
    100% { transform: translateX(320%) skewX(-20deg); opacity: 0; }
}
.hero .btn--primary {
    animation: btnGlow 4s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(99,102,241,0.25); }
    50% { box-shadow: 0 10px 28px rgba(99,102,241,0.38); }
}
.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1), 0 0 0 6px rgba(136,82,224,0.45);
}

/* Enlarge service icons (Lucide) */
.service-card__icon-wrapper,
.solution-card__icon-wrapper {
    margin-bottom: 0.75rem;
}
.service-card__icon-wrapper i[data-lucide],
.solution-card__icon-wrapper i[data-lucide],
.service-card__icon-wrapper svg,
.solution-card__icon-wrapper svg {
    width: 48px; /* was 36px */
    height: 48px; /* was 36px */
    stroke-width: 2.1; /* slightly thinner for larger size */
}

/* ==============================
   Services central cards (2 and 5)
   Cyan badge + cyan hover elevation
   ============================== */
.services__grid .service-card:nth-child(2) .service-card__icon-wrapper,
.services__grid .service-card:nth-child(5) .service-card__icon-wrapper {
    background: linear-gradient(180deg, #67e8f9 0%, #22d3ee 100%);
    color: #0b1220; /* ícone escuro sobre badge ciano */
    box-shadow: 0 8px 22px rgba(34,211,238,0.25);
}

.services__grid .service-card:nth-child(2):hover,
.services__grid .service-card:nth-child(5):hover {
    transform: translateY(-6px);
    border-color: rgba(6,249,249,0.55);
    box-shadow: 0 16px 44px rgba(6,249,249,0.28);
}

/* Cyan variant independent of grid position */
.services__grid .service-card.is-cyan .service-card__icon-wrapper {
    color: #06F9F9;
}
.services__grid .service-card.is-cyan:hover {
    transform: translateY(-6px);
    border-color: rgba(6,249,249,0.55);
    box-shadow: 0 16px 44px rgba(6,249,249,0.28);
}

/* ==============================
   Solutions central cards (2 and 5)
   Cyan icon + cyan hover elevation
   ============================== */
.solutions__grid .solution-card:nth-child(2) .solution-card__icon-wrapper,
.solutions__grid .solution-card:nth-child(5) .solution-card__icon-wrapper {
    color: #06F9F9;
}
.solutions__grid .solution-card:nth-child(2):hover,
.solutions__grid .solution-card:nth-child(5):hover {
    transform: translateY(-6px);
    border-color: rgba(6,249,249,0.55);
    box-shadow: 0 16px 44px rgba(6,249,249,0.28);
}

/* Class-based cyan variant (position independent) */
.solutions__grid .solution-card.is-cyan .solution-card__icon-wrapper {
    color: #06F9F9;
}
.solutions__grid .solution-card.is-cyan:hover {
    transform: translateY(-6px);
    border-color: rgba(6,249,249,0.55);
    box-shadow: 0 16px 44px rgba(6,249,249,0.28);
}

/* Garantir fonte de emoji para bandeira do Brasil no rodapé */
.footer__copy span {
     font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Arial", sans-serif;
}

/* Logo especial para Manus AI */
.tech-card__logo--grande {
  height: 90px;
  max-width: 200px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
  object-fit: contain;
}
