/* Base animation classes */
.animate {
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.is-visible {
    opacity: 1;
}

/* Fade Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fade-in.is-visible {
    opacity: 1;
}

/* Slide Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up.is-visible,
.slide-down.is-visible,
.slide-left.is-visible,
.slide-right.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Scale Animations */
.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-down {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-up.is-visible,
.scale-down.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Rotate Animations */
.rotate-in {
    opacity: 0;
    transform: rotate(-180deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.rotate-in.is-visible {
    opacity: 1;
    transform: rotate(0);
}

/* Flip Animations */
.flip-x {
    opacity: 0;
    transform: rotateX(-90deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.flip-y {
    opacity: 0;
    transform: rotateY(-90deg);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.flip-x.is-visible,
.flip-y.is-visible {
    opacity: 1;
    transform: rotate(0);
}

/* Button Animations */
.btn-pulse {
    animation: pulse 2s infinite;
}

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

.btn-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Icon Animations */
.icon-spin {
    animation: spin 2s linear infinite;
}

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

.icon-bounce {
    animation: bounce 1s ease infinite;
}

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

/* Stagger Delays for Lists/Cards */
.stagger > *:nth-child(1) { transition-delay: calc(var(--stagger-delay, 0ms) + 100ms); }
.stagger > *:nth-child(2) { transition-delay: calc(var(--stagger-delay, 0ms) + 200ms); }
.stagger > *:nth-child(3) { transition-delay: calc(var(--stagger-delay, 0ms) + 300ms); }
.stagger > *:nth-child(4) { transition-delay: calc(var(--stagger-delay, 0ms) + 400ms); }
.stagger > *:nth-child(5) { transition-delay: calc(var(--stagger-delay, 0ms) + 500ms); }

/* Custom Stagger Delay */
[data-stagger-delay] {
    --stagger-delay: var(--custom-stagger-delay);
}

/* Special Effects */
.jetpack {
    animation: jetpack 2s ease-in-out infinite;
}

.shake-attention {
    animation: shake-attention 4s ease-in-out infinite;
    transform-origin: center;
}

.phone-ring {
    animation: phone-ring 2s ease-in-out infinite; /* Continuous ringing effect */
    transform-origin: center;
}

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

@keyframes phone-ring {
    0%, 100% {
        transform: rotate(-5deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes shake-attention {
    0%, 30%, 50%, 70%, 100% {
        transform: translateX(0) rotate(0);
    }
    40% {
        transform: translateX(-3px) rotate(-1deg);
    }
    60% {
        transform: translateX(3px) rotate(1deg);
    }
}
/* Text Animations */
.text-blur-in {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease-out, filter 0.6s ease-out;
}

.text-blur-in.is-visible {
    opacity: 1;
    filter: blur(0);
}

.text-wave span {
    display: inline-block;
    animation: wave 1.5s infinite;
    animation-delay: calc(.1s * var(--i));
}

@keyframes wave {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-10px); }
}

/* Hover Effects */
.hover-float:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hover-bright:hover {
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

/* Custom Timing Classes */
.duration-fast { transition-duration: 0.3s !important; }
.duration-normal { transition-duration: 0.6s !important; }
.duration-slow { transition-duration: 0.9s !important; }

/* Custom Easing Classes */
.ease-bounce { transition-timing-function: cubic-bezier(0.87, -0.41, 0.19, 1.44) !important; }
.ease-smooth { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
.ease-sharp { transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1) !important; }

/* Custom Delay Classes */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }
.delay-800 { transition-delay: 800ms !important; }
.delay-900 { transition-delay: 900ms !important; }
.delay-1000 { transition-delay: 1000ms !important; }

/* Custom Animation Delay Data Attribute */
[data-delay] {
    transition-delay: var(--delay) !important;
}
