/* ANIMAÇÕES PRINCIPAIS */

/* FADE IN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SLIDE IN */
@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 slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCALE */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* SHIMMER EFFECT */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* BRILHO DOURADO */
@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 0px rgba(212, 175, 55, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* BOUNCE */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* HEART BEAT */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
    75% {
        transform: scale(1.1);
    }
}

/* APLICAR ANIMAÇÕES A ELEMENTOS */

/* Produtos com fade-in ao scroll */
.product-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Categorias com zoom e slide */
.category-card {
    animation: scaleIn 0.6s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

/* Looks com slide-up */
.look-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.look-card:nth-child(1) { animation-delay: 0.1s; }
.look-card:nth-child(2) { animation-delay: 0.2s; }
.look-card:nth-child(3) { animation-delay: 0.3s; }
.look-card:nth-child(4) { animation-delay: 0.4s; }

/* Depoimentos com fade-in */
.testimonial-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover Effects */

/* Hover brilho nos produtos */
@media (hover: hover) {
    .product-image:hover {
        animation: goldGlow 0.6s ease-in-out;
    }

    /* Zoom suave nas imagens */
    .look-image img {
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

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

/* SPINNER LOADING */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* SKELETON LOADER */
@keyframes skeleton-loading {
    0% {
        background-color: var(--color-light-bg);
    }
    50% {
        background-color: var(--color-light-pink);
    }
    100% {
        background-color: var(--color-light-bg);
    }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-lg);
}

/* ENTRANCE ANIMATIONS */
@keyframes entranceSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entranceFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal/Overlay animations */
@keyframes overlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Pulse animation para elementos destacados */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.btn-primary {
    animation: subtlePulse 2.5s ease-in-out infinite;
}

/* Pulse Animation for WhatsApp Button */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Transições suaves */
* {
    transition: background-color var(--transition-fast), 
                color var(--transition-fast),
                border-color var(--transition-fast);
}

/* RESPONSIVE ANIMATIONS */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* PARALLAX EFFECT */
@supports (animation: 0s) {
    .hero-image {
        will-change: transform;
    }
}

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

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

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

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
        overflow: visible;
    }
}

.nav-desktop.active {
    animation: slideDown 0.3s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 105, 180, 0.1);
    border-radius: 50%;
    border-top: 3px solid #ff69b4;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Hover effects for links */
a {
    transition: color 0.2s ease;
}

/* Focus states for accessibility */
button:focus, a:focus {
    outline: 2px solid #ff69b4;
    outline-offset: 2px;
}

/* Transition for page changes */
@keyframes pageTransition {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageTransition 0.3s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Larger touch targets on mobile */
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Reduce animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}
