/* ============================================
   ARIA PILATES - Animations & Effects
   ============================================ */

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* On tablet/mobile, use vertical reveal only to prevent horizontal overflow */
@media (max-width: 1024px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(40px);
    }

    .reveal-left.revealed,
    .reveal-right.revealed {
        transform: translateY(0);
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(230, 176, 230, 0.35);
    border-radius: 50%;
    animation: float var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-10px, -60px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Up Stagger */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Animation */
.stat-number {
    transition: all 0.5s ease;
}

/* Image Parallax Effect */
.parallax-img {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Smooth Link Hover */
.nav-link,
.mobile-link,
.footer-links a {
    position: relative;
}

/* Button Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.btn:active::after {
    opacity: 1;
    transform: scale(2);
    transition: 0s;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(230, 176, 230, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(230, 176, 230, 0.4);
    }
}

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

/* Text Shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.text-shimmer {
    background: linear-gradient(
        90deg, 
        var(--accent) 0%, 
        var(--accent-light) 25%, 
        var(--accent) 50%,
        var(--accent-light) 75%,
        var(--accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Smooth Section Transitions */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* Loading Skeleton */
@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
    background-size: 400px 100%;
    animation: skeleton 1.4s ease infinite;
}

/* Decorative Blob Shapes */
.blob-decoration {
    position: absolute;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    background: var(--gradient-glow);
    pointer-events: none;
    animation: blobMorph 12s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    25% { border-radius: 58% 42% 30% 70% / 55% 30% 70% 45%; }
    50% { border-radius: 30% 70% 42% 58% / 70% 58% 42% 30%; }
    75% { border-radius: 70% 30% 58% 42% / 30% 70% 45% 55%; }
}

/* Petal Spin */
@keyframes petalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.petal-spinner {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.04;
    animation: petalSpin 40s linear infinite;
    pointer-events: none;
}

/* Soft Glow Pulse */
@keyframes softGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(230, 176, 230, 0.1); }
    50% { box-shadow: 0 0 50px rgba(230, 176, 230, 0.25); }
}

.soft-glow {
    animation: softGlow 4s ease-in-out infinite;
}

/* Elegant Wave Border */
@keyframes waveMove {
    from { background-position: 0 0; }
    to { background-position: 200px 0; }
}

/* Floating Up Animation */
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Breathing Scale */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Elegant Underline Draw */
@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

.draw-underline::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--gradient-2);
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.draw-underline:hover::after {
    width: 100%;
}

/* Image Reveal Clip */
@keyframes imageReveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.img-reveal {
    clip-path: inset(0 100% 0 0);
    animation: imageReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    transform: rotate(30deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.card-shine:hover::after {
    transform: rotate(30deg) translateX(60%);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Mobile Menu Animations */
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 10000;
    transition: width 0.1s linear;
}
