/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

.animate-on-scroll.animated {
    opacity: 1;
    visibility: visible;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation names - only apply when animated */
.animate-on-scroll.animated.fade-in-up {
    animation-name: fadeInUp;
}

.animate-on-scroll.animated.fade-in-down {
    animation-name: fadeInDown;
}

.animate-on-scroll.animated.fade-in-left {
    animation-name: fadeInLeft;
}

.animate-on-scroll.animated.fade-in-right {
    animation-name: fadeInRight;
}

.animate-on-scroll.animated.fade-in {
    animation-name: fadeIn;
}

.animate-on-scroll.animated.scale-in {
    animation-name: scaleIn;
}

/* Stagger delays for sequential animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Navigation animations */
header nav ul li {
    opacity: 0;
    animation: fadeInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

header nav ul li:nth-child(1) {
    animation-delay: 0.1s;
}

header nav ul li:nth-child(2) {
    animation-delay: 0.2s;
}

header nav ul li:nth-child(3) {
    animation-delay: 0.3s;
}

header nav ul li:nth-child(4) {
    animation-delay: 0.4s;
}

/* Logo animation */
#header-logo {
    opacity: 0;
    animation: fadeInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* Page indicator animation */
.page-indicator {
    opacity: 0;
    animation: fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-indicator:nth-child(1) {
    animation-delay: 0.3s;
}

.page-indicator:nth-child(2) {
    animation-delay: 0.4s;
}

.page-indicator:nth-child(3) {
    animation-delay: 0.5s;
}

.page-indicator:nth-child(4) {
    animation-delay: 0.6s;
}

.page-indicator:nth-child(5) {
    animation-delay: 0.7s;
}

/* Action buttons animation */
#action-buttons button {
    opacity: 0;
    animation: fadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#action-buttons button:nth-child(1) {
    animation-delay: 0.2s;
}

#action-buttons button:nth-child(2) {
    animation-delay: 0.3s;
}

#action-buttons button:nth-child(3) {
    animation-delay: 0.4s;
}