/* Reset e Base */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Animações personalizadas */
@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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

/* Classes de animação */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Personalização do scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F59E0B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D97706;
}

/* Header fixo com efeito de scroll */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Transições suaves para links */
a {
    transition: all 0.3s ease;
}

/* Efeitos hover para cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Efeito de brilho para botões */
.btn-glow {
    position: relative;
    overflow: hidden;
}

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

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

/* Efeito de parallax suave */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Cards com efeito de vidro (glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Texto com gradiente */
.text-gradient {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botão WhatsApp flutuante com animação */
#whatsappBtn {
    animation: float 3s ease-in-out infinite;
}

#whatsappBtn:hover {
    animation: none;
}

/* Botão scroll to top */
#scrollTopBtn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

/* Efeito de hover nos ícones */
i {
    transition: all 0.3s ease;
}

.icon-hover:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Linha decorativa animada */
.decorative-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    margin: 1rem auto;
    border-radius: 2px;
    position: relative;
}

.decorative-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Sombras customizadas */
.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-custom-hover {
    transition: all 0.3s ease;
}

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

/* Efeito de reveal ao scroll (será ativado pelo JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay escuro para modais */
.overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(245, 158, 11, 0.1);
    border-top: 3px solid #F59E0B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Responsividade adicional */
@media (max-width: 768px) {
    .mobile-menu {
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    .mobile-menu.active {
        max-height: 500px;
    }
}

/* Melhorias de performance */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Efeito de digitação para textos */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #F59E0B;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #F59E0B; }
}

/* Estilo para seções com fundo alternado */
section:nth-child(even) {
    position: relative;
}

/* Efeito de zoom suave em imagens */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Bordas animadas */
.border-animated {
    position: relative;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #F59E0B;
    border-radius: inherit;
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

/* Melhorias de acessibilidade */
.focus-visible:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Badges e etiquetas */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #F59E0B;
    color: white;
}

.badge-secondary {
    background-color: #1F2937;
    color: white;
}

/* Tooltips personalizados */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Separadores decorativos */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #F59E0B, transparent);
    margin: 2rem 0;
}

/* Efeitos de texto */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-strong {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* Otimização para impressão */
@media print {
    #whatsappBtn,
    #scrollTopBtn,
    header,
    footer {
        display: none !important;
    }
}
