/* Enhanced Animations for Ranisa Boutique */

/* Fade In Up - Enhanced */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In with Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Golden Shimmer Wave */
@keyframes goldenShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Pulse Glow Effect */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

/* Float Up Down */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Rotate Slow */
@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Golden Text Shimmer */
@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.animate-up {
    animation: fadeInUp 0.8s ease backwards;
}

.animate-scale {
    animation: fadeInScale 0.8s ease backwards;
}

.animate-left {
    animation: slideInLeft 0.8s ease backwards;
}

.animate-right {
    animation: slideInRight 0.8s ease backwards;
}

.animate-bounce {
    animation: bounceIn 1s ease backwards;
}

.animate-float {
    animation: floatUpDown 3s ease-in-out infinite;
}

.animate-glow {
    animation: pulseGlow 2s ease infinite;
}

/* Product Card Animations */
.product-card {
    animation: fadeInScale 0.6s ease 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;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Animated Golden Text */
.animated-gold-text {
    background: linear-gradient(90deg,
            #d4a574 0%,
            #f5d5ba 25%,
            #d4af37 50%,
            #f5d5ba 75%,
            #d4a574 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

/* Image Hover Zoom with Golden Glow */
.image-zoom-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.image-zoom-hover img {
    transition: transform 0.5s ease;
}

.image-zoom-hover:hover img {
    transform: scale(1.15);
}

.image-zoom-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.3),
            transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.image-zoom-hover:hover::before {
    left: 100%;
}

/* Button Ripple Effect */
.btn-ranisa,
.btn-outline-ranisa {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-ranisa::after,
.btn-outline-ranisa::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-ranisa:hover::after,
.btn-outline-ranisa:hover::after {
    width: 400px;
    height: 400px;
}

/* Section Divider With Animation */
.accent-line {
    position: relative;
    overflow: hidden;
}

.accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: shimmerSlide 3s ease infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Stagger Animation for Lists */
.stagger-animation>* {
    animation: fadeInUp 0.6s ease backwards;
}

.stagger-animation>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-animation>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-animation>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-animation>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-animation>*:nth-child(5) {
    animation-delay: 0.5s;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer Loading Effect */
@keyframes shimmerLoading {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer-loading {
    animation: shimmerLoading 2s infinite linear;
    background: linear-gradient(to right,
            #f0f0f0 0%,
            #f8f8f8 20%,
            #f0f0f0 40%,
            #f0f0f0 100%);
    background-size: 1000px 100%;
}

/* Smooth Page Transitions */
body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}