/* ===== MICRO-ANIMAÇÕES E EFEITOS ===== */

/* ===== FADE IN ANIMATIONS ===== */
@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 fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== SCALE ANIMATIONS ===== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleHover {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* ===== SLIDE ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ROTATE ANIMATIONS ===== */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== BOUNCE ANIMATIONS ===== */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* ===== PULSE ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 211, 102, 0.6), 0 0 40px rgba(37, 211, 102, 0.4);
    }
}

/* ===== FLOAT ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* ===== SHAKE ANIMATIONS ===== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

/* ===== GLOW ANIMATIONS ===== */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(139, 115, 85, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(139, 115, 85, 0.8), 0 0 30px rgba(139, 115, 85, 0.6);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(160, 137, 104, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(160, 137, 104, 0.8), 0 0 30px rgba(160, 137, 104, 0.6);
    }
}

/* ===== GRADIENT ANIMATIONS ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* ===== BORDER ANIMATIONS ===== */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(139, 115, 85, 0.3);
        box-shadow: 0 0 10px rgba(139, 115, 85, 0.2);
    }
    50% {
        border-color: rgba(139, 115, 85, 0.6);
        box-shadow: 0 0 20px rgba(139, 115, 85, 0.4), 0 0 30px rgba(139, 115, 85, 0.2);
    }
}

/* ===== TYPEWRITER EFFECT ===== */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #8b7355;
    }
}

/* ===== RIPPLE EFFECT ===== */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== MORPHING ANIMATIONS ===== */
@keyframes morph {
    0%, 100% {
        border-radius: 50%;
    }
    25% {
        border-radius: 25% 75% 50% 50%;
    }
    50% {
        border-radius: 50% 25% 50% 75%;
    }
    75% {
        border-radius: 75% 50% 25% 50%;
    }
}

/* ===== ELEMENT ANIMATIONS ===== */

/* Header animations */
.header {
    animation: fadeInDown 1s ease-out;
}

/* Logo animation */
.logo-link {
    animation: fadeIn 1.5s ease-out;
}

/* Navigation buttons */
.nav-buttons {
    animation: fadeInRight 1.2s ease-out 0.3s both;
}

/* Hero animations */
.hero-content {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-text h1 {
    animation: fadeInLeft 1.5s ease-out 0.7s both;
}

.hero-text p {
    animation: fadeInLeft 1.5s ease-out 0.9s both;
}

.hero-cta {
    animation: scaleIn 1s ease-out 1.1s both;
}

.hero-placeholder {
    animation: scaleIn 1.5s ease-out 1.3s both;
}

.floating-brain {
    animation: float 6s ease-in-out infinite;
}

.floating-heart {
    animation: float 6s ease-in-out infinite 2s;
}

.floating-star {
    animation: float 6s ease-in-out infinite 4s;
}

/* WhatsApp float animation */
.whatsapp-float {
    animation: fadeInUp 1s ease-out 2s both;
}

/* Section animations */
.map-section {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.footer {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Button hover effects */
.btn:hover {
    animation: scaleHover 0.3s ease forwards;
}

/* Scroll-triggered animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left-on-scroll.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right-on-scroll.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in-on-scroll.animate {
    opacity: 1;
    transform: scale(1);
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 115, 85, 0.4);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Loading animations */
.loading-spinner {
    animation: spin 1s linear infinite;
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-bounce {
    animation: bounce 1s infinite;
}

/* Progress animations */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Interactive elements */
.interactive-bounce:hover {
    animation: bounce 0.6s ease;
}

.interactive-shake:hover {
    animation: shake 0.5s ease;
}

.interactive-wiggle:hover {
    animation: wiggle 0.8s ease;
}

/* Notification animations */
.notification-enter {
    animation: slideInRight 0.5s ease-out;
}

.notification-exit {
    animation: fadeIn 0.3s ease-out reverse;
}

/* Card animations */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Emoji animations */
.emoji-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

.emoji-spin {
    display: inline-block;
    animation: spin 3s linear infinite;
}

.emoji-pulse {
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Background animations */
.animated-bg {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Text animations */
.text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

.text-gradient {
    background: linear-gradient(45deg, #8b7355, #a08968, #8b7355);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
