/**
 * Animations Stylesheet
 * Domain Financial Audit Website
 */

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Slide Up Animation */
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {transform: translateY(-20px);} 
    60% {transform: translateY(-10px);} 
}

.bounce {
    animation: bounce 2s infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
}

.pulse {
    animation: pulse 2s infinite;
}

/* Border Gradient Animation */
@keyframes borderGradient {
    0% {border-color: var(--primary);}
    50% {border-color: var(--secondary);}
    100% {border-color: var(--primary);}
}

.border-animate {
    animation: borderGradient 3s infinite;
}

/* Staggered animations based on data attributes */
[data-animation-delay="100"] { animation-delay: 0.1s; }
[data-animation-delay="200"] { animation-delay: 0.2s; }
[data-animation-delay="300"] { animation-delay: 0.3s; }
[data-animation-delay="400"] { animation-delay: 0.4s; }
[data-animation-delay="500"] { animation-delay: 0.5s; }
[data-animation-delay="600"] { animation-delay: 0.6s; }
[data-animation-delay="700"] { animation-delay: 0.7s; }
[data-animation-delay="800"] { animation-delay: 0.8s; }
[data-animation-delay="900"] { animation-delay: 0.9s; }
[data-animation-delay="1000"] { animation-delay: 1s; }

/* Intersection Observer Activation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Animations */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Button Animation on Hover */
.button {
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 1;
}

.button:hover::after {
    left: 100%;
}
