/* Brevaia Digital - Custom CSS */

/* Background Animation */
@keyframes backgroundAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ESTILOS DOS BOTÕES SAIBA MAIS */
.btn-saiba-mais {
    background: transparent;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-saiba-mais:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-saiba-mais:hover:before {
    left: 100%;
}

.btn-saiba-mais-primary {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.btn-saiba-mais-primary:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-saiba-mais-secondary {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-saiba-mais-secondary:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-saiba-mais-yellow {
    border-color: #eab308;
    color: #eab308;
}

.btn-saiba-mais-yellow:hover {
    background: #eab308;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.3);
}

.btn-saiba-mais-purple {
    border-color: #a855f7;
    color: #a855f7;
}

.btn-saiba-mais-purple:hover {
    background: #a855f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

/* Responsividade para botões */
@media (max-width: 768px) {
    .btn-saiba-mais {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* ANIMAÇÃO DE FUNDO PREMIUM - ESTILO PROFISSIONAL */
/* Paleta de cores azuis profissionais */
:root {
    --blue-deep: #0a1929;
    --blue-dark: #1e3a5f;
    --blue-medium: #2d5a8a;
    --blue-light: #3a7ba8;
    --blue-soft: #4a9bc4;
    --blue-pale: #5bb9d9;
    --overlay-dark: rgba(10, 25, 41, 0.7);
    --overlay-light: rgba(30, 58, 95, 0.3);
}

/* Container principal da animação */
.premium-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 25%, var(--blue-medium) 50%, var(--blue-light) 75%, var(--blue-soft) 100%);
    background-size: 400% 400%;
    animation: premiumGradient 20s ease infinite;
}

/* Animação do gradiente principal */
@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Camada de sobreposição para legibilidade */
.premium-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 30% 20%, transparent 0%, var(--overlay-dark) 70%);
    pointer-events: none;
}

/* Sistema de partículas premium */
.premium-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Partículas individuais com estilo premium */
.particle-premium {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

/* Partículas pequenas e sutis */
.particle-small {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
    box-shadow: 0 0 10px var(--blue-pale);
}

/* Partículas médias com brilho suave */
.particle-medium {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
    box-shadow: 0 0 15px var(--blue-light);
}

/* Partículas grandes com brilho elegante */
.particle-large {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--blue-soft) 0%, transparent 70%);
    box-shadow: 0 0 20px var(--blue-soft);
}

/* Animação fluida das partículas */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    90% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* Ondas abstratas premium */
.premium-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave-premium {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(45deg, transparent 30%, rgba(74, 155, 196, 0.1) 50%, transparent 70%);
    animation: waveFlow 25s infinite linear;
}

@keyframes waveFlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Camada de névoa sutil */
.premium-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 155, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(91, 185, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(58, 123, 168, 0.05) 0%, transparent 50%);
    animation: mistPulse 12s infinite ease-in-out;
}

@keyframes mistPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .premium-bg-animation {
        background-size: 300% 300%;
        animation-duration: 15s;
    }
    
    .particle-premium {
        animation-duration: 12s;
    }
    
    .wave-premium {
        animation-duration: 20s;
    }
    
    .premium-mist {
        animation-duration: 10s;
    }
}

/* Otimização de performance para dispositivos com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .premium-bg-animation {
        animation: none;
    }
    
    .particle-premium {
        animation: none;
        opacity: 0.3;
    }
    
    .wave-premium {
        animation: none;
    }
    
    .premium-mist {
        animation: none;
        opacity: 0.3;
    }
}

/* Animação de CLIQUE DO MOUSE */
@keyframes clickRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes clickSparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.click-effect {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.click-ripple {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.8) 0%, transparent 70%);
    animation: clickRipple 0.8s ease-out forwards;
}

.click-sparkle {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(100, 255, 218, 0.6) 50%, transparent 70%);
    animation: clickSparkle 0.6s ease-out forwards;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .click-ripple {
        width: 15px;
        height: 15px;
    }
    
    .click-sparkle {
        width: 25px;
        height: 25px;
    }
}

/* CONTAINER DE ANIMAÇÃO DE FUNDO */
.brevaia-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(-45deg, #0f0f23, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Sobreposição escura para melhor legibilidade */
.brevaia-bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Camada de partículas */
.brevaia-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Estilo das partículas individuais */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(100, 255, 218, 0.8);
    border-radius: 50%;
    animation: particlesFloat 8s infinite linear;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Partículas maiores e mais brilhantes */
.particle-large {
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
    animation-duration: 12s;
}

/* Camada de brilho tecnológico */
.tech-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: techGlow 4s ease-in-out infinite;
}

/* Ondas tecnológicas */
.tech-wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.8), transparent);
    animation: techWave 6s linear infinite;
}

/* Animação de conexões de rede */
.network-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 49%, rgba(100, 255, 218, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(100, 255, 218, 0.1) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: pulse 8s ease-in-out infinite;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .brevaia-bg-animation {
        background-size: 200% 200%;
        animation-duration: 10s;
    }
    
    .particle {
        width: 2px;
        height: 2px;
    }
    
    .particle-large {
        width: 4px;
        height: 4px;
    }
    
    .tech-glow {
        width: 100px;
        height: 100px;
    }
}

/* ANIMAÇÕES DE FUNDO TEMÁTICAS - ESTILO BREVAIA */
/* Partículas flutuantes tecnológicas */
@keyframes particlesFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Animação de gradiente dinâmico */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animação de brilho tecnológico */
@keyframes techGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Animação de onda tecnológica */
@keyframes techWave {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
        opacity: 0;
    }
}
}

/* Rede de conexões tecnológicas */
@keyframes networkPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Ondas de energia digital */
@keyframes digitalWaves {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.3;
    }
}

/* Grid tecnológico animado */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Animação de fundo completa - Background temático */
.background-animated-theme {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    overflow: hidden;
}

/* Container de partículas tecnológicas */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle-tech {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(14, 165, 233, 0.8);
    border-radius: 50%;
    animation: particlesFloat 8s infinite linear;
}

/* Criar múltiplas partículas com diferentes posições e delays */
.particle-tech:nth-child(1) { left: 5%; top: 100%; animation-delay: 0s; animation-duration: 12s; }
.particle-tech:nth-child(2) { left: 15%; top: 100%; animation-delay: 1s; animation-duration: 10s; }
.particle-tech:nth-child(3) { left: 25%; top: 100%; animation-delay: 2s; animation-duration: 14s; }
.particle-tech:nth-child(4) { left: 35%; top: 100%; animation-delay: 3s; animation-duration: 11s; }
.particle-tech:nth-child(5) { left: 45%; top: 100%; animation-delay: 4s; animation-duration: 13s; }
.particle-tech:nth-child(6) { left: 55%; top: 100%; animation-delay: 5s; animation-duration: 9s; }
.particle-tech:nth-child(7) { left: 65%; top: 100%; animation-delay: 6s; animation-duration: 15s; }
.particle-tech:nth-child(8) { left: 75%; top: 100%; animation-delay: 7s; animation-duration: 8s; }
.particle-tech:nth-child(9) { left: 85%; top: 100%; animation-delay: 0.5s; animation-duration: 16s; }
.particle-tech:nth-child(10) { left: 95%; top: 100%; animation-delay: 1.5s; animation-duration: 12s; }

/* Camada de rede tecnológica */
.tech-network {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    animation: networkPulse 4s ease-in-out infinite;
}

/* Camada de ondas digitais */
.tech-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(14, 165, 233, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
    animation: digitalWaves 6s ease-in-out infinite;
}

/* Grid tecnológico sutil */
.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Animação do background original mantida */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0f172a, #1e293b, #0c4a6e, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: backgroundAnimation 15s ease infinite;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 6s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; animation-duration: 7s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; animation-duration: 10s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Custom animations */

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Dark theme utilities */
.bg-dark-800 {
    background-color: #1e293b;
}

.bg-dark-900 {
    background-color: #0f172a;
}

.text-dark-300 {
    color: #cbd5e1;
}

.text-dark-400 {
    color: #94a3b8;
}

.border-dark-700 {
    border-color: #334155;
}

.border-dark-800 {
    border-color: #1e293b;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gradient-primary-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-hover:active {
    transform: translateY(0);
}

/* Fixed Header Styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.3s ease;
}

.fixed-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
    padding-top: 80px; /* Altura do header fixo */
}

/* BOTÃO WHATSAPP FIXO NO CANTO INFERIOR DIREITO */
/* Animação de pulsação para chamar atenção */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Botão flutuante WhatsApp - visível em todas as páginas */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    z-index: 9998 !important; /* Um pouco abaixo do header (9999) */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: whatsappPulse 2s infinite, whatsappFloat 3s ease-in-out infinite !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
}

/* Garantir que o balão fique sempre visível durante scroll */
.whatsapp-float {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.whatsapp-float img {
    width: 35px !important;
    height: 35px !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
}

/* REMOÇÃO DE ELEMENTOS DE WHATSAPP - MANTER APENAS O NOSSO BALÃO */
/* Remove balões/flutuantes de WhatsApp de terceiros, mas mantém o nosso */
.whatsapp:not(.whatsapp-float),
.whatsapp-button:not(.whatsapp-float),
.whatsapp-chat,
.whatsapp-widget,
.wpp-btn,
.wpp-floating,
.wpp-float:not(.whatsapp-float),
.wpp-button,
#whatsapp,
#whatsapp-button,
#whatsapp-widget,
a[href*="wa.me"]:not(.whatsapp-float),
a[href*="api.whatsapp.com"]:not(.whatsapp-float),
.fixed[href*="wa.me"]:not(.whatsapp-float),
.fixed[href*="api.whatsapp.com"]:not(.whatsapp-float) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
}

/* Garantir que não haja elementos flutuantes visíveis */
*[class*="whatsapp"],
*[id*="whatsapp"],
*[href*="wa.me"],
*[href*="whatsapp"] {
    display: none !important;
    visibility: hidden !important;
}

/* Específico para elementos que podem ter classes Tailwind */
.fixed.bottom-6.right-6[href*="wa.me"],
.fixed.bottom-6.left-6[href*="wa.me"],
.fixed[href*="wa.me"] {
    display: none !important;
    visibility: hidden !important;
}

/* BOTÃO WHATSAPP FIXO NO CANTO INFERIOR DIREITO */
/* Animação de pulsação para chamar atenção */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Botão flutuante WhatsApp - visível em todas as páginas */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    z-index: 9998 !important; /* Um pouco abaixo do header (9999) */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: whatsappPulse 2s infinite, whatsappFloat 3s ease-in-out infinite !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
}

/* Garantir que o balão fique sempre visível durante scroll */
.whatsapp-float {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.whatsapp-float img {
    width: 35px !important;
    height: 35px !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
}

/* Garantir que o botão fique visível e não seja removido pelo CSS de remoção */
.whatsapp-float:not([style*="display: none"]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FIXAÇÃO GLOBAL DO HEADER/MENU SUPERIOR */
/* Menu superior fixo - aplica a todas as variações possíveis de header */
header,
.navbar,
.top-bar,
.menu,
.site-header,
nav.fixed,
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #0f172a !important;
}

/* Compensação para o conteúdo não ficar escondido atrás do menu fixo */
body {
    padding-top: 90px !important;
}

/* Para ajustar o padding quando o menu estiver em telas menores */
@media (max-width: 768px) {
    body {
        padding-top: 80px !important;
    }
}

/* Header fixo no scroll */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Garantir header fixo profissional */
nav.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* RODAPÉ FIXO SUPERIOR COM BOTÕES DE PÁGINAS */
/* Barra de navegação fixa no topo com botões */
.top-bar-fixed {
    position: fixed !important;
    top: 60px !important; /* Abaixo do header principal */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.3) !important;
    z-index: 9997 !important; /* Abaixo do header (9999) e WhatsApp (9998) */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Container da barra superior */
.top-bar-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 20px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Botões das páginas na barra superior */
.page-button {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.page-button:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: rgba(14, 165, 233, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
}

.page-button.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
}

/* Compensação para o header fixo */
body {
    padding-top: 80px !important; /* Altura do header */
}

/* Garantir que o header não suma */
nav {
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-transform: translateZ(0);
}

/* Para mobile: garantir que o header fique fixo */
@media (max-width: 768px) {
    nav.fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* WhatsApp Floating Button */
.fixed[href*="wa.me"] {
    animation: whatsapp-bounce 2s infinite;
}

.fixed[href*="wa.me"]:hover {
    animation: none;
    transform: scale(1.1);
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animações gerais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    color: white;
    line-height: 60px;
}

/* Form styles */
.form-input {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

/* Pricing cards */
.pricing-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid #8b5cf6;
    position: relative;
}

.pricing-card.popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Service icons */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Social media icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #334155;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #334155;
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}

.message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-menu-open {
        display: block !important;
    }
    
    .pricing-card.popular {
        transform: scale(1) !important;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

/* Dark mode specific styles */
@media (prefers-color-scheme: dark) {
    .dark\:bg-dark-900 {
        background-color: #0f172a;
    }
    
    .dark\:text-white {
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print\:text-black {
        color: #000000 !important;
    }
    
    .print\:bg-white {
        background-color: #ffffff !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
}

/* Custom transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Hover effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:scale-125:hover {
    transform: scale(1.25);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Box shadows */
.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.shadow-hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Blur effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(20px);
}

/* Chat Inteligente Flutuante */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chat-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.chat-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.bot {
    text-align: left;
}

.chat-message.user {
    text-align: right;
}

.chat-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.bot .chat-bubble {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.chat-option {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
}

.chat-option:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #f0f9ff;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.chat-input input {
    flex: 1;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #0ea5e9;
}

.chat-input input::placeholder {
    color: #94a3b8;
}

.chat-input button {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.chat-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Chat Toggle Button */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.chat-toggle.pulse {
    animation: pulse 2s infinite;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(51, 65, 85, 0.8);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Chat Widget */
@media (max-width: 480px) {
    .chat-widget {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .chat-toggle {
        bottom: 20px;
        right: 20px;
    }
}