/*
 * Asil Tesisat - Animation System
 * Scroll-triggered animations & transitions
 */

/* Animation Base States */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
}

/* Fade Animations */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-up"].animated {
    transform: translateY(0);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-down"].animated {
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-left"].animated {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

/* Scale Animations */
[data-animate="scale-up"] {
    transform: scale(0.9);
}

[data-animate="scale-up"].animated {
    transform: scale(1);
}

/* Stagger Delays */
[data-animate-stagger]>*:nth-child(1) {
    transition-delay: 0.1s;
}

[data-animate-stagger]>*:nth-child(2) {
    transition-delay: 0.2s;
}

[data-animate-stagger]>*:nth-child(3) {
    transition-delay: 0.3s;
}

[data-animate-stagger]>*:nth-child(4) {
    transition-delay: 0.4s;
}

[data-animate-stagger]>*:nth-child(5) {
    transition-delay: 0.5s;
}

[data-animate-stagger]>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* Hero Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-badge {
    animation: slideDown 0.8s ease 0.3s both;
}

.hero-title {
    animation: slideUp 0.8s ease 0.5s both;
}

.hero-description {
    animation: slideUp 0.8s ease 0.7s both;
}

.hero-buttons {
    animation: slideUp 0.8s ease 0.9s both;
}

.hero-stats {
    animation: fadeIn 1s ease 1.2s both;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}