/* ===================================
   DJ Jader Tedd - Animations.css
   Micro-animações e Transições
   =================================== */

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

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

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

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

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

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.9);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes soundWave {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

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

@keyframes equalizerBar {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 50px;
    }
}

/* Micro-animação de brilho no cabeçalho */
@keyframes headerShine {
    0% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 12px -1px rgba(59, 130, 246, 0.3), 0 0 20px rgba(6, 182, 212, 0.2);
    }
    100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Animação de pulso suave para emojis */
@keyframes emojiPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
}

/* Animação de rotação suave */
@keyframes emojiRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Animação de balanço para emojis */
@keyframes emojiSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
}

/* Animações para emojis do header */
.emoji-animated {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.emoji-animated:hover {
    animation: emojiPulse 0.6s ease-in-out;
    transform: scale(1.2);
}

.emoji-animated:nth-child(1) {
    animation: emojiPulse 2s ease-in-out infinite;
    animation-delay: 0s;
}

.emoji-animated:nth-child(2) {
    animation: emojiRotate 3s ease-in-out infinite;
    animation-delay: 0.6s;
}

.emoji-animated:nth-child(3) {
    animation: emojiSwing 2.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Header scroll animation */
.header {
    transition: all 0.3s ease;
    animation: headerShine 4s ease-in-out infinite;
}

.header.scrolled {
    animation: fadeInDown 0.3s ease, headerShine 4s ease-in-out infinite 0.3s;
}

/* Animação do logo no cabeçalho */
.logo a {
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.logo h2 {
    transition: all 0.3s ease;
}

/* Micro-animação nos botões do cabeçalho */
@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.header-actions .btn-call,
.header-actions .btn-whatsapp {
    animation: buttonGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.header-actions .btn-call:hover,
.header-actions .btn-whatsapp:hover {
    animation: pulse 0.6s ease-in-out infinite;
    filter: brightness(1.1);
}

/* Hero animations */
.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Scroll reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Seções SEO */
.seo-section {
    animation: fadeIn 0.6s ease;
}

.seo-section h2 {
    animation: fadeInDown 0.6s ease;
}

/* Cards hover animations */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    animation: pulse 0.5s ease;
}

.moment-card {
    transition: all 0.3s ease;
}

.moment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Botões animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
}

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

/* WhatsApp Float animations */
.whatsapp-float {
    animation: fadeInScale 0.5s ease, float 3s ease-in-out 0.5s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    animation: pulse 0.5s ease infinite;
}

/* CTA Banner animations */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Links animations */
a {
    position: relative;
    transition: color 0.3s ease;
}

/* Footer animations */
.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    transform: translateX(5px);
}

/* Image lazy load animation */
img[data-src] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img[data-src].loaded {
    opacity: 1;
    animation: fadeIn 0.6s ease;
}

/* Menu toggle animation - REMOVIDO */

/* Testimonial box animation */
.testimonial-box {
    animation: fadeInUp 0.8s ease;
}

/* Contact items stagger animation */
.contact-item:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.contact-item:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.contact-item:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* SEO Cards stagger animation */
.seo-cards .card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.seo-cards .card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.seo-cards .card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Wedding moments stagger */
.wedding-moments .moment-card {
    animation: fadeInScale 0.6s ease;
}

.wedding-moments .moment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.wedding-moments .moment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.wedding-moments .moment-card:nth-child(3) {
    animation-delay: 0.3s;
}

.wedding-moments .moment-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Repertorio grid stagger */
.repertorio-grid .repertorio-item {
    animation: slideInLeft 0.6s ease;
}

.repertorio-grid .repertorio-item:nth-child(odd) {
    animation-name: slideInLeft;
}

.repertorio-grid .repertorio-item:nth-child(even) {
    animation-name: slideInRight;
}

/* Maps container animation */
.maps-container {
    animation: fadeInUp 0.8s ease;
}

/* CTA Box pulse animation */
.cta-box {
    animation: fadeInScale 0.6s ease;
}

.cta-box:hover {
    animation: pulse 0.5s ease;
}

/* Icon animations */
.card-icon,
.contact-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon,
.contact-item:hover .contact-icon {
    animation: bounce 0.6s ease;
}

/* Header logo animation */
.logo a:hover h2 {
    animation: swing 0.5s ease;
}

/* Animação de entrada do cabeçalho */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: slideDownFade 0.6s ease-out, headerShine 4s ease-in-out infinite 0.6s;
}

/* Stagger animation para elementos do header */
.logo {
    animation: fadeInDown 0.6s ease 0.1s both;
}

.header-emojis {
    animation: fadeInDown 0.6s ease 0.2s both;
}

.header-actions {
    animation: fadeInDown 0.6s ease 0.3s both;
}

/* Hero CTA Button special animation */
.btn-hero {
    animation: pulse 2s ease infinite;
}

.btn-hero:hover {
    animation: none;
}

/* Gradient animation for headers */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.seo-section h2 {
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

/* Loading animation (se necessário) */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top-color: var(--color-primary-purple);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Smooth scrolling sections */
section {
    scroll-margin-top: 80px;
}

/* Efeito de partículas nos botões do header */
@keyframes particle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0);
    }
}

.header-actions .btn-call::before,
.header-actions .btn-whatsapp::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.header-actions .btn-call:hover::before,
.header-actions .btn-whatsapp:hover::before {
    animation: particle 1.5s ease-out infinite;
}

/* Efeito de ondulação suave nos emojis */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4),
                    0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0),
                    0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0),
                    0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.emoji-animated:active {
    animation: ripple 0.6s ease-out;
}

/* Performance optimizations */
.btn,
.card,
.whatsapp-float,
.emoji-animated {
    will-change: transform;
}

/* Efeito de brilho nos emojis ao passar o mouse */
.header-emojis .emoji-animated::after {
    content: '✨';
    position: absolute;
    opacity: 0;
    font-size: 16px;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.header-emojis .emoji-animated {
    position: relative;
}

.header-emojis .emoji-animated:hover::after {
    opacity: 1;
    transform: translate(20px, -20px) scale(1);
    animation: sparkle 0.6s ease-out;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(20px, -20px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(40px, -40px) scale(0) rotate(360deg);
    }
}

/* Efeito de onda nos botões ao clicar */
.btn-call:active,
.btn-whatsapp:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .emoji-animated,
    .whatsapp-float,
    .btn-hero {
        animation: none !important;
    }
}

